/* In app/static/css/theme.css */

/* ============================================
   QUERY BUILDER STYLES
   ============================================ */
.query-group {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    background: var(--bg-soft);
    margin-bottom: 1rem;
}

.query-condition-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.75rem;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}

.query-condition-row:hover {
    border-color: var(--accent);
}

.query-group-row {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    background: var(--bg-soft);
    margin: 0.5rem 0;
}

.saved-search-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-soft);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.saved-search-chip:hover {
    background: var(--bg);
    border-color: var(--accent);
}

.saved-search-chip button {
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    font-size: 1.2em;
}

.saved-search-chip .btn-link {
    color: var(--accent);
    text-decoration: underline;
}

.saved-search-chip .btn-link:hover {
    color: var(--accent-2);
}

/* ==============================================================================
   COMPREHENSIVE THEME SYSTEM - MULTIPLE COLOR PALETTES
   ============================================================================== */

/* === DEFAULT THEME: DARK (Original) === */
:root,
:root[data-theme="dark"] {
    /* === SEMANTIC COLOR SYSTEM === */
    --primary: #8dd0ff;
    --primary-hover: #6bb8ff;
    --primary-light: #b3dfff;
    --primary-dark: #4a9eff;
    --primary-rgb: 141, 208, 255;
    
    --secondary: #7b61ff;
    --secondary-hover: #5a42ff;
    --secondary-light: #9b83ff;
    --secondary-dark: #3d21ff;
    --secondary-rgb: 123, 97, 255;
    
    --success: #22c55e;
    --success-hover: #16a34a;
    --success-light: #4ade80;
    --success-dark: #15803d;
    --success-rgb: 34, 197, 94;
    
    --warning: #f59e0b;
    --warning-hover: #d97706;
    --warning-light: #fbbf24;
    --warning-dark: #b45309;
    --warning-rgb: 245, 158, 11;
    
    --danger: #f43f5e;
    --danger-hover: #dc2626;
    --danger-light: #f87171;
    --danger-dark: #b91c1c;
    --danger-rgb: 244, 63, 94;
    
    --info: #3b82f6;
    --info-hover: #2563eb;
    --info-light: #60a5fa;
    --info-dark: #1d4ed8;
    --info-rgb: 59, 130, 246;
    
    /* === SURFACE COLORS === */
    --surface-primary: #0b1220;
    --surface-secondary: #0f172a;
    --surface-tertiary: #1e293b;
    --surface-elevated: #334155;
    
    /* === TEXT COLORS === */
    --text-primary: #e6edf6;
    --text-secondary: #d1d9e8;
    --text-tertiary: #a6b0c2;
    --text-inverse: #0b1220;
    --text-rgb: 230, 237, 246;
    
    /* === BORDER & DIVIDER COLORS === */
    --border-primary: #233044;
    --border-secondary: #334155;
    --border-light: #475569;
    --divider: #334155;
    
    /* === BACKGROUND COLORS === */
    --bg-primary: #0b1220;
    --bg-secondary: #0f172a;
    --bg-tertiary: #1e293b;
    --bg-overlay: rgba(11, 18, 32, 0.8);
    
    /* === SHADOW & OVERLAY === */
    --shadow-sm: rgba(0, 0, 0, 0.4);
    --shadow-md: rgba(0, 0, 0, 0.5);
    --shadow-lg: rgba(0, 0, 0, 0.6);
    --overlay-light: rgba(255, 255, 255, 0.05);
    --overlay-medium: rgba(255, 255, 255, 0.1);
    --overlay-dark: rgba(0, 0, 0, 0.95);
    
    /* === LEGACY VARIABLES (for backward compatibility) === */
    --bg: var(--bg-primary);
    --bg-soft: var(--surface-secondary);
    --text: var(--text-primary);
    --muted: var(--text-secondary);
    --accent: var(--primary);
    --accent-2: var(--secondary);
    --accent-2-rgb: var(--secondary-rgb);
    --border: var(--border-primary);
    --radius: 14px;
}

/* === LIGHT THEME === */
:root[data-theme="light"] {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-dark: #1e40af;
    --primary-rgb: 37, 99, 235;
    
    --secondary: #7c3aed;
    --secondary-hover: #6d28d9;
    --secondary-light: #8b5cf6;
    --secondary-dark: #5b21b6;
    --secondary-rgb: 124, 58, 237;
    
    --success: #16a34a;
    --success-hover: #15803d;
    --success-light: #22c55e;
    --success-dark: #166534;
    --success-rgb: 22, 163, 74;
    
    --warning: #d97706;
    --warning-hover: #b45309;
    --warning-light: #f59e0b;
    --warning-dark: #92400e;
    --warning-rgb: 217, 119, 6;
    
    --danger: #dc2626;
    --danger-hover: #b91c1c;
    --danger-light: #ef4444;
    --danger-dark: #991b1b;
    --danger-rgb: 220, 38, 38;
    
    --info: #0284c7;
    --info-hover: #0369a1;
    --info-light: #0ea5e9;
    --info-dark: #075985;
    --info-rgb: 2, 132, 199;
    
    --surface-primary: #ffffff;
    --surface-secondary: #f8f9fa;
    --surface-tertiary: #e9ecef;
    --surface-elevated: #dee2e6;
    
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --text-inverse: #ffffff;
    --text-rgb: 30, 41, 59;
    
    --border-primary: #e2e8f0;
    --border-secondary: #cbd5e1;
    --border-light: #94a3b8;
    --divider: #cbd5e1;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f5f9;
    --bg-overlay: rgba(255, 255, 255, 0.9);
    
    --shadow-sm: rgba(0, 0, 0, 0.1);
    --shadow-md: rgba(0, 0, 0, 0.15);
    --shadow-lg: rgba(0, 0, 0, 0.2);
    --overlay-light: rgba(0, 0, 0, 0.03);
    --overlay-medium: rgba(0, 0, 0, 0.06);
    --overlay-dark: rgba(0, 0, 0, 0.85);
}

/* === CURSOR DARK+ THEME === */
:root[data-theme="cursor-dark"] {
    --primary: #4a9eff;
    --primary-hover: #6bb8ff;
    --primary-light: #7bb8ff;
    --primary-dark: #2e7cd6;
    --primary-rgb: 74, 158, 255;
    
    --secondary: #9d7af7;
    --secondary-hover: #b39df7;
    --secondary-light: #c5b3f7;
    --secondary-dark: #7c5af7;
    --secondary-rgb: 157, 122, 247;
    
    --success: #4ec9b0;
    --success-hover: #6dd4c1;
    --success-light: #8de0d2;
    --success-dark: #2eb399;
    --success-rgb: 78, 201, 176;
    
    --warning: #dcdcaa;
    --warning-hover: #e8e8c4;
    --warning-light: #f4f4de;
    --warning-dark: #d0d090;
    --warning-rgb: 220, 220, 170;
    
    --danger: #f48771;
    --danger-hover: #f7a08f;
    --danger-light: #fab9ad;
    --danger-dark: #f16e54;
    --danger-rgb: 244, 135, 113;
    
    --info: #569cd6;
    --info-hover: #73b3e6;
    --info-light: #90c9f6;
    --info-dark: #3985c6;
    --info-rgb: 86, 156, 214;
    
    --surface-primary: #1e1e1e;
    --surface-secondary: #252526;
    --surface-tertiary: #2d2d30;
    --surface-elevated: #3e3e42;
    
    --text-primary: #d4d4d4;
    --text-secondary: #cccccc;
    --text-tertiary: #858585;
    --text-inverse: #1e1e1e;
    --text-rgb: 212, 212, 212;
    
    --border-primary: #3e3e42;
    --border-secondary: #454545;
    --border-light: #5a5a5a;
    --divider: #454545;
    
    --bg-primary: #1e1e1e;
    --bg-secondary: #252526;
    --bg-tertiary: #2d2d30;
    --bg-overlay: rgba(30, 30, 30, 0.85);
    
    --shadow-sm: rgba(0, 0, 0, 0.5);
    --shadow-md: rgba(0, 0, 0, 0.6);
    --shadow-lg: rgba(0, 0, 0, 0.7);
    --overlay-light: rgba(255, 255, 255, 0.06);
    --overlay-medium: rgba(255, 255, 255, 0.1);
    --overlay-dark: rgba(0, 0, 0, 0.92);
}

