/* ==========================================================================
   HRShortlist.com - Premium Cosmic Dark Theme Stylesheet (Vanilla CSS)
   Futuristic Glassmorphism, Sleek Neon Accents, & Smooth Fluid Animations
   ========================================================================== */

/* --- CSS Variables & Design Tokens (Premium Navy & White Theme) --- */
:root {
    --primary-gradient: linear-gradient(135deg, #0f2b5c 0%, #1e40af 100%);
    --primary-color: #0f2b5c;
    --primary-hover: #1e3a8a;
    --secondary-color: #0f172a;
    --accent-gradient: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    --accent-color: #2563eb;
    --bg-light: #f8fafc; /* Crisp light gray background */
    --bg-white: #ffffff; /* Card background */
    --text-main: #334155; /* Dark gray body text */
    --text-muted: #64748b; /* Muted gray text */
    --border-color: rgba(15, 43, 92, 0.08);
    --border-hover: rgba(30, 64, 175, 0.25);
    --shadow-sm: 0 1px 3px rgba(15, 43, 92, 0.04);
    --shadow-md: 0 4px 12px rgba(15, 43, 92, 0.06);
    --shadow-lg: 0 12px 32px rgba(15, 43, 92, 0.08);
    --shadow-glass: 0 8px 32px 0 rgba(15, 43, 92, 0.04);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
}

/* --- Base Reset & Setup --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(15, 43, 92, 0.02) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(37, 99, 235, 0.03) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* --- Typography & Headers --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.main-content {
    min-height: calc(100vh - 160px);
    padding: 60px 0;
}

/* --- Interactive Elements & Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.55);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.btn-link {
    background: transparent;
    color: var(--text-muted);
}

.btn-link:hover {
    color: #ffffff;
}

/* --- Premium Sticky Header --- */
.main-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-icon {
    font-size: 20px;
    color: #ffffff;
    background: var(--primary-gradient);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 15px rgba(15, 43, 92, 0.15);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--secondary-color);
    letter-spacing: -0.5px;
}

.logo-text span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-nav {
    display: flex;
    gap: 10px;
}

.nav-item {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.nav-item:hover, .nav-item.active {
    color: var(--primary-color);
    background: rgba(15, 43, 92, 0.04);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    background: rgba(15, 43, 92, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 3px;
}

.lang-btn {
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 5px;
    color: var(--text-muted);
}

.lang-btn.active {
    background: rgba(15, 43, 92, 0.08);
    color: var(--primary-color);
}

/* Credits Badge */
.credits-badge {
    background: rgba(245, 158, 11, 0.08);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Mobile Toggle */
.mobile-toggle-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 20px;
    color: var(--secondary-color);
    cursor: pointer;
}

/* --- Hero Showcase (Home Page) --- */
.hero-section {
    text-align: center;
    margin-bottom: 50px;
}

.hero-section h1 {
    font-size: 38px;
    line-height: 1.2;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #0f2b5c 30%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.hero-section p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
    font-weight: 400;
}

.filter-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
    position: relative;
}

.form-control, .form-select {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: #ffffff;
    color: var(--secondary-color);
    font-family: var(--font-body);
    font-size: 14px;
    transition: var(--transition-smooth);
    outline: none;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}


.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    background-color: #ffffff;
}

.filter-actions-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
}

/* --- Candidate Cards & Grid --- */
.candidate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.candidate-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.candidate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(168, 85, 247, 0.15);
    border-color: var(--border-hover);
}

.card-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 10px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-locked {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-unlocked {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.candidate-card-header {
    margin-bottom: 20px;
}

.candidate-code-text {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
}

.candidate-pos-text {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 4px;
}

.candidate-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.02);
    padding: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.meta-item {
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.meta-item span:first-child {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.meta-item span:last-child {
    font-weight: 600;
    color: #ffffff;
}

.competency-bar-row {
    margin-bottom: 24px;
}

.comp-bar-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.comp-bar-outer {
    background: rgba(255, 255, 255, 0.08);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.comp-bar-inner {
    background: var(--primary-gradient);
    height: 100%;
    border-radius: 4px;
}

.card-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

/* --- Detail Page Layout --- */
.detail-grid {
    display: grid;
    grid-template-columns: 2.2fr minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}

.detail-main-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.detail-sidebar-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 24px;
    margin-bottom: 30px;
}

.detail-title h1 {
    font-size: 36px;
    color: #ffffff;
    margin-bottom: 4px;
}

.detail-section {
    margin-bottom: 40px;
}

.detail-section h3 {
    font-size: 18px;
    border-left: 4px solid var(--primary-color);
    padding-left: 12px;
    margin-bottom: 20px;
    color: #ffffff;
}

/* Blind Overlay Mask */
.blind-overlay-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blind-icon-lock {
    font-size: 44px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* --- Forms & Auth Pages --- */
.auth-container {
    max-width: 460px;
    margin: 60px auto;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

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

.auth-header h1 {
    font-size: 32px;
    margin-bottom: 8px;
    color: #ffffff;
}

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

.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 550;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.08);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-success {
    background: rgba(16, 185, 129, 0.08);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* --- Footer --- */
.main-footer {
    background: #081120;
    color: #94a3b8;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13.5px;
}

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

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 35px !important;
    }
}

/* --- Toggle View Controls & List Layout --- */
.layout-toggle-group .btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
}
.layout-toggle-group .btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}

/* List (Table) vs Card (Grid) Visibility rules */
#resultsWrapper.layout-list .candidates-list-wrapper {
    display: block;
}
#resultsWrapper.layout-list .candidates-grid-wrapper {
    display: none;
}
#resultsWrapper.layout-card .candidates-list-wrapper {
    display: none;
}
#resultsWrapper.layout-card .candidates-grid-wrapper {
    display: block;
}

