/* Modern CSS Design System */
:root {
    /* Primary Brand Colors */
    --primary: #003366;
    --primary-light: #004d99;
    --secondary: #ffcc00;
    --secondary-hover: #ffd633;
    --accent: #1a5f7a;
    
    /* Semantic Backgrounds */
    --bg-body: #f8f9fa;
    --bg-surface: #ffffff;
    --bg-header: #003366;
    --bg-card: #ffffff;
    --bg-input: #ffffff;
    
    /* Semantic Text */
    --text-main: #2d3436;
    --text-muted: #636e72;
    --text-inverse: #ffffff;
    --text-on-primary: #ffffff;
    --text-on-secondary: #1a1a1a;
    
    /* UI Elements */
    --border-color: #e9ecef;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --glass: rgba(255, 255, 255, 0.7);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Spacing & Sizes */
    --sidebar-width: 280px;
}

html {
    overflow-x: hidden;
}

/* Dark Mode Overrides - Premium Midnight Blue Theme */
[data-theme="dark"] {
    /* Adjust Brand for Dark Mode */
    --primary: #58a6ff;
    --primary-light: #1f6feb;
    --accent: #79c0ff;
    
    /* Semantic Backgrounds */
    --bg-body: #010409;
    --bg-surface: #0d1117;
    --bg-header: #0d1117;
    --bg-card: #161b22;
    --bg-input: #0d1117;
    
    /* Semantic Text */
    --text-main: #f0f6fc;
    --text-muted: #8b949e;
    --text-inverse: #010409;
    --text-on-primary: #ffffff; 
    --text-on-secondary: #010409;
    
    /* UI Elements */
    --border-color: #30363d;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    --glass: rgba(13, 17, 23, 0.8);
}

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

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden; /* ADD THIS */
}

        /* Modern Header */
        header {
    background: var(--bg-header);
    color: var(--text-on-primary);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

        .header-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 3%;
            max-width: 1600px;
            margin: 0 auto;
        }

        .logo-container {
            flex: 0 0 auto;
        }

        .logo-link {
            display: flex;
            align-items: center;
            gap: 15px;
            text-decoration: none;
        }

        .logo-circle {
    width: 70px;
    height: 70px;
    background: var(--bg-surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    overflow: hidden;
    padding: 5px;
    flex-shrink: 0;
}

        .logo-img-main {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .logo-text h1 {
    font-size: clamp(1.1rem, 1.5vw, 1.4rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-on-primary);
    letter-spacing: -0.5px;
}

        .logo-text p {
            font-size: 0.85rem;
            color: var(--secondary);
            font-weight: 600;
            text-transform: uppercase;
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 15px;
            flex-shrink: 0;
            flex-wrap: nowrap;/* Prevent icons from going under search bar */
        }

        /* Search Box */
        .search-box {
            position: relative;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50px;
            padding: 5px 15px;
            display: flex;
            align-items: center;
            transition: var(--transition);
            border: 1px solid rgba(255,255,255,0.1);
            min-width: 150px;
            max-width: 250px;
        }

        .theme-toggle {
            flex-shrink: 0;
        }

        .search-box:focus-within {
    background: var(--bg-surface);
    color: var(--primary);
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

        .search-box input {
            background: none;
            border: none;
            color: inherit;
            padding: 8px 10px;
            outline: none;
            width: 150px;
            font-size: 0.9rem;
        }

        .search-box input::placeholder {
            color: rgba(255,255,255,0.6);
        }

        .search-box:focus-within input::placeholder {
    color: var(--text-muted);
}

        /* Theme Toggle */
        .theme-toggle {
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-on-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

        .theme-toggle:hover {
            background: var(--secondary);
            color: var(--primary);
            border-color: var(--secondary);
        }

        /* Modern Navigation */
        nav ul {
            list-style: none;
            display: flex;
            gap: clamp(10px, 1.5vw, 20px);
        }

        nav ul li a {
    color: var(--text-on-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 30px 5px;
    display: block;
    transition: var(--transition);
    position: relative;
}

        .portal-link a {
    background: var(--secondary);
    color: var(--text-on-secondary) !important;
    padding: 8px 20px !important;
    border-radius: 50px;
    margin-top: 22px;
    font-weight: 700;
}

.portal-link a:hover {
    background: var(--bg-surface);
    color: var(--primary) !important;
    transform: translateY(-2px);
}

        /* Mobile Menu Button */
        .mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-on-primary);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 10px;
}

        /* Hero Split Design - Universally Responsive */
        .hero-split {
    background: var(--primary);
    color: var(--text-on-primary);
    min-height: 70vh;
    padding: 60px 0;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

        .hero-wrapper {
            display: flex;
            align-items: center;
            justify-content: space-between;
            max-width: 1600px;
            margin: 0 auto;
            padding: 0 5%;
            gap: clamp(30px, 5vw, 100px);
            width: 100%;
        }

        .hero-text-side {
            flex: 0.8;
            z-index: 10;
        }

        .hero-image-side {
            flex: 1.2;
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
            width: 100%;
        }

        .hero-badge {
            display: inline-block;
            background: rgba(255, 204, 0, 0.2);
            color: var(--secondary);
            padding: 8px 20px;
            border-radius: 50px;
            font-size: 0.9rem;
            font-weight: 600;
            margin-bottom: 25px;
            border: 1px solid var(--secondary);
        }

        .hero-text-side h1 {
            font-size: clamp(2rem, 4vw, 3.5rem); /* Responsive scaling prevents overflow */
            font-weight: 800;
            line-height: 1.2;
            margin-bottom: 25px;
        }

        .hero-text-side h1 span {
            color: var(--secondary);
        }

        .hero-text-side p {
            font-size: 1.2rem;
            opacity: 0.9;
            margin-bottom: 40px;
            max-width: 600px;
        }

        .hero-cta-group {
            display: flex;
            gap: 20px;
            margin-bottom: 50px;
        }

        .hero-main-img-container {
            position: relative;
            width: 100%;
            aspect-ratio: 16 / 9; /* Standard widescreen ratio */
            max-height: 600px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255,255,255,0.02); /* Very subtle neutral background */
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 15px 35px rgba(0,0,0,0.2);
            border: 1px solid rgba(255,255,255,0.1);
        }

        /* GISC Intelligence Pattern Overlay */
        .hero-main-img-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: 
                radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
            background-size: 24px 24px;
            pointer-events: none;
            z-index: 0;
        }

        /* Decorative Corner Accents */
        .hero-main-img-container::after {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 100px;
            height: 100px;
            background: linear-gradient(135deg, transparent 50%, rgba(255, 204, 0, 0.2) 100%);
            pointer-events: none;
        }

        .hero-main-img {
            width: 100%;
            height: 100%;
            object-fit: contain; /* Standard: shows full image info */
            object-position: center;
            transition: opacity 1.0s ease-in-out;
            opacity: 1;
        }

        /* Removed zooming class for a cleaner, static focus design */


        .hero-stats {
            display: flex;
            gap: 40px;
        }

        .stat-item {
            display: flex;
            flex-direction: column;
        }

        .stat-item strong {
            font-size: 2rem;
            color: var(--secondary);
        }

        .stat-item span {
            font-size: 0.9rem;
            opacity: 0.7;
        }

        /* Responsive Hero Optimization */
        @media (max-width: 1200px) {
            .hero-wrapper {
                gap: 40px;
            }
        }

        @media (max-width: 992px) {
            .hero-split {
                padding: 40px 0;
            }
            .hero-wrapper {
                flex-direction: column-reverse;
                text-align: center;
            }
            .hero-text-side {
                width: 100%;
            }
            .hero-text-side h1 {
                font-size: clamp(2rem, 6vw, 3rem);
            }
            .hero-cta-group {
                justify-content: center;
            }
            .hero-stats {
                justify-content: center;
            }
            .hero-main-img-container {
                aspect-ratio: 16 / 9;
                max-height: 45vh;
            }
        }

        @media (max-width: 576px) {
            .hero-main-img-container {
                aspect-ratio: 4 / 3;
                max-height: 30vh;
            }
            .hero-text-side h1 {
                font-size: 1.8rem;
            }
            .hero-stats {
                flex-wrap: wrap;
                gap: 20px;
            }
        }

        /* Welcome Section */
        .welcome-section {
    padding: 80px 5%;
    background: var(--bg-body);
}
        
        .welcome-container {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            gap: 60px;
            flex-wrap: wrap;
        }

        .welcome-text {
            flex: 1;
            min-width: 300px; /* Reduced from 400px to prevent mobile overflow */
        }

        .welcome-text h2 {
            font-size: 2.8rem;
            color: var(--primary);
            margin-bottom: 20px;
            font-weight: 800;
        }

        .welcome-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 30px;
}

        .welcome-bullets {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .welcome-bullets .bullet-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-main);
    background: var(--bg-surface);
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

        .welcome-bullets .bullet-item:hover {
            transform: translateX(10px);
        }

        .welcome-bullets .bullet-item i {
            color: var(--secondary);
            font-size: 1.4rem;
        }

        .welcome-image {
            flex: 1;
            min-width: 300px; /* Reduced from 400px to prevent mobile overflow */
            position: relative;
        }

        .welcome-image::before {
            content: '';
            position: absolute;
            top: -20px;
            left: -20px;
            width: 100%;
            height: 100%;
            border: 3px solid var(--secondary);
            border-radius: 15px;
            z-index: 0;
        }
        
        .welcome-image img {
            position: relative;
            z-index: 1;
        }

        /* Premium Sticky Apply Bar Section */
        .apply-bar-section {
    background: var(--primary);
    padding: 35px 5%;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    overflow: hidden;
}

/* Subtle Animated Glow Effect */
.apply-bar-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    animation: barShine 8s infinite linear;
}

