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

/* ================= PREMIUM MODERN THEME SYSTEM ================= */
:root {
    /* --- COLOR PALETTE (LIGHT THEME) --- */
    --primary-color: #4d51ff;       /* Vibrant Electric Indigo */
    --primary-light: #eef0ff;      /* Very Light Indigo */
    --primary-dark: #3538c2;       /* Stronger Indigo */
    --secondary-color: #ff2a7a;     /* Vibrant Neon Magenta/Pink */
    --secondary-light: #fff1f5;    /* Very Light Magenta */
    --accent-color: #ff9100;       /* Vibrant Neon Orange/Gold */
    --accent-green: #00e676;       /* Vibrant Lime/Neon Green */
    
    --bg-main: #f8fafc;            /* Slate 50 */
    --bg-white: #ffffff;
    --text-dark: #0f172a;          /* Slate 900 */
    --text-muted: #64748b;         /* Slate 500 */
    
    --border-light: rgba(226, 232, 240, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.6);
    --card-bg: rgba(255, 255, 255, 0.8);
    --input-bg: rgba(255, 255, 255, 0.95);
    --footer-bg: #f1f5f9;
    
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
    --shadow-hover: 0 20px 40px -15px rgba(77, 81, 255, 0.22), 0 8px 20px -10px rgba(77, 81, 255, 0.12);
    --glow-primary: 0 0 20px rgba(77, 81, 255, 0.3);
    --glow-secondary: 0 0 20px rgba(255, 45, 122, 0.3);
    
    /* --- BORDER RADIUS --- */
    --border-radius-card: 24px;
    --border-radius-pill: 9999px;
    
    /* --- TRANSITIONS --- */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- DARK THEME OVERRIDES --- */
[data-theme="dark"], .dark-theme {
    --bg-main: #050814;            /* Deeper Space Navy */
    --bg-white: #0d1222;           /* Deep Slate Blue */
    --text-dark: #f8fafc;          /* Slate 50 */
    --text-muted: #94a3b8;         /* Slate 400 */
    
    --primary-light: #12133a;      /* Deeper Indigo Overlay */
    --primary-dark: #818cf8;       /* Indigo 400 */
    --secondary-light: #4c0519;    /* Deeper Pink Overlay */
    
    --border-light: rgba(51, 65, 85, 0.5);
    --glass-bg: rgba(13, 18, 34, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(20, 27, 50, 0.45);
    --input-bg: rgba(10, 14, 28, 0.92);
    --footer-bg: #03050d;
    
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 25px 50px -12px rgba(77, 81, 255, 0.4);
    --glow-primary: 0 0 25px rgba(77, 81, 255, 0.5);
    --glow-secondary: 0 0 25px rgba(255, 45, 122, 0.5);
}

/* ================= RESET & GENERAL STYLES ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* Scope color transitions only to elements that actually use them */
button, a, input, select, textarea, .card, .list-item, nav, .sidebar ul li, .footer-col a {
    transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
}

body {
    background: var(--bg-main);
    background-image: 
        radial-gradient(at 0% 0%, hsla(253, 90%, 60%, 0.15) 0, transparent 40%), 
        radial-gradient(at 50% 0%, hsla(225, 90%, 60%, 0.15) 0, transparent 45%), 
        radial-gradient(at 100% 0%, hsla(339, 90%, 60%, 0.15) 0, transparent 40%);
    background-attachment: fixed;
    color: var(--text-dark);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
    border: 3px solid var(--bg-main);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ================= NAVBAR ================= */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 18px 8%;
    color: var(--text-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-normal);
}

.logo-area {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 12px;
}

.logo-area img {
    width: clamp(24px, 4vw, 32px);
    height: clamp(24px, 4vw, 32px);
    border-radius: clamp(6px, 1vw, 8px);
    box-shadow: var(--shadow-soft);
    object-fit: cover;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: navLogoEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both, logoPulse 3s ease-in-out infinite 1.2s;
}

.logo-area:hover img {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

@keyframes navLogoEntrance {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 2px rgba(99, 102, 241, 0.3));
    }
    50% {
        transform: scale(1.08);
        filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.6));
    }
}