/* Table Style (Modern Light) */
.candidates-list-wrapper {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow-x: auto;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
}
.candidates-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}
.candidates-table th, .candidates-table td {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}
.candidates-table th {
    background: rgba(15, 43, 92, 0.02);
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.candidates-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}
.candidates-table tbody tr:last-child td {
    border-bottom: none;
}

/* AI match badges */
.ai-match-score-badge {
    background: rgba(168, 85, 247, 0.1);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.25);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-experience, .badge-preference {
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: 6px;
}

/* Custom Scrollbar for Sleek Tech Look */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #030712;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(124, 58, 237, 0.5);
}

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        position: relative;
    }
    
    .mobile-toggle-btn {
        display: block;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #0f172a;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        flex-direction: column;
        padding: 16px 24px;
        gap: 10px;
        box-shadow: var(--shadow-lg);
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .hero-section h1 {
        font-size: 32px;
    }
}

/* --- Juicebox Style AI Search Box --- */
.ai-search-box-wrapper {
    margin: 40px auto 0 auto;
    max-width: 900px;
    text-align: left;
    position: relative;
}

.ai-search-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(168, 85, 247, 0.12);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-bottom: none;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 20px;
    border-top-left-radius: var(--radius-sm);
    border-top-right-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ai-search-bar-inner {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    border-top-left-radius: 0; /* Align with tab */
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.ai-search-bar-inner:focus-within {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.ai-search-icon {
    padding-left: 24px;
    font-size: 20px;
    color: var(--text-muted);
}

.ai-search-input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 20px 18px;
    font-size: 16px;
    color: var(--secondary-color);
    outline: none;
    width: 100%;
}

.ai-search-submit {
    background: var(--primary-gradient);
    border: none;
    color: #ffffff;
    height: 64px;
    width: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.ai-search-submit:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

/* --- Split Screen Authentication Layout --- */
.split-auth-container {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    min-height: 560px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(15, 43, 92, 0.05);
    margin: 0 auto;
    max-width: 980px;
}

.auth-promo-side {
    background: #0a1c3b;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(37, 99, 235, 0.1) 0%, transparent 40%);
    padding: 40px 45px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid rgba(15, 43, 92, 0.08);
    min-width: 0;
}

.auth-promo-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
}

.auth-promo-logo .logo-icon {
    font-size: 18px;
    width: 36px;
    height: 36px;
}

.auth-promo-logo .logo-text {
    font-size: 20px;
}

.auth-promo-content h2 {
    font-size: 34px;
    line-height: 1.25;
    color: #ffffff;
    margin-bottom: 16px;
    font-weight: 850;
}

.auth-promo-content p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 35px;
}

