/* Kamyon Takip CRM - Homies Lab teması ile uyumlu özel stiller */

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

:root {
    --background-gradient: linear-gradient(135deg, #d6e4ff 0%, #eef4ff 100%);
    --sidebar-gradient: linear-gradient(180deg, #d8e4fb 0%, #edf3ff 100%);
    --surface-color: rgba(255, 255, 255, 0.92);
    --surface-hover: rgba(255, 255, 255, 0.97);
    --surface-border: rgba(216, 205, 186, 0.6);
    --surface-muted: rgba(233, 226, 214, 0.55);
    --primary-color: #2e6be6;
    --primary-color-strong: #1f53c5;
    --primary-color-soft: rgba(46, 107, 230, 0.18);
    --accent-color: #5f657a;
    --accent-strong: #3f4456;
    --muted-color: #8a8f9c;
    --success-color: #61c29e;
    --danger-color: #d86d6d;
    --warning-color: #f0a94b;
    --info-color: #6d8ad8;
    --radius-large: 26px;
    --radius-medium: 18px;
    --radius-small: 12px;
    --shadow-soft: 0 22px 45px rgba(20, 22, 33, 0.09);
    --shadow-hover: 0 30px 60px rgba(20, 22, 33, 0.16);
    --transition-base: all 0.35s ease;
}

.fa-lira-sign::before {
    content: '';
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--background-gradient);
    color: var(--accent-color);
    min-height: 100vh;
    letter-spacing: 0.01em;
}

a {
    color: var(--accent-strong);
}

a:hover {
    color: var(--primary-color-strong);
}

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

p {
    color: var(--muted-color);
}

.text-muted {
    color: var(--muted-color) !important;
}

/* Navbar */
.navbar {
    background: var(--surface-color);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--surface-border);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--accent-strong);
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-small);
    color: var(--accent-color);
    transition: var(--transition-base);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    background: var(--primary-color-soft);
    color: var(--accent-strong);
}

/* Layout */
.main-content {
    background: transparent;
    min-height: 100vh;
    padding: 2.5rem 3rem;
}

.main-content > .p-4,
.main-content > .content-wrapper {
    background: var(--surface-color);
    border-radius: var(--radius-large);
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-soft);
    padding: 2.5rem;
}

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

.section-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--accent-strong);
    margin-bottom: 1.25rem;
}

/* Sidebar */
.sidebar {
    background: var(--sidebar-gradient);
    min-height: 100vh;
    padding: 2rem 1.5rem;
    border-right: 1px solid var(--surface-border);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.35);
    display: flex;
    flex-direction: column;
}

.sidebar > .p-3,
.sidebar-header {
    margin-bottom: 2.2rem;
}

.sidebar > .p-3 h5,
.sidebar-header h5 {
    font-weight: 600;
    color: var(--accent-strong);
    margin-bottom: 0.6rem;
}

/* Sidebar Logo - %30 küçültülmüş (orijinalin %70'i) */
.sidebar-logo {
    max-width: 42% !important;
    width: 42% !important;
    height: auto !important;
    display: block;
}

/* Kullanıcı adı başlığı ve ikon mavi renk */
.sidebar > .p-3 h5.text-white,
.sidebar-header h5.text-white {
    color: var(--primary-color) !important;
}

.sidebar > .p-3 h5.text-white i,
.sidebar-header h5.text-white i {
    color: var(--primary-color) !important;
}

.sidebar > .p-3 small,
.sidebar-header small,
.sidebar .text-light {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.62);
    color: var(--muted-color) !important;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-small);
    font-size: 0.78rem;
    font-weight: 500;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.sidebar-header {
    margin-bottom: 2rem;
}

.sidebar-header h5 {
    font-weight: 600;
    color: var(--accent-strong);
    margin-bottom: 0.25rem;
}

.sidebar-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-small);
    font-size: 0.8rem;
    color: var(--muted-color);
}

.sidebar .nav {
    gap: 0.35rem;
}

