/* テンプレートアップロード機能専用CSS */

.template-upload-section {
    border: none;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.template-upload-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.template-upload-header::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
}

.template-card {
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.template-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.template-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #28a745, #20c997);
}

.upload-zone {
    border: 2px dashed #6c757d;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    min-height: 120px;
}

.upload-zone:hover {
    border-color: #007bff;
    background-color: rgba(0, 123, 255, 0.05);
}

.upload-zone.dragover {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
}

.upload-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.upload-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.upload-btn:hover::before {
    width: 300px;
    height: 300px;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-input-custom {
    position: absolute;
    left: -9999px;
}

.file-input-label {
    cursor: pointer;
    display: block;
    padding: 12px 16px;
    background: #fff;
    border: 2px dashed #ced4da;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.file-input-label:hover {
    border-color: #007bff;
    background: rgba(0, 123, 255, 0.05);
}

.file-input-label.has-file {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    min-height: 200px;
}

.file-preview-container {
    display: none;
    margin-top: 10px;
    text-align: center;
}

.file-preview-image {
    max-width: 100%;
    max-height: 150px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 8px;
}

.file-preview-info {
    font-size: 0.875rem;
    color: #666;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
}

.file-preview-container:hover .preview-overlay {
    display: flex;
}

.upload-icon {
    transition: all 0.3s ease;
}

.file-input-label.has-file .upload-text {
    font-size: 0.875rem;
}

.progress-container {
    display: none;
    margin-top: 10px;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.step-indicator::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.step {
    background: #e9ecef;
    border: 3px solid #e9ecef;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.step.active {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

.step.completed {
    background: #28a745;
    border-color: #28a745;
    color: white;
} 