/* Math With Fahim - Main Stylesheet */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* New Vibrant Color Palette */
    --primary-blue: #2A62FF;
    --primary-purple: #8b5cf6;
    --primary-teal: #1AC8C9;
    --accent-yellow: #FFD742;
    --accent-coral: #FF6F61;
    --text-dark: #212B36;
    --light-grey: #F5F7FA;
    
    /* Legacy support (map to new palette) */
    --primary-color: #2A62FF;
    --secondary-color: #8b5cf6;
    --accent-color: #1AC8C9;
    --success-color: #10b981;
    --warning-color: #FFD742;
    --danger-color: #ef4444;
    --info-color: #2A62FF;
    --light-bg: #F5F7FA;
    --white: #ffffff;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 4px 12px rgba(42, 98, 255, 0.12);
    --shadow-lg: 0 12px 32px rgba(42, 98, 255, 0.18);
}

body {
    font-family: 'Inter', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-grey);
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800&family=Nunito+Sans:wght@300;400;600;700;800&display=swap');

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    box-shadow: 0 2px 12px rgba(42, 98, 255, 0.06);
    position: relative;
    z-index: 1000;
    border-bottom: 1px solid rgba(42, 98, 255, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo h1 {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple), var(--primary-teal), var(--primary-blue));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.7rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.5px;
    animation: logoGradientShift 4s ease infinite;
    position: relative;
}

@keyframes logoGradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.logo h1::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple), var(--primary-teal), var(--primary-blue));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.5;
    filter: blur(8px);
    z-index: -1;
    animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    100% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.logo a {
    text-decoration: none;
}

.header-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white !important;
    padding: 0.7rem 1.8rem;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.header-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
    background: linear-gradient(135deg, #2ee876, #0f9b6e);
}

.header-whatsapp i {
    font-size: 1rem;
}