.sidebar .nav-link {
    color: var(--accent-color);
    font-weight: 500;
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-medium);
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: transparent;
    border: 1px solid transparent;
}

.sidebar .nav-link i {
    font-size: 1.15rem;
}

.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 12px 25px rgba(140, 142, 150, 0.15);
    transform: translateX(4px);
}

.sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.92);
    color: var(--accent-strong);
    box-shadow: 0 16px 32px rgba(140, 142, 150, 0.18);
}

.sidebar hr {
    border-color: rgba(163, 166, 180, 0.25);
    margin: 1.6rem 0;
}

.sidebar .btn-logout {
    margin-top: auto;
    color: var(--danger-color);
}

/* Mobile sidebar visibility */
.mobile-header,
.sidebar-mobile,
.sidebar-overlay {
    display: none;
}

.mobile-header {
    position: sticky;
    top: 0;
    z-index: 1040;
    padding: 0.85rem 1.1rem;
    background: var(--sidebar-gradient);
    color: #0c1f4d;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
    border-bottom-left-radius: var(--radius-large);
    border-bottom-right-radius: var(--radius-large);
}

.mobile-header .hamburger {
    color: #0c1f4d;
    font-size: 1.35rem;
    background: none;
    border: none;
}

.mobile-header .hamburger:focus {
    outline: none;
    box-shadow: none;
}

.mobile-header .mobile-header-title {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--primary-color) !important;
}

.mobile-header .mobile-header-title i {
    color: var(--primary-color) !important;
}

.mobile-header .btn-light {
    border-radius: var(--radius-small);
    border: none;
    font-weight: 600;
    color: #0c1f4d;
    background: rgba(255, 255, 255, 0.9);
}

.mobile-header .btn-light:hover {
    background: rgba(12, 31, 77, 0.08);
    color: #0c1f4d;
}

.sidebar-mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 80%;
    height: 100vh;
    padding: 1.5rem;
    background: var(--sidebar-gradient);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.35);
    z-index: 1055;
    transform: translateX(-105%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    border-top-right-radius: var(--radius-large);
    border-bottom-right-radius: var(--radius-large);
}

.sidebar-mobile.show {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.mobile-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-medium);
    background: rgba(12, 31, 77, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #0c1f4d;
    margin-right: 0.9rem;
}

.mobile-avatar i {
    color: var(--primary-color) !important;
}

.mobile-user-name {
    font-weight: 600;
    color: var(--primary-color) !important;
    font-size: 1.05rem;
}

.close-mobile-menu {
    color: rgba(12, 31, 77, 0.7) !important;
    font-size: 1.3rem;
}

.close-mobile-menu:hover {
    color: #0c1f4d !important;
}

.sidebar-mobile .nav {
    gap: 0.35rem;
}

.sidebar-mobile .nav-link {
    color: rgba(12, 31, 77, 0.9);
    font-weight: 500;
    padding: 0.9rem 0.95rem;
    border-radius: var(--radius-medium);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition-base);
}

.sidebar-mobile .nav-link i {
    width: 1.25rem;
    text-align: center;
    font-size: 1.1rem;
    color: inherit;
}

.sidebar-mobile .nav-link:hover {
    background: rgba(12, 31, 77, 0.08);
    color: #0c1f4d;
}

.sidebar-mobile .nav-link.active {
    background: rgba(12, 31, 77, 0.16);
    color: #0c1f4d;
    box-shadow: 0 12px 26px rgba(12, 31, 77, 0.12);
}

.sidebar-mobile .nav-link.logout-link {
    color: #8a1c1c;
}

.sidebar-mobile .nav-link.logout-link:hover {
    background: rgba(138, 28, 28, 0.12);
    color: #8a1c1c;
}