/* Visualization Bubble Network Mockup */
.auth-bubble-network {
    position: relative;
    height: 220px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-center-sphere {
    width: 100px;
    height: 100px;
    border: 1px dashed rgba(168, 85, 247, 0.3);
    border-radius: 50%;
    position: relative;
    animation: rotateSphere 20s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-center-sphere::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border: 1px dashed rgba(99, 102, 241, 0.2);
    border-radius: 50%;
}

@keyframes rotateSphere {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.auth-cand-tag {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(15, 43, 92, 0.08);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(15, 43, 92, 0.08);
}

.auth-cand-tag i {
    color: var(--primary-color);
}

/* Position tag bubbles in a nice floating network around the sphere */
.auth-cand-tag.t1 { top: 10%; left: 10%; }
.auth-cand-tag.t2 { top: 20%; right: 10%; }
.auth-cand-tag.t3 { bottom: 25%; left: 12%; }
.auth-cand-tag.t4 { bottom: 15%; right: 15%; }
.auth-cand-tag.t5 { top: 50%; left: 42%; transform: translate(-50%, -50%); border-color: rgba(37, 99, 235, 0.3); background: rgba(37, 99, 235, 0.05); }

.auth-promo-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 24px;
}

.auth-promo-footer-text {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.auth-promo-logos-marquee {
    overflow: hidden;
    width: 100%;
    position: relative;
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.auth-promo-logos-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 20s linear infinite;
    opacity: 0.5;
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
}

.auth-promo-logos-track span {
    white-space: nowrap;
    padding-right: 40px;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.auth-form-side {
    padding: 40px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Social Google Buttons */
.social-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    background: rgba(15, 43, 92, 0.02);
    border-radius: var(--radius-sm);
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-bottom: 20px;
}

.social-login-btn:hover {
    background: rgba(15, 43, 92, 0.05);
    border-color: rgba(15, 43, 92, 0.15);
    transform: translateY(-1px);
}

.social-login-btn img {
    width: 18px;
    height: 18px;
}

.divider-text {
    text-align: center;
    position: relative;
    margin: 15px 0 25px 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.divider-text::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 42%;
    border-top: 1px solid var(--border-color);
}

.divider-text::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 42%;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 992px) {
    .split-auth-container {
        grid-template-columns: 1fr;
    }
    .auth-promo-side {
        display: none;
    }
    .auth-form-side {
        padding: 40px 24px;
    }
}

/* --- Navigation Mobile / Desktop Layout Fixes --- */
.mobile-menu-items {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu-items {
        display: block;
    }
    .header-actions .lang-switcher,
    .header-actions .credits-badge,
    .header-actions .btn {
        display: none !important;
    }
}

/* --- Search Tabs System (Home Page) --- */
.search-tabs-wrapper {
    margin: 40px auto 0 auto;
    max-width: 900px;
    text-align: left;
    position: relative;
}

.search-tabs-nav {
    display: flex;
    gap: 4px;
    margin-bottom: -1px;
    position: relative;
    z-index: 2;
}

.search-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: none;
    font-size: 13px;
    font-weight: 700;
    padding: 12px 24px;
    border-top-left-radius: var(--radius-sm);
    border-top-right-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition-smooth);
    outline: none;
}

.search-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.search-tab-btn.active {
    background: rgba(15, 23, 42, 0.65);
    color: #c084fc;
    border-color: rgba(168, 85, 247, 0.35);
    border-bottom: 1px solid rgba(15, 23, 42, 0.65);
}

.search-tab-content {
    display: none;
}

.search-tab-content.active {
    display: block;
}

.filter-search-form {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: var(--radius-md);
    border-top-left-radius: 0;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(168, 85, 247, 0.15);
}

.filter-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.filter-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* --- Full Page Centering & Footer Hiding for Auth Pages --- */
.auth-page-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: var(--bg-light);
}

.auth-page-body .main-content {
    min-height: auto;
    padding: 20px 0;
    width: 100%;
}

.auth-page-body .main-footer {
    display: none;
}

/* --- Spacing Utility Classes --- */
.mb-1 { margin-bottom: 4px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 16px !important; }
.mb-4 { margin-bottom: 24px !important; }
.mb-5 { margin-bottom: 32px !important; }
.mt-1 { margin-top: 4px !important; }
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 16px !important; }
.mt-4 { margin-top: 24px !important; }
.mt-5 { margin-top: 32px !important; }

/* --- App Left Sidebar Layout --- */
.app-layout {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-light);
}

.app-sidebar {
    width: 260px;
    background: #ffffff;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    box-shadow: 4px 0 20px rgba(15, 43, 92, 0.02);
}

.app-main-content {
    flex: 1;
    margin-left: 260px;
    padding: 40px;
    width: calc(100% - 260px);
}

/* Sidebar Logo */
.sidebar-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 22px;
    color: var(--secondary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.sidebar-logo span {
    color: var(--primary-color);
}

/* Sidebar Search */
.sidebar-search {
    margin-bottom: 24px;
    position: relative;
}

.sidebar-search input {
    width: 100%;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--secondary-color);
    padding: 10px 12px 10px 36px;
    font-size: 13px;
    outline: none;
    transition: var(--transition-smooth);
}

.sidebar-search input:focus {
    background: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.sidebar-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

.sidebar-search .search-shortcut {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 43, 92, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    pointer-events: none;
}

/* Sidebar Navigation */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
}

.sidebar-nav-item:hover {
    background: rgba(15, 43, 92, 0.03);
    color: var(--secondary-color);
}

.sidebar-nav-item.active {
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    color: var(--primary-color);
}

