/* styles.css - Admin ve şoför panelleri için modern tema uyarlamaları */
body {
    background: var(--bg-color, #f5f6fa);
    color: var(--text-color, #0f172a);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    line-height: 1.5;
    min-height: 100vh;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Bildirim dropdown stilleri */
.notifications-menu {
    width: min(320px, 80vw);
    max-height: 360px;
    overflow-y: auto;
    border-radius: 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.notifications-header {
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.notifications-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem 0;
}

.notifications-item {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 0;
    background: transparent;
    display: grid;
    gap: 0.35rem;
    text-align: left;
    cursor: pointer;
    white-space: normal;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.notifications-item:is(:hover, :focus) {
    background: rgba(37, 99, 235, 0.08);
}

.notifications-item.is-unread {
    position: relative;
    background: rgba(37, 99, 235, 0.05);
}

.notifications-item.is-unread::before {
    content: '';
    position: absolute;
    top: 0.8rem;
    left: 0.6rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2563eb;
}

.notifications-item__title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color, #0f172a);
}

.notifications-item__message {
    font-size: 0.83rem;
    color: var(--muted-color, #64748b);
}

.notifications-item__meta {
    font-size: 0.75rem;
    color: rgba(99, 102, 241, 0.95);
}

.notifications-header button {
    font-size: 0.75rem;
}

/* --- Giriş (panel seçimi) sayfası --- */
.entry-shell {
    position: relative;
    min-height: 100vh;
    background: var(--bg-color, #f8f9fb);
    color: var(--text-color, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3rem);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.entry-shell::before,
.entry-shell::after {
    content: '';
    position: absolute;
    width: clamp(280px, 35vw, 420px);
    height: clamp(280px, 35vw, 420px);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.16), rgba(99, 102, 241, 0.08));
    filter: blur(0);
    z-index: 0;
}

.entry-shell::before {
    top: -140px;
    right: -120px;
}

.entry-shell::after {
    bottom: -160px;
    left: -140px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(59, 130, 246, 0.08));
}

.entry-container {
    position: relative;
    z-index: 1;
    width: min(1080px, 100%);
    display: grid;
    gap: clamp(2rem, 4vw, 3rem);
}

.entry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.entry-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: inherit;
}

.entry-brand__logo {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.12em;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #ffffff;
    box-shadow: 0 20px 48px -28px rgba(37, 99, 235, 0.65);
}

.entry-brand__text {
    display: grid;
    gap: 0.15rem;
}

.entry-brand__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.entry-brand__subtitle {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted-color, #64748b);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.entry-header__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.entry-hero {
    display: grid;
    gap: 1.75rem;
    align-items: start;
}

.entry-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.entry-hero__text {
    margin: 0;
    font-size: 1.05rem;
    color: var(--muted-color, #64748b);
    max-width: 52ch;
}

.entry-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.entry-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(13, 110, 253, 0.12);
    color: var(--text-color, #0f172a);
}

.entry-chip i {
    color: #0d6efd;
}

.entry-hero__stats {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.entry-stat {
    display: grid;
    gap: 0.35rem;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.75);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm, 0 12px 32px -24px rgba(15, 23, 42, 0.35));
}

.entry-stat__label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted-color, #64748b);
}

.entry-stat__value {
    font-size: 1.65rem;
    font-weight: 700;
}

.entry-grid {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2rem);
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.entry-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: var(--radius-lg, 1.25rem);
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm, 0 16px 32px -26px rgba(15, 23, 42, 0.32));
    height: 100%;
    overflow: hidden;
}

.entry-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.25), transparent 55%);
    pointer-events: none;
}

.entry-card__badge {
    align-self: flex-start;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.78rem;
    color: inherit;
    background: rgba(15, 23, 42, 0.06);
}

.entry-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(13, 110, 253, 0.16);
    color: #0d6efd;
    box-shadow: 0 14px 32px -24px rgba(13, 110, 253, 0.65);
}

.entry-card__title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0.9rem 0 0.5rem;
}

.entry-card__text {
    margin: 0;
    color: var(--muted-color, #64748b);
    font-size: 0.95rem;
}

.entry-card__features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.65rem;
}

.entry-card__features li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    color: var(--muted-color, #64748b);
}