nav h2 {
    color: var(--text-dark);
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -0.5px;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 32px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 16px;
    padding: 6px 0;
    transition: color var(--transition-fast);
}

nav ul li a:hover, nav ul li a.active {
    color: var(--text-dark);
}

nav ul li a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    left: 0;
    bottom: -4px;
    border-radius: 5px;
    transition: width var(--transition-normal);
}

nav ul li a:hover::after, nav ul li a.active::after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Theme Toggle Switch */
.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-dark);
    cursor: pointer;
    font-size: 18px;
    padding: 10px 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    outline: none;
}

.theme-toggle-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.08) rotate(15deg);
}

.loginBtn {
    padding: 10px 24px;
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-dark);
    font-weight: 700;
    border-radius: var(--border-radius-pill);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 14px;
}

.loginBtn:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.signupBtn {
    padding: 11px 26px;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    font-weight: 700;
    border-radius: var(--border-radius-pill);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 14px;
    box-shadow: var(--glow-primary);
}

.signupBtn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.35);
}

/* ================= HERO SECTION ================= */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 10%;
    position: relative;
    overflow: hidden;
    gap: 40px;
}

.hero::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
    right: 5%;
    top: 10%;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    flex: 1.2;
    max-width: 650px;
    position: relative;
    z-index: 1;
    animation: slideUpFade var(--transition-slow) forwards;
    will-change: transform, opacity;
}

.hero-content h1 {
    font-size: 54px;
    line-height: 1.15;
    margin-bottom: 24px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -1.5px;
}

.hero-content h1 span {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 18px;
    line-height: 1.65;
    margin-bottom: 40px;
    color: var(--text-muted);
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-buttons button {
    padding: 15px 32px;
    border: none;
    border-radius: var(--border-radius-pill);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #ffffff;
    box-shadow: var(--shadow-hover);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--glow-primary);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-dark);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-4px);
}

.hero-image {
    flex: 1;
    position: relative;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
    display: flex;
    justify-content: center;
    will-change: transform;
}

.hero-image img {
    max-width: 100%;
    border-radius: 30px;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--glass-border);
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-16px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ================= CARDS & GRID ================= */
.section {
    padding: 80px 10%;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 38px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 16px;
}

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

.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius-card);
    padding: 36px 30px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
    position: relative;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    will-change: transform;
    min-width: 0;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(99, 102, 241, 0.25);
}

.card:hover::before {
    opacity: 1;
}

.card-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #d97706;
    padding: 5px 14px;
    border-radius: var(--border-radius-pill);
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.1);
}

.card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-light), rgba(99, 102, 241, 0.1));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 26px;
    color: var(--primary-color);
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.1);
    transition: transform var(--transition-normal);
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(-5deg);
    color: var(--secondary-color);
}

.card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--text-dark);
}

.card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--border-light);
}

.card-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.card-detail i {
    color: var(--primary-color);
}

.applyBtn {
    padding: 10px 22px;
    background: var(--primary-light);
    color: var(--primary-color);
    border: none;
    border-radius: var(--border-radius-pill);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.applyBtn:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--glow-primary);
}

/* ================= FOOTER ================= */
footer {
    background: #0b0f19;
    color: #94a3b8;
    padding: 60px 10% 30px;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-col p {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.6;
}

.footer-col a {
    color: #94a3b8;
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--secondary-color) !important;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 14px;
}

/* ================= FORMS ================= */
.form-container {
    background: var(--bg-white);
    padding: 44px;
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-soft);
    max-width: 480px;
    width: 100%;
    margin: 60px auto;
    border: 1px solid var(--border-light);
    animation: slideUpFade var(--transition-normal) forwards;
    will-change: transform;
}

.form-container h2 {
    color: var(--text-dark);
    margin-bottom: 8px;
    text-align: center;
    font-size: 28px;
    font-weight: 800;
}

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

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

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-main);
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 15px;
    transition: all var(--transition-fast);
    color: var(--text-dark);
    outline: none;
}

.form-group input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
    background: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.btn-block {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #ffffff;
    border: none;
    border-radius: var(--border-radius-pill);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-top: 10px;
    box-shadow: var(--glow-primary);
}