.sidebar-mobile hr {
    border-color: rgba(12, 31, 77, 0.2);
    margin: 1.4rem 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.menu-open {
    overflow: hidden;
}

/* Cards */
.card {
    border-radius: var(--radius-large);
    border: 1px solid var(--surface-border);
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
    background: var(--surface-hover);
}

.card-header {
    background: transparent;
    border: none;
    padding: 1.4rem 1.6rem;
    border-bottom: 1px solid var(--surface-muted);
}

.card-header h5,
.card-header h6 {
    margin: 0;
    font-weight: 600;
    color: var(--accent-strong);
}

.card-body {
    padding: 1.7rem 1.6rem;
}

.light-card {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.light-card:hover {
    background: rgba(255, 255, 255, 0.88);
}

/* Panel stat cards */
.dashboard-card {
    border: none;
    border-radius: var(--radius-large);
    padding: 1.8rem;
    background: linear-gradient(125deg, rgba(210, 224, 255, 0.9) 0%, rgba(46, 107, 230, 0.38) 100%);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.dashboard-card .card-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color-strong);
    background: rgba(255, 255, 255, 0.65);
    box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
}

.dashboard-card .card-title {
    font-size: 0.95rem;
    color: var(--muted-color);
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.dashboard-card .card-value {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--accent-strong);
    position: relative;
    z-index: 1;
}

.dashboard-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

/* Panel hero */
.dashboard-hero {
    border-radius: var(--radius-large);
    border: 1px solid var(--surface-border);
    background: linear-gradient(140deg, rgba(46, 107, 230, 0.35) 0%, rgba(240, 245, 255, 0.95) 55%);
    padding: 2.4rem 2.8rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    align-items: stretch;
}

.dashboard-hero .hero-details {
    flex: 1 1 320px;
}

.dashboard-hero .hero-title {
    font-size: 2.05rem;
    margin: 0.75rem 0 0.4rem;
}

.dashboard-hero .hero-subtitle {
    margin: 0 0 1.2rem;
    font-size: 0.95rem;
}

.dashboard-hero .hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.hero-stats {
    flex: 1 1 280px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.3rem;
}

.kpi-circle {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-align: center;
    padding: 1.2rem;
}

.kpi-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted-color);
    font-weight: 600;
}

.kpi-value {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--accent-strong);
}

.kpi-sublabel {
    font-size: 0.9rem;
    color: var(--muted-color);
}

.hero-progress {
    width: 100%;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.hero-progress-item {
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-medium);
    border: 1px solid var(--surface-border);
    padding: 0.9rem 1.1rem;
    box-shadow: 0 14px 25px rgba(31, 34, 60, 0.08);
}

.hero-progress-item strong {
    color: var(--accent-strong);
}

.hero-progress-item .progress {
    height: 7px;
    background: rgba(241, 232, 216, 0.8);
    border-radius: 999px;
}

.hero-progress-item .progress-bar {
    border-radius: 999px;
}

.hero-progress-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
    color: var(--muted-color);
    font-size: 0.85rem;
}

.hero-progress-summary small {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.hero-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-shortcut {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.75);
    color: var(--accent-strong);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-base);
    box-shadow: 0 12px 28px rgba(31, 34, 60, 0.08);
}

.hero-shortcut:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

.hero-controls {
    flex: 1 1 300px;
    min-width: 260px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-large);
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-soft);
    padding: 1.6rem 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    backdrop-filter: blur(6px);
}

.hero-filter {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hero-filter label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-color);
    font-weight: 600;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.hero-select {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-small);
    padding: 0.6rem 0.85rem;
    font-weight: 500;
    color: var(--accent-strong);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    appearance: none;
}

.hero-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(46, 107, 230, 0.25);
    background: rgba(255, 255, 255, 1);
}

.hero-reset {
    font-size: 0.8rem;
    color: var(--muted-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition-base);
}

.hero-reset:hover {
    color: var(--accent-strong);
    transform: translateX(3px);
}

.hero-summary {
    display: grid;
    gap: 1rem;
}

.summary-item {
    background: rgba(255, 255, 255, 0.88);
    border-radius: var(--radius-medium);
    border: 1px solid var(--surface-border);
    padding: 1rem 1.15rem;
    box-shadow: 0 16px 28px rgba(31, 34, 60, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.summary-leading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
}

.summary-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted-color);
    font-weight: 600;
}

