/* CSS Variables - Premium Dark Theme */
:root {
    color-scheme: dark;
    /* Colors */
    --bg-main: #0B0E14;
    --bg-sidebar: #131722;
    --bg-card: rgba(26, 32, 44, 0.7);
    --bg-card-hover: rgba(35, 43, 59, 0.9);
    
    --primary: #60A5FA; /* Light Blue */
    --primary-hover: #3B82F6;
    --primary-glow: rgba(96, 165, 250, 0.4);
    --accent: #3B82F6; /* Blue for contrast */
    
    --text-main: #F3F4F6;
    --text-muted: #9CA3AF;
    --text-dark: #111827;
    
    /* Status Colors */
    --status-success: #10B981;
    --status-warning: #F59E0B;
    --status-danger: #EF4444;
    --status-info: #3B82F6;
    --status-neutral: #6B7280;

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Borders & Shadows */
    --border-color: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

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

/* Layout */
.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    flex-shrink: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2.5rem;
}

.logo-icon {
    font-size: 28px;
    color: var(--primary);
}

.sidebar-header h2 {
    font-size: 1.25rem;
    background: linear-gradient(90deg, #fff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.875rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition);
    font-weight: 500;
}

.nav-item i {
    font-size: 20px;
}

.nav-item:hover {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    color: var(--bg-main);
    background-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.sidebar-footer {
    margin-top: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Main Content */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.top-header {
    height: 80px;
    flex-shrink: 0;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    background: rgba(11, 14, 20, 0.8);
    backdrop-filter: blur(12px);
    z-index: 10;
}

.top-header h1 {
    font-size: 1.5rem;
}

.content-area {
    flex-grow: 1;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
}

.view-section {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.view-section.active {
    display: block;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: var(--font-body);
}

.btn:focus,
.btn:active {
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-dark);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Utilities */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-glass);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background: var(--bg-sidebar);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-glass);
    transform: scale(0.95);
    transition: var(--transition);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

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

.modal-body {
    padding: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.875rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239CA3AF' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

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

/* ===== DASHBOARD SPECIFIC STYLES ===== */

.dash-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.progress-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.progress-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

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

.card-value {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 5px;
}

.card-icon {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 12px;
}

.progress-bar-bg {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s ease-out;
}

.progress-percent {
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.dash-panels-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.dash-right-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Pipeline Mini Bars */
.pipeline-mini {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pipeline-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pipeline-label {
    width: 140px;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.pipeline-bar-container {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.08);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.pipeline-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s ease-out;
    min-width: 2px;
}

.pipeline-count {
    width: 40px;
    text-align: right;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Kanban drag ghost */
.sortable-ghost {
    opacity: 0.4;
    background: var(--primary) !important;
}

/* Responsive */
@media (max-width: 768px) {
    #mobile-menu-btn {
        display: block !important;
    }
    
    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        z-index: 1000;
        width: 250px;
        transition: left 0.3s ease;
        box-shadow: 2px 0 15px rgba(0,0,0,0.7);
    }
    
    .sidebar.open {
        left: 0;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        backdrop-filter: blur(3px);
    }
    
    .sidebar-overlay.active {
        display: block;
    }

    /* Reset nav items for off-canvas mode */
    .nav-item {
        justify-content: flex-start;
        padding: 0.875rem 1.5rem;
    }
    /* Custom Mobile Card for Database Table */
    .responsive-table, 
    .responsive-table tbody, 
    .responsive-table tr, 
    .responsive-table td {
        display: block;
        width: 100%;
    }
    
    .responsive-table thead {
        display: none;
    }
    
    .responsive-table tr {
        margin-bottom: 15px;
        border: 1px solid var(--border-color) !important;
        border-radius: 8px;
        background: rgba(0,0,0,0.2) !important;
        padding: 12px;
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-areas: 
            "select company status"
            "select sector tier"
            "select date actions";
        gap: 12px 15px;
        align-items: center;
    }
    
    /* 1. Select Checkbox */
    .responsive-table td:nth-child(1) {
        grid-area: select;
        padding: 0 !important;
        border: none !important;
        text-align: center !important;
        display: flex; align-items: center; justify-content: center;
    }
    
    /* 2. Company */
    .responsive-table td:nth-child(2) {
        grid-area: company;
        padding: 0 !important;
        border: none !important;
        text-align: left !important;
        font-size: 1.15rem;
    }
    
    /* 3. Sector */
    .responsive-table td:nth-child(3) {
        grid-area: sector;
        padding: 0 !important;
        border: none !important;
        text-align: left !important;
        color: var(--text-muted);
        font-size: 0.9rem;
    }
    
    /* 4. Status */
    .responsive-table td:nth-child(4) {
        grid-area: status;
        padding: 0 !important;
        border: none !important;
        text-align: right !important;
    }
    
    /* 5. Tier */
    .responsive-table td:nth-child(5) {
        grid-area: tier;
        padding: 0 !important;
        border: none !important;
        text-align: right !important;
        font-weight: bold;
    }
    
    /* 6. Last Contact */
    .responsive-table td:nth-child(6) {
        grid-area: date;
        padding: 0 !important;
        border: none !important;
        text-align: left !important;
        font-size: 0.85rem;
        color: var(--text-muted);
    }
    
    /* 7. Actions */
    .responsive-table td:nth-child(7) {
        grid-area: actions;
        padding: 0 !important;
        border: none !important;
        text-align: right !important;
        display: flex;
        justify-content: flex-end;
    }
    
    /* Remove generic pseudo-elements */
    .responsive-table td::before {
        display: none;
    }

    /* Custom Mobile Card for Calendar */
    .calendar-table, 
    .calendar-table tbody, 
    .calendar-table tr, 
    .calendar-table td {
        display: block;
        width: 100%;
    }
    
    .calendar-table thead {
        display: none;
    }
    
    .calendar-table tr {
        margin-bottom: 15px;
        border: 1px solid var(--border-color) !important;
        border-radius: 8px;
        background: rgba(0,0,0,0.2) !important;
        padding: 15px;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 10px 15px;
        align-items: center;
    }
    
    /* Date & Time (Top Right) */
    .calendar-table td:nth-child(1) {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        text-align: right !important;
        padding: 0 !important;
        border: none !important;
    }
    
    /* Company Name (Bottom Left) */
    .calendar-table td:nth-child(2) {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
        text-align: left !important;
        padding: 0 !important;
        border: none !important;
        font-size: 1.15rem;
    }
    
    /* Notes (Hidden on mobile) */
    .calendar-table td:nth-child(3) {
        display: none !important;
    }
    
    /* Actions (Bottom Right) */
    .calendar-table td:nth-child(4) {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
        text-align: right !important;
        padding: 0 !important;
        border: none !important;
        display: flex;
        justify-content: flex-end;
    }
    
    /* Remove pseudo-elements for calendar card */
    .calendar-table td::before {
        display: none;
    }

    .dash-panels-grid {
        grid-template-columns: 1fr;
    }
    .dash-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    .top-header h1 {
        font-size: 1.2rem;
    }
    .content-area {
        padding: 1rem;
    }
    
    .db-top-bar {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px;
    }
    
    .db-top-actions {
        flex-wrap: wrap;
        width: 100%;
        gap: 10px;
    }
    
    /* Make the search container expand to fill remaining space or full line */
    .db-top-actions > div,
    .db-top-actions button {
        flex: 1 1 auto;
    }
    
    /* Responsive Modals */
    .modal-content {
        width: 95% !important;
        max-width: none !important;
        max-height: 90vh;
        overflow-y: auto;
        padding: 20px !important;
    }
}

@media (max-width: 480px) {
    .dash-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Custom Select Component */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}
.custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    border-radius: 9999px; /* rounded-full */
    cursor: pointer;
    color: var(--text-main);
    transition: all 0.2s;
    font-size: 0.95rem;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}
.custom-select-trigger:hover,
.custom-select-trigger:focus,
.custom-select-trigger.active {
    border-color: var(--primary);
    outline: none;
}
.custom-select-trigger.active,
.custom-select-options.open ~ .custom-select-trigger,
.custom-select-wrapper:focus-within .custom-select-trigger {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}
.custom-select-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #0f172a; /* bg-slate-900 */
    border: 1px solid #334155; /* border-slate-700 */
    border-radius: 1rem; /* rounded-2xl */
    padding: 6px;
    z-index: 1000;
    display: none;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    max-height: 250px;
    overflow-y: auto;
}
.custom-select-options.open {
    display: flex;
}
.custom-select-option {
    padding: 8px 16px;
    border-radius: 9999px; /* rounded-full */
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
    font-size: 0.95rem;
}
.custom-select-option:hover {
    background: var(--primary);
    color: var(--bg-main);
    font-weight: 500;
}
.custom-select-option.selected {
    background: rgba(255,255,255,0.1);
    color: var(--text-main);
}

/* Custom Scrollbar for the Select Dropdown */
.custom-select-options::-webkit-scrollbar {
    width: 6px;
}
.custom-select-options::-webkit-scrollbar-track {
    background: transparent;
}
.custom-select-options::-webkit-scrollbar-thumb {
    background-color: #334155;
    border-radius: 10px;
}

/* Custom Material 3 Date Picker */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    left: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    pointer-events: none;
}
.toast {
    pointer-events: auto;
    max-width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    color: var(--text-main);
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    font-size: 0.95rem;
    animation: slideInRight 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
}
.toast.error { border-left-color: var(--status-danger); }
.toast.success { border-left-color: var(--status-success); }
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes fadeOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.db-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.db-top-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.m3-datepicker-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.m3-datepicker-modal.open {
    display: flex;
}
.m3-datepicker-content {
    background: var(--bg-card);
    border-radius: 28px;
    width: 320px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    font-family: var(--font-body);
}
.m3-datepicker-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}
.m3-datepicker-header-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.m3-datepicker-header-date {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-main);
}
.m3-datepicker-body {
    padding: 16px;
}
.m3-datepicker-month-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 8px;
}
.m3-datepicker-month-label {
    font-weight: 500;
    font-size: 1.1rem;
}
.m3-datepicker-nav-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    border-radius: 50%;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.m3-datepicker-nav-btn:hover {
    background: rgba(255,255,255,0.1);
}
.m3-datepicker-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    row-gap: 4px;
}
.m3-datepicker-weekday {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    padding-bottom: 8px;
}
.m3-datepicker-day {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: all 0.2s;
}
.m3-datepicker-day:hover:not(.empty) {
    background: rgba(255,255,255,0.1);
}
.m3-datepicker-day.selected {
    background: var(--primary);
    color: #000;
    font-weight: 600;
}
.m3-datepicker-day.today {
    border: 1px solid var(--primary);
}
.m3-datepicker-day.empty {
    cursor: default;
}
.m3-datepicker-actions {
    display: flex;
    justify-content: flex-end;
    padding: 8px 24px 16px;
    gap: 8px;
}
.m3-datepicker-actions button {
    background: transparent;
    border: none;
    color: var(--primary);
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s;
}
.m3-datepicker-actions button:hover {
    background: rgba(255,255,255,0.1);
}