/* === CURSOR LIGHT+ THEME === */
:root[data-theme="cursor-light"] {
    --primary: #0451a5;
    --primary-hover: #0369a1;
    --primary-light: #0284c7;
    --primary-dark: #023d7a;
    --primary-rgb: 4, 81, 165;
    
    --secondary: #811f3f;
    --secondary-hover: #a62850;
    --secondary-light: #cb3161;
    --secondary-dark: #5d152e;
    --secondary-rgb: 129, 31, 63;
    
    --success: #098658;
    --success-hover: #0a9b5f;
    --success-light: #0cb066;
    --success-dark: #077145;
    --success-rgb: 9, 134, 88;
    
    --warning: #b89500;
    --warning-hover: #d4af00;
    --warning-light: #f0c900;
    --warning-dark: #9c7b00;
    --warning-rgb: 184, 149, 0;
    
    --danger: #a1260d;
    --danger-hover: #c22f10;
    --danger-light: #e33813;
    --danger-dark: #801d0a;
    --danger-rgb: 161, 38, 13;
    
    --info: #0451a5;
    --info-hover: #0369a1;
    --info-light: #0284c7;
    --info-dark: #023d7a;
    --info-rgb: 4, 81, 165;
    
    --surface-primary: #ffffff;
    --surface-secondary: #f8f8f8;
    --surface-tertiary: #f0f0f0;
    --surface-elevated: #e8e8e8;
    
    --text-primary: #000000;
    --text-secondary: #333333;
    --text-tertiary: #666666;
    --text-inverse: #ffffff;
    --text-rgb: 0, 0, 0;
    
    --border-primary: #e1e4e8;
    --border-secondary: #d1d5da;
    --border-light: #c1c7cd;
    --divider: #d1d5da;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8f8f8;
    --bg-tertiary: #f0f0f0;
    --bg-overlay: rgba(255, 255, 255, 0.95);
    
    --shadow-sm: rgba(0, 0, 0, 0.08);
    --shadow-md: rgba(0, 0, 0, 0.12);
    --shadow-lg: rgba(0, 0, 0, 0.16);
    --overlay-light: rgba(0, 0, 0, 0.02);
    --overlay-medium: rgba(0, 0, 0, 0.05);
    --overlay-dark: rgba(0, 0, 0, 0.75);
}

/* === SOLARIZED LIGHT THEME === */
:root[data-theme="solarized-light"] {
    --primary: #268bd2;
    --primary-hover: #2077b3;
    --primary-light: #3fa0e0;
    --primary-dark: #1e6fa5;
    --primary-rgb: 38, 139, 210;
    
    --secondary: #6c71c4;
    --secondary-hover: #5f64b3;
    --secondary-light: #7f85d5;
    --secondary-dark: #595ea2;
    --secondary-rgb: 108, 113, 196;
    
    --success: #859900;
    --success-hover: #738000;
    --success-light: #97b300;
    --success-dark: #616b00;
    --success-rgb: 133, 153, 0;
    
    --warning: #b58900;
    --warning-hover: #997500;
    --warning-light: #d1a000;
    --warning-dark: #7a5d00;
    --warning-rgb: 181, 137, 0;
    
    --danger: #dc322f;
    --danger-hover: #c02b28;
    --danger-light: #e8413e;
    --danger-dark: #b0211f;
    --danger-rgb: 220, 50, 47;
    
    --info: #2aa198;
    --info-hover: #248b83;
    --info-light: #3cb7ad;
    --info-dark: #1f736d;
    --info-rgb: 42, 161, 152;
    
    --surface-primary: #fdf6e3;
    --surface-secondary: #eee8d5;
    --surface-tertiary: #e6dfcc;
    --surface-elevated: #ddd6c3;
    
    --text-primary: #657b83;
    --text-secondary: #586e75;
    --text-tertiary: #93a1a1;
    --text-inverse: #fdf6e3;
    --text-rgb: 101, 123, 131;
    
    --border-primary: #eee8d5;
    --border-secondary: #e6dfcc;
    --border-light: #ddd6c3;
    --divider: #e6dfcc;
    
    --bg-primary: #fdf6e3;
    --bg-secondary: #eee8d5;
    --bg-tertiary: #e6dfcc;
    --bg-overlay: rgba(253, 246, 227, 0.95);
    
    --shadow-sm: rgba(0, 43, 54, 0.1);
    --shadow-md: rgba(0, 43, 54, 0.15);
    --shadow-lg: rgba(0, 43, 54, 0.2);
    --overlay-light: rgba(0, 43, 54, 0.03);
    --overlay-medium: rgba(0, 43, 54, 0.06);
    --overlay-dark: rgba(0, 43, 54, 0.85);
}

/* UNIVERSAL FONT RULE */
* {
    font-family: 'Poppins', 'Google Sans', system-ui, -apple-system, sans-serif;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
    min-height: 100vh;
}

h1,
h2,
h3 {
    font-weight: 600;
    color: var(--text);
}

h1 {
    font-size: clamp(1.5rem, 4vw, 2.0rem);
}

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

/* ============================================
   AUTOCOMPLETE STYLES
   ============================================ */
.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-top: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 8px 24px var(--shadow-sm);
}

.autocomplete-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border-secondary);
    transition: background 0.15s;
}

.autocomplete-item:hover {
    background: rgba(var(--primary-rgb), 0.1);
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-add-new {
    color: var(--accent);
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    background: rgba(141, 208, 255, 0.05);
}

.autocomplete-add-new:hover {
    background: rgba(141, 208, 255, 0.15);
}

.autocomplete-separator {
    height: 1px;
    background: var(--border);
    margin: 0.25rem 0;
}

/* ============================================
   GLOBAL SEARCH STYLES
   ============================================ */
.global-search-container {
    position: relative;
    flex: 0 1 auto;
    /* Allow auto sizing */
    margin: 0 1rem;
}

.global-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.global-search-input-wrapper .search-icon {
    position: absolute;
    left: 1rem;
    color: var(--muted);
    pointer-events: none;
}

#globalSearch {
    width: 280px;
    /* Increased from 200px to prevent squashing */
    padding: 0.65rem 3.5rem 0.65rem 2.75rem;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text) !important;
    font-size: 0.9rem;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s, box-shadow 0.2s;
    /* Smooth expansion */
}

/* Ensure search input placeholder is visible */
#globalSearch::placeholder {
    color: var(--muted) !important;
    opacity: 1 !important;
}

#globalSearch:focus {
    width: 500px;
    /* Expanded width */
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(141, 208, 255, 0.1);
}

.search-shortcut {
    position: absolute;
    right: 1rem;
    padding: 0.2rem 0.5rem;
    background: var(--overlay-light);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--muted);
    font-family: monospace;
    pointer-events: none;
}

.global-search-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-height: 500px;
    overflow-y: auto;
    z-index: 2000;
    box-shadow: 0 12px 40px var(--shadow-md);
}

.search-category {
    padding: 0.75rem 1rem 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--muted);
    letter-spacing: 0.05em;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border-secondary);
    transition: background 0.15s;
}

.search-result-item:hover {
    background: rgba(var(--primary-rgb), 0.1);
}

.search-result-icon {
    font-size: 1.25rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--overlay-light);
    border-radius: 8px;
    flex-shrink: 0;
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-subtitle {
    font-size: 0.8rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-type {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    background: rgba(141, 208, 255, 0.15);
    color: var(--accent);
    border-radius: 4px;
    white-space: nowrap;
}

.search-empty {
    padding: 2rem;
    text-align: center;
    color: var(--text); /* Changed from muted to text for better visibility */
}

@media (max-width: 1024px) {
    .global-search-container {
        display: none;
        /* Hide on smaller screens */
    }
}

/* ============================================
   CONFIRM/SAVE BUTTON STYLING (Reusable)
   ============================================ */
.btn-confirm {
    position: relative;
    background: linear-gradient(135deg, #66BB6A, #43A047);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(67, 160, 71, 0.3);
    overflow: hidden;
}

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

.btn-confirm:hover::before {
    left: 100%;
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 160, 71, 0.4);
}

.btn-confirm:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(67, 160, 71, 0.3);
}

