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

:root {
    --bg-base: #0F172A; /* Deep charcoal */
    --bg-surface: rgba(30, 41, 59, 0.4); /* Glass surface */
    --bg-surface-hover: rgba(30, 41, 59, 0.7);
    --border: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.15);
    
    --text-main: #F1F5F9;
    --text-muted: #94A3B8;
    --text-accent: #00f7ff; /* Bright Cyan from reference */
    --cyan: #00f7ff;
    
    --primary: rgba(0, 247, 255, 0.1);
    --primary-border: rgba(0, 247, 255, 0.3);
    --primary-hover: rgba(0, 247, 255, 0.2);
    
    --success: #34D399;
    --danger: #F87171;
    
    --font-ui: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
    --sidebar-width: 280px;
}

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

body {
    font-family: var(--font-ui);
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(56, 189, 248, 0.04), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.04), transparent 25%);
    background-attachment: fixed;
}

/* Scrollbars */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border);
    padding: 2rem 1.25rem;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar.collapsed {
    width: 80px;
    padding: 1.5rem 0.75rem;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    overflow: hidden;
}

.sidebar-toggle {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 4px;
    transition: all 200ms;
}

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

.sidebar.collapsed .logo-text, 
.sidebar.collapsed .nav-text,
.sidebar.collapsed .user-details,
.sidebar.collapsed .sidebar-footer {
    display: none;
}

.sidebar.collapsed .logo {
    justify-content: center;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 0.75rem;
}

.sidebar.collapsed .sidebar-toggle {
    transform: rotate(180deg);
}

.logo h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 2.5rem;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo h2 i {
    color: var(--text-accent);
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.nav-item {
    text-decoration: none;
    color: var(--text-muted);
    padding: 0.6rem 0.875rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 200ms ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid transparent;
}

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

.nav-item.active {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    border: 1px solid var(--border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-item i {
    width: 20px;
    height: 20px;
    stroke-width: 2px;
}

.nav-item:hover i {
    color: var(--text-accent);
}

.nav-item.active i {
    color: var(--text-accent);
    filter: drop-shadow(0 0 5px rgba(0, 247, 255, 0.4));
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    overflow: hidden;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--text-accent);
    color: var(--bg-base);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.user-details {
    overflow: hidden;
}

.user-name {
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.logout-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    padding: 4px;
    border-radius: 4px;
    transition: all 200ms;
}

.logout-btn:hover {
    color: var(--danger);
    background: rgba(248, 113, 113, 0.1);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2.5rem 3rem;
    overflow-y: auto;
    position: relative;
}

.content-section {
    display: none;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.section-header h1 {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-ui);
    font-size: 0.8125rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 200ms ease;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-highlight);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--text-accent);
}

.btn-secondary {
    /* Base btn styles apply */
}

/* Tables */
.table-container, .table-wrapper {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    overflow: hidden;
}

.scrollable-table {
    overflow-x: auto;
    overflow-y: auto;
    max-height: calc(100vh - 180px);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
}

.data-table th, .data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.data-table th {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    font-weight: 500;
    color: var(--text-muted);
    font-family: var(--font-ui);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--border);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr {
    transition: background-color 150ms ease;
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Cross-hair highlighting removed due to vibrating scroll bug */

/* Metric Colors */
.metric-positive { color: var(--success) !important; font-weight: 500; }
.metric-negative { color: var(--danger) !important; font-weight: 500; }
.metric-neutral { color: var(--text-muted) !important; }

/* Cards & Forms */
.form-card {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.form-card h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

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

.hidden { display: none !important; }

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

.form-input, .m-input {
    width: 100%;
    padding: 0.625rem 0.75rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    transition: all 200ms ease;
}

.form-input:focus, .m-input:focus {
    outline: none;
    border-color: var(--text-accent);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.2);
}

/* Custom Select styling to match dark theme */
select.form-input, select.m-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394A3B8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Toggle Switch */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: 200ms ease;
    border-radius: 20px;
    border: 1px solid var(--border);
}
.slider:before {
    position: absolute;
    content: "";
    height: 14px; width: 14px;
    left: 2px; bottom: 2px;
    background-color: var(--text-muted);
    transition: 200ms ease;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: var(--primary);
    border-color: var(--primary-border);
}
input:checked + .slider:before {
    transform: translateX(16px);
    background-color: var(--text-accent);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}
.tab-btn {
    background: transparent;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-family: var(--font-ui);
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 200ms ease;
}
.tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.02);
}
.tab-btn.active {
    color: var(--text-accent);
    border-bottom-color: var(--text-accent);
}