.m3-time-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) rgba(255,255,255,0.1);
}
.m3-time-scroll-container::-webkit-scrollbar {
    height: 4px;
}
.m3-time-scroll-container::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
}
.m3-time-scroll-container::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}
.m3-time-chip {
    flex-shrink: 0;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}
.m3-time-chip:hover {
    background: rgba(255,255,255,0.1);
}
.m3-time-chip.selected {
    background: var(--primary);
    color: #000;
    font-weight: 600;
    border-color: var(--primary);
}

/* --- Bulk Actions Bar --- */
.bulk-actions-bar {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    padding: 12px 24px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 900;
    transition: bottom 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    width: max-content;
    max-width: 95vw;
}
.bulk-actions-bar.active {
    bottom: 30px;
}
@media (max-width: 768px) {
    .bulk-actions-bar {
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 15px;
    }
}

/* ==========================================================================
   Login Screen (SaaS Version)
   ========================================================================== */

.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    /* Subtle animated background for the login screen */
    background-image: radial-gradient(circle at top right, rgba(59,130,246,0.1) 0%, transparent 40%),
                      radial-gradient(circle at bottom left, rgba(16,185,129,0.05) 0%, transparent 40%);
}

.login-card {
    width: calc(100% - 40px);
    max-width: 400px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideUpFade 0.5s ease-out;
}

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