.btn-confirm:disabled {
    background: linear-gradient(135deg, #9E9E9E, #757575);
    cursor: not-allowed;
    box-shadow: none;
}

/* Warning/Danger Confirm Button */
.btn-confirm-danger {
    background: linear-gradient(135deg, #EF5350, #E53935);
    box-shadow: 0 4px 15px rgba(239, 83, 80, 0.3);
}

.btn-confirm-danger:hover {
    box-shadow: 0 6px 20px rgba(239, 83, 80, 0.4);
}

/* ============================================
   STICKY SAVE FOOTER (Reusable)
   ============================================ */
.save-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    padding: 1rem 2rem;
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.save-footer.show {
    opacity: 1;
    transform: translateY(0);
}

.save-footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.save-footer-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.save-icon {
    font-size: 1.5rem;
}

.save-footer-actions {
    display: flex;
    gap: 1rem;
}

@media (max-width: 768px) {
    .save-footer-content {
        flex-direction: column;
        gap: 1rem;
    }
}

.avatar-choice img {
    display: block;
    width: 48px;
    /* Set a fixed, smaller size */
    height: 48px;
    /* Set a fixed, smaller size */
    border-radius: 50%;
}


.card {
    background-color: var(--bg-soft);
    border: none;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}


.form-group {
    margin-bottom: 1.25rem;
}


/* --- Form & Button Styles --- */
.form-control:not(select) {
    width: 100% !important;
    padding: 12px !important;
    background-color: var(--bg-soft) !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
    color: var(--text) !important;
    font-size: 1rem !important;
}

/* Ensure all input text is visible */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="search"],
input[type="url"],
textarea,
select {
    color: var(--text) !important;
}

/* Placeholder text styling - make it more visible */
.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: var(--muted) !important;
    opacity: 1 !important;
}

.form-control:-ms-input-placeholder,
input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
    color: var(--muted) !important;
}

.form-control::-ms-input-placeholder,
input::-ms-input-placeholder,
textarea::-ms-input-placeholder {
    color: var(--muted) !important;
}

/* Form labels - ensure they're visible */
.form-group label,
label {
    color: var(--text) !important;
    font-weight: 500 !important;
}

/* Ensure all text elements have good contrast */
p, span, div, td, th, li {
    color: inherit; /* Inherit from parent, but ensure parents have good colors */
}

.form-control:not(select):focus {
    outline: none !important;
    border-color: var(--accent-2) !important;
    box-shadow: 0 0 0 3px rgba(123, 97, 255, .2) !important;
}

.btn {
    padding: 12px 18px !important;
    border-radius: 12px !important;
    border: 1px solid transparent !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: background-color 0.2s, transform 0.2s !important;
    color: var(--text) !important;
    background: var(--bg-soft);
}

.btn:hover {
    transform: translateY(-1px);
}

/* CORRECTED Primary button style to match the secondary look */
.btn-primary {
    background: rgba(255, 255, 255, .06) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
    font-weight: 500 !important;
}

.btn-primary:hover {
    background: rgba(255, 255, 255, .1) !important;
}


/* --- Sidebar & Layout --- */
.page-wrapper {
    display: flex;
}

.sidebar {
    width: 260px;
    height: 100vh;
    background-color: var(--bg-soft);
    position: fixed;
    top: 0;
    left: 0;
    transition: width 0.3s ease, transform 0.3s ease;
    border-right: 1px solid var(--border);
    z-index: 1000;
}

/* Desktop sidebar states */
.sidebar.sidebar-minimized {
    width: 0;
    padding: 0;
    overflow: hidden;
    border-right: none;
}

/* Sticky Footer Layout */
.main-content {
    flex-grow: 1;
    margin-left: 260px;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 0;
    transition: margin-left 0.3s ease;
}

.content-body {
    flex-grow: 1;
    padding: 1rem 2rem;
}

/* When sidebar is minimized, remove left margin completely */
.sidebar.sidebar-minimized+.main-content {
    margin-left: 0;
}


/* --- Header & Toggle Button --- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 1001;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-logo img {
    height: 56px;
    display: block;
}

#sidebar-toggle {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    width: 20px;
    height: 20px;
    min-width: 20px;
    opacity: 0.5;
    flex-shrink: 0;
    position: fixed;
    left: 245px;
    top: 0.75rem;
    z-index: 1002;
}

#sidebar-toggle:hover {
    opacity: 1;
}

#sidebar-toggle:active {
    opacity: 0.8;
}

#sidebar-toggle svg {
    width: 14px;
    height: 14px;
    transition: all 0.2s ease;
}

#sidebar-toggle svg rect,
#sidebar-toggle svg path {
    fill: #ffffff;
    stroke: #ffffff;
}

/* Adjust button position when sidebar is minimized */
.sidebar.sidebar-minimized ~ .main-content #sidebar-toggle {
    left: 0.5rem;
}

#sidebar-toggle .icon-close svg {
    animation: rotateIn 0.3s ease-out;
}

@keyframes rotateIn {
    from {
        transform: rotate(-90deg) scale(0.8);
        opacity: 0;
    }

    to {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
}

#sidebar-toggle .menu-text {
    display: none;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-right: 1rem;
    /* Adds space from the right edge */
}

/* World Clock Styles */
.world-clock-container {
    position: relative;
    display: flex;
    align-items: center;
}

.world-clock {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    background: var(--overlay-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
    height: 54px;
}

#assistant-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: var(--overlay-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 54px;
    /* Match approximate height of world clock */
    width: 54px;
    position: relative;
}

#assistant-icon:hover {
    background: var(--overlay-medium);
    border-color: var(--accent);
    color: var(--accent);
}

.world-clock:hover {
    background: var(--overlay-medium);
    border-color: var(--accent);
}

.world-clock #clockTime {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
    line-height: 1;
}

.world-clock #clockLocation {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1;
    margin-top: 0.25rem;
}

.world-clock-tooltip {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    min-width: 250px;
    max-width: 300px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    pointer-events: none;
}

.world-clock-container:hover .world-clock-tooltip,
.world-clock-tooltip:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.currency-tooltip {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    min-width: 250px;
    max-width: 300px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    pointer-events: none;
}

.currency-widget-container:hover .currency-tooltip,
.currency-tooltip:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.tooltip-header {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.notification-header h4 {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tooltip-header {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.tooltip-time-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--border-secondary);
    white-space: nowrap;
    min-height: 1.2rem;
}

.tooltip-time-item:last-child {
    border-bottom: none;
}

.tooltip-time-location {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
    min-width: 0;
}

.tooltip-time-display {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.tooltip-time-date {
    font-size: 0.7rem;
    color: var(--muted);
    margin-left: 0.5rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.tooltip-footer {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.tooltip-settings-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(141, 208, 255, 0.3);
    border-radius: 8px;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tooltip-settings-link:hover {
    background: rgba(141, 208, 255, 0.2);
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(141, 208, 255, 0.3);
    color: var(--text);
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 10px;
    transition: background-color 0.2s;
    color: var(--text);
    font-weight: 500;
}

.user-menu-item:hover {
    background-color: rgba(255, 255, 255, .06);
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* --- Menu Navigation --- */
.menu-nav {
    padding-top: 10px;
}

.menu-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-nav button,
.menu-nav a {
    color: var(--muted);
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 14px 28px;
    width: 100%;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s;
}

.menu-nav button {
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
}

.menu-nav a:hover,
.menu-nav button:hover {
    background: rgba(255, 255, 255, .06);
    color: var(--text);
}

.menu-category-toggle {
    justify-content: space-between;
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    background-color: rgba(0, 0, 0, .2);
}

.submenu.open {
    max-height: 500px;
}

.submenu a {
    padding-left: 50px;
}

.arrow {
    transition: transform 0.3s;
    font-size: 0.6rem;
}

.menu-category-toggle.active .arrow {
    transform: rotate(90deg);
}

/* --- Component Styles --- */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.invite-form {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 1rem;
    align-items: center;
}

.create-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
}

.admin-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.user-list,
.org-list,
.team-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.user-card,
.org-card,
.team-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: var(--bg-soft);
    border: none;
    border-radius: 12px;
    transition: background-color 0.2s;
}

.user-card:hover,
.org-card:hover,
.team-card:hover {
    background-color: rgba(255, 255, 255, .04);
}

.user-info,
.org-info,
.team-info {
    display: flex;
    flex-direction: column;
}

.user-email,
.org-name,
.team-name {
    font-weight: 500;
    color: var(--text);
}

.user-meta,
.org-meta,
.team-meta {
    font-size: 0.85rem;
    color: var(--muted);
}

.user-actions,
.org-actions,
.team-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
    border-radius: 8px !important;
}

.btn-secondary {
    background: rgba(255, 255, 255, .04) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
}

.btn-danger {
    background-color: var(--danger) !important;
    color: #fff !important;
    border: none !important;
}

/* Auth page card remains styled for focus */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    background-color: var(--bg-soft);
    border-radius: var(--radius);
}

.auth-card h1 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.btn-full-width {
    width: 100%;
    padding-top: 14px;
    padding-bottom: 14px;
    margin-top: 0.5rem;
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-links a {
    color: var(--muted);
    font-size: 0.9rem;
}

/* Footer */
.main-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.footer-logo:hover {
    opacity: 1;
}

.footer-logo img {
    height: 20px;
}

/* Drag & Drop and Spinner Styles */
#upload-form-container.hidden {
    display: none;
}

.drop-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.drop-zone.drag-over {
    border-color: var(--success);
    background-color: rgba(34, 197, 94, .1);
    border-style: solid;
    border-width: 2px;
}

.drop-zone-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--muted);
    font-weight: 500;
}

