/* ============================================
   LEARNOVA - Main Stylesheet (Updated Logo Sizes)
   Brand Colors:
   Navy: #0a1f4d
   Purple: #8b2fc9
   Blue: #0ea5e9
   Green: #22c55e
   Orange: #f97316
   Star Yellow: #fbbf24
   ============================================ */

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

:root {
    --navy: #0a1f4d;
    --navy-light: #1a3a7a;
    --navy-dark: #061435;
    --purple: #8b2fc9;
    --purple-light: #a855f7;
    --blue: #0ea5e9;
    --blue-light: #38bdf8;
    --green: #22c55e;
    --green-light: #4ade80;
    --orange: #f97316;
    --orange-light: #fb923c;
    --yellow: #fbbf24;
    --yellow-light: #fcd34d;
    --rose: #f43f5e;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --font-heading: 'Nunito', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    background: var(--gray-50);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    color: var(--navy);
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

img {
    max-width: 100%;
    height: auto;
}

img[src*="assets/branding/learnova-badge.png"] {
    background: transparent;
}

/* ============================================
   LOGO STYLES - UPDATED FOR LARGER SIZE
   ============================================ */

/* Landing page nav logo */
.nav-logo img {
    height: 120px;
    width: auto;
    object-fit: contain;
}

/* Dashboard sidebar logo */
.sidebar-header img {
    height: auto;
    width: 100%;
    max-width: 230px;
    object-fit: contain;
}

/* Login page logo */
.login-brand img {
    height: 220px;
    width: auto;
    object-fit: contain;
}

/* Footer logo */
.footer-brand img {
    height: 140px;
    width: auto;
    object-fit: contain;
}

/* Utility Classes */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }

.text-center { text-align: center; }

.hidden { display: none !important; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: white;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
}

.btn-secondary {
    background: white;
    color: var(--navy);
    border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.btn-navy {
    background: var(--navy);
    color: white;
}

.btn-navy:hover {
    background: var(--navy-light);
}

.btn-green {
    background: linear-gradient(135deg, var(--green), var(--green-light));
    color: white;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
}

.btn-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.45);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: var(--radius-sm);
}

/* Cards */
.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

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

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

.badge-purple {
    background: #f3e8ff;
    color: #7c3aed;
}

.badge-orange {
    background: #ffedd5;
    color: #9a3412;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 10px;
    background: var(--gray-200);
    border-radius: 100px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 100px;
    transition: width 0.6s ease;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse-slow {
    animation: pulse 2s ease-in-out infinite;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 100px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* Grade Colors */
.grade-r { --grade-color: #f472b6; }
.grade-1 { --grade-color: #fb923c; }
.grade-2 { --grade-color: #facc15; }
.grade-3 { --grade-color: #a3e635; }
.grade-4 { --grade-color: #34d399; }
.grade-5 { --grade-color: #22d3ee; }
.grade-6 { --grade-color: #60a5fa; }
.grade-7 { --grade-color: #818cf8; }
.grade-8 { --grade-color: #a78bfa; }
.grade-9 { --grade-color: #c084fc; }
.grade-10 { --grade-color: #f472b6; }
.grade-11 { --grade-color: #fb7185; }
.grade-12 { --grade-color: #f43f5e; }

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    input,
    select,
    textarea {
        font-size: 16px;
    }

    .card:hover,
    .btn-primary:hover,
    .btn-green:hover {
        transform: none;
    }

    /* Smaller logos on mobile */
    .nav-logo img {
        height: 84px;
    }

    .sidebar-header img {
        height: 44px;
    }

    .login-brand img {
        height: 60px;
    }

    .footer-brand img {
        height: 56px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .btn {
        width: 100%;
        min-height: 46px;
    }
}