.btn-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.25);
}

/* ================= MODAL ================= */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 15, 25, 0.6);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast) ease-in-out;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius-card);
    max-width: 450px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-normal);
    border: 1px solid var(--border-light);
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.modal-close:hover {
    color: var(--text-dark);
    transform: rotate(90deg);
}

.modal h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 800;
}

.modal .btn-primary {
    width: 100%;
    margin-right: 0;
}

/* ================= SPECIFIC CUSTOM LAYOUTS ================= */
.role-toggle {
    display: flex;
    background: var(--bg-main);
    border-radius: var(--border-radius-pill);
    margin-bottom: 25px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    padding: 4px;
}

.role-btn {
    flex: 1;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-muted);
    border-radius: var(--border-radius-pill);
    transition: all var(--transition-fast);
}

.role-btn.active {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: var(--shadow-soft);
}

.toast {
    display: none;
    margin-bottom: 16px;
    padding: 12px 18px;
    border-radius: 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    animation: slideUpFade var(--transition-fast) forwards;
}

.toast.error { background: #fde8e8; color: #c81e1e; border: 1px solid #f8b4b4; }
.toast.success { background: #def7ec; color: #03543f; border: 1px solid #bcf0da; }

/* Dashboard and sidebar styling */
.dashboard-container {
    display: flex;
    min-height: calc(100vh - 80px);
}

.sidebar {
    width: 260px;
    background: var(--bg-white);
    border-right: 1px solid var(--border-light);
    padding: 30px 0;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    padding: 14px 28px;
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 15px;
    border-left: 4px solid transparent;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar ul li:hover, .sidebar ul li.active {
    color: var(--primary-color);
    background: var(--primary-light);
    border-left-color: var(--primary-color);
}

.sidebar ul li i {
    font-size: 18px;
}

.content-area {
    flex: 1;
    padding: 40px;
    background: var(--bg-main);
}

.list-item {
    background: var(--bg-white);
    padding: 24px;
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-soft);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-light);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.list-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.list-info h3 {
    color: var(--primary-color);
    margin-bottom: 6px;
    font-size: 20px;
    display: flex;
    align-items: center;
}

.list-info p {
    color: var(--text-muted);
    font-size: 14px;
}

.delete-btn {
    background: #ffe4e6;
    color: #e11d48;
    border: none;
    padding: 8px 18px;
    border-radius: var(--border-radius-pill);
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all var(--transition-fast);
}

.delete-btn:hover {
    background: #e11d48;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.2);
}

.status-select {
    padding: 8px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-pill);
    background: var(--bg-main);
    color: var(--text-dark);
    outline: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all var(--transition-fast);
}

.status-unreviewed { border-color: var(--accent-color); color: var(--accent-color); }
.status-accepted { border-color: var(--accent-green); color: var(--accent-green); background: #def7ec; }
.status-rejected { border-color: #e11d48; color: #e11d48; background: #ffe4e6; }

[data-theme="dark"] .status-accepted { background: rgba(16, 185, 129, 0.15); }
[data-theme="dark"] .status-rejected { background: rgba(225, 29, 72, 0.15); }

/* About and Contact customized headers */
.page-header {
    background: linear-gradient(135deg, var(--primary-light), var(--bg-main));
    padding: 60px 10%;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.page-header h1 {
    color: var(--primary-color);
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 15px;
}

.page-header p {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.filter-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    padding: 0 10%;
    margin-top: -25px;
}

.filter-bar input {
    flex: 1;
    padding: 14px 24px;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-pill);
    box-shadow: var(--shadow-soft);
    font-size: 15px;
    outline: none;
    background: var(--bg-white);
    color: var(--text-dark);
    transition: border var(--transition-fast), box-shadow var(--transition-fast);
}

.filter-bar input:focus {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

.filter-bar button {
    padding: 14px 28px;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: var(--border-radius-pill);
    cursor: pointer;
    font-weight: 600;
    box-shadow: var(--glow-primary);
    transition: all var(--transition-fast);
}

.filter-bar button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.25);
}

.company-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
}

.company-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: contain;
}

.company-name {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 13px;
}