.summary-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-strong);
}

.summary-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--muted-color);
}

.summary-meta i {
    color: var(--primary-color-strong);
}

/* Highlight panels */
.highlight-panel {
    border-radius: var(--radius-large);
    border: 1px solid var(--surface-border);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 242, 211, 0.9) 100%);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.highlight-panel .panel-title {
    font-size: 1rem;
    color: var(--muted-color);
    margin-bottom: 0.6rem;
}

.highlight-panel .panel-value {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--accent-strong);
}

.highlight-panel .panel-chart {
    margin-top: 1.5rem;
}

/* Buttons */
.btn {
    border-radius: var(--radius-small);
    font-weight: 600;
    border: none;
    padding: 0.75rem 1.4rem;
    transition: var(--transition-base);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn:hover,
.btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(20, 22, 33, 0.18);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-strong) 100%);
    color: #fff;
}

.btn-primary:hover {
    color: #fff;
}

.btn-success {
    background: linear-gradient(135deg, #9be7c4 0%, #61c29e 100%);
    color: #1d3f2f;
}

.btn-danger {
    background: linear-gradient(135deg, #f5a4a4 0%, #d86d6d 100%);
    color: #571f1f;
}

.btn-warning {
    background: linear-gradient(135deg, #fbe2aa 0%, #f0a94b 100%);
    color: #5b3d11;
}

.btn-info {
    background: linear-gradient(135deg, #c3d3ff 0%, #6d8ad8 100%);
    color: #fff;
}

.btn-light {
    background: rgba(255, 255, 255, 0.8);
    color: var(--accent-color);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.btn-light:hover {
    background: rgba(255, 255, 255, 0.92);
}

/* Forms */
.form-label {
    font-weight: 600;
    color: var(--accent-strong);
}

.form-control,
.form-select {
    border-radius: var(--radius-small);
    border: 1px solid var(--surface-border);
    background: rgba(255, 255, 255, 0.85);
    padding: 0.75rem 1rem;
    transition: var(--transition-base);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(46, 107, 230, 0.25);
    background: rgba(255, 255, 255, 1);
}

.form-control::placeholder {
    color: rgba(143, 146, 156, 0.8);
}

/* Tables */
.table-responsive {
    border-radius: var(--radius-large);
    border: 1px solid var(--surface-border);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    max-height: none;
}

.table {
    margin-bottom: 0;
    color: var(--accent-color);
    width: 100%;
}

.table thead th {
    background: linear-gradient(135deg, rgba(46, 107, 230, 0.24) 0%, rgba(46, 107, 230, 0.05) 100%);
    border-bottom: 0;
    border-top: 0;
    font-weight: 600;
    color: var(--accent-strong);
    padding: 1.1rem 1rem;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

/* Raporlar sayfaları için sticky header iyileştirmesi */
.report-section .table-responsive {
    max-height: calc(100vh - 300px);
    overflow-y: auto;
}

.report-section .table thead th {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, rgba(46, 107, 230, 0.28) 0%, rgba(46, 107, 230, 0.08) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Şoför raporlar sayfası için sticky header */
.driver-raporlar .table-responsive,
.card-body .table-responsive {
    max-height: calc(100vh - 400px);
    overflow-y: auto;
}

.driver-raporlar .table thead th,
.card-body .table thead th {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, rgba(46, 107, 230, 0.28) 0%, rgba(46, 107, 230, 0.08) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.table tbody tr {
    transition: var(--transition-base);
}

.table tbody tr:nth-child(even) {
    background: rgba(46, 107, 230, 0.04);
}

.table tbody tr:hover {
    background: rgba(46, 107, 230, 0.12);
    transform: translateY(-2px);
}

.table td {
    padding: 1rem;
    border-top: 1px solid rgba(226, 220, 208, 0.6);
}

/* Alerts */
.alert {
    border-radius: var(--radius-medium);
    border: none;
    font-weight: 500;
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-soft);
}

.alert-success {
    background: linear-gradient(135deg, rgba(155, 231, 196, 0.8) 0%, rgba(97, 194, 158, 0.6) 100%);
    color: #1d3f2f;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(245, 164, 164, 0.85) 0%, rgba(216, 109, 109, 0.7) 100%);
    color: #571f1f;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(251, 226, 170, 0.85) 0%, rgba(240, 169, 75, 0.7) 100%);
    color: #5b3d11;
}

.alert-info {
    background: linear-gradient(135deg, rgba(195, 211, 255, 0.85) 0%, rgba(109, 138, 216, 0.7) 100%);
    color: #27345c;
}

/* Modals */
.modal-content {
    border-radius: var(--radius-large);
    border: 1px solid var(--surface-border);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-hover);
}

.modal-header {
    background: linear-gradient(135deg, rgba(46, 107, 230, 0.6) 0%, rgba(30, 92, 210, 0.35) 100%);
    border-bottom: 1px solid rgba(251, 232, 200, 0.85);
    border-radius: var(--radius-large) var(--radius-large) 0 0;
}

.modal-header .btn-close {
    filter: invert(0.8);
}

/* Badges */
.badge {
    border-radius: 999px;
    font-weight: 500;
    padding: 0.45rem 0.8rem;
    background: rgba(46, 107, 230, 0.22);
    color: var(--accent-strong);
}

.badge.bg-primary {
    background: rgba(46, 107, 230, 0.28) !important;
    color: var(--accent-strong) !important;
}

.badge.bg-success {
    background: rgba(97, 194, 158, 0.25) !important;
    color: #1d3f2f !important;
}

.badge.bg-danger {
    background: rgba(216, 109, 109, 0.25) !important;
    color: #571f1f !important;
}

/* Progress bar */
.progress {
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
}

.progress-bar {
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-strong) 100%);
}

.progress-bar.bg-warning {
    background: linear-gradient(135deg, #fbe2aa 0%, #f0a94b 100%) !important;
}

.progress-bar.bg-success {
    background: linear-gradient(135deg, #9be7c4 0%, #61c29e 100%) !important;
}

/* License plate */
.license-plate {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.2rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-medium);
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-soft);
}

.plate-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.plate-tr {
    background: #4a5aa1;
    color: white;
    padding: 0.35rem 0.6rem;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.plate-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-strong);
    letter-spacing: 0.1em;
}

/* Back to top button */
#backToTop {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-strong) 100%);
    color: var(--accent-strong);
    border: none;
    box-shadow: var(--shadow-soft);
}

#backToTop:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

/* Footer */
footer {
    background: rgba(255, 255, 255, 0.75);
    border-top: 1px solid var(--surface-border);
    color: var(--muted-color);
}

footer h5 {
    color: var(--accent-strong);
    font-weight: 600;
}

.app-footer {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(6px);
}

.app-footer .footer-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(46, 107, 230, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-strong);
    font-size: 1.2rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.app-footer .footer-meta span {
    color: var(--muted-color);
    font-size: 0.85rem;
}

/* Utility */
.glass-surface {
    background: rgba(255, 255, 255, 0.76);
    border-radius: var(--radius-large);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(46, 107, 230, 0.22);
    color: var(--accent-strong);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.schedule-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--muted-color);
    border: 1px solid rgba(46, 107, 230, 0.25);
}

.schedule-pill.active {
    background: rgba(46, 107, 230, 0.3);
    color: var(--accent-strong);
}

/* Authentication */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    background: var(--background-gradient);
    position: relative;
}