.entry-card__features i {
    color: #0d6efd;
}
    [data-theme="dark"] .entry-card__features i {
        color: rgba(96, 165, 250, 0.95);
    }

.entry-card__cta {
    margin-top: auto;
}

.entry-card__cta .btn {
    width: 100%;
    font-weight: 600;
    border-radius: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.entry-card--primary {
    border-color: rgba(13, 110, 253, 0.22);
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.18), rgba(37, 99, 235, 0.08));
    color: var(--text-color, #0f172a);
}

.entry-card--primary .entry-card__icon {
    background: rgba(13, 110, 253, 0.22);
    color: #0b7af0;
}

.entry-card--indigo {
    border-color: rgba(99, 102, 241, 0.22);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(129, 140, 248, 0.08));
}

.entry-card--indigo .entry-card__icon {
    background: rgba(99, 102, 241, 0.2);
    color: #6366f1;
}

.entry-card--success {
    border-color: rgba(16, 185, 129, 0.22);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(59, 130, 246, 0.08));
}

.entry-card--success .entry-card__icon {
    background: rgba(16, 185, 129, 0.18);
    color: #059669;
}

.entry-card--warning {
    border-color: rgba(245, 158, 11, 0.24);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(249, 115, 22, 0.08));
}

.entry-card--warning .entry-card__icon {
    background: rgba(245, 158, 11, 0.22);
    color: #f97316;
}

.entry-footer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted-color, #64748b);
}

@media (min-width: 992px) {
    .entry-hero {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 0.85fr);
        align-items: center;
    }
}

@media (max-width: 767.98px) {
    .entry-shell {
        padding-top: 2rem;
        padding-bottom: 2.5rem;
    }

    .entry-brand__logo {
        width: 46px;
        height: 46px;
        font-size: 1.3rem;
    }

    .entry-card {
        padding: 1.35rem;
    }
}

@media (max-width: 575.98px) {
    .entry-shell {
        padding: 1.75rem 1.25rem 2.5rem;
    }

    .entry-shell::before,
    .entry-shell::after {
        opacity: 0.25;
        transform: scale(0.85);
    }

    .entry-container {
        gap: 1.75rem;
    }

    .entry-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
    }

    .entry-header__actions {
        justify-content: space-between;
        width: 100%;
    }

    .entry-hero {
        gap: 1.5rem;
    }

    .entry-hero__title {
        font-size: 1.65rem;
    }

    .entry-hero__text {
        font-size: 0.98rem;
    }

    .entry-hero__stats {
        grid-template-columns: 1fr;
    }

    .entry-grid {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }

    .entry-card {
        padding: 1.25rem;
    }

    .entry-card__features {
        font-size: 0.9rem;
    }
}

[data-theme="dark"] .entry-shell::before,
[data-theme="dark"] .entry-shell::after {
    opacity: 0.45;
}

[data-theme="dark"] .entry-card {
    background: linear-gradient(135deg, rgba(20, 24, 31, 0.95), rgba(15, 18, 24, 0.9));
    border-color: rgba(148, 163, 184, 0.14);
}

[data-theme="dark"] .entry-card--primary,
[data-theme="dark"] .entry-card--indigo,
[data-theme="dark"] .entry-card--success,
[data-theme="dark"] .entry-card--warning {
    color: #f8fafc;
}

[data-theme="dark"] .entry-card__icon {
    background: rgba(226, 232, 240, 0.12);
    color: #f8fafc;
}

[data-theme="dark"] .entry-card__badge {
    background: rgba(226, 232, 240, 0.12);
}

[data-theme="dark"] .entry-card__features li,
[data-theme="dark"] .entry-card__text {
    color: rgba(148, 163, 184, 0.85);
}

[data-theme="dark"] .entry-stat {
    background: rgba(20, 24, 31, 0.92);
    border-color: rgba(148, 163, 184, 0.16);
}

[data-theme="dark"] .entry-chip {
    background: rgba(37, 99, 235, 0.22);
}

.entry-footer a {
    color: inherit;
    text-decoration: none;
}

.entry-footer a:hover {
    text-decoration: underline;
}

