/* Al-Khwarizmi University Recruitment Portal - Core Stylesheet */

/* Fonts & Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --bg-primary: #0e183a; /* Even brighter, more vibrant space-navy */
    --bg-secondary: #182759; /* Bright medium blue */
    --bg-tertiary: #24387c; /* Vibrant blue accent */
    --glass-bg: rgba(24, 39, 89, 0.65);
    --glass-border: rgba(0, 240, 255, 0.35); /* Bright glowing neon cyan */
    --glass-accent-border: rgba(245, 158, 11, 0.4); /* Glowing gold border */
    
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1; /* Even brighter text secondary for optimal readability */
    --text-muted: #94a3b8;
    
    --color-primary: #0070ff; /* More vibrant royal blue */
    --color-primary-hover: #0060e0;
    --color-accent: #f59e0b; /* Al-Khwarizmi Amber Gold */
    --color-accent-hover: #d97706;
    
    --color-success: #10b981;
    --color-danger: #ef4444;
    --color-warning: #f59e0b;
    --color-info: #00f0ff; /* Neon cyan */
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --sidebar-width: 280px;
}

/* Global Reset & Base */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: var(--transition-smooth);
}
a:hover {
    color: var(--color-accent-hover);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: var(--transition-smooth);
}

.glass-panel-hover:hover {
    border-color: rgba(245, 158, 11, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
}

/* Header & Navbar */
.navbar-custom {
    position: sticky;
    top: 0;
    background: rgba(10, 18, 44, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar-brand-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #ffffff 30%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
@media (max-width: 575.98px) {
    .navbar-brand-text {
        font-size: 0.95rem;
    }
}

.nav-link-custom {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.nav-link-custom:hover, .nav-link-custom.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 10rem 0 6rem 0;
    background-image: linear-gradient(180deg, rgba(5, 11, 29, 0.7) 0%, rgba(5, 11, 29, 0.3) 50%, rgba(5, 11, 29, 0.95) 100%), 
                      url('../images/background_img.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero-container {
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #ffffff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.hero-title .text-accent {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent) !important;
    background: linear-gradient(135deg, var(--color-accent) 0%, #ffe082 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.hero-divider {
    width: 160px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent) 0%, rgba(245, 158, 11, 0) 100%);
    margin: 1.5rem 0;
    position: relative;
    border-radius: 2px;
}

.hero-divider::after {
    content: '';
    position: absolute;
    left: 45px;
    top: -2px;
    width: 7px;
    height: 7px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 8px #ffffff, 0 0 16px var(--color-accent);
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #cbd5e1;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Hero Buttons */
.btn-hero-gold {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #050b1d !important;
    font-weight: 700;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
    border: none;
    display: inline-flex;
    align-items: center;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.btn-hero-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.5);
    background: linear-gradient(135deg, #fbbf24 0%, #ea580c 100%);
    color: #050b1d !important;
}

.btn-hero-outline {
    background: rgba(12, 20, 47, 0.4);
    color: #ffffff !important;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 10px;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    display: inline-flex;
    align-items: center;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    transform: translateY(-3px);
    color: #ffffff !important;
}

/* Glowing Logo Rings */
.logo-glow-wrapper {
    position: relative;
    width: 500px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-bg-glow {
    position: absolute;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.35) 0%, rgba(0, 98, 255, 0.1) 50%, transparent 70%);
    filter: blur(15px);
    z-index: 1;
}

.hero-university-logo {
    max-width: 320px;
    max-height: 320px;
    z-index: 2;
    filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.4));
    transition: var(--transition-smooth);
    animation: floatLogo 6s ease-in-out infinite;
}

.hero-university-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 40px rgba(0, 240, 255, 0.6));
}

.glow-ring {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}

.ring-outer {
    width: 460px;
    height: 460px;
    border: 1.5px dashed rgba(0, 240, 255, 0.5);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.2), inset 0 0 25px rgba(0, 240, 255, 0.1);
    animation: rotateClockwise 25s linear infinite;
}

.ring-middle {
    width: 400px;
    height: 400px;
    border: 2px solid rgba(0, 98, 255, 0.25);
    border-top: 2px solid rgba(0, 240, 255, 0.9);
    border-bottom: 2px solid rgba(0, 240, 255, 0.9);
    box-shadow: 0 0 35px rgba(0, 240, 255, 0.35);
    animation: rotateCounterClockwise 15s linear infinite;
}

.ring-inner {
    width: 340px;
    height: 340px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 2px solid rgba(0, 240, 255, 0.6);
    border-right: 2px solid rgba(245, 158, 11, 0.6);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
    animation: rotateClockwise 10s linear infinite;
}

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

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