@keyframes barShine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

        .apply-bar-container {
            max-width: 1300px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
        }

        .apply-bar-text h3 {
            font-size: 1.8rem;
            margin-bottom: 5px;
            color: var(--secondary);
        }

        .apply-bar-text p {
            font-size: 1.1rem;
            opacity: 0.9;
            margin: 0;
        }

        .apply-bar-btn {
    font-size: 1.2rem;
    padding: 16px 45px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--secondary);
    color: #000;
    font-weight: 800;
    box-shadow: 0 8px 25px rgba(255, 204, 0, 0.3);
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

        .apply-bar-btn:hover {
    transform: translateY(-5px) scale(1.05);
    background: #ffffff;
    color: var(--primary);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.2);
    border-color: var(--secondary);
}

.apply-bar-btn i {
    transition: transform 0.3s ease;
}

.apply-bar-btn:hover i {
    transform: translateX(5px);
}

        /* Modern Button */
        .btn {
    background: var(--secondary);
    color: var(--text-on-secondary);
    padding: 15px 35px;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    display: inline-block;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.3);
}

        .btn:hover {
            background: #ffd633;
            color: var(--primary);
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(255, 204, 0, 0.4);
        }

        /* Modern Features Section */
        .features {
            display: flex;
            justify-content: space-around;
            padding: 80px 5%;
            flex-wrap: wrap;
            gap: 30px;
            max-width: 1400px;
            margin: 0 auto;
        }

        .box {
    background: var(--bg-surface);
    padding: 40px 30px;
    width: 28%;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    min-width: 280px; /* Reduced to fit mobile better */
}

        .box:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }

        .box-icon {
            font-size: 3rem;
            color: var(--primary);
            margin-bottom: 20px;
        }

        .box h3 {
            color: var(--primary);
            margin-bottom: 15px;
            font-size: 1.5rem;
        }

        /* Portal Page Overhaul */
        #login-page .page-container {
            min-height: 100dvh; /* Dynamic viewport fix for perfect centering */
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            background: radial-gradient(circle at top right, rgba(0, 51, 102, 0.05), transparent),
                        radial-gradient(circle at bottom left, rgba(26, 95, 122, 0.05), transparent);
        }

        .auth-card {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    background: var(--bg-surface); /* Semantic background */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

        .auth-header {
            text-align: center;
            margin-bottom: 25px;
        }

        .auth-header img {
            max-height: 28vh; /* Viewport-aware scaling */
            width: auto;
            display: block;
            margin: 0 auto 15px;
            object-fit: contain;
            filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
        }

        .auth-title {
            font-size: clamp(1.6rem, 2.5vw, 2.2rem); /* Dynamic typography */
            color: var(--primary);
            font-weight: 800;
            margin-bottom: 5px;
        }

        .auth-header p {
            color: var(--text-light);
            font-size: 0.95rem;
        }

        /* Form Enhancements */
        .password-input-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }

        .toggle-password {
            position: absolute;
            right: 15px;
            background: none;
            border: none;
            color: var(--gray);
            cursor: pointer;
            font-size: 1.1rem;
            padding: 5px;
            transition: var(--transition);
        }

        .toggle-password:hover {
            color: var(--primary);
        }

        .form-options {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 15px;
            font-size: 0.9rem;
        }

        .remember-me {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            color: var(--text-light);
            font-weight: 500;
        }

        .forgot-link {
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
            transition: var(--transition);
        }

        .forgot-link:hover {
            color: var(--secondary);
            text-decoration: underline;
        }

        .error-container {
            margin-top: 15px;
            min-height: 20px;
        }

        /* Animation */
        .fade-in {
            animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        }

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

        /* Responsive Portal */
        @media (max-width: 768px) {
            .auth-header img {
                max-height: 20vh;
            }
        }

        @media (max-width: 480px) {
            .auth-card {
                padding: 30px 20px;
                border-radius: 12px;
            }
        }

        /* Modern Page Container */
        .page-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 40px 5%;
        }

        .page {
    background: var(--bg-surface);
    margin: 30px 0;
    padding: 50px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    animation: fadeIn 0.5s ease-out;
}

        .page-header {
            text-align: center;
            margin-bottom: 40px;
            padding-bottom: 20px;
            border-bottom: 3px solid var(--secondary);
        }

        .page-header h2 {
            font-size: 2.5rem;
            color: var(--primary);
            margin-bottom: 15px;
        }

        .page-header p {
            color: var(--gray);
            font-size: 1.1rem;
            max-width: 700px;
            margin: 0 auto;
        }

        /* Modern Form Styles */
        .form {
            max-width: 800px;
            margin: 0 auto;
        }

        .form-group {
            margin-bottom: 25px;
        }

        .form label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: var(--text-main);
        }

        /* Specific fix for labels inside primary/gradient containers */
        [style*="var(--primary)"] .form label {
            color: inherit;
        }

        .form input,
        .form textarea,
        .form select {
            width: 100%;
            padding: 15px;
            border: 2px solid var(--border-color);
            border-radius: 8px;
            font-size: 1rem;
            background-color: var(--bg-surface);
            color: var(--text-main);
            transition: var(--transition);
        }

        .form input:focus,
        .form textarea:focus,
        .form select:focus {
            border-color: var(--primary);
            outline: none;
            box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
        }

        /* Modern Gallery */
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
            margin-top: 30px;
        }

        .gallery-grid img {
            width: 100%;
            height: 250px;
            object-fit: cover;
            border-radius: 12px;
            box-shadow: var(--shadow);
            transition: var(--transition);
            cursor: pointer;
        }

        .gallery-grid img:hover {
            transform: scale(1.05);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        }

        /* Modern Dashboard */
        .dashboard-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 25px;
            margin-top: 30px;
        }

        .card {
            background: var(--white);
            padding: 30px;
            border-radius: 12px;
            box-shadow: var(--shadow);
            text-align: center;
            transition: var(--transition);
            border-top: 5px solid var(--primary);
        }

        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        }

        .card-icon {
            font-size: 2.5rem;
            color: var(--primary);
            margin-bottom: 20px;
        }

        /* Teacher Grid Styles */
        .teacher-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 30px;
            margin-top: 40px;
        }

        .teacher-card {
    background: var(--bg-surface);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.teacher-card:hover {
    transform: translateY(-10px);
}

.teacher-image {
    height: 250px;
    background-color: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

        .teacher-image i {
            font-size: 5rem;
            color: var(--gray);
        }

        .teacher-info {
            padding: 25px;
        }

        .teacher-info h3 {
            color: var(--primary);
            margin-bottom: 5px;
        }

        /* Notice Layout */
        .notice-layout {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 40px;
            margin-top: 30px;
        }

        .notice-container {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .notice-item {
            background: var(--bg-surface);
            padding: 20px;
            border-radius: 12px;
            border-left: 5px solid var(--secondary);
            box-shadow: var(--shadow);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .notice-date {
            background: var(--primary);
            color: var(--text-on-primary);
            padding: 5px 12px;
            border-radius: 5px;
            font-size: 0.8rem;
            text-align: center;
        }

        /* Chatbot Styles */
        .chatbot-container {
            position: fixed;
            bottom: 30px;
            right: 30px;
            z-index: 2000;
        }

        .chat-toggle {
            width: 65px;
            height: 65px;
            background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-on-primary);
            font-size: 1.8rem;
            cursor: pointer;
            box-shadow: 0 10px 25px rgba(0,0,0,0.2);
            position: relative;
            transition: var(--transition);
        }

        .chat-toggle:hover {
            transform: scale(1.1) rotate(10deg);
        }

        .chat-badge {
            position: absolute;
            top: 0;
            right: 0;
            background: var(--secondary);
            color: var(--text-on-secondary);
            width: 22px;
            height: 22px;
            border-radius: 50%;
            font-size: 0.75rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid var(--bg-surface);
        }

        .chat-window {
            position: absolute;
            bottom: 85px;
            right: 0;
            width: 380px;
            height: 500px;
            background: var(--bg-surface);
            border-radius: 20px;
            box-shadow: var(--shadow);
            display: none;
            flex-direction: column;
            overflow: hidden;
            animation: slideIn 0.3s ease-out;
            border: 1px solid var(--border-color);
        }

        .chat-window.active {
            display: flex;
        }

        .chat-header {
            background: var(--primary);
            color: var(--text-on-primary);
            padding: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .chat-messages {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 15px;
            background: var(--bg-body);
        }

        .message {
            padding: 12px 18px;
            border-radius: 15px;
            max-width: 85%;
            font-size: 0.95rem;
        }

        .message.ai {
            background: var(--bg-card);
            align-self: flex-start;
            color: var(--text-main);
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
            border-bottom-left-radius: 2px;
        }

        .message.user {
            background: var(--primary);
            color: var(--text-on-primary);
            align-self: flex-end;
            border-bottom-right-radius: 2px;
        }

        .chat-input-area {
            padding: 15px;
            display: flex;
            gap: 10px;
            background: var(--bg-surface);
            border-top: 1px solid var(--border-color);
        }

        .chat-input-area input {
            flex: 1;
            border: 1px solid var(--border-color);
            padding: 12px 15px;
            border-radius: 50px;
            outline: none;
            background: var(--bg-body);
            color: var(--text-main);
        }

        .chat-input-area button {
            width: 45px;
            height: 45px;
            background: var(--primary);
            color: var(--text-on-primary);
            border: none;
            border-radius: 50%;
            cursor: pointer;
            transition: var(--transition);
        }

        /* Dashboard Sidebar Styles */
        .dashboard-layout {
            display: grid;
            grid-template-columns: var(--sidebar-width) 1fr;
            min-height: calc(100vh - 100px);
            gap: 40px;
        }

        .dashboard-sidebar {
            background: var(--bg-surface);
            border-radius: 20px;
            padding: 30px;
            box-shadow: var(--shadow);
            height: fit-content;
        }

        .user-profile {
            text-align: center;
            margin-bottom: 40px;
            padding-bottom: 30px;
            border-bottom: 1px solid var(--border-color);
        }

        .user-avatar {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, var(--secondary) 0%, #ff9900 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            color: var(--primary);
            font-weight: 700;
            margin: 0 auto 15px;
            box-shadow: 0 8px 15px rgba(255, 204, 0, 0.3);
        }

        .dashboard-nav {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .dash-link {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 12px 20px;
            text-decoration: none;
            color: var(--text-muted);
            font-weight: 500;
            border-radius: 12px;
            transition: var(--transition);
        }

        .dash-link:hover, .dash-link.active {
            background: var(--primary-light);
            color: var(--text-on-primary);
        }

        .dash-link.logout {
            margin-top: 30px;
            color: #e74c3c;
        }

        .dash-link.logout:hover {
            background: rgba(231, 76, 60, 0.05);
        }

        .stat-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 25px;
            border-top: none;
            border-bottom: 4px solid var(--secondary);
        }

        .stat {
            font-size: 2.5rem;
            font-weight: 800;
            color: var(--primary);
            margin-top: 5px;
        }

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

        /* Modern Table */
        .table-container {
            overflow-x: auto;
            margin-top: 30px;
            border-radius: 10px;
            box-shadow: var(--shadow);
        }

        .table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 0;
        }

        .table th,
        .table td {
            padding: 15px;
            text-align: left;
            border-bottom: 1px solid var(--border-color);
            color: var(--text-main);
        }

        .table th {
            background: var(--primary);
            color: var(--text-on-primary);
            font-weight: 600;
        }

        .table tr:hover {
            background-color: var(--bg-body);
        }

        /* Error Message */
        .error {
            color: #dc3545;
            margin-top: 5px;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        /* Animation */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Modern Footer */
        footer {
    background: var(--bg-header);
    color: var(--text-on-primary);
    padding: 60px 5% 30px;
    margin-top: 60px;
    transition: var(--transition);
}

        .footer-container {
            max-width: 1400px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            margin-bottom: 40px;
        }

        .footer-column h3 {
            font-size: 1.4rem;
            margin-bottom: 25px;
            color: var(--secondary);
            position: relative;
            padding-bottom: 10px;
        }

        .footer-column h3::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50px;
            height: 3px;
            background-color: var(--secondary);
        }

        .footer-column ul {
            list-style: none;
        }

        .footer-column ul li {
            margin-bottom: 12px;
        }

        .footer-column ul li a {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            transition: var(--transition);
        }

        .footer-column ul li a:hover {
            color: var(--secondary);
            padding-left: 5px;
        }

        .social-icons {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }

        .social-icons a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 45px;
            height: 45px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            color: var(--white);
            font-size: 1.2rem;
            transition: var(--transition);
        }

        .social-icons a:hover {
            background: var(--secondary);
            color: var(--primary);
            transform: translateY(-5px);
        }

        .copyright {
            text-align: center;
            padding-top: 30px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.95rem;
        }

        /* Responsive Design */
        @media (max-width: 1100px) {
            .box {
                width: 45%;
            }
        }

        @media (max-width: 1150px) {
            .header-container {
                padding: 0 20px;
            }
            
            .mobile-menu-btn {
                display: block;
            }
            
            nav {
                position: fixed;
                top: 100px;
                left: 0;
                width: 100%;
                background: var(--bg-header);
                padding: 20px;
                transform: translateY(-150%);
                transition: transform 0.4s ease;
                box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
                z-index: 999;
            }
            
            nav.active {
                transform: translateY(0);
            }
            
            nav ul {
                flex-direction: column;
                gap: 0;
            }
            
            nav ul li {
                width: 100%;
            }
            
            nav ul li a {
                padding: 15px 0;
                border-bottom: 1px solid var(--border-color);
            }
        }

        @media (max-width: 768px) {
            
            .full-hero {
                padding: 100px 20px;
                min-height: 60vh;
            }

            .welcome-text h2 {
                font-size: 2.2rem;
            }
            
            .welcome-text p {
                font-size: 1rem;
            }

            .welcome-image {
                min-width: 100%;
                margin-top: 20px;
            }

            .welcome-image::before {
                top: -10px;
                left: -10px;
                display: block;
            }
            .welcome-image img {
                border-radius: 15px;
            }

            .apply-bar-container {
                flex-direction: column;
                text-align: center;
            }
            
            .apply-bar-btn {
                width: 100%;
                justify-content: center;
                margin-top: 15px;
            }
            
            .features {
                flex-direction: column;
                padding: 50px 20px;
            }
            
            .box {
                width: 100%;
                margin-bottom: 0;
            }
            
            .page {
                padding: 30px 20px;
                margin: 20px 0;
            }
            
            .page-header h2 {
                font-size: 2rem;
            }
            
            .dashboard-grid {
                grid-template-columns: 1fr;
            }
        }
            

        @media (max-width: 480px) {
            .hero h1 {
                font-size: 2rem;
            }
            
            .logo-text h1 {
                font-size: 1.4rem;
            }
            
            .logo {
                height: 50px;
                width: 50px;
                font-size: 18px;
            }
            
            .page {
                padding: 25px 15px;
            }
        }
        @media (max-width: 480px) {
        .search-box {
            display: none;
            }
        .features-wrapper {
            box-sizing: border-box;
            width: 100%;
            }
        .hero-wrapper {
            box-sizing: border-box;
            max-width: 100%;
            }
        }