.drop-zone-icon {
    width: 48px;
    height: 48px;
    color: var(--accent);
}

.drop-zone-input {
    display: none;
}

.status-container {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
}

.status-container.visible {
    display: flex;
}

.spinner-svg {
    width: 64px;
    height: 64px;
    animation: spin 1.5s linear infinite;
}

.spinner-track {
    fill: none;
    stroke: var(--border);
    stroke-width: 8px;
}

.spinner-head {
    fill: none;
    stroke: url(#spinner-gradient);
    stroke-width: 8px;
    stroke-linecap: round;
    stroke-dasharray: 200;
    stroke-dashoffset: 80;
}

.spinner-text,
.status-text {
    margin-top: 1rem;
    color: var(--muted);
    font-weight: 500;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.success-tick-svg {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #fff;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #4bb71b;
    animation: success-fill .4s ease-in-out .4s forwards, success-scale .3s ease-in-out .9s both;
}

.success-tick-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #4bb71b;
    fill: none;
    animation: success-stroke .6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-tick-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: success-stroke .3s cubic-bezier(0.65, 0, 0.45, 1) .8s forwards;
}

@keyframes success-stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes success-scale {

    0%,
    100% {
        transform: none;
    }

    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes success-fill {
    100% {
        box-shadow: inset 0px 0px 0px 32px #4bb71b;
    }
}

/* --- Mobile View --- */
/* Old mobile styles - merged into comprehensive section below */

/* --- User Menu Email Display Styles --- */
.user-menu-item .email-alias {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1;
}

.user-menu-item .email-domain {
    display: block;
    font-size: 0.8rem;
    line-height: 1;
    color: var(--muted);
}


/* --- Avatar Selection Styles --- */
.avatar-selection {
    margin-bottom: 2rem;
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    max-width: 400px;
    /* Limit the width of the grid */
}

.avatar-choice {
    padding: 0;
    border: 3px solid transparent;
    background-color: transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: border-color 0.2s;
    overflow: hidden;
}

.avatar-choice img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 50%;
}

.avatar-choice:hover {
    border-color: var(--muted);
}

.avatar-choice.selected {
    border-color: var(--accent-2);
}

.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}


/* --- Custom Checkbox Styles --- */

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
    max-height: 250px;
    overflow-y: auto;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.checkbox-item:hover {
    background-color: rgba(255, 255, 255, .04);
}

.checkbox-item input[type="checkbox"] {
    display: none;
    /* Hide the default checkbox */
}

.checkbox-custom {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: var(--bg);
    border: 2px solid var(--border);
    border-radius: 4px;
    transition: all 0.2s;
    position: relative;
}

.checkbox-item input[type="checkbox"]:checked+.checkbox-custom {
    background-color: var(--accent-2);
    border-color: var(--accent-2);
}

/* Create the checkmark using a pseudo-element */
.checkbox-custom::after {
    content: '';
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid var(--bg);
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.checkbox-item input[type="checkbox"]:checked+.checkbox-custom::after {
    display: block;
}

.checkbox-label {
    font-weight: 500;
}

/* Add these styles to the end of the file */
.user-meta .meta-title {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 400;
}

.user-meta strong {
    color: var(--text);
    font-weight: 500;
}

.user-card.cancellation-request {
    border-left: 4px solid var(--danger);
}

/* --- GOD MODE INDICATOR --- */
.main-header {
    justify-content: space-between;
}

.god-mode-indicator {
    font-weight: 700;
    /* bold */
    color: var(--danger);
    /* theme's red color */
    display: flex;
    align-items: center;
    animation: godModePulse 2.5s infinite;
}

@keyframes godModePulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

/* --- Header Logo Styling --- */
.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    /* Controls space between logos */
}

.header-org-logo {
    height: 50px;
    /* Matches the height of the main SaaSyn logo */
    width: auto;
    max-width: 150px;
}

/* --- Custom FullCalendar Styling --- */
/* Style for selectable days on hover */
.fc-daygrid-day:not(.fc-day-other):hover {
    background-color: rgba(var(--accent-rgb), 0.1);
    cursor: pointer;
}

/* Style for a fully selected day */
.fc-daygrid-day.date-selected {
    background-color: rgba(var(--accent-rgb), 0.4);
}

/* Style for a half-day AM selection */
.fc-daygrid-day.date-selected-am {
    background: linear-gradient(to bottom, rgba(var(--accent-rgb), 0.4) 50%, transparent 50%);
}

/* Style for a half-day PM selection */
.fc-daygrid-day.date-selected-pm {
    background: linear-gradient(to top, rgba(var(--accent-rgb), 0.4) 50%, transparent 50%);
}

/* --- System Status Footer --- */
.main-footer {
    justify-content: space-between;
    align-items: center;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.875rem;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-indicator.green {
    background-color: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.status-indicator.amber {
    background-color: var(--warning);
    box-shadow: 0 0 8px var(--warning);
}

.status-indicator.red {
    background-color: var(--danger);
    box-shadow: 0 0 8px var(--danger);
}

@keyframes pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(0.9);
        opacity: 0.7;
    }
}

/* --- CRM Table, Form, and Pagination Styling --- */

/* Generic Data Table for CRM Lists */
.data-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}


.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    white-space: nowrap;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}
.data-table th:last-child,
.data-table td:last-child {
    border-right: none;
}

.data-table tbody tr {
    border-bottom: 1px solid var(--border);
}


.data-table th {
    font-weight: 600;
    color: var(--muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}
.data-table th:last-child {
    border-right: none;
}

.data-table tbody tr:hover {
    background-color: var(--bg);
    /* Use main bg for a subtle hover on light theme */
}

/* Pagination Controls */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    color: var(--muted);
    background-color: var(--bg-soft);
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
    border-top: 1px solid var(--border);
    /* Add this line */
}

/* 2-Column Form Grid for Add/Edit pages */
.form-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-actions {
    margin-top: 1.5rem;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    display: flex;
    justify-content: flex-end;
}

/* --- Clickable Table Row Style --- */
.data-table tbody tr[data-href]:hover {
    cursor: pointer;
    background-color: rgba(var(--accent-rgb), 0.05) !important;
}

/* --- CRM Status Badges --- */
.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.status-active {
    color: var(--success);
    background-color: rgba(22, 163, 74, 0.1);
    border: 1px solid var(--success);
}

.status-badge.status-prospecting {
    color: var(--warning);
    background-color: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--warning);
}

.status-badge.status-inactive {
    color: var(--muted);
    background-color: rgba(128, 128, 128, 0.1);
    border: 1px solid var(--muted);
}

/* Other new styles */
.card-meta-info {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 2rem;
}

.danger-zone {
    border-color: var(--danger);
}

.danger-zone-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.danger-zone-item p {
    margin: 0.25rem 0 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

/* --- CRM Rating Badges --- */
.status-badge.status-hot {
    color: var(--danger);
    background-color: rgba(var(--danger-rgb), 0.1);
    border: 1px solid var(--danger);
}

.status-badge.status-warm {
    color: var(--warning);
    background-color: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--warning);
}

.status-badge.status-tepid {
    color: var(--accent);
    background-color: rgba(var(--accent-rgb), 0.1);
    border: 1px solid var(--accent);
}

.status-badge.status-cold {
    color: #3b82f6;
    /* A standard blue */
    background-color: rgba(59, 130, 246, 0.1);
    border: 1px solid #3b82f6;
}