@keyframes floatLogo {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

/* Glassmorphic Stats Section */
.hero-bottom-section {
    width: 100%;
}

.glass-stats-card {
    background: rgba(12, 20, 47, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}

.glass-stats-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 12px 40px 0 rgba(0, 240, 255, 0.2);
}

.card-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-size: 1.5rem;
    transition: var(--transition-smooth);
}

.glass-stats-card:hover .card-icon-wrapper {
    background: rgba(245, 158, 11, 0.2);
    transform: scale(1.05);
}

.card-text-wrapper {
    display: flex;
    flex-direction: column;
}

.stats-num {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.stats-lbl {
    font-size: 0.85rem;
    font-weight: 500;
    color: #cbd5e1;
}

/* Tagline Divider */
.tagline-divider-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.tagline-line-left {
    flex: 1;
    height: 1.5px;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0) 0%, rgba(245, 158, 11, 0.6) 100%);
}

.tagline-line-right {
    flex: 1;
    height: 1.5px;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.6) 0%, rgba(245, 158, 11, 0) 100%);
}

.tagline-text {
    padding: 0 2rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
}

/* Scroll adjustments */
html {
    scroll-behavior: smooth;
}

@media (max-width: 991.98px) {
    .hero-section {
        padding: 6rem 0 4rem 0;
    }
    .hero-title {
        font-size: 2.75rem;
    }
    .hero-title .text-accent {
        font-size: 2rem;
    }
    .logo-glow-wrapper {
        width: 300px;
        height: 300px;
        margin: 2rem auto;
    }
    .ring-outer {
        width: 280px;
        height: 280px;
    }
    .ring-middle {
        width: 240px;
        height: 240px;
    }
    .ring-inner {
        width: 200px;
        height: 200px;
    }
    .hero-university-logo {
        max-width: 150px;
        max-height: 150px;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 2.25rem;
    }
    .hero-title .text-accent {
        font-size: 1.6rem;
    }
    .tagline-text {
        font-size: 0.7rem;
        letter-spacing: 0.15em;
        padding: 0 1rem;
    }
    .btn-hero-gold, .btn-hero-outline {
        width: 100%;
        justify-content: center;
    }
}

/* Custom Buttons */
.btn-custom {
    padding: 0.6rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-custom-primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    color: var(--bg-primary) !important;
    border: none;
}
.btn-custom-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-custom-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff !important;
    border: 1px solid var(--glass-border);
}
.btn-custom-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Search Bar styling */
.search-container {
    margin-top: -2rem;
    z-index: 10;
    position: relative;
}

.search-box {
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
}

.form-control-custom, .form-select-custom {
    background-color: var(--bg-primary) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--text-primary) !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
}

.form-control-custom:focus, .form-select-custom:focus {
    border-color: var(--color-accent) !important;
    box-shadow: 0 0 0 0.25rem rgba(245, 158, 11, 0.15) !important;
}

/* Cards & Lists */
.vacancy-card {
    transition: var(--transition-smooth);
    cursor: pointer;
}

.vacancy-badge {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-accent);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.stats-card {
    padding: 1.5rem;
    text-align: center;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-accent);
    font-family: var(--font-heading);
}

/* Drag & Drop File Upload Area */
.upload-drop-zone {
    border: 2px dashed var(--glass-border);
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    background: rgba(8, 12, 20, 0.3);
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
}

.upload-drop-zone:hover, .upload-drop-zone.dragover {
    border-color: var(--color-accent);
    background: rgba(245, 158, 11, 0.03);
}

.upload-icon {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
}

.upload-drop-zone:hover .upload-icon {
    color: var(--color-accent);
    transform: translateY(-5px);
}

.preview-container {
    margin-top: 1rem;
    display: none;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.9);
    padding: 0.75rem;
    border: 1px solid var(--glass-border);
}

.preview-canvas-wrapper {
    max-height: 150px;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

/* Real-Time Floating Support Chat */
.chat-widget-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
}

.chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
    border: none;
    color: var(--bg-primary);
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.chat-button:hover {
    transform: scale(1.1) rotate(5deg);
}

.chat-window {
    width: 360px;
    height: 500px;
    position: absolute;
    bottom: 80px;
    right: 0;
    display: none;
    flex-direction: column;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-window.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.chat-header {
    padding: 1rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-bottom: 1px solid var(--glass-border);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-footer {
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.message-bubble {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.4;
    word-break: break-word;
}

.message-visitor {
    background: var(--bg-tertiary);
    color: #ffffff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.message-agent {
    background: var(--color-primary);
    color: #ffffff;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.typing-indicator {
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
    align-self: flex-start;
    display: none;
    align-items: center;
    gap: 0.25rem;
}

.dot {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: bounce 1.3s infinite ease-in-out;
}
.dot:nth-child(2) { animation-delay: 0.15s; }
.dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-4px); }
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: calc(100vh - 75px);
}