.sidebar-nav-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Sidebar User Profile Card */
.sidebar-user-card {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: auto;
}

.sidebar-profile-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.sidebar-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.sidebar-user-details {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-username {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.sidebar-workspace {
    color: var(--text-muted);
    font-size: 11px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* Sidebar Credits */
.sidebar-credits {
    background: rgba(15, 43, 92, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--secondary-color);
}

.sidebar-credits span {
    color: var(--text-muted);
    font-weight: 600;
}

.sidebar-credits .credit-count {
    color: var(--warning);
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Sidebar Responsiveness */
@media (max-width: 991px) {
    .app-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 260px;
    }
    
    .app-sidebar.active {
        transform: translateX(0);
    }
    
    .app-main-content {
        margin-left: 0;
        width: 100%;
        padding: 20px;
        padding-top: 80px !important;
    }
    
    .mobile-app-header {
        display: flex !important;
    }
    
    .mobile-close-btn {
        display: block !important;
    }
}


/* --- Sidebar Minimized & Notification Panel Styles --- */
.app-sidebar {
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.app-main-content {
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-sidebar.minimized {
    width: 70px;
    padding: 30px 0;
    align-items: center;
}
.app-sidebar.minimized ~ .app-main-content {
    margin-left: 70px;
    width: calc(100% - 70px);
}

/* Hide text elements in minimized sidebar */
.app-sidebar.minimized .logo-text,
.app-sidebar.minimized .sidebar-search,
.app-sidebar.minimized .sidebar-search input,
.app-sidebar.minimized .sidebar-search .search-shortcut,
.app-sidebar.minimized .sidebar-nav-item span,
.app-sidebar.minimized .sidebar-project-section,
.app-sidebar.minimized .sidebar-agent-section,
.app-sidebar.minimized .sidebar-user-card .sidebar-user-details,
.app-sidebar.minimized .sidebar-user-card div[style*="font-size: 11px;"],
.app-sidebar.minimized .sidebar-logo span,
.app-sidebar.minimized .sidebar-logo font {
    display: none !important;
}

/* Adjust sidebar logo when minimized */
.app-sidebar.minimized .sidebar-logo {
    justify-content: center;
    margin-bottom: 0 !important;
    width: auto;
}

/* Adjust header row layout when minimized */
.app-sidebar.minimized .sidebar-header-row {
    flex-direction: column !important;
    gap: 15px !important;
    align-items: center !important;
    margin-bottom: 20px !important;
    width: 100%;
}

/* Adjust top actions row layout when minimized */
.app-sidebar.minimized .sidebar-top-actions {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    align-items: center;
    margin-top: 15px;
}

/* Adjust navigation list and items when minimized */
.app-sidebar.minimized .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    width: 100%;
    margin-top: 15px !important;
}

.app-sidebar.minimized .sidebar-nav-item {
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    margin: 0 auto;
}
.app-sidebar.minimized .sidebar-nav-item i {
    font-size: 18px;
    margin-right: 0 !important;
    margin: 0 !important;
}

/* Adjust logout button when minimized */
.app-sidebar.minimized a[href="/logout"] {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border-top: none !important;
    margin-top: 15px !important;
}

/* Adjust user profile card when minimized */
.app-sidebar.minimized .sidebar-user-card {
    padding: 0;
    border: none;
    background: none;
    margin-top: auto;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.app-sidebar.minimized .sidebar-profile-info {
    justify-content: center;
}
    justify-content: center;
}
.app-sidebar.minimized .sidebar-avatar {
    width: 40px;
    height: 40px;
    font-size: 16px;
    margin: 0;
}

/* Notification Panel overlay */
.notification-panel {
    position: fixed;
    left: 260px;
    top: 0;
    bottom: 0;
    width: 360px;
    background: #ffffff;
    border-right: 1px solid var(--border-color);
    box-shadow: 10px 0 30px rgba(15, 43, 92, 0.08);
    z-index: 99;
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.app-sidebar.minimized ~ .notification-panel {
    left: 70px;
}

.notification-panel.show-panel {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

/* Notification item styling */
.notif-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transition: background 0.2s;
    text-decoration: none;
    color: var(--secondary-color);
}
.notif-item:hover {
    background: rgba(15, 43, 92, 0.02);
}
.notif-item.unread {
    background: rgba(37, 99, 235, 0.03);
}
.notif-item.unread:hover {
    background: rgba(37, 99, 235, 0.05);
}

.notif-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.notif-icon.info { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.notif-icon.success { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.notif-icon.warning { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.notif-icon.danger { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

.notif-dot {
    width: 6px;
    height: 6px;
    background: #3b82f6;
    border-radius: 50%;
    margin-left: auto;
    margin-top: 6px;
    flex-shrink: 0;
}