/* --- Admin / müşteri giriş ekranı --- */
.auth-shell {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    background: var(--bg-color, #f4f5fb);
    color: var(--text-color, #0f172a);
}

.auth-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 55%),
        radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.08), transparent 45%);
    z-index: 0;
}

.auth-side,
.auth-card-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 6vw, 4rem);
}

.auth-side {
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: inherit;
}

.auth-brand__logo {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #ffffff;
    box-shadow: 0 20px 42px -24px rgba(37, 99, 235, 0.65);
}

.auth-brand__text {
    display: grid;
    gap: 0.1rem;
}

.auth-brand__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-brand__subtitle {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted-color, #64748b);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-hero__title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.auth-hero__text {
    font-size: 1.05rem;
    color: var(--muted-color, #64748b);
    max-width: 48ch;
}

.auth-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    background: rgba(13, 110, 253, 0.14);
    color: var(--text-color, #0f172a);
}

.auth-badge i {
    color: #0d6efd;
}
    [data-theme="dark"] .entry-chip {
        background: rgba(37, 99, 235, 0.26);
        color: #e2e8f0;
    }
    [data-theme="dark"] .entry-chip i {
        color: rgba(96, 165, 250, 0.95);
    }

.auth-metrics {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.auth-metric {
    display: grid;
    gap: 0.35rem;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm, 0 16px 32px -26px rgba(15, 23, 42, 0.32));
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.auth-metric__label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted-color, #64748b);
}

.auth-metric__value {
    font-size: 1.55rem;
    font-weight: 700;
}

.auth-card {
    width: min(460px, 100%);
    border-radius: var(--radius-lg, 1.25rem);
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg, 0 28px 72px -32px rgba(15, 23, 42, 0.45));
    padding: clamp(2rem, 4vw, 2.5rem);
    display: grid;
    gap: 1.5rem;
}

.auth-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.auth-card__title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
}

.auth-card__subtitle {
    margin: 0.35rem 0 0;
    font-size: 0.95rem;
    color: var(--muted-color, #64748b);
}

.auth-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.82rem;
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.12);
}

.auth-card form {
    display: grid;
    gap: 1.25rem;
}

.auth-field {
    display: grid;
    gap: 0.5rem;
}

.auth-field label {
    font-weight: 600;
    color: var(--muted-color, #64748b);
}

.auth-field .form-control {
    border-radius: 0.85rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(248, 250, 252, 0.95);
}

.auth-field .form-control:focus {
    border-color: rgba(13, 110, 253, 0.5);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

.auth-submit {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.9rem;
    padding: 0.85rem;
    font-weight: 600;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border: none;
    color: #ffffff;
    box-shadow: 0 18px 36px -24px rgba(37, 99, 235, 0.6);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 42px -26px rgba(37, 99, 235, 0.65);
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-footer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted-color, #64748b);
}

.auth-footer a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9rem;
}

.auth-alert {
    border-radius: 0.9rem;
}

@media (max-width: 991.98px) {
    .auth-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .auth-side {
        align-items: center;
        text-align: center;
        padding-bottom: 0;
    }

    .auth-hero__text {
        max-width: 100%;
    }

    .auth-badges {
        justify-content: center;
    }
}

[data-theme="dark"] .auth-shell::before {
    opacity: 0.55;
}

[data-theme="dark"] .auth-metric {
    background: rgba(20, 24, 31, 0.85);
    border-color: rgba(148, 163, 184, 0.18);
}

[data-theme="dark"] .auth-badge {
    background: rgba(37, 99, 235, 0.22);
}

[data-theme="dark"] .auth-card {
    background: linear-gradient(135deg, rgba(20, 24, 31, 0.95), rgba(15, 18, 24, 0.9));
    border-color: rgba(148, 163, 184, 0.14);
}

[data-theme="dark"] .auth-field .form-control {
    background: rgba(20, 24, 31, 0.95);
    border-color: rgba(148, 163, 184, 0.22);
    color: #e2e8f0;
}

[data-theme="dark"] .auth-field label,
[data-theme="dark"] .auth-card__subtitle,
[data-theme="dark"] .auth-metric__label,
[data-theme="dark"] .auth-hero__text {
    color: rgba(148, 163, 184, 0.85);
}

[data-theme="dark"] .auth-footer {
    color: rgba(148, 163, 184, 0.75);
}

.auth-shell--driver::before {
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.15), transparent 55%),
        radial-gradient(circle at bottom left, rgba(251, 191, 36, 0.12), transparent 45%),
        radial-gradient(circle at center, rgba(37, 99, 235, 0.08), transparent 60%);
}