.dashboard-sidebar {
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--glass-border);
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.dashboard-content {
    flex: 1;
    padding: 2rem 3rem;
    overflow-y: auto;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-smooth);
}

.sidebar-link:hover, .sidebar-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-link.active {
    border-left: 3px solid var(--color-accent);
    background: rgba(245, 158, 11, 0.03);
}

/* Footer Section */
.footer-custom {
    background-color: var(--bg-secondary);
    border-top: 2px solid var(--glass-border);
    color: var(--text-secondary);
    margin-top: auto;
}

.footer-links a {
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    text-decoration: none;
    font-size: 0.9rem;
}
.footer-links a:hover {
    color: var(--color-accent);
    padding-left: 5px;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}
.social-link:hover {
    background: var(--color-accent);
    color: var(--bg-primary) !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.footer-map-wrapper iframe {
    filter: grayscale(1) invert(0.9) contrast(1.2);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .dashboard-container {
        flex-direction: column;
    }
    .dashboard-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        padding: 1rem;
        flex-direction: row;
        overflow-x: auto;
    }
    .sidebar-link {
        white-space: nowrap;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .dashboard-content {
        padding: 1.5rem;
    }
}

/* Dashboard List Group & Select Dropdown Overrides */
.glass-panel .list-group-item {
    background-color: transparent !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}
.glass-panel .list-group-item strong {
    color: #ffffff !important;
}
.glass-panel .list-group-item .text-muted {
    color: var(--text-muted) !important;
}
.form-select-custom option {
    background-color: var(--bg-secondary) !important;
    color: #ffffff !important;
}

/* ==========================================
   Premium Light Mode Theme Styles & Overrides
   ========================================== */

[data-theme="light"] {
    --bg-primary: #f4f7fc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e2eafc;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 112, 255, 0.15);
    --glass-accent-border: rgba(245, 158, 11, 0.25);
    
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --color-primary: #0060e0;
    --color-primary-hover: #0050c0;
    --color-accent: #d97706;
    --color-accent-hover: #b45309;
}

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
    color: var(--text-primary) !important;
}

[data-theme="light"] .navbar-custom {
    background: rgba(255, 255, 255, 0.85) !important;
    border-bottom: 1px solid var(--glass-border) !important;
}

[data-theme="light"] .navbar-brand-text {
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .nav-link-custom {
    color: var(--text-secondary) !important;
}

[data-theme="light"] .nav-link-custom:hover,
[data-theme="light"] .nav-link-custom.active {
    color: var(--color-primary) !important;
    background: rgba(0, 112, 255, 0.08) !important;
}

/* Global utility class overrides for light mode */
[data-theme="light"] .text-white {
    color: var(--text-primary) !important;
}

[data-theme="light"] .bg-dark {
    background-color: var(--bg-primary) !important;
}

[data-theme="light"] .bg-dark-subtle {
    background-color: var(--bg-tertiary) !important;
}

[data-theme="light"] .bg-primary {
    background-color: var(--bg-secondary) !important;
}

[data-theme="light"] .border-secondary {
    border-color: var(--glass-border) !important;
}

[data-theme="light"] .text-secondary {
    color: var(--text-secondary) !important;
}

[data-theme="light"] .text-muted {
    color: var(--text-muted) !important;
}

[data-theme="light"] .dropdown-menu-dark {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-color: var(--glass-border) !important;
}

[data-theme="light"] .dropdown-menu-dark .dropdown-item {
    color: var(--text-primary) !important;
}

[data-theme="light"] .dropdown-menu-dark .dropdown-item:hover,
[data-theme="light"] .dropdown-menu-dark .dropdown-item.active {
    background-color: rgba(0, 112, 255, 0.08) !important;
    color: var(--color-primary) !important;
}

/* Hero Section adjustments */
[data-theme="light"] .hero-section {
    background-image: linear-gradient(180deg, rgba(244, 247, 252, 0.85) 0%, rgba(244, 247, 252, 0.65) 50%, rgba(244, 247, 252, 0.95) 100%), 
                      url('../images/background_img.png') !important;
}

[data-theme="light"] .hero-subtitle {
    color: var(--text-secondary) !important;
    text-shadow: none !important;
}

[data-theme="light"] .btn-hero-outline {
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-primary) !important;
    border: 1px solid rgba(0, 112, 255, 0.25) !important;
}

[data-theme="light"] .btn-hero-outline:hover {
    background: rgba(0, 112, 255, 0.08);
    border-color: var(--color-primary) !important;
    color: var(--color-primary) !important;
}

[data-theme="light"] .hero-divider::after {
    background: var(--color-accent) !important;
    box-shadow: 0 0 8px var(--color-accent) !important;
}