/* ================= HAMBURGER MENU ================= */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
    border: none;
    background: transparent;
    z-index: 1100;
    transition: background var(--transition-fast);
}

.hamburger:hover {
    background: var(--primary-light);
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--text-dark);
    border-radius: 99px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1050;
    backdrop-filter: blur(4px);
}

.mobile-nav-overlay.open { display: block; }

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    left: auto !important;
    width: min(80vw, 320px);
    height: 100%;
    background: var(--bg-white);
    z-index: 1100;
    padding: 80px 28px 40px;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-drawer.open { right: 0 !important; left: auto !important; }

.mobile-nav-drawer a {
    display: block;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    transition: all var(--transition-fast);
}

.mobile-nav-drawer a:hover,
.mobile-nav-drawer a.active {
    background: var(--primary-light);
    color: var(--primary-color);
}

.mobile-nav-drawer .mobile-nav-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-nav-drawer .loginBtn,
.mobile-nav-drawer .signupBtn {
    width: 100%;
    text-align: center;
    padding: 14px;
    font-size: 15px;
}

/* ================= RESPONSIVE — TABLET (≤992px) ================= */
@media (max-width: 992px) {
    nav { padding: 14px 5%; }
    .hero { flex-direction: column; text-align: center; padding: 40px 6%; gap: 30px; }
    .hero-content { max-width: 100%; }
    .hero-content h1 { font-size: 44px; }
    .hero-buttons { justify-content: center; }
    .hero-image { max-width: 80%; margin: 0 auto; }
    .section { padding: 60px 6%; }
    .grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
}

/* ================= RESPONSIVE — MOBILE (≤768px) ================= */
@media (max-width: 768px) {
    /* Navbar */
    nav ul { display: none; }
    .nav-buttons { display: none; }
    .hamburger { display: flex; }

    /* Hero */
    .hero { padding: 30px 5%; min-height: auto; }
    .hero-content h1 { font-size: 36px; letter-spacing: -1px; }
    .hero-content p { font-size: 16px; }
    .hero-buttons { flex-direction: column; width: 100%; gap: 12px; }
    .hero-buttons button { width: 100%; margin: 0; padding: 14px 24px; }

    /* Sections & grid */
    .section { padding: 50px 5%; }
    .section-header h2 { font-size: 28px; }
    .grid { grid-template-columns: 1fr; gap: 16px; }
    .filter-bar { flex-direction: column; margin-top: 15px; padding: 0 5%; gap: 10px; }
    .filter-bar input, .filter-bar button { width: 100%; }

    /* Forms */
    .form-container { padding: 28px 20px; margin: 30px 16px; max-width: 100%; }
    .form-container h2 { font-size: 22px; }

    /* Footer */
    .footer-content { flex-direction: column; gap: 24px; }
    footer { padding: 40px 6% 24px; }

    /* Dashboard */
    .dashboard-container { flex-direction: column; }
    .sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border-light); padding: 10px 0; }
    .sidebar ul { display: flex; flex-wrap: wrap; justify-content: center; }
    .sidebar ul li { padding: 10px 15px; font-size: 13px; }
    .content-area { padding: 20px 16px; }
    .list-item { flex-direction: column; align-items: stretch; gap: 12px; }
    .delete-btn, .status-select { width: 100%; text-align: center; }

    /* Cards */
    .card { padding: 24px 20px; border-radius: 18px; }
    .card h3 { font-size: 18px; }
    .card-footer { flex-direction: column; gap: 12px; align-items: stretch; }
    .card-footer .applyBtn { width: 100%; text-align: center; }

    /* Page header */
    .page-header { padding: 40px 5%; }
    .page-header h1 { font-size: 28px; }
}

/* ================= RESPONSIVE — SMALL PHONES (≤480px) ================= */
@media (max-width: 480px) {
    nav { padding: 12px 4%; }
    nav h2 { font-size: 18px; }

    .hero-content h1 { font-size: 30px; }
    .section-header h2 { font-size: 24px; }

    .form-container { padding: 24px 16px; margin: 20px 10px; border-radius: 18px; }
    .modal-content { padding: 28px 20px; border-radius: 18px; }

    .card { padding: 20px 16px; }
    .card-badge { top: 16px; right: 16px; font-size: 11px; padding: 4px 10px; }

    .loginBtn, .signupBtn { padding: 10px 18px; font-size: 13px; }
    .btn-block { padding: 13px; font-size: 15px; }

    footer { padding: 32px 5% 20px; }
    .footer-col h3 { font-size: 17px; }
}