.tab-content { display: none; }
.tab-content.active {
    display: block;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dropdown specific for dynamic columns */
.header-actions { display: flex; gap: 1rem; align-items: center; }
.dropdown { position: relative; display: inline-block; }
.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    min-width: 220px;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem;
    z-index: 50;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.5);
}
.dropdown.active .dropdown-content { display: block; animation: fadeIn 0.2s ease; }
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background 150ms ease;
}
.dropdown-item:hover { background: rgba(255, 255, 255, 0.05); }
.dropdown-item label {
    cursor: pointer;
    font-size: 0.8125rem;
    color: var(--text-main);
    margin: 0;
}

/* Custom Checkbox Dropdown for Reports */
.custom-dropdown { position: relative; margin-bottom: 1rem; }
.dropdown-header { 
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border);
    padding: 0.625rem 0.75rem; 
    border-radius: 6px; 
    cursor: pointer; 
    display: flex; 
    justify-content: space-between; 
    user-select: none; 
    align-items: center; 
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--text-main);
    transition: all 200ms ease;
}
.dropdown-header:hover {
    border-color: var(--border-highlight);
    background: rgba(15, 23, 42, 0.8);
}
.dropdown-list { 
    position: absolute; 
    top: calc(100% + 4px); 
    left: 0; 
    right: 0; 
    border: 1px solid var(--border); 
    background: var(--bg-base); 
    max-height: 220px; 
    overflow-y: auto; 
    z-index: 100; 
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.5); 
    border-radius: 6px; 
    padding: 0.5rem 0; 
}
.dropdown-list label { 
    display: flex !important; 
    align-items: center; 
    gap: 0.75rem; 
    padding: 0.5rem 1rem; 
    cursor: pointer; 
    margin: 0; 
    font-weight: normal; 
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    transition: background 150ms ease;
}
.dropdown-list label:hover { 
    background: rgba(255, 255, 255, 0.05); 
}

/* Checkboxes */
input[type="checkbox"] {
    appearance: none;
    background-color: rgba(15, 23, 42, 0.5);
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 1.15em;
    height: 1.15em;
    border: 1px solid var(--border);
    border-radius: 3px;
    display: grid;
    place-content: center;
    cursor: pointer;
    transition: all 200ms ease;
}
input[type="checkbox"]::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em var(--text-accent);
    background-color: var(--text-accent);
    transform-origin: center;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
input[type="checkbox"]:checked {
    border-color: var(--primary-border);
    background: var(--primary);
}
input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.add-field-container {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* Login Page Redesign Styles */
/* Login Page Premium Redesign Styles */
.login-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #090d16;
    z-index: 9999;
}

.login-split-container {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Brand Pane (60%) */
.login-brand-panel {
    flex: 6;
    background: linear-gradient(135deg, #070a13 0%, #0f172a 100%);
    position: relative;
    display: flex;
    align-items: center;
    padding: 3rem 4rem;
    color: white;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.brand-glow-orb-1 {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 247, 255, 0.08) 0%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
}

.brand-glow-orb-2 {
    position: absolute;
    bottom: -10%;
    right: 10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 247, 255, 0.05) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.brand-content-wrap {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
}

.brand-logo-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.brand-logo-title i {
    color: var(--cyan);
    font-size: 2.2rem;
}

.logo-icon-pulse {
    animation: pulseGlow 2.5s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 2px rgba(0, 247, 255, 0.4));
    }
    50% {
        transform: scale(1.08);
        filter: drop-shadow(0 0 12px rgba(0, 247, 255, 0.8));
    }
}

.brand-logo-title h2 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: white;
    margin: 0;
}

.brand-logo-title h2 span {
    color: var(--cyan);
    font-weight: 300;
}

.brand-content-wrap h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #ffffff 40%, #00f7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-content-wrap p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2.5rem;
}

/* SVG Logistics Simulation Widget */
.logistics-telemetry-container {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-bottom: 2.5rem;
}

.telemetry-svg {
    width: 100%;
    height: auto;
    display: block;
}

.animated-route-1 {
    stroke-dasharray: 15 60;
    animation: routeMove 12s linear infinite;
}

.animated-route-2 {
    stroke-dasharray: 20 50;
    animation: routeMove 15s linear infinite reverse;
}