[data-theme="light"] .ring-outer {
    border-color: rgba(0, 112, 255, 0.4) !important;
    box-shadow: 0 0 15px rgba(0, 112, 255, 0.1), inset 0 0 15px rgba(0, 112, 255, 0.05) !important;
}

[data-theme="light"] .ring-middle {
    border-color: rgba(0, 112, 255, 0.15) !important;
    border-top-color: rgba(0, 112, 255, 0.7) !important;
    border-bottom-color: rgba(0, 112, 255, 0.7) !important;
    box-shadow: 0 0 20px rgba(0, 112, 255, 0.15) !important;
}

[data-theme="light"] .ring-inner {
    border-color: rgba(0, 0, 0, 0.1) !important;
    border-left-color: rgba(0, 112, 255, 0.5) !important;
    border-right-color: rgba(217, 119, 6, 0.5) !important;
    box-shadow: 0 0 15px rgba(0, 112, 255, 0.1) !important;
}

[data-theme="light"] .logo-bg-glow {
    background: radial-gradient(circle, rgba(0, 112, 255, 0.15) 0%, rgba(0, 112, 255, 0.05) 50%, transparent 70%) !important;
}

[data-theme="light"] .hero-university-logo {
    filter: drop-shadow(0 0 20px rgba(0, 112, 255, 0.2)) !important;
}

[data-theme="light"] .hero-university-logo:hover {
    filter: drop-shadow(0 0 30px rgba(0, 112, 255, 0.4)) !important;
}

/* Glass panel shadows */
[data-theme="light"] .glass-panel {
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.06) !important;
}

[data-theme="light"] .glass-panel-hover:hover {
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.1) !important;
}

[data-theme="light"] .glass-stats-card {
    background: rgba(255, 255, 255, 0.7) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.06) !important;
}

[data-theme="light"] .glass-stats-card:hover {
    box-shadow: 0 12px 40px 0 rgba(0, 112, 255, 0.1) !important;
}

[data-theme="light"] .stats-num {
    color: var(--text-primary) !important;
}

[data-theme="light"] .stats-lbl {
    color: var(--text-secondary) !important;
}

/* Table overrides */
[data-theme="light"] .table-dark {
    --bs-table-color: var(--text-primary) !important;
    --bs-table-bg: var(--bg-secondary) !important;
    --bs-table-border-color: var(--glass-border) !important;
    --bs-table-hover-bg: rgba(0, 112, 255, 0.04) !important;
    --bs-table-hover-color: var(--text-primary) !important;
}

/* Message bubble overrides */
[data-theme="light"] .message-visitor {
    color: var(--text-primary) !important;
    background-color: var(--bg-tertiary) !important;
}

[data-theme="light"] .message-agent {
    color: #ffffff !important;
    background-color: var(--color-primary) !important;
}

/* Sidebar overrides */
[data-theme="light"] .sidebar-link:hover,
[data-theme="light"] .sidebar-link.active {
    color: var(--color-primary) !important;
    background: rgba(0, 112, 255, 0.08) !important;
}

[data-theme="light"] .sidebar-link.active {
    border-left: 3px solid var(--color-accent) !important;
    background: rgba(245, 158, 11, 0.08) !important;
}

[data-theme="light"] .glass-panel .list-group-item {
    color: var(--text-primary) !important;
    border-color: var(--glass-border) !important;
}

[data-theme="light"] .glass-panel .list-group-item strong {
    color: var(--text-primary) !important;
}

[data-theme="light"] .glass-panel .list-group-item .text-muted {
    color: var(--text-muted) !important;
}

[data-theme="light"] .form-select-custom option {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}

/* Button & close overrides */
[data-theme="light"] .btn-outline-light {
    border-color: var(--color-primary) !important;
    color: var(--color-primary) !important;
}

[data-theme="light"] .btn-outline-light:hover {
    background-color: var(--color-primary) !important;
    color: #ffffff !important;
}

[data-theme="light"] .btn-close-white {
    filter: none !important;
}

[data-theme="light"] .btn-custom-secondary {
    background: rgba(0, 112, 255, 0.05) !important;
    color: var(--color-primary) !important;
    border: 1px solid var(--glass-border) !important;
}

[data-theme="light"] .btn-custom-secondary:hover {
    background: rgba(0, 112, 255, 0.1) !important;
    border-color: var(--color-primary) !important;
    color: var(--color-primary) !important;
}

[data-theme="light"] #chat-attach-btn i {
    color: var(--text-secondary) !important;
}

[data-theme="light"] .upload-drop-zone {
    background: rgba(0, 112, 255, 0.02) !important;
}

/* Smooth theme transition */
body, main, nav, footer, .glass-panel, .vacancy-card, .sidebar-link, .navbar-custom, .navbar-brand-text, .nav-link-custom, h1, h2, h3, h4, h5, h6, input, select, textarea {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}