.status-badge.status-stale {
    color: var(--muted);
    background-color: rgba(128, 128, 128, 0.1);
    border: 1px solid var(--muted);
}

/* Next Meeting Header Display */
.next-meeting-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 1rem;
    /* Adjust padding for height alignment */
    background: var(--overlay-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text);
    margin-right: 0;
    transition: all 0.2s ease;
    white-space: nowrap;
    max-width: 400px;
    overflow: visible;
    position: relative;
    cursor: pointer;
    height: 54px;
    /* Match World Clock height */
}

.next-meeting-pill:hover {
    background: var(--overlay-medium);
    border-color: var(--accent);
}

.next-meeting-pill .meeting-label {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.next-meeting-pill .meeting-time {
    font-weight: 600;
    color: var(--accent);
    font-size: 0.95rem;
}

.next-meeting-pill .meeting-separator {
    color: var(--muted);
    opacity: 0.5;
}

.next-meeting-pill .meeting-title {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.next-meeting-pill.happening-now {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
    animation: pulse-border-violet 2s infinite;
}

@keyframes pulse-border-violet {
    0% {
        border-color: #8b5cf6;
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4);
    }

    70% {
        border-color: #8b5cf6;
        box-shadow: 0 0 0 4px rgba(139, 92, 246, 0);
    }

    100% {
        border-color: #8b5cf6;
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
    }
}

/* Next Meeting Tooltip (Card Style) */
.next-meeting-tooltip {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--bg-secondary);
    /* Dark background */
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    min-width: 320px;
    box-shadow: 0 10px 30px var(--shadow-md);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.next-meeting-pill:hover .next-meeting-tooltip,
.next-meeting-tooltip:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.next-meeting-tooltip .tooltip-header {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.next-meeting-tooltip .tooltip-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    line-height: 1.4;
}

.next-meeting-tooltip .tooltip-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.next-meeting-tooltip .meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.next-meeting-tooltip .meta-icon {
    color: #f97316;
    width: 16px;
    text-align: center;
}

.next-meeting-tooltip .tooltip-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 6px 12px;
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    border-radius: 6px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.2s;
}

.next-meeting-tooltip .tooltip-link:hover {
    background: rgba(139, 92, 246, 0.2);
}

.status-badge.status-dnc {
    color: var(--text);
    background-color: var(--border);
    border: 1px solid var(--text);
}

/* --- Intl-Tel-Input Form Fix --- */
.form-group .iti {
    width: 100%;
    display: block;
}

/* Add left padding to the input to make space for the flag dropdown */
.iti .form-control {
    padding-left: 95px !important;
}

/* --- New Auth Page Styles --- */
.auth-split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.auth-split-column {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-branding-column {
    background-color: var(--bg-soft);
}

.branding-content {
    text-align: center;
    max-width: 400px;
}

.auth-logo {
    height: 60px;
    margin-bottom: 2rem;
}

.branding-content h1 {
    font-size: 1.8rem;
    color: var(--text);
    margin-bottom: 1rem;
}

.branding-content p {
    color: var(--muted);
    font-size: 1.1rem;
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    fill: var(--muted);
}

.input-with-icon .form-control {
    padding-left: 45px !important;
}

.password-toggle-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.password-toggle-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--muted);
}

@media (max-width: 800px) {
    .auth-split-layout {
        grid-template-columns: 1fr;
    }

    .auth-branding-column {
        display: none;
        /* Hide the branding column on smaller screens */
    }
}

/* --- Failure Cross Animation --- */
.failure-cross-svg {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #fff;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px var(--danger);
    animation: failure-fill .4s ease-in-out .4s forwards, success-scale .3s ease-in-out .9s both;
}

.failure-cross-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: var(--danger);
    fill: none;
    animation: success-stroke .6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.failure-cross-line1,
.failure-cross-line2 {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: var(--danger);
    animation: success-stroke .3s cubic-bezier(0.65, 0, 0.45, 1) .8s forwards;
}

@keyframes failure-fill {
    100% {
        box-shadow: inset 0px 0px 0px 32px var(--danger);
    }
}

/* --- Shake Animation for Auth Card --- */
.auth-card.shake {
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* --- Column Settings Modal --- */
.settings-btn {
    padding: 8px !important;
    line-height: 1;
}

.settings-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: var(--bg-soft);
    padding: 2rem !important;
    border-radius: var(--radius);
    width: 90%;
    max-width: 500px;
    box-sizing: border-box;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: -2rem -2rem 1.5rem -2rem;
}

.modal-header h3,
.modal-header h2 {
    margin: 0;
    color: var(--text);
}

.modal-close {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--muted);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    background: none;
    border: none;
    padding: 0;
}

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

.modal-body {
    padding: 1.5rem 0;
    color: var(--text);
}

/* Ensure modals without modal-body still have proper spacing */
.modal-content > h3:first-child,
.modal-content > h2:first-child {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.modal-content > p:first-of-type {
    margin-top: 0;
}

.modal-checkbox-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
}

.modal-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}


/* --- CRM In-Table Search Styling --- */
.search-row td {
    padding: 10px 5px;
}

.search-row .form-control {
    padding: 8px 10px !important;
    font-size: 0.85rem !important;
    border-radius: 6px !important;
}

.search-actions {
    display: flex;
    justify-content: space-between;
    /* This is the key change */
    align-items: center;
    gap: 0.5rem;
    padding: 0 0 1rem 0;
    background-color: transparent;
    border-top: none;
}

.search-actions-left,
.search-actions-right {
    display: flex;
    gap: 0.5rem;
}


/* --- Search Validation Styling --- */
.search-input-group {
    position: relative;
}

.form-control.is-invalid {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 3px rgba(var(--danger-rgb), .2) !important;
}

.search-error {
    color: var(--danger);
    font-size: 0.75rem;
    font-weight: 500;
    padding-top: 4px;
}

/* --- Tabbed Interface Styling --- */
.tab-nav {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: 2rem;
}

.tab-link {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--muted);
    position: relative;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.tab-link.active {
    color: var(--accent-2);
    border-bottom-color: var(--accent-2);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* --- Tab Validation Error Styling --- */
.tab-link.tab-error {
    color: var(--danger);
    border-bottom-color: var(--danger);
}


/* Assistant popup scrollbar - match notification styling */
#assistant-content {
    scrollbar-width: thin;
    scrollbar-color: var(--muted) transparent;
}

#assistant-content::-webkit-scrollbar {
    width: 6px;
}

#assistant-content::-webkit-scrollbar-track {
    background: transparent;
}

#assistant-content::-webkit-scrollbar-thumb {
    background-color: var(--muted);
    border-radius: 3px;
    opacity: 0.5;
}

#assistant-content::-webkit-scrollbar-thumb:hover {
    background-color: var(--text);
    opacity: 0.8;
}

/* --- Assistant Panel (Calendar) --- */
.assistant-panel {
    position: absolute;
    top: 100%;
    /* Position it directly below the icon */
    right: 0;
    /* Align to the right edge of the icon */
    width: 380px;
    background-color: #0f172a;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 30px var(--shadow-md);
    z-index: 2000;
    color: var(--text);
    overflow: hidden;
    margin-top: 0.5rem;
    max-height: 600px;
    display: flex;
    flex-direction: column;

    /* Smooth animations */
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.assistant-panel.hidden {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
    pointer-events: none;
}

.assistant-panel:not(.hidden) {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}


@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
}


@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-3px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(3px, 0, 0);
    }
}

@keyframes flash-green {

    0%,
    100% {
        color: var(--text);
    }

    50% {
        color: var(--success);
    }
}

/* --- NEW Custom Select Dropdown Style --- */
/* --- SELECT/DROPDOWN STYLING (Consistent across all systems) --- */
.form-select,
select.form-control,
select[class*="form"],
select {
    display: block !important;
    width: 100% !important;
    padding: 12px 18px !important;
    padding-right: 40px !important;
    /* Make space for the arrow */
    background-color: var(--bg-soft) !important;
    border-top: 1px solid var(--border) !important;
    border-right: 1px solid var(--border) !important;
    border-bottom: 1px solid var(--border) !important;
    border-left: 1px solid var(--border) !important;
    border-radius: 10px !important;
    color: var(--text) !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    cursor: pointer !important;
    box-shadow: none !important;

    /* Hide the default browser arrow */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;

    /* Add our custom arrow */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23a6b0c2' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
}