@keyframes routeMove {
    to {
        stroke-dashoffset: -1000;
    }
}

/* Telemetry KPIs */
.telemetry-kpis {
    display: flex;
    gap: 1.5rem;
}

.telemetry-kpi-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.telemetry-kpi-card h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

.telemetry-kpi-card p {
    margin: 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

.kpi-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.kpi-status-dot.green {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.kpi-status-dot.blue-pulse {
    background: #3b82f6;
    animation: dotPulse 2s infinite;
}

.kpi-status-dot.cyan-pulse {
    background: #00f7ff;
    animation: dotPulse 2s infinite 0.5s;
}

@keyframes dotPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 247, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(0, 247, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 247, 255, 0);
    }
}

/* Form Panel (40%) */
.login-form-panel {
    flex: 4;
    background: #090d16;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
}

.login-glass-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 3rem 2.25rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(0, 247, 255, 0.05);
    position: relative;
    overflow: hidden;
    animation: cardEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-header-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    box-shadow: 0 0 15px var(--cyan);
}

.login-logo-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(0, 247, 255, 0.06);
    border: 1px solid rgba(0, 247, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    color: var(--cyan);
}

.login-logo-circle i {
    width: 24px;
    height: 24px;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.5rem 0;
}

.login-header p {
    font-size: 0.825rem;
    color: var(--text-muted);
    margin: 0;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.input-group-premium {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.input-group-premium label {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.input-group-premium label i {
    width: 13px;
    height: 13px;
    color: var(--cyan);
}

.input-group-premium input {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 247, 255, 0.15);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.input-group-premium input:focus {
    outline: none;
    border-color: var(--cyan);
    background: rgba(0, 247, 255, 0.02);
    box-shadow: 0 0 15px rgba(0, 247, 255, 0.15);
}

.forgot-password {
    text-align: right;
    margin-top: -0.25rem;
}

.forgot-password a {
    color: var(--cyan);
    font-size: 0.75rem;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-password a:hover {
    color: white;
}

.login-submit-premium {
    background: linear-gradient(90deg, #00d2ff 0%, #00f7ff 100%);
    color: #070a13;
    border: none;
    border-radius: 10px;
    padding: 0.8rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 247, 255, 0.2);
}

.login-submit-premium:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0, 247, 255, 0.4);
}

.login-submit-premium i {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}

.login-submit-premium:hover i {
    transform: translateX(4px);
}

.login-error {
    color: #f87171;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.2);
    border-radius: 8px;
    padding: 0.5rem;
    display: none;
    animation: shake 0.3s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.login-footer-copy {
    position: absolute;
    bottom: 2rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Responsive Login Styles */
@media (max-width: 950px) {
    .login-brand-panel {
        display: none;
    }
    .login-form-panel {
        flex: 1;
    }
}

/* =====================================================
   DASHBOARD MODULE STYLES
   ===================================================== */

.dash-filter-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding: 1rem 1.25rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.dash-filter-bar label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.dash-filter-bar .filter-group { display: flex; align-items: center; gap: 0.5rem; }

/* KPI stat cards */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
@media (max-width: 1100px) { .kpi-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px)  { .kpi-grid { grid-template-columns: 1fr; } }

.kpi-card {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 200ms ease, box-shadow 200ms ease;
}
.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.kpi-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--text-accent), transparent);
    opacity: 0.6;
}
.kpi-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.kpi-value {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-main);
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.kpi-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}
.kpi-icon {
    position: absolute;
    right: 1rem;
    top: 1rem;
    opacity: 0.12;
    font-size: 3rem;
}

/* Station Breakdown */
.dash-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
@media (max-width: 900px) { .dash-row-2 { grid-template-columns: 1fr; } }

.dash-panel {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
}
.dash-panel-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Bar chart */
.station-bars { display: flex; flex-direction: column; gap: 0.6rem; }
.station-bar-row { display: flex; align-items: center; gap: 0.75rem; font-size: 0.78rem; }
.station-bar-label { width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-main); flex-shrink: 0; }
.station-bar-track { flex: 1; height: 8px; background: rgba(255,255,255,0.05); border-radius: 4px; overflow: hidden; }
.station-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--text-accent), rgba(0,247,255,0.4));
    transition: width 600ms cubic-bezier(0.34,1.56,0.64,1);
}
.station-bar-val { width: 70px; text-align: right; color: var(--text-muted); font-family: var(--font-mono); font-size: 0.75rem; }