.auth-card {
    width: 100%;
    max-width: 980px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: var(--radius-large);
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-hover);
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
}

.auth-illustration {
    flex: 1 1 340px;
    background: linear-gradient(150deg, rgba(46, 107, 230, 0.45) 0%, rgba(240, 245, 255, 0.88) 100%);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    color: var(--accent-strong);
    position: relative;
}

.auth-illustration h2 {
    font-size: 2rem;
    margin: 0;
    line-height: 1.25;
}

.auth-illustration p {
    margin: 0;
    font-size: 0.95rem;
}

.auth-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.auth-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--accent-strong);
}

.auth-list li i {
    color: var(--primary-color-strong);
}

.auth-form {
    flex: 1 1 340px;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.96);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-form h3 {
    font-size: 1.75rem;
    margin-bottom: 0.35rem;
}

.auth-form .auth-subtitle {
    color: var(--muted-color);
    font-size: 0.95rem;
}

.auth-form .form-control {
    border-radius: var(--radius-small);
}

.auth-buttons {
    display: grid;
    gap: 0.85rem;
}

.auth-buttons .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    font-size: 1rem;
    padding: 0.85rem 1.2rem;
}

.auth-buttons .btn i {
    font-size: 1.1rem;
}

.auth-meta {
    font-size: 0.85rem;
    color: var(--muted-color);
}