.auth-shell--driver .auth-brand__logo {
    background: linear-gradient(135deg, #f97316, #fb923c);
    box-shadow: 0 24px 68px -32px rgba(249, 115, 22, 0.55);
}

.auth-shell--driver .auth-card__badge {
    background: rgba(249, 115, 22, 0.18);
    color: #ea580c;
}

.auth-shell--driver .auth-badge {
    background: rgba(251, 146, 60, 0.18);
}

.auth-shell--driver .auth-badge i {
    color: #f97316;
}

.auth-shell--driver .auth-submit {
    background: linear-gradient(135deg, #f97316, #facc15);
    box-shadow: 0 26px 58px -30px rgba(249, 115, 22, 0.55);
}

.auth-shell--driver .auth-metric {
    border-color: rgba(249, 115, 22, 0.2);
    box-shadow: 0 18px 44px -30px rgba(249, 115, 22, 0.35);
}

[data-theme="dark"] .auth-shell--driver .auth-card__badge {
    background: rgba(249, 115, 22, 0.25);
    color: #fed7aa;
}

[data-theme="dark"] .auth-shell--driver .auth-badge {
    background: rgba(249, 115, 22, 0.32);
    color: rgba(255, 237, 213, 0.9);
}

[data-theme="dark"] .auth-shell--driver .auth-submit {
    box-shadow: 0 28px 62px -30px rgba(249, 115, 22, 0.45);
}

.card {
    border-radius: 0.875rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background-color: var(--surface-color, #ffffff);
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

.table-actions form {
    display: inline;
}

.toast-container {
    z-index: 2000;
}

/* --- Şoför paneli için tema --- */
.driver-shell {
    min-height: 100vh;
    background: var(--bg-color, #f5f6fa);
    color: var(--text-color, #0f172a);
}

.driver-main {
    background: var(--bg-color, #f5f6fa);
    min-height: calc(100vh - 64px);
}

.driver-topbar {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: var(--surface-color, #ffffff);
    border-bottom: 1px solid var(--border-color, rgba(15, 23, 42, 0.08));
    box-shadow: var(--shadow-sm, 0 12px 32px -24px rgba(15, 23, 42, 0.35));
}

[data-theme="dark"] .driver-topbar {
    background: rgba(15, 18, 24, 0.9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.driver-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.driver-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    padding: 0.25rem 0;
}

.driver-brand__icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #ffffff;
    font-size: 1.35rem;
    box-shadow: 0 16px 32px -24px rgba(37, 99, 235, 0.65);
}

.driver-brand__text {
    display: grid;
    gap: 0.15rem;
}

.driver-brand__title {
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.driver-brand__subtitle {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--muted-color, #64748b);
}

.driver-topbar__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.driver-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid transparent;
    background: rgba(15, 23, 42, 0.08);
    color: var(--text-color, #0f172a);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.driver-pill:hover {
    background: rgba(13, 110, 253, 0.18);
    color: #0d6efd;
    transform: translateY(-1px);
}

.driver-pill:focus-visible {
    outline: 2px solid rgba(13, 110, 253, 0.3);
    outline-offset: 2px;
}

.driver-pill--ghost {
    background: rgba(15, 23, 42, 0.06);
}

.driver-pill--primary {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.18), rgba(37, 99, 235, 0.12));
    color: #0d6efd;
}

.driver-pill--primary:hover {
    background: rgba(13, 110, 253, 0.22);
}

.driver-pill--danger {
    background: rgba(220, 53, 69, 0.12);
    color: #dc3545;
}

.driver-pill--danger:hover {
    background: rgba(220, 53, 69, 0.2);
    color: #b02a37;
}

.driver-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
}

.driver-user-chip__avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: linear-gradient(135deg, #6d28d9, #6366f1);
    color: #ffffff;
    font-size: 0.95rem;
}

.driver-user-chip__meta {
    display: grid;
    line-height: 1.1;
}

@media (max-width: 680px) {
    .driver-topbar__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .driver-topbar__actions {
        justify-content: center;
        width: 100%;
    }

    .driver-pill {
        flex: 1 1 45%;
        min-width: 140px;
        justify-content: center;
    }

    .driver-user-chip {
        width: 100%;
        justify-content: center;
    }
}

[data-theme="dark"] .driver-pill--primary {
    color: #f8fafc;
    box-shadow: 0 18px 36px -28px rgba(59, 130, 246, 0.45);
}

[data-theme="dark"] .driver-pill--ghost,
[data-theme="dark"] .driver-user-chip {
    background: rgba(226, 232, 240, 0.08);
}

[data-theme="dark"] .driver-user-chip__name {
    color: #e2e8f0;
}

.driver-user-chip__name {
    font-weight: 600;
    font-size: 0.9rem;
}

.driver-user-chip__role {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted-color, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.driver-main__container {
    max-width: 1100px;
    margin: 0 auto;
}

.driver-page-header__actions {
    justify-content: flex-end;
}

.driver-task-count {
    font-weight: 600;
    background: rgba(13, 110, 253, 0.12) !important;
    color: #0d6efd !important;
    border: 1px solid rgba(13, 110, 253, 0.2);
    padding: 0.5rem 0.85rem;
}

.driver-metric-grid {
    margin: 0;
}

.driver-metric {
    display: grid;
    gap: 0.35rem;
    padding: 1.1rem 1.3rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color, rgba(148, 163, 184, 0.2));
    background: var(--surface-color, rgba(255, 255, 255, 0.96));
    box-shadow: var(--shadow-sm, 0 16px 32px -30px rgba(15, 23, 42, 0.65));
}

.driver-metric--accent {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #ffffff;
    border: none;
    box-shadow: 0 18px 34px -28px rgba(37, 99, 235, 0.75);
}

.driver-metric__label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(15, 23, 42, 0.55);
}

.driver-metric--accent .driver-metric__label {
    color: rgba(255, 255, 255, 0.78);
}

.driver-metric__value {
    font-size: 1.8rem;
    font-weight: 700;
}

.driver-metric--accent .driver-metric__value {
    font-size: 1.95rem;
}

.driver-metric__meta {
    font-size: 0.82rem;
    color: rgba(100, 116, 139, 0.88);
}

.driver-metric--accent .driver-metric__meta {
    color: rgba(226, 232, 240, 0.9);
}

.driver-status-summary .badge {
    background: rgba(15, 23, 42, 0.06);
    color: var(--text-color, #0f172a);
    font-weight: 600;
    border-radius: 999px;
    padding: 0.5rem 0.9rem;
}

.driver-status-summary .badge.bg-success,
.driver-status-summary .badge.bg-danger,
.driver-status-summary .badge.bg-warning {
    color: #ffffff !important;
}

.driver-card {
    background: var(--surface-color, rgba(255, 255, 255, 0.96));
    border: 1px solid var(--border-color, rgba(148, 163, 184, 0.2));
    border-radius: 1.1rem;
    box-shadow: var(--shadow-sm, 0 22px 48px -36px rgba(15, 23, 42, 0.55));
}

.driver-table-wrapper {
    border-radius: 1rem;
    border: 1px solid var(--border-color, rgba(148, 163, 184, 0.2));
    overflow: hidden;
    background: var(--surface-color, #ffffff);
}

.driver-table {
    margin-bottom: 0;
}

.driver-customer-name {
    font-size: 1rem;
}

.driver-customer-project {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted-color, #64748b);
}

.driver-phone-link {
    font-weight: 600;
    color: #0d6efd;
    text-decoration: none;
    word-break: break-word;
}

.driver-phone-link:hover {
    text-decoration: underline;
}

.driver-address {
    line-height: 1.4;
    color: var(--muted-color, #64748b);
}

.driver-actions {
    align-items: stretch;
}

.driver-actions .btn {
    flex: 1 1 auto;
    min-width: 130px;
}

.driver-empty-state {
    border-radius: 1rem;
    background: var(--surface-color, rgba(255, 255, 255, 0.88));
    border: 1px dashed var(--border-color, rgba(148, 163, 184, 0.45));
    box-shadow: var(--shadow-sm, 0 16px 28px -28px rgba(15, 23, 42, 0.35));
}

.driver-signout-btn {
    min-width: 120px;
}

/* --- Mobil görünüm --- */
@media (max-width: 991.98px) {
    .driver-actions .btn {
        min-width: 48%;
    }
}

@media (max-width: 767.98px) {
    .driver-topbar__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .driver-page-header__actions {
        width: 100%;
    }

    .driver-actions {
        flex-direction: column !important;
    }

    .driver-actions .btn {
        width: 100%;
        min-width: 0;
    }

    .driver-main__container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .driver-table-wrapper {
        border: none;
        background: transparent;
    }

    .driver-shell .table-mobile table {
        border: 0;
        background: transparent;
    }

    .driver-shell .table-mobile thead {
        display: none;
    }

    .driver-shell .table-mobile tbody {
        display: grid;
        gap: 1rem;
    }

    .driver-shell .table-mobile tbody tr {
        display: grid;
        gap: 0.85rem;
        padding: 1.1rem;
        border-radius: 1rem;
        border: 1px solid var(--border-color, rgba(148, 163, 184, 0.35));
        background: var(--surface-color, rgba(255, 255, 255, 0.95));
        box-shadow: 0 16px 28px -28px rgba(15, 23, 42, 0.35);
    }

    .driver-shell .table-mobile tbody tr td {
        border: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
        font-size: 0.95rem;
    }

    .driver-shell .table-mobile tbody tr td::before {
        content: attr(data-label);
        font-weight: 600;
        color: rgba(15, 23, 42, 0.55);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        font-size: 0.72rem;
    }

    .driver-shell .table-mobile tbody tr td .status-label {
        align-self: flex-start;
        margin-top: 0.35rem;
    }
}

/* --- Koyu tema uyarlamaları --- */
[data-theme="dark"] .driver-shell {
    background: var(--bg-color, #0f1218);
    color: var(--text-color, #e2e8f0);
}

[data-theme="dark"] .driver-topbar {
    background: var(--surface-color, #14181f);
    border-bottom-color: var(--border-color, rgba(255, 255, 255, 0.08));
    box-shadow: 0 18px 48px -32px rgba(15, 23, 42, 0.65);
}

[data-theme="dark"] .driver-pill {
    background: rgba(226, 232, 240, 0.08);
    color: var(--text-color, #e2e8f0);
}

[data-theme="dark"] .driver-pill:hover {
    background: rgba(13, 110, 253, 0.28);
    color: #ffffff;
}

[data-theme="dark"] .driver-pill--ghost {
    background: rgba(226, 232, 240, 0.08);
}

[data-theme="dark"] .driver-pill--danger {
    color: #fca5a5;
}

[data-theme="dark"] .driver-user-chip {
    background: rgba(226, 232, 240, 0.1);
}

[data-theme="dark"] .driver-user-chip__role {
    color: rgba(148, 163, 184, 0.75);
}

[data-theme="dark"] .driver-task-count {
    background: rgba(13, 110, 253, 0.22) !important;
    color: #b9d6ff !important;
    border-color: rgba(13, 110, 253, 0.32);
}

[data-theme="dark"] .driver-metric {
    background: var(--surface-alt-color, #1b212a);
    border-color: var(--border-color, rgba(255, 255, 255, 0.08));
    box-shadow: 0 20px 40px -32px rgba(15, 23, 42, 0.65);
}

[data-theme="dark"] .driver-metric__label {
    color: rgba(226, 232, 240, 0.7);
}

[data-theme="dark"] .driver-metric__meta {
    color: rgba(148, 163, 184, 0.78);
}

[data-theme="dark"] .driver-status-summary .badge {
    background: rgba(226, 232, 240, 0.12);
    color: #e2e8f0;
}

[data-theme="dark"] .driver-card {
    background: var(--surface-color, #14181f);
    border-color: var(--border-color, rgba(255, 255, 255, 0.08));
    box-shadow: 0 24px 60px -34px rgba(15, 23, 42, 0.75);
}

[data-theme="dark"] .driver-table-wrapper {
    background: var(--surface-alt-color, #1b212a);
    border-color: var(--border-color, rgba(255, 255, 255, 0.08));
}

[data-theme="dark"] .driver-phone-link {
    color: #93c5fd;
}

[data-theme="dark"] .driver-address {
    color: rgba(148, 163, 184, 0.82);
}

[data-theme="dark"] .driver-empty-state {
    background: rgba(20, 24, 31, 0.9);
    border-color: rgba(148, 163, 184, 0.28);
}

[data-theme="dark"] .driver-shell .table-mobile tbody tr {
    background: var(--surface-alt-color, #1b212a);
    border-color: rgba(148, 163, 184, 0.22);
}

[data-theme="dark"] .driver-shell .table-mobile tbody tr td::before {
    color: rgba(226, 232, 240, 0.6);
}

[data-theme="dark"] .driver-shell .table-mobile tbody tr td {
    color: var(--text-color, #e2e8f0);
}

/* --- Müşteri panosu --- */
.customer-shell {
    background: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
}

.customer-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 0.85rem clamp(1rem, 4vw, 2.25rem);
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.customer-topbar__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}

.customer-topbar__logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.06em;
}

.customer-topbar__text {
    display: grid;
    gap: 0.1rem;
}

.customer-topbar__title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
}

.customer-topbar__subtitle {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted-color);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.customer-topbar__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.customer-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: var(--text-color);
}

.customer-user-chip__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
}

.customer-user-chip__meta {
    display: grid;
    line-height: 1.1;
}

.customer-user-chip__name {
    font-weight: 600;
    font-size: 0.9rem;
}

.customer-user-chip__role {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted-color);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.customer-hero {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: flex-start;
}

.customer-hero__title {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.customer-hero__subtitle {
    margin: 0;
    color: var(--muted-color);
    font-size: 0.95rem;
}

.customer-hero__actions {
    display: inline-flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.customer-analytics-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.12);
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.customer-analytics-pill i {
    color: #0d6efd;
}

.customer-filter-card {
    height: 100%;
}

/* --- Yönetici gönderi tablosu detay satırları --- */
.page-shipments .js-shipment-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.page-shipments .js-shipment-row:hover {
    background: rgba(13, 110, 253, 0.06);
}

.page-shipments .js-shipment-row.is-expanded > td {
    border-bottom-color: transparent;
}

.page-shipments .js-shipment-row:focus-visible {
    outline: 2px solid rgba(13, 110, 253, 0.75);
    outline-offset: -2px;
}

.page-shipments .shipment-detail-child > td {
    background: rgba(13, 110, 253, 0.04);
    border-top: 1px solid rgba(13, 110, 253, 0.12);
}

.page-shipments .shipment-detail-card {
    background: transparent;
}

[data-theme="dark"] .page-shipments .shipment-detail-child > td {
    background: rgba(59, 130, 246, 0.08);
    border-top-color: rgba(59, 130, 246, 0.2);
}

.customer-filter-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.customer-table-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.customer-table-card__controls {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.customer-table-card__controls .btn-group {
    flex-wrap: wrap;
}

.customer-table-card__controls .btn {
    min-width: 110px;
}

@media (max-width: 576px) {
    .customer-table-card__controls {
        width: 100%;
        justify-content: flex-start;
    }

    .customer-table-card__controls > * {
        width: 100%;
    }

    .customer-table-card__controls .btn-group,
    .customer-table-card__controls .btn {
        width: 100%;
    }
}

.customer-table-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

@media (min-width: 992px) {
    .customer-filter-card {
        position: sticky;
        top: 6.5rem;
    }
}

@media (max-width: 767.98px) {
    .customer-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .customer-hero {
        align-items: stretch;
    }

    .customer-hero__actions {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .customer-hero {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .customer-hero__actions {
        justify-content: flex-end;
    }
}

[data-theme="dark"] .customer-topbar {
    background: var(--surface-color);
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .customer-user-chip {
    background: rgba(226, 232, 240, 0.1);
}

[data-theme="dark"] .customer-analytics-pill {
    background: rgba(37, 99, 235, 0.25);
}

.ops-page-shipments .driver-note-cell {
    display: inline-block;
    max-width: min(22ch, 240px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    cursor: help;
}