/* Efficiency + Maintenance row */
.dash-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
@media (max-width: 900px) { .dash-row-3 { grid-template-columns: 1fr; } }

.eff-cards { display: flex; gap: 1rem; }
.eff-card {
    flex: 1;
    background: rgba(0,247,255,0.04);
    border: 1px solid rgba(0,247,255,0.15);
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
}
.eff-type { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.4rem; }
.eff-value { font-size: 1.75rem; font-weight: 700; font-family: var(--font-mono); color: var(--text-accent); }
.eff-unit { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.25rem; }

.maint-tiles { display: flex; gap: 1rem; }
.maint-tile {
    flex: 1;
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
}
.maint-tile.due {
    background: rgba(248,113,113,0.08);
    border: 1px solid rgba(248,113,113,0.25);
}
.maint-tile.approaching {
    background: rgba(251,191,36,0.08);
    border: 1px solid rgba(251,191,36,0.25);
}
.maint-tile-count { font-size: 2.5rem; font-weight: 700; font-family: var(--font-mono); line-height: 1; }
.maint-tile.due .maint-tile-count    { color: #f87171; }
.maint-tile.approaching .maint-tile-count { color: #fbbf24; }
.maint-tile-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-top: 0.5rem; }

/* Dashboard skeleton loader */
.dash-skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 6px;
    height: 24px;
}
@keyframes shimmer {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}

/* Combined Fleet — Critical Alert block */
.critical-alert-block {
    background: rgba(248,113,113,0.08);
    border: 1px solid rgba(248,113,113,0.4);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(248,113,113,0.1);
}
.critical-alert-header {
    background: rgba(248,113,113,0.15);
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #f87171;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.critical-row td { border-color: rgba(248,113,113,0.15) !important; }
.critical-idle-badge {
    background: #f87171;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Fleet separate date filter sections */
.fleet-filter-sections {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
@media (max-width: 900px) { .fleet-filter-sections { grid-template-columns: 1fr; } }
.fleet-filter-box {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
}
.fleet-filter-box h4 { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.75rem; }

/* ==========================================
   NEW CUSTOM PREMIUM STYLES
   ========================================== */

/* 1. Sync Button Spin Animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.spin {
    animation: spin 1s linear infinite;
}

/* 2. Sidebar Sync Controls when Collapsed */
.sidebar.collapsed .sync-controls {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.sidebar.collapsed .sync-controls h3,
.sidebar.collapsed .sync-controls .toggle-container span,
.sidebar.collapsed .sync-controls #sync-status {
    display: none !important;
}

.sidebar.collapsed .sync-controls .toggle-container {
    margin-bottom: 0;
    justify-content: center;
}

.sidebar.collapsed #sync-now-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.sidebar.collapsed #sync-now-btn .sync-text {
    display: none !important;
}

.sidebar.collapsed #sync-now-btn .sync-icon {
    margin: 0 !important;
    width: 18px !important;
    height: 18px !important;
}

/* 3. Custom Confirmation Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease;
}

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

.confirm-modal-box {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: scale(0.9) translateY(20px);
    transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.visible .confirm-modal-box {
    transform: scale(1) translateY(0);
}

.confirm-modal-icon-container {
    width: 60px;
    height: 60px;
    background: rgba(0, 247, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    color: var(--text-accent);
}

.confirm-modal-icon {
    width: 32px;
    height: 32px;
}

.confirm-modal-box h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
}

.confirm-modal-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.75rem;
    word-break: break-word;
}

.confirm-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.confirm-modal-actions button {
    flex: 1;
    padding: 0.75rem;
    font-weight: 500;
}

/* 4. Floating Action Bar */
.floating-action-bar {
    position: fixed;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 0.75rem 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 999;
    transition: bottom 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
    min-width: 450px;
}

.floating-action-bar.visible {
    bottom: 2rem;
}

.action-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    color: var(--text-main);
    font-weight: 500;
}

.action-bar-buttons {
    display: flex;
    gap: 1rem;
}

.action-bar-buttons .btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* 5. Payment Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-paid {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-unpaid {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* 6. Color Config Scrollability */
#color-config-modal {
    max-height: 80vh;
    overflow-y: auto;
}

/* Custom Scrollbar for Premium Feel */
#color-config-modal::-webkit-scrollbar {
    width: 6px;
}
#color-config-modal::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}
#color-config-modal::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}