.form-select:hover,
select.form-control:hover,
select[class*="form"]:hover,
select:hover {
    border-top-color: var(--border) !important;
    border-right-color: var(--border) !important;
    border-bottom-color: var(--border) !important;
    border-left-color: var(--border) !important;
    background-color: var(--bg-soft) !important;
}

.form-select:focus,
select.form-control:focus,
select[class*="form"]:focus,
select:focus,
select:active {
    outline: none !important;
    border-top-color: var(--border) !important;
    border-right-color: var(--border) !important;
    border-bottom-color: var(--border) !important;
    border-left-color: var(--border) !important;
    box-shadow: 0 0 0 3px rgba(var(--accent-2-rgb), .15) !important;
    background-color: var(--bg-soft) !important;
}

.form-select:disabled,
select.form-control:disabled,
select[class*="form"]:disabled,
select:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    background-color: var(--bg) !important;
}

/* Option styling */
.form-select option,
select.form-control option,
select[class*="form"] option,
select option {
    background-color: var(--bg-soft) !important;
    color: var(--text) !important;
    padding: 0.5rem !important;
}

/* --- Job Detail Editable Row Styles --- */
.editable-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.editable-row:last-child {
    border-bottom: none;
}

.editable-row .detail-label {
    font-weight: 500;
    color: var(--text);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 200px;
}

.editable-row .detail-value {
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    flex: 0 1 auto;
    display: block;
    align-items: flex-start;
    justify-content: flex-start;
}

.editable-row .form-control,
.editable-row .form-select {
    padding: 8px 10px !important;
    font-size: 0.9rem !important;
    max-width: 300px;
    margin-left: auto;
}

.salary-day-rate-wrapper .input-group {
    display: flex;
    align-items: center;
}

.salary-day-rate-wrapper .currency-select {
    width: 80px !important;
    /* Give currency dropdown a fixed width */
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.salary-day-rate-wrapper .form-control {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.salary-day-rate-wrapper .input-group-text {
    padding: 8px 10px;
    font-size: 0.9rem;
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-left: 0;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.company-not-in-crm-indicator {
    font-size: 0.75rem;
    color: var(--danger);
    padding-top: 4px;
}

/* --- Live Company Search Results --- */
.search-input-group {
    position: relative;
}

.company-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 10px 10px;
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
}

.search-result-item {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 0.9rem;
}

.search-result-item:hover {
    background-color: var(--bg-soft);
}

/* --- Quick Leads Accordion & Actions --- */
.accordion-toggle {
    text-align: center;
    cursor: pointer;
}

.accordion-toggle .arrow {
    transition: transform 0.2s ease-in-out;
    font-size: 0.7rem;
    color: var(--muted);
}

.lead-row.open .accordion-toggle .arrow {
    transform: rotate(90deg);
}

.actions-cell {
    text-align: right;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.comment-section {
    padding: 1rem 2rem;
    background-color: var(--bg);
}

.btn-success {
    background-color: var(--success) !important;
    color: #fff !important;
    border: none !important;
}

/* --- Freeze/Unfreeze Feature Styling --- */
.btn-vibrant {
    font-weight: 700 !important;
    font-size: 1rem !important;
    padding: 0.75rem 1.5rem !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.btn-vibrant:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4) !important;
}

.btn-vibrant.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border: 2px solid #fee2e2 !important;
}

.btn-vibrant.btn-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    border: 2px solid #dcfce7 !important;
}

.btn-vibrant.btn-small {
    font-size: 0.85rem !important;
    padding: 0.5rem 1rem !important;
}

/* Frozen state styling */
.frozen-header {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.1) 100%) !important;
    border-left: 4px solid var(--danger) !important;
}

.frozen-user {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%) !important;
    border-left: 4px solid var(--danger) !important;
    opacity: 0.85;
}

.frozen-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff !important;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 0.5rem;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: pulse-frozen 2s ease-in-out infinite;
}

@keyframes pulse-frozen {

    0%,
    100% {
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    }

    50% {
        box-shadow: 0 2px 16px rgba(239, 68, 68, 0.6);
    }
}

/* --- Quick Leads Comment Section --- */
.comment-history {
    margin-bottom: 1rem;
    max-height: 250px;
    overflow-y: auto;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.comment-item {
    margin-bottom: 1rem;
}

.comment-item:last-child {
    margin-bottom: 0;
}

.comment-body {
    margin: 0 0 0.25rem 0;
    white-space: pre-wrap;
    /* Respects line breaks in the comment */
}

.comment-meta {
    font-size: 0.8rem;
    color: var(--muted);
}

.add-comment-form {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.add-comment-form textarea {
    flex-grow: 1;
    min-height: 40px;
}

/* --- Live User Search Results --- */
.user-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 10px 10px;
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
}

/* --- Add Quick Lead Button Enhancement --- */
#add-quick-lead-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* Adds space between the '+' icon and the text */
    transition: all 0.2s ease-in-out;
    /* Smooth transition for hover effects */
}

#add-quick-lead-btn:hover {
    box-shadow: 0 0 12px 0px rgba(34, 197, 94, 0.7);
    /* Subtle green glow using your --success color */
    transform: translateY(-1px);
    /* Keep the existing lift effect */
}

/* --- Quick Leads ID Cell Styling --- */
.lead-id-cell {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
    vertical-align: middle;
    text-align: center;
}


/* === SMOOTH THEME TRANSITIONS === */
/* Apply transitions to color and background properties only to avoid performance issues */
html {
    transition: background-color 0.3s ease;
}

body,
.card,
.btn,
.form-control,
.sidebar,
.main-header,
.main-footer {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* === THEME SELECTOR UI === */
.theme-selector-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-selector-btn {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    padding: 6px;
    cursor: pointer;
    color: var(--text);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.theme-selector-btn:hover {
    background: var(--bg);
    border-color: var(--accent);
    color: var(--accent);
}

.theme-selector-btn svg {
    width: 20px;
    height: 20px;
}

.theme-dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px var(--shadow-md);
    min-width: 220px;
    padding: 0.5rem;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    pointer-events: none;
    max-height: 400px;
    overflow-y: auto;
}

.theme-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
    color: var(--text);
}

.theme-option:hover {
    background: var(--bg);
}

.theme-option.active {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    font-weight: 500;
}

.theme-preview {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 2px solid var(--border);
    flex-shrink: 0;
}

.theme-option.active .theme-preview {
    border-color: var(--primary);
}

.theme-name {
    flex: 1;
    font-size: 0.9rem;
}