.auth-meta a {
    color: var(--accent-strong);
    font-weight: 500;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--surface-border);
}

.auth-footer {
    font-size: 0.8rem;
    color: var(--muted-color);
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: rgba(46, 107, 230, 0.25);
    color: var(--accent-strong);
    font-size: 1.3rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.auth-form .alert {
    margin-bottom: 0;
}

.auth-footer small {
    font-size: 0.78rem;
}

.admin-access-btn {
    position: absolute;
    left: 2rem;
    bottom: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.9);
    color: var(--accent-strong);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-small);
    box-shadow: 0 14px 30px rgba(20, 22, 33, 0.08);
    transition: var(--transition-base);
    z-index: 2;
    white-space: nowrap;
    max-width: calc(100% - 4rem);
}

.admin-access-btn i {
    font-size: 1rem;
}

.admin-access-btn:hover,
.admin-access-btn:focus {
    background: rgba(46, 107, 230, 0.25);
    color: var(--accent-strong);
    border-color: rgba(46, 107, 230, 0.5);
}

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

.metric-tile {
    border-radius: var(--radius-medium);
    border: 1px solid var(--surface-border);
    background: rgba(255, 255, 255, 0.82);
    padding: 1.3rem 1.4rem;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.metric-tile::after {
    content: '';
    position: absolute;
    inset: 12%;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.metric-label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted-color);
    font-weight: 600;
}

.metric-value {
    display: block;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--accent-strong);
    margin-top: 0.35rem;
}

.metric-note {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: var(--muted-color);
}

.trend-summary {
    gap: 0.6rem;
}

.schedule-card .card-header .chip {
    background: rgba(255, 255, 255, 0.75);
}

.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.timeline-time {
    min-width: 90px;
    font-weight: 600;
    color: var(--accent-strong);
    font-size: 0.95rem;
}

.timeline-card {
    flex: 1;
    border-radius: var(--radius-medium);
    border: 1px solid var(--surface-border);
    background: rgba(255, 255, 255, 0.86);
    padding: 1rem 1.2rem;
    box-shadow: var(--shadow-soft);
}

.timeline-card .meta {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.78rem;
    color: var(--muted-color);
}

.timeline-card .meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.timeline-card .meta i {
    color: var(--primary-color-strong);
}

.timeline-note {
    margin-top: 0.6rem;
    font-size: 0.78rem;
}

.quick-actions .action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.85rem;
}

.quick-actions .btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 25px rgba(20, 22, 33, 0.09);
    color: var(--accent-strong);
}

.quick-actions .btn:hover {
    background: rgba(255, 255, 255, 0.92);
}

.quick-actions .btn i {
    font-size: 1.05rem;
    color: var(--primary-color-strong);
}

.quick-actions-only {
    display: flex;
    justify-content: center;
}

.quick-actions-card {
    width: 100%;
    padding: 2.2rem 2.6rem;
    border-radius: var(--radius-large);
    border: 1px solid var(--surface-border);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.78) 100%);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.quick-actions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.quick-actions-title {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--accent-strong);
}

.quick-actions-title i {
    font-size: 1.4rem;
    color: var(--primary-color-strong);
}

