@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');

.font-space {
    font-family: 'Space Grotesk', sans-serif;
}

.font-great-vibes {
    font-family: 'Great Vibes', cursive;
}

body {
    background: #f8fafc;
    font-family: 'Inter', sans-serif;
}

::-webkit-scrollbar {
    width: 8px;
    background-color: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background-color: #6366f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #4f46e5;
}

.btn-primary {
    background-color: #6366f1;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #4f46e5;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background-color: #f1f5f9;
    color: #334155;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #e2e8f0;
    border-color: #cbd5e1;
}

.btn-success {
    background-color: #10b981;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-success:hover {
    background-color: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-danger {
    background-color: #ef4444;
    color: white;
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-danger:hover {
    background-color: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.section-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.modal-content {
    animation: slideIn 0.3s ease-out forwards;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.lesson-card {
    transition: all 0.2s ease;
    cursor: pointer;
}

.lesson-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

nav {
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.nav-logo {
    background-color: #6366f1;
}

.stats-card {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(99, 102, 241, 0.15);
}

.progress-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.badge-completed {
    background-color: #dcfce7;
    color: #166534;
}

.badge-quiz-passed {
    background-color: #dbeafe;
    color: #1e40af;
}

#certificate-container {
    background: white;
    border: 8px solid #6366f1;
    padding: 3rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    width: 100%;
    max-width: 850px;
    aspect-ratio: 11 / 8.5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #1e293b;
}

#certificate-content {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
}

#certificate-logo-placeholder {
    width: 80px;
    height: 80px;
    background-color: #6366f1;
    border-radius: 50%;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

#certificate-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
    letter-spacing: 0.025em;
}

#certificate-subtitle {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

#certificate-name {
    font-size: 3.5rem;
    font-weight: 700;
    color: #6366f1;
    margin: 1.5rem 0;
}

#certificate-course-title {
    font-size: 2rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

#certificate-date {
    font-size: 1rem;
    color: #64748b;
    margin-top: 2rem;
}

#certificate-signature-line {
    width: 50%;
    border-bottom: 2px solid #cbd5e1;
    margin: 2rem auto 0.5rem auto;
}

#certificate-signature-text {
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    color: #475569;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .section-card {
        padding: 1.5rem;
    }

    #certificate-container {
        padding: 1.5rem;
        aspect-ratio: unset;
        height: auto;
        max-width: 95%;
        border-width: 6px;
    }
    
    #certificate-logo-placeholder {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
    
    #certificate-title {
        font-size: 1.5rem;
    }
    
    #certificate-subtitle {
        font-size: 0.875rem;
    }
    
    #certificate-name {
        font-size: 2rem;
    }
    
    #certificate-course-title {
        font-size: 1.25rem;
    }
    
    #certificate-date {
        font-size: 0.875rem;
    }
    
    #certificate-signature-text {
        font-size: 1.5rem;
    }
}

.form-input {
    display: block;
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background: white;
    color: #1f2937;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}