/* Theme color previews */
[data-theme="dark"] .theme-preview.dark-preview {
    background: linear-gradient(135deg, #0b1220 50%, #0f172a 50%);
}

[data-theme="light"] .theme-preview.light-preview {
    background: linear-gradient(135deg, #ffffff 50%, #f8f9fa 50%);
}

[data-theme="cursor-dark"] .theme-preview.cursor-dark-preview {
    background: linear-gradient(135deg, #1e1e1e 50%, #252526 50%);
}

[data-theme="cursor-light"] .theme-preview.cursor-light-preview {
    background: linear-gradient(135deg, #ffffff 50%, #f8f8f8 50%);
}

[data-theme="solarized-light"] .theme-preview.solarized-preview {
    background: linear-gradient(135deg, #fdf6e3 50%, #eee8d5 50%);
}

/* Dark previews (always show regardless of current theme) */
.theme-preview.dark-preview {
    background: linear-gradient(135deg, #0b1220 50%, #0f172a 50%);
}

.theme-preview.light-preview {
    background: linear-gradient(135deg, #ffffff 50%, #f8f9fa 50%);
}

.theme-preview.cursor-dark-preview {
    background: linear-gradient(135deg, #1e1e1e 50%, #252526 50%);
}

.theme-preview.cursor-light-preview {
    background: linear-gradient(135deg, #ffffff 50%, #f8f8f8 50%);
}

.theme-preview.solarized-preview {
    background: linear-gradient(135deg, #fdf6e3 50%, #eee8d5 50%);
}

.form-grid-2col label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text) !important; /* Changed from muted to text for better visibility */
}

/* --- Opportunities Table Two-Line Style --- */
.data-table .main-info {
    font-weight: 500;
    color: var(--text);
}

.data-table .sub-info {
    font-size: 0.8rem;
    color: var(--muted);
}

.opp-id-cell {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
    vertical-align: middle;
    text-align: center;
}


/* --- Opportunities Card Layout --- */
.opportunity-list-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.opportunity-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-soft);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 1.5rem;
}

.opportunity-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.info-box-row {
    display: grid;
    /* NEW: 6-column grid for more boxes */
    grid-template-columns: 0.5fr repeat(5, 1fr);
    gap: 1rem;
    width: 100%;
}

.info-box {
    background-color: var(--bg);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 70px;
    /* Slightly smaller height */
}

.info-box.id-box {
    background: none;
    padding: 0;
    text-align: center;
    justify-content: center;
}

.info-box-title {
    font-size: 0.7rem;
    /* Smaller title */
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.info-box-main {
    font-size: 1rem;
    /* Slightly smaller main text */
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
}

.opportunity-actions {
    padding-left: 1.5rem;
}

/* In app/static/css/theme.css */

.badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
    display: inline-block;
}

.badge-purple {
    background-color: rgba(167, 139, 250, 0.2);
    color: #a78bfa;
    /* A nice purple from your system colors */
}

.badge-orange {
    background-color: rgba(251, 146, 60, 0.2);
    color: #fb923c;
    /* Orange color */
}

.badge-green {
    background-color: rgba(52, 211, 153, 0.2);
    color: #34d399;
    /* A nice green from your system colors */
}

.badge-red {
    background-color: rgba(239, 83, 80, 0.2);
    color: #ef5350;
    /* Red color */
}

/* In app/static/css/theme.css */

.not-in-crm-indicator {
    color: var(--danger);
    font-size: 0.75rem;
    padding: 4px 0;
    display: none;
    /* Hidden by default */
}

/* In app/static/css/theme.css */

/* Styling for the small 'p/d' text */
.rate-suffix {
    font-size: 0.75rem;
    color: var(--muted);
    margin-left: 8px;
    align-self: center;
    /* Vertically aligns it with the input box */
}

/* In app/static/css/theme.css */

.static-currency-code {
    font-size: 0.75rem;
    /* Same size as .rate-suffix */
    color: var(--text); /* Changed from --text-main to --text for better visibility */
    /* Ensure it stands out like numbers */
    margin-right: 4px;
    /* Small space between currency code and amount */
}


/* Make the currency selector text smaller */
.currency-select {
    font-size: 0.75rem !important;
    padding-right: 2px !important;
    /* Tightens up spacing */
}

/* Status Badges & Selectors */
.badge-warm {
    background-color: rgba(52, 211, 153, 0.15);
    color: #34d399;
    /* Green */
}

.badge-cold {
    background-color: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    /* Blue */
}

/* Live styling for the status dropdown in edit mode */
.status-select.status-warm {
    border-color: #34d399;
    color: #34d399;
}

.status-select.status-cold {
    border-color: #3b82f6;
    color: #3b82f6;
}

/* Visual distinction for Type */
.type-permanent {
    font-weight: 600;
    color: var(--text); /* Changed from --text-main to --text */
}

.type-contractor {
    font-style: italic;
    color: var(--text); /* Changed from --text-muted to --text for better visibility */
}

/* In app/static/css/theme.css */

/* --- Opportunities Page Styles --- */
.opportunity-card .info-box-row {
    display: flex;
    gap: 1.5rem;
    /* Adds space between info boxes */
    align-items: flex-start;
    /* Aligns items to the top */
}

.opportunity-card .info-box {
    flex: 1;
    /* Allows boxes to grow and fill space evenly */
}

/* Tightly constrains the width of the ID box */
.opportunity-card .id-box {
    flex: 0 0 40px;
    /* Does not grow, does not shrink, base width is 40px */
    padding-right: 0;
}

/* Re-style the Opportunity status badge to match the standard badges */
.status-badge-active {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    background-color: rgba(52, 211, 153, 0.2);
    color: #34d399;
    /* Green */
}

/* --- Opportunities Page Styles --- */
.opportunity-card .info-box-row {
    display: flex;
    gap: 1.5rem;
    /* Adds space between info boxes */
    align-items: flex-start;
    /* Aligns items to the top */
}

.opportunity-card .info-box {
    flex: 1;
    /* Allows boxes to grow and fill space evenly */
}

/* Tightly constrains the width of the ID box */
.opportunity-card .id-box {
    flex: 0 0 40px;
    /* Does not grow, does not shrink, base width is 40px */
    padding-right: 0;
}

/* Enlarge the main data text */
.opportunity-card .info-box-main {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Make the opportunity card itself clickable */
.opportunity-card.expandable .opportunity-details {
    cursor: pointer;
}

/* Re-style the Opportunity status badge to match the standard badges */
.status-badge-active {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    background-color: rgba(52, 211, 153, 0.2);
    color: #34d399;
    /* Green */
}

/* Style for the comment section, initially hidden */
.opportunity-comment-section {
    display: none;
    /* Hidden by default */
    padding: 1rem 1.5rem 1.5rem 65px;
    /* Padded and aligned with content */
    background-color: var(--background-alt);
    border-top: 1px solid var(--border);
}

/* Use the existing comment styles from Quick Leads */
.opportunity-comment-section .comment-section {
    max-width: 100%;
}

/* In app/static/css/theme.css */

/* --- Opportunity Inline Edit Styles --- */

/* Ensures form elements fill their info-box container */
.opportunity-card .info-box .form-control,
.opportunity-card .info-box .form-select {
    width: 100%;
    min-height: 38px;
    /* Aligns height with buttons */
}

/* Flexbox for the salary/rate container to manage the 'p/d' suffix */
.opportunity-card .salary-rate-edit-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* In app/static/css/theme.css */

/* --- Opportunity Card Actions Alignment --- */
.opportunity-card .opportunity-actions {
    display: flex;
    flex-direction: column;
    /* Stack buttons vertically */
    justify-content: center;
    /* Center them in the available space */
    gap: 8px;
    /* Add a small space between buttons */
}

/* In app/static/css/theme.css */

/* --- Opportunity Card Field Highlighting --- */

/* Targets the 'Company' (2nd) and 'Role' (3rd) info-boxes in the top row */
.opportunity-card .info-box-row:first-child .info-box:nth-child(2),
.opportunity-card .info-box-row:first-child .info-box:nth-child(3) {
    background-color: rgba(167, 139, 250, 0.08);
    /* A subtle version of your purple badge color */
    border-radius: 8px;
    padding: 0.75rem;
    border: 1px solid rgba(167, 139, 250, 0.2);
}

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   Desktop unchanged - only affects mobile (max-width: 768px)
   ============================================ */
@media screen and (max-width: 768px) {

    /* --- Sidebar Enhancements --- */
    .sidebar {
        width: 280px !important;
        z-index: 2000 !important;
        /* Higher than header (1500) to overlap */
        transform: translateX(-100%) !important;
        transition: transform 0.3s ease !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        height: 100vh !important;
    }

    .sidebar.sidebar-expanded {
        transform: translateX(0) !important;
    }

    .sidebar.sidebar-minimized {
        transform: translateX(-100%) !important;
    }

    /* Sidebar overlay on mobile - separate element */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1999;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .sidebar-overlay.active {
        opacity: 1;
        pointer-events: all;
    }

    .menu-nav {
        padding: 1rem 0.75rem !important;
        padding-top: 80px !important;
        /* Space for header */
        height: calc(100vh - 80px) !important;
        overflow-y: auto !important;
    }

    .menu-nav ul li a,
    .menu-nav ul li button {
        padding: 0.75rem 0.5rem !important;
        font-size: 0.9rem !important;
    }

    .menu-text {
        font-size: 0.9rem !important;
    }

    /* --- Main Content Area --- */
    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
    }

    .content-body {
        padding: 1rem !important;
    }

    /* --- Header Mobile Optimizations --- */
    .main-header {
        padding: 0.5rem 1rem;
        flex-wrap: nowrap;
        gap: 0.5rem;
        position: sticky;
        top: 0;
        z-index: 1500;
        align-items: center;
    }

    .header-left {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-shrink: 0;
    }

    .header-logo {
        display: flex;
        align-items: center;
    }

    .header-logo img {
        max-height: 32px;
        width: auto;
    }

    .sidebar-toggle {
        padding: 0.5rem;
        min-width: 40px;
        min-height: 40px;
        flex-shrink: 0;
    }

    .world-clock-container {
        display: flex !important;
        /* Show on mobile */
        margin: 0 0.25rem;
    }

    .world-clock {
        font-size: 0.65rem !important;
        padding: 0.2rem 0.4rem !important;
        min-width: auto !important;
    }

    .world-clock #clockTime {
        font-size: 0.65rem !important;
        line-height: 1.2;
    }

    .world-clock #clockLocation {
        display: none !important;
        /* Hide location text on mobile */
    }

    .world-clock-tooltip {
        font-size: 0.7rem !important;
        padding: 0.5rem !important;
        min-width: 180px !important;
        max-width: 200px !important;
    }

    .user-menu {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-left: auto;
        flex-shrink: 0;
    }

    .user-menu-item {
        padding: 0.5rem !important;
        min-width: 40px;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .user-menu-item img.user-avatar-small {
        width: 32px;
        height: 32px;
    }

    /* Hide profile text on mobile, show only avatar */
    .user-menu-item .email-alias,
    .user-menu-item .email-domain {
        display: none;
    }

    .user-menu-item>div {
        display: none;
        /* Hide the text div on mobile */
    }

    .global-search-container {
        display: none;
        /* Hide search on mobile header */
    }

    .god-mode-indicator {
        display: none;
        /* Hide on mobile */
    }

    /* --- Footer Mobile --- */
    .main-footer {
        padding: 0.75rem 1rem;
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
        justify-content: space-between;
    }

    .footer-logo img {
        max-width: 100px;
    }

    .system-status {
        font-size: 0.65rem !important;
        flex-wrap: wrap;
        color: var(--muted);
    }

    .main-footer .btn {
        display: none !important;
        /* Hide logout button on mobile */
    }

    /* --- Page Header --- */
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }

    .page-header h1,
    .page-header .page-title {
        font-size: 1.5rem;
        margin: 0;
    }

    .header-actions {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .header-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* --- Cards --- */
    .card {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .card-header h2,
    .card-header h3 {
        font-size: 1.2rem;
    }

    /* --- Forms --- */
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-control,
    .form-select,
    textarea.form-control {
        font-size: 16px !important;
        /* Prevents zoom on iOS */
        padding: 0.75rem !important;
        min-height: 44px;
        /* Better touch target */
    }

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

    /* --- Buttons --- */
    .btn {
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem !important;
        min-height: 44px;
        /* Better touch target */
    }

    .btn-small {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.85rem !important;
        min-height: 36px;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-group .btn {
        width: 100%;
        border-radius: var(--radius) !important;
        margin: 0.25rem 0 !important;
    }

    /* --- Tables --- */
    .data-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }

    .data-table thead,
    .data-table tbody,
    .data-table tr {
        display: block;
    }

    .data-table thead {
        display: none;
        /* Hide header on mobile, show in cards */
    }

    .data-table tbody tr {
        border: 1px solid var(--border);
        border-radius: var(--radius);
        margin-bottom: 1rem;
        padding: 1rem;
        background: var(--bg-soft);
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .data-table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem 0;
        border: none;
        text-align: left;
    }

    .data-table tbody td:before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--accent);
        margin-right: 1rem;
        flex-shrink: 0;
    }

    /* --- Grids --- */
    .jobs-grid,
    .org-list,
    .user-list,
    .team-list {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr !important;
    }

    /* --- Job Cards --- */
    .job-card,
    .org-card,
    .user-card,
    .team-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }

    .job-actions,
    .org-actions,
    .user-actions,
    .team-actions {
        width: 100%;
        margin-top: 0.5rem;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .job-actions .btn,
    .org-actions .btn,
    .user-actions .btn,
    .team-actions .btn {
        width: 100%;
    }

    /* --- Opportunity Cards --- */
    .opportunity-card {
        padding: 1rem;
    }

    .opportunity-card .info-box-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .opportunity-card .info-box {
        width: 100%;
    }

    .opportunity-actions {
        width: 100%;
        margin-top: 1rem;
    }

    /* --- CRM Tables & Lists --- */
    .crm-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .contact-card,
    .company-card,
    .candidate-card {
        padding: 1rem;
        flex-direction: column;
    }

    /* --- Forms Layout --- */
    .invite-form,
    .create-form,
    .edit-form {
        grid-template-columns: 1fr !important;
    }

    .form-section {
        padding: 1rem;
    }

    /* --- Modals --- */
    .modal-content {
        width: 95% !important;
        max-width: 95% !important;
        margin: 1rem;
        max-height: 90vh;
        padding: 2rem !important;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-header h2 {
        font-size: 1.2rem;
    }

    .modal-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .modal-actions .btn {
        width: 100%;
        min-width: auto;
    }

    /* --- Pagination --- */
    .pagination {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }

    .pagination .btn {
        width: 100%;
    }

    /* --- Search & Filters --- */
    .search-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .search-actions-left,
    .search-actions-right {
        width: 100%;
        flex-direction: column;
    }

    .search-actions input,
    .search-actions select {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    /* --- Vault --- */
    .vault-grid {
        grid-template-columns: 1fr !important;
    }

    .vault-card {
        padding: 1rem;
    }

    /* --- Training --- */
    .training-grid {
        grid-template-columns: 1fr !important;
    }

    .course-card {
        padding: 1rem;
    }

    /* --- Calendar --- */
    .fc {
        font-size: 1rem !important;
        /* Bigger font for clarity */
    }

    .fc-toolbar {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 1rem !important;
    }

    .fc-toolbar-title {
        font-size: 1.4rem !important;
        font-weight: 600 !important;
    }

    .fc-button {
        padding: 0.75rem 1rem !important;
        font-size: 0.95rem !important;
        min-height: 44px;
        /* Better touch target */
    }

    /* Calendar day cells - bigger and clearer */
    .fc-daygrid-day {
        min-height: 60px !important;
        height: auto !important;
    }

    .fc-daygrid-day-number {
        font-size: 1rem !important;
        font-weight: 500 !important;
        padding: 0.5rem !important;
    }

    .fc-col-header-cell {
        padding: 0.75rem 0.5rem !important;
    }

    .fc-col-header-cell-cushion {
        font-size: 0.9rem !important;
        font-weight: 600 !important;
    }

    /* Calendar events - bigger text */
    .fc-event {
        font-size: 0.85rem !important;
        padding: 0.4rem 0.5rem !important;
        margin: 0.2rem 0 !important;
        min-height: 24px !important;
    }

    .fc-event-title {
        font-weight: 500 !important;
    }

    /* Calendar container */
    #calendar {
        font-size: 1rem !important;
    }

    .fc-scroller {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Leave stats bar on mobile */
    .leave-stats-bar {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    .stat-card {
        padding: 1rem !important;
    }

    .stat-card h3 {
        font-size: 2rem !important;
    }

    .stat-card p {
        font-size: 0.85rem !important;
    }

    /* --- World Clock (if visible) --- */
    .world-clock {
        font-size: 0.85rem;
    }

    /* --- Save Footer --- */
    .save-footer {
        padding: 1rem;
        flex-direction: column;
        gap: 0.75rem;
    }

    .save-footer-content {
        flex-direction: column;
        width: 100%;
    }

    .save-footer .btn {
        width: 100%;
    }

    /* --- Toast Notifications --- */
    .toastify {
        width: calc(100% - 2rem);
        margin: 0 1rem;
    }

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

    .hide-mobile {
        display: none !important;
    }

    .show-mobile {
        display: block !important;
    }

    /* --- Prevent horizontal scroll --- */
    body {
        overflow-x: hidden;
    }

    /* --- Touch-friendly spacing --- */
    a,
    button,
    input,
    select,
    textarea {
        min-height: 44px;
        touch-action: manipulation;
    }

    /* --- Input focus improvements --- */
    input:focus,
    textarea:focus,
    select:focus {
        font-size: 16px !important;
        /* Prevents zoom on iOS */
    }
}

/* Currency Widget Styles */
.currency-widget-container {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    background: var(--overlay-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
    height: 54px;
}

.currency-widget:hover {
    background: var(--overlay-medium);
    border-color: var(--accent);
}

.currency-tooltip {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    min-width: 200px;
    box-shadow: 0 8px 24px var(--shadow-sm);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.currency-widget-container:hover .currency-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.text-muted {
    color: var(--text);
    font-size: 0.95rem;
}

/* Statistics Dashboard Styles */
.stat-card {
    background: var(--overlay-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
    transition: all 0.2s ease;
}

.stat-card:hover {
    background: var(--overlay-medium);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}