.quick-actions-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(46, 107, 230, 0.25);
    color: var(--accent-strong);
    font-weight: 600;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.quick-actions-grid {
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
}

.quick-action-pill {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.92);
    border-radius: var(--radius-medium);
    border: 1px solid rgba(235, 225, 207, 0.8);
    padding: 2.2rem 1.5rem;
    text-decoration: none;
    font-weight: 600;
    color: var(--accent-strong);
    box-shadow: 0 18px 32px rgba(20, 22, 33, 0.08);
    transition: var(--transition-base);
}

.quick-action-pill i {
    font-size: 1.4rem;
    color: var(--primary-color-strong);
    transition: var(--transition-base);
}

.quick-action-pill:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.quick-action-pill:hover i {
    transform: scale(1.05);
}

/* Responsive tweaks */
@media (max-width: 991px) {
    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .sidebar-mobile,
    .sidebar-overlay {
        display: block;
    }

    .sidebar {
        display: none;
    }

    .main-content {
        padding: 1.5rem;
    }

    .main-content > .p-4,
    .main-content > .content-wrapper {
        padding: 1.5rem;
    }

    .dashboard-hero {
        padding: 2rem;
        gap: 1.8rem;
        flex-direction: column;
    }

    .dashboard-hero .hero-details,
    .hero-stats,
    .hero-controls {
        flex: 1 1 100%;
    }

    .hero-stats {
        align-items: stretch;
    }

    .hero-progress {
        max-width: 100%;
    }

    .hero-progress-summary {
        align-items: flex-start;
    }

    .dashboard-hero .hero-title {
        font-size: 1.85rem;
    }

    .kpi-circle {
        width: 170px;
        height: 170px;
        align-self: flex-start;
    }

    .hero-controls {
        padding: 1.4rem;
    }

    .hero-actions {
        justify-content: flex-start;
    }

    .quick-actions-card {
        padding: 1.8rem 2rem;
    }

    .admin-access-btn {
        display: none;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 0.95rem;
    }

    .auth-wrapper {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 2rem 1.2rem 1.5rem;
    }

    .auth-card {
        order: 1;
    }

    .main-content {
        padding: 1rem;
    }

    .main-content > .p-4,
    .main-content > .content-wrapper {
        padding: 1.2rem;
    }

    .dashboard-hero {
        padding: 1.6rem;
        gap: 1.4rem;
    }

    .admin-access-btn {
        display: inline-flex;
        position: static;
        order: 2;
        margin: 1.5rem auto 0;
        width: 100%;
        max-width: 260px;
        padding: 0.6rem 1.1rem;
        align-self: center;
    }

    .auth-wrapper > .admin-access-btn {
        margin-top: auto;
    }

    .dashboard-hero .hero-title {
        font-size: 1.65rem;
    }

    .kpi-circle {
        width: 150px;
        height: 150px;
    }

    .hero-controls {
        padding: 1.2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-shortcut {
        width: 100%;
        justify-content: center;
    }

    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-filter .btn {
        width: 100%;
    }

    .hero-reset {
        justify-content: center;
    }

    .hero-summary {
        gap: 0.75rem;
    }

    .quick-actions-card {
        padding: 1.5rem;
    }

    .quick-actions-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .quick-action-pill {
        justify-content: flex-start;
    }

    .summary-item {
        padding: 0.85rem 1rem;
    }

    .dashboard-card {
        padding: 1.35rem;
    }

    .timeline-item {
        flex-direction: column;
        gap: 0.6rem;
    }

    .timeline-time {
        min-width: auto;
    }

    .auth-card {
        flex-direction: column;
    }

    .auth-illustration,
    .auth-form {
        padding: 2rem;
    }

    .auth-illustration h2 {
        font-size: 1.6rem;
    }

    .auth-wrapper {
        padding: 2rem 1rem;
    }
}

.mobile-quick-nav {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.mobile-quick-nav .mobile-nav-btn {
    width: 100%;
    border-radius: var(--radius-small, 12px);
}
