@font-face {
    font-family: 'Charles Wright';
    src: url('../fonts/CharlesWright-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --accent-primary: #ff6b35;
    --accent-secondary: #ff8c42;
    --accent-hover: #ff5722;
    --text-primary: #16191f;
    --text-secondary: #687078;
    --border-color: #d5d9d9;
    --shadow: rgba(255, 107, 53, 0.1);
    --table-hover: #fff5f2;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Table column widths for daily metrics - matched to Live */
.col-name {
    min-width: 150px;
    max-width: 200px;
    width: 200px;
}

.col-tpid {
    min-width: 110px;
    width: 120px;
}

.col-dcr {
    min-width: 65px;
    width: 65px;
    border-left: 2px solid var(--border-color);
}

.col-parcels-delivered {
    min-width: 65px;
    width: 65px;
}

.col-parcels-returned {
    min-width: 65px;
    width: 65px;
}

.col-pod {
    min-width: 65px;
    width: 65px;
    border-left: 2px solid var(--border-color);
}

.col-good-photos {
    min-width: 65px;
    width: 70px;
}

.col-bad-photos {
    min-width: 65px;
    width: 70px;
}

.col-following {
    min-width: 85px;
    width: 95px;
    border-left: 2px solid var(--border-color);
}

.col-distracted {
    min-width: 85px;
    width: 100px;
}

.col-speeding {
    min-width: 85px;
    width: 90px;
}

.col-sign-signal {
    min-width: 90px;
    width: 105px;
}

.col-camera {
    min-width: 85px;
    width: 110px;
}

/* Dashboard Controls Alignment */
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-container {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-input {
    flex: 1;
    max-width: 400px;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    padding: 0 1rem 0 2.5rem !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px;
    font-size: 0.875rem;
    line-height: normal;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23687078' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0.75rem center;
    background-color: var(--bg-card);
    transition: all 0.2s ease;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Concessions Specific Styles */
.controls-row {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.toggle-days-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.toggle-days-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.address-cell {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.85rem;
}

.notes-cell {
    max-width: 200px;
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.trackable-id {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent-primary);
}

.day-column {
    text-align: center;
    min-width: 45px !important;
    width: 45px !important;
}

.day-column.hidden {
    display: none;
}

/* Netradyne Specific Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-primary);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.15);
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 600;
    height: 2.4em;
    line-height: 1.2em;
    display: flex;
    align-items: center;
}

.stat-value {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.uk-number-plate {
    display: inline-flex;
    align-items: center;
    background: #ffd401;
    border: 2px solid #000;
    border-radius: 3px;
    overflow: hidden;
    font-family: 'Charles Wright', 'Roboto Mono', monospace;
    font-weight: bold;
    font-size: 0.9375rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    letter-spacing: 0;
    width: 90px;
    height: 28px;
    justify-content: center;
    position: relative;
}

.uk-plate-flag {
    background: #003399;
    width: 6px;
    height: 100%;
    flex-shrink: 0;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
}

.uk-plate-number {
    color: #000;
    letter-spacing: 0;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding-left: 6px;
}

.alert-count {
    font-family: 'Roboto Mono', monospace;
    font-weight: 500;
    text-align: center;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    min-width: 35px;
    font-size: 0.8125rem;
}

.count-0 {
    background: #d4edda;
    color: #155724;
}

.count-low {
    background: #fff3cd;
    color: #856404;
}

.count-medium {
    background: #ffe5d0;
    color: #c35400;
}

.count-high {
    background: #f8d7da;
    color: #721c24;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

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

    .header-right {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    .view-tabs {
        width: 100%;
    }

    .date-picker-container,
    .week-picker-container {
        width: 100%;
        justify-content: space-between;
    }

    table {
        font-size: 0.75rem;
    }

    .col-name {
        min-width: 120px;
        width: 120px;
    }

    .col-tpid {
        min-width: 100px;
        width: 100px;
    }
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.modal-close:hover {
    background: var(--bg-primary);
    color: var(--accent-primary);
}

.modal-body {
    padding: 1.5rem 2rem;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

.modal-table-container {
    overflow-x: auto;
}

.modal-table {
    width: 100%;
    border-collapse: collapse;
}

.modal-table th {
    background: var(--bg-primary);
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap !important;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
}

.modal-table tbody tr:hover {
    background: var(--table-hover);
}

.modal-no-data {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.modal-no-data-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

.header-left h1 {
    font-family: 'Inter', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    letter-spacing: -0.025em;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 400;
}

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

.depot-filter {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 130px;
    height: 36px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.depot-filter:hover,
.depot-filter:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.view-tabs {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-card);
    padding: 0.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.view-tab {
    padding: 0.5rem 1.25rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.view-tab:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.view-tab.active {
    background: var(--accent-primary);
    color: white;
}

.copy-image-btn {
    background: var(--accent-primary);
    border: none !important;
    color: white;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    padding: 0 1rem !important;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    box-sizing: border-box !important;
    line-height: 1 !important;
    margin: 0 !important;
}

.copy-image-btn:hover {
    background: #e55d2e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

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

.copy-image-btn.copying {
    background: #10b981;
}

.date-picker-container,
.week-picker-container {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-card);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    width: fit-content;
}

.date-nav-btn,
.week-nav-btn {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--accent-primary);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 1.2rem;
    text-decoration: none;
    font-weight: bold;
}

.date-nav-btn.disabled,
.week-nav-btn:disabled {
    background: #e9ecef;
    color: #adb5bd;
    border-color: #dee2e6;
    cursor: not-allowed;
    transform: none !important;
    opacity: 0.6;
}

.date-nav-btn:hover,
.week-nav-btn:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: scale(1.05);
}

.date-input,
.week-input {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 180px;
}

.today-btn,
.current-week-btn {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.today-btn:hover,
.current-week-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.table-container {
    background: var(--bg-card);
    border-radius: 12px;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

thead {
    background: var(--bg-primary);
    position: sticky;
    top: 0;
    z-index: 10;
}

th {
    padding: 0.65rem 0.5rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    white-space: normal;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: clip;
}

th.sortable::after {
    content: ' ⇅';
    opacity: 0.3;
    font-size: 0.8rem;
    margin-left: 4px;
}

th.sort-asc::after {
    content: ' ▲';
    color: var(--accent-primary);
    opacity: 1;
}

th.sort-desc::after {
    content: ' ▼';
    color: var(--accent-primary);
    opacity: 1;
}

th:hover {
    color: var(--accent-primary);
    background: var(--table-hover);
}

tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.table-hover tbody tr:hover {
    background: var(--table-hover);
}

td {
    padding: 0.5rem 0.5rem;
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: none;
    vertical-align: middle;
}

.driver-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    transition: background-color 0.2s ease;
}

.tpid {
    font-family: 'Roboto Mono', monospace;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.metric-value {
    font-family: 'Roboto Mono', monospace;
    font-weight: 500;
    text-align: center;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    min-width: 50px;
    font-size: 0.8125rem;
}

/* Common Color Classes */
.safety-blue {
    background: #cfe2ff;
    color: #084298;
}

.safety-green {
    background: #d4edda;
    color: #155724;
}

.safety-yellow {
    background: #fff3cd;
    color: #856404;
}

.safety-orange {
    background: #ffe5cc;
    color: #cc5200;
}

.safety-red {
    background: #f8d7da;
    color: #721c24;
}

.safety-extreme {
    background: #dc3545;
    color: #ffffff;
    font-weight: 700;
}

.percentage-excellent {
    background: #cfe2ff;
    color: #084298;
}

.percentage-good {
    background: #d4edda;
    color: #155724;
}

.percentage-medium {
    background: #fff3cd;
    color: #856404;
}

.percentage-poor {
    background: #f8d7da;
    color: #721c24;
}

.no-data {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {

    0%,
    20% {
        content: '.';
    }

    40% {
        content: '..';
    }

    60%,
    100% {
        content: '...';
    }
}

/* Merged header styling */
th.merged-header {
    background: var(--bg-card);
    color: var(--accent-primary);
    text-align: center;
    font-weight: 700;
    font-size: 0.75rem;
    border-bottom: 1px solid var(--accent-primary);
    border-left: 2px solid var(--border-color);
    cursor: default;
    padding: 0.5rem 0.75rem;
    height: 52px;
    vertical-align: middle;
}

/* Skeleton loader */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-row td {
    padding: 0.5rem 1rem;
}

.skeleton-name {
    height: 18px;
    width: 120px;
}

.skeleton-badge {
    height: 24px;
    width: 50px;
    margin: 0 auto;
}

.fade-in {
    animation: fadeInTable 0.4s ease-out;
}

@keyframes fadeInTable {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Netradyne Driver Assignment UI Styles */
.driver-edit-container {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    z-index: 1000;
}

.driver-search-wrapper {
    margin-bottom: 0.75rem;
}

.driver-search-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.875rem;
    outline: none;
}

.driver-search-input:focus {
    border-color: var(--accent-primary);
}

.driver-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.driver-option {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 0.2s;
}

.driver-option:hover {
    background: var(--table-hover);
}

.driver-option.selected {
    background: var(--accent-primary);
    color: white;
}

.driver-option.hidden {
    display: none;
}

.driver-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.driver-actions button {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border: none;
}

.edit-btn {
    background: #2ecc71;
    color: white;
}

.cancel-btn {
    background: #f8f9fa;
    color: var(--text-primary);
    border: 1px solid var(--border-color) !important;
}

.no-results {
    padding: 0.75rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

/* Mobile Dropdown  Behavior */
@media (max-width: 768px) {
    .app-navbar {
        padding: 0.75rem 1rem;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Navigation Bar Styles - Compact Professional Design */
.main-navbar {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 100vw;
    position: relative;
    z-index: 1000;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    width: 100%;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-text {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.navbar-logo {
    height: 32px;
    width: auto;
}

.navbar-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    flex: 1;
    justify-content: center;
}

.navbar-item {
    position: relative;
}

.navbar-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.navbar-link:hover {
    color: var(--accent-primary);
}

.navbar-link.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

.nav-arrow {
    width: 14px;
    height: 14px;
    margin-left: 2px;
    opacity: 0.4;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.navbar-link:hover .nav-arrow,
.navbar-item.has-dropdown:hover .nav-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

.navbar-item.has-dropdown:hover .navbar-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navbar-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    padding: 0.5rem 0;
    margin-top: -2px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 50;
}

.navbar-dropdown-right {
    left: auto;
    right: 0;
}

.navbar-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background 0.15s ease;
}

.navbar-dropdown-item:not(.locked):hover {
    background: #fef3f2;
    color: var(--accent-primary);
}

.navbar-dropdown-item.locked {
    color: #d1d5db;
    cursor: not-allowed;
    font-style: italic;
}

.navbar-dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0.5rem 0;
}

.lock-icon,
.dropdown-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.5;
}

.navbar-account {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.account-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.account-trigger:hover {
    background: #f3f4f6;
}

.account-icon {
    width: 18px;
    height: 18px;
}

.account-name {
    font-size: 0.875rem;
    font-weight: 500;
}

.chevron-icon {
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
}

.navbar-item.has-dropdown:hover .chevron-icon {
    transform: rotate(180deg);
}

/* Improved driver name hover on Netradyne */
.table-hover .driver-name:hover {
    background: #ffe5e5;
    cursor: pointer;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .navbar-container {
        padding: 0 1rem;
    }

    .navbar-menu {
        gap: 0.25rem;
    }

    .navbar-link {
        padding: 0.75rem 0.875rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 768px) {
    .navbar-menu {
        display: none;
    }

    .account-name {
        display: none;
    }
}