/* ===== QUIZ-GENERATE-AI.HTML - SPECIFIC STYLES ===== */

body {
    padding-top: 55px;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8eef5 100%);
    min-height: 100vh;
}

.ai-hero {
    background: linear-gradient(135deg, #1a4b84 0%, #0f3054 100%);
    padding: 3rem 0 6rem;
    margin-bottom: -4rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.ai-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.ai-hero h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.ai-hero p {
    position: relative;
    z-index: 1;
}

.ai-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
    position: relative;
    z-index: 2;
}

.upload-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(26, 75, 132, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.upload-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.upload-zone {
    border: 3px dashed #cbd5e1;
    border-radius: 16px;
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.upload-zone::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(26, 75, 132, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.upload-zone:hover::before {
    width: 300px;
    height: 300px;
}

.upload-zone:hover {
    border-color: #1a4b84;
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    transform: scale(1.02);
}

.upload-zone.dragover {
    border-color: #1a4b84;
    background: linear-gradient(135deg, #bfdbfe 0%, #dbeafe 100%);
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(26, 75, 132, 0.2);
}

.upload-icon {
    font-size: 4rem;
    color: #1a4b84;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.upload-zone h6 {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.upload-zone p {
    position: relative;
    z-index: 1;
}

.generation-progress {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(26, 75, 132, 0.1);
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.progress-step.active {
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
}

.progress-step.completed {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: white;
    color: #64748b;
}

.progress-step.active .step-icon {
    background: #1a4b84;
    color: white;
    animation: pulse 1.5s ease-in-out infinite;
}

.progress-step.completed .step-icon {
    background: #10b981;
    color: white;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.question-preview {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 2.5rem;
    border: 1px solid rgba(26, 75, 132, 0.1);
}


/* Loading Overlay */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.loading-overlay.show {
    display: flex;
}

.loading-content {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.loading-content .spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1a4b84;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content h5 {
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.loading-content p {
    font-size: 0.9rem;
}

/* File Info */
.file-info {
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    display: none;
    border: 2px solid #1a4b84;
}

.file-info.show {
    display: block;
}

.file-info-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #1a4b84;
}

.file-details {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.file-size {
    font-size: 0.875rem;
    color: #64748b;
}

/* Result Card */
.result-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(26, 75, 132, 0.1);
    display: none;
}

.result-card.show {
    display: block;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 991px) {
    .ai-hero {
        padding: 2.5rem 0 5rem;
    }
    
    .ai-hero h1 {
        font-size: 1.75rem;
    }
    
    .upload-card,
    .generation-progress,
    .question-preview,
    .result-card {
        padding: 2rem;
    }
    
    .upload-zone {
        padding: 3rem 1.5rem;
    }
    
    .upload-icon {
        font-size: 3.5rem;
    }
}

@media (max-width: 767px) {
    body {
        padding-top: 55px;
    }
    
    .ai-hero {
        padding: 2rem 0 4.5rem;
        margin-bottom: -3rem;
    }
    
    .ai-hero h1 {
        font-size: 1.5rem;
    }
    
    .ai-container {
        padding: 0 0.75rem 2rem;
    }
    
    .upload-card,
    .generation-progress,
    .question-preview,
    .result-card {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .upload-zone {
        padding: 2.5rem 1.25rem;
        border-radius: 12px;
    }
    
    .upload-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    
    .upload-zone h6 {
        font-size: 1rem;
    }
    
    .progress-step {
        padding: 0.875rem;
        gap: 0.75rem;
    }
    
    .step-icon {
        width: 42px;
        height: 42px;
        font-size: 1.25rem;
    }
    
    .file-info {
        padding: 1.25rem;
    }
    
    .file-icon {
        width: 42px;
        height: 42px;
        font-size: 1.25rem;
    }
    
    .loading-content {
        padding: 2rem;
        margin: 0 1rem;
        border-radius: 16px;
    }
    
    .loading-content .spinner {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 575px) {
    .ai-hero {
        padding: 1.5rem 0 4rem;
        margin-bottom: -2.5rem;
    }
    
    .ai-hero h1 {
        font-size: 1.35rem;
    }
    
    .ai-container {
        padding: 0 0.5rem 1.5rem;
    }
    
    .upload-card,
    .generation-progress,
    .question-preview,
    .result-card {
        padding: 1.25rem;
        border-radius: 10px;
        margin-bottom: 1.25rem;
    }
    
    .upload-zone {
        padding: 2rem 1rem;
        border-radius: 10px;
        border-width: 2px;
    }
    
    .upload-icon {
        font-size: 2.5rem;
        margin-bottom: 0.875rem;
    }
    
    .upload-zone h6 {
        font-size: 0.95rem;
        margin-bottom: 0.375rem;
    }
    
    .upload-zone p {
        font-size: 0.85rem;
    }
    
    .progress-step {
        padding: 0.75rem;
        gap: 0.625rem;
        border-radius: 10px;
        margin-bottom: 0.75rem;
    }
    
    .step-icon {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
    
    .file-info {
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
    }
    
    .file-info-content {
        gap: 0.75rem;
    }
    
    .file-icon {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
        border-radius: 10px;
    }
    
    .file-name {
        font-size: 0.9rem;
    }
    
    .file-size {
        font-size: 0.8rem;
    }
    
    .loading-content {
        padding: 1.5rem;
        border-radius: 14px;
    }
    
    .loading-content .spinner {
        width: 45px;
        height: 45px;
        margin-bottom: 1rem;
    }
    
    .loading-content h5 {
        font-size: 1rem;
    }
    
    .loading-content p {
        font-size: 0.85rem;
    }
}