/* ================= FOCUS VISIBLE (ACCESSIBILITY) ================= */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 4px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

/* ================= LOADING SPINNER ================= */
.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
}

/* ================= SKELETON LOADER ================= */
.skeleton {
    background: linear-gradient(90deg, var(--border-light) 25%, rgba(200,200,200,0.08) 50%, var(--border-light) 75%);
    background-size: 400% 100%;
    animation: skeleton-shimmer 1.4s ease infinite;
    border-radius: 8px;
}

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

/* ================= CANDIDATE DASHBOARD MOBILE ================= */
@media (max-width: 768px) {
    .list-item {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .list-item > div:last-child {
        display: flex;
        justify-content: flex-start;
    }

    .status-badge {
        align-self: flex-start;
    }
}

/* ================= PREMIUM INTERACTIVE MICRO-ANIMATIONS ================= */

/* Card hover zoom & glow */
.card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}
.card:hover {
    transform: translateY(-12px) scale(1.02) !important;
    box-shadow: var(--shadow-hover), 0 15px 35px rgba(99, 102, 241, 0.15) !important;
    border-color: var(--primary-color) !important;
}

/* List item hover slide, border glow and scale */
.list-item {
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}
.list-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.list-item:hover {
    transform: translateX(6px) scale(1.008) !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
    box-shadow: var(--shadow-hover) !important;
}
.list-item:hover::after {
    width: 4px;
}

/* Navbar logo hover rotation & neon glow */
nav .logo,
#navbar .logo,
.nav-logo img {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
}
nav .logo:hover,
#navbar .logo:hover,
.nav-logo:hover img {
    transform: scale(1.15) rotate(8deg) !important;
    filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.5)) !important;
}

/* Interactive theme toggle sun/moon rotate & pulse glow */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}
.theme-toggle-btn {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.theme-toggle-btn:hover {
    animation: pulseGlow 1.5s infinite;
}
.theme-toggle-btn i {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.theme-toggle-btn:hover i {
    transform: scale(1.1) rotate(45deg);
}
.theme-toggle-btn:active i {
    transform: scale(0.9) rotate(360deg);
}

/* Button arrow shifts on hover */
button i.fa-arrow-right,
button i.fa-arrow-right-from-bracket {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
button:hover i.fa-arrow-right,
button:hover i.fa-arrow-right-from-bracket {
    transform: translateX(5px);
}

/* Form input interactive translate & glow */
.form-group input, 
.form-group select, 
.form-group textarea {
    transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}
.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    transform: translateY(-2px);
    border-color: var(--primary-color) !important;
    background: var(--bg-white) !important;
    box-shadow: 0 10px 20px -10px rgba(99, 102, 241, 0.15), 0 0 0 4px rgba(99, 102, 241, 0.15) !important;
}

/* Body ambient background pulse gradients */
body {
    position: relative;
}
body::before {
    content: '';
    position: fixed;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -100px;
    left: -100px;
    z-index: -1;
    pointer-events: none;
    animation: pulse-ambient-left 20s ease-in-out infinite;
}
body::after {
    content: '';
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(244,63,94,0.06) 0%, transparent 70%);
    border-radius: 50%;
    top: 10%;
    right: -100px;
    z-index: -1;
    pointer-events: none;
    animation: pulse-ambient-right 25s ease-in-out infinite;
}

@keyframes pulse-ambient-left {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -20px) scale(1.15); }
}

@keyframes pulse-ambient-right {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 30px) scale(1.1); }
}

/* ================= PREFERS REDUCED MOTION ================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .spinner {
        animation: none;
        border-top-color: var(--primary-color);
    }
    
    .list-item:hover {
        transform: none !important;
    }
    .card:hover {
        transform: none !important;
    }
    .form-group input:focus {
        transform: none !important;
    }
}