.main-nav {
    position: relative;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
    padding: 0.3rem;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(42, 98, 255, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: visible;
}

/* Sliding background indicator */
.main-nav ul::before {
    content: '';
    position: absolute;
    top: 0.4rem;
    left: 0.4rem;
    height: calc(100% - 0.8rem);
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    border-radius: 12px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    box-shadow: 
        0 4px 12px rgba(42, 98, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    width: 0;
    opacity: 0;
}

.main-nav li {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.45rem 0.9rem;
    font-size: 0.875rem;
    white-space: nowrap;
    display: inline-block;
    border-radius: 12px;
    z-index: 1;
}

.main-nav a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 50%;
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.main-nav a:hover {
    color: white;
    transform: scale(1.05);
}

.main-nav a:hover::after {
    width: 150px;
    height: 150px;
}

.main-nav a.active {
    color: white;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    box-shadow: 
        0 4px 12px rgba(42, 98, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.main-nav .btn-login {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple)) !important;
    color: var(--white) !important;
    padding: 0.45rem 1rem !important;
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 
        0 4px 12px rgba(42, 98, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    display: inline-block;
    margin-left: 0.3rem;
    position: relative;
    overflow: hidden;
    border: none;
    z-index: 2;
}

.main-nav .btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.main-nav .btn-login::after {
    display: none;
}

.main-nav .btn-login:hover {
    transform: scale(1.05);
    box-shadow: 
        0 6px 20px rgba(42, 98, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.main-nav .btn-login:hover::before {
    left: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

@media (max-width: 768px) {
    .main-content {
        /* Further reduce top gap between header and first section on mobile */
        padding-top: 0.15rem;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 3rem;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-section .tagline {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.hero-section .cta-button {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary-color);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero-section .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Cards */
.card {
    background-color: var(--white);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(42, 98, 255, 0.12);
    margin-bottom: 2rem;
    border: 2px solid rgba(42, 98, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(42, 98, 255, 0.18);
    border-color: var(--primary-teal);
}

.card-header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.card-header h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2.5rem;
    background-color: var(--white);
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(42, 98, 255, 0.12);
    border: 2px solid rgba(42, 98, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(42, 98, 255, 0.2);
    border-color: var(--primary-teal);
}

.feature-card i {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: var(--white);
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(42, 98, 255, 0.35);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(42, 98, 255, 0.45);
    background: linear-gradient(135deg, #3d73ff, #9d52ff);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: var(--white);
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 600;
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #14c796, #06785d);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: var(--white);
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 600;
}

.btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
    background: linear-gradient(135deg, #f87171, #b91c1c);
}

.btn-secondary {
    background: linear-gradient(135deg, #64748b, #475569);
    color: var(--white);
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(100, 116, 139, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 600;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(100, 116, 139, 0.4);
    background: linear-gradient(135deg, #7b8ba1, #374151);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(42, 98, 255, 0.1);
    background: var(--white);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

select.form-control {
    cursor: pointer;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(42, 98, 255, 0.08);
}

.table thead {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: var(--white);
}

.table th,
.table td {
    padding: 1.1rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid rgba(42, 98, 255, 0.08);
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: linear-gradient(135deg, rgba(42, 98, 255, 0.03), rgba(138, 63, 252, 0.03));
    transform: scale(1.01);
}

.table-responsive {
    overflow-x: auto;
}

/* Filters */
.filters {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(42, 98, 255, 0.1);
    margin-bottom: 2rem;
    border: 2px solid rgba(42, 98, 255, 0.06);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Flash Messages */
.flash-message {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    position: relative;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.flash-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid var(--success-color);
}

.flash-error,
.flash-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid var(--danger-color);
}

.flash-warning {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid var(--warning-color);
}

.flash-info {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid var(--info-color);
}

.flash-close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
}

.flash-close:hover {
    opacity: 1;
}

/* Login Page */
.login-container {
    max-width: 480px;
    margin: 4rem auto;
}

.login-card {
    background-color: var(--white);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 12px 48px rgba(42, 98, 255, 0.15);
    border: 2px solid rgba(42, 98, 255, 0.08);
}

.login-card h2 {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
}

/* About Page */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-header {
    text-align: center;
    margin-bottom: 3rem;
}

.about-header h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.about-header .credentials {
    color: var(--text-light);
    font-size: 1.2rem;
    font-style: italic;
}

.about-bio {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-bio p {
    margin-bottom: 1rem;
}

.strengths-section {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.strengths-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.strengths-list {
    list-style: none;
}

.strengths-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
}

.strengths-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, var(--text-dark) 0%, #1a2332 100%);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-purple), var(--primary-teal), var(--accent-yellow), var(--accent-coral));
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { 
        background-position: 0% 50%; 
    }
    50% { 
        background-position: 100% 50%; 
    }
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    line-height: 1.8;
    opacity: 0.9;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a,
.footer-contact a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-links a:hover,
.footer-contact a:hover {
    opacity: 1;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 0.75rem;
}

.footer-contact i {
    margin-right: 0.5rem;
}

.footer-contact li .fa-whatsapp {
    color: #25D366;
    font-size: 1.1rem;
}

.footer-contact a[href*="wa.me"] {
    color: #25D366 !important;
    font-weight: 600;
}

.footer-contact a[href*="wa.me"]:hover {
    color: #20BA5A !important;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.badge-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.15));
    color: #065f46;
    border-color: rgba(16, 185, 129, 0.2);
}

.badge-info {
    background: linear-gradient(135deg, rgba(42, 98, 255, 0.15), rgba(138, 63, 252, 0.15));
    color: #1e40af;
    border-color: rgba(42, 98, 255, 0.2);
}

.badge-warning {
    background: linear-gradient(135deg, rgba(255, 215, 66, 0.2), rgba(255, 215, 66, 0.15));
    color: #92400e;
    border-color: rgba(255, 215, 66, 0.3);
}

.badge-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.15));
    color: #991b1b;
    border-color: rgba(239, 68, 68, 0.2);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.ml-2 { margin-left: 1rem; }
.mr-2 { margin-right: 1rem; }

.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s;
    box-shadow: 0 20px 60px rgba(42, 98, 255, 0.2);
    border: 2px solid rgba(42, 98, 255, 0.08);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.modal-close:hover {
    color: var(--text-dark);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

/* Mobile Navigation and Header Optimizations */
@media screen and (max-width: 768px) {
    /* Header optimizations for mobile */
    .main-header {
        padding: 0;
    }

    .header-content {
        padding: 0.35rem 0 !important;
        min-height: 50px;
    }

    /* Logo optimizations for mobile */
    .logo {
        flex: 1;
        min-width: 0;
        gap: 8px;
        overflow: hidden;
    }

    .logo h1 {
        font-size: 1.2rem !important;
        letter-spacing: -0.3px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .logo a {
        min-width: 0;
        overflow: hidden;
        display: block;
    }

    /* Navigation container optimizations */
    .main-nav {
        flex-shrink: 0;
        margin-left: 8px;
    }

    /* CRITICAL: Hide desktop navigation menu (horizontal bar) on mobile */
    .main-nav ul.nav-menu {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        position: absolute !important;
        left: -9999px !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    /* Show mobile menu only when active */
    .main-nav ul.nav-menu.active {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        left: 0 !important;
        top: 55px !important;
        right: 0 !important;
        width: 100% !important;
        height: auto !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0.75rem 0 !important;
        background: white !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
        z-index: 1000 !important;
        max-height: calc(100vh - 55px) !important;
        overflow-y: auto !important;
        transform: translateY(0) !important;
        border-radius: 0 !important;
        border: none !important;
        backdrop-filter: none !important;
    }

    /* Mobile menu toggle button - always visible on mobile */
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 10px;
        z-index: 1001;
        background: none;
        border: none;
        font-size: 1.4rem;
        color: var(--primary-color);
        cursor: pointer;
        line-height: 1;
        min-width: 44px;
        min-height: 44px;
        border-radius: 10px;
        transition: background 0.2s ease;
    }

    .mobile-menu-toggle:hover {
        background: rgba(42, 98, 255, 0.1);
    }

    .mobile-menu-toggle:active {
        background: rgba(42, 98, 255, 0.2);
    }

    /* Mobile menu backdrop */
    .main-nav::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        pointer-events: none;
    }

    .main-nav.menu-active::before {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Mobile navigation menu - vertical dropdown */
    .nav-menu {
        display: none !important;
    }

    .nav-menu.active {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 0 !important;
        padding: 0.75rem 0 !important;
        position: fixed !important;
        top: 55px !important;
        left: 0 !important;
        right: 0 !important;
        background: white !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
        z-index: 1000 !important;
        max-height: calc(100vh - 55px) !important;
        overflow-y: auto !important;
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        border-radius: 0 !important;
        border: none !important;
        backdrop-filter: none !important;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    /* Mobile menu items - vertical layout */
    .nav-menu li {
        width: 100% !important;
        text-align: center !important;
        padding: 0 !important;
        border-top: 1px solid var(--border-color);
        flex: none !important;
        position: relative !important;
    }

    .nav-menu li:first-child {
        border-top: none;
    }

    .nav-menu li:last-child {
        border-bottom: 1px solid var(--border-color);
    }

    /* Remove desktop separators */
    .nav-menu li::after {
        display: none !important;
    }

    /* Mobile menu links - full width vertical, centered text */
    .nav-menu a {
        display: block !important;
        padding: 1rem 1.5rem !important;
        font-size: 0.95rem !important;
        width: 100% !important;
        text-align: center !important;
        border-radius: 0 !important;
        color: var(--text-dark) !important;
        background: transparent !important;
        white-space: normal !important;
    }

    .nav-menu a:hover {
        background: rgba(42, 98, 255, 0.08) !important;
        color: var(--primary-blue) !important;
        transform: none !important;
    }

    .nav-menu a.active {
        background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple)) !important;
        color: white !important;
        font-weight: 600;
    }

    /* Mobile login button in menu */
    .nav-menu .btn-login {
        margin: 0.75rem auto !important;
        padding: 0.85rem 1.5rem !important;
        border-radius: 10px !important;
        text-align: center;
        display: block !important;
        width: calc(100% - 3rem) !important;
        max-width: 300px !important;
        font-size: 0.95rem !important;
    }

    /* Remove all desktop navigation effects on mobile */
    .nav-menu a::before,
    .nav-menu a::after {
        display: none !important;
    }

    /* Remove desktop navigation container styles */
    .nav-menu::before {
        display: none !important;
    }
}

/* Extra small mobile devices */
@media screen and (max-width: 480px) {
    .header-content {
        padding: 0.4rem 0 !important;
        min-height: 50px;
    }

    .logo h1 {
        font-size: 1.1rem !important;
        letter-spacing: -0.2px !important;
    }

    .mobile-menu-toggle {
        min-width: 40px;
        min-height: 40px;
        font-size: 1.3rem;
        padding: 8px;
    }

    .nav-menu.active {
        top: 50px !important;
        max-height: calc(100vh - 50px) !important;
    }

    .nav-menu a {
        padding: 0.9rem 1.25rem !important;
        font-size: 0.9rem !important;
    }

    .nav-menu .btn-login {
        margin: 0.6rem auto !important;
        padding: 0.75rem 1.25rem !important;
        width: calc(100% - 2.5rem) !important;
        max-width: 280px !important;
        font-size: 0.9rem !important;
    }
}

/* Mobile Footer Centering */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }
    
    .footer-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-section h3 {
        text-align: center;
    }
    
    .footer-section p {
        text-align: center;
        max-width: 100%;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-links li {
        text-align: center;
    }
    
    .footer-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-contact li {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        text-align: center;
    }
}

