/*
 * public/ops/assets/css/styles.css
 * Panel için küçük tasarım düzenlemeleri.
 */

body {
    background-color: #f5f6f8;
}

.topbar-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--surface-alt-color);
    color: var(--text-color);
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background var(--transition-base), color var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}

.topbar-pill:hover {
    transform: translateY(-1px);
    color: var(--text-color);
    border-color: rgba(13, 110, 253, 0.3);
}

.topbar-pill[disabled] {
    opacity: 0.55;
    pointer-events: none;
}

.topbar-pill--primary {
    background: rgba(13, 110, 253, 0.12);
    border-color: rgba(13, 110, 253, 0.24);
    color: #0d6efd;
}

.topbar-pill--primary:hover {
    background: rgba(13, 110, 253, 0.18);
    color: #0b5ed7;
}

.topbar-pill--danger {
    background: rgba(220, 53, 69, 0.12);
    border-color: rgba(220, 53, 69, 0.28);
    color: #dc3545;
}

.topbar-pill--danger:hover {
    background: rgba(220, 53, 69, 0.18);
}

.topbar-pill--ghost {
    background: transparent;
    border-color: rgba(148, 163, 184, 0.4);
    color: var(--muted-color);
}

.topbar-pill--ghost:hover {
    color: var(--text-color);
    border-color: rgba(13, 110, 253, 0.35);
    background: rgba(13, 110, 253, 0.08);
}

.topbar-pill--icon {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    border-radius: 999px;
    font-size: 1.1rem;
}

[data-theme="dark"] .topbar-pill {
    background: rgba(148, 163, 184, 0.16);
    border-color: rgba(148, 163, 184, 0.24);
    color: var(--text-color);
}

[data-theme="dark"] .topbar-pill:hover {
    border-color: rgba(13, 110, 253, 0.45);
}

[data-theme="dark"] .topbar-pill--primary {
    background: rgba(37, 99, 235, 0.22);
    border-color: rgba(37, 99, 235, 0.32);
    color: #cfe1ff;
}

.chart-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    box-shadow: var(--shadow-sm);
    min-height: 340px;
}

.chart-card__header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

.chart-card__header p {
    margin: 0.35rem 0 0;
    color: var(--muted-color);
    font-size: 0.85rem;
}

.chart-card__canvas {
    flex: 1;
    min-height: 220px;
}

.chart-card__canvas canvas {
    width: 100% !important;
    height: 100% !important;
}

.chart-card__empty {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted-color);
}

.driver-analytics-insight {
    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;
}

.driver-analytics-insight i {
    color: #0d6efd;
}

.chart-card[data-chart-card="timeline"],
.chart-card[data-chart-card="drivers"] {
    min-height: 360px;
}

[data-theme="dark"] .driver-analytics-insight {
    background: rgba(37, 99, 235, 0.25);
    color: var(--text-color);
}

[data-theme="dark"] .chart-card {
    background: var(--surface-alt-color);
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

.chip-list--compact .chip {
    background: rgba(13, 110, 253, 0.14);
    color: var(--text-color);
}

.chip-list--compact .chip--action {
    background: rgba(220, 53, 69, 0.12);
    color: #dc3545;
    text-decoration: none;
}

[data-theme="dark"] .chip-list--compact .chip--action {
    background: rgba(248, 113, 113, 0.18);
    color: #fca5a5;
}

.table-pagination {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    width: 100%;
}

.table-pagination__summary {
    font-size: 0.85rem;
    color: var(--muted-color);
}

.table-pagination .pagination .page-link {
    border-radius: 999px;
    min-width: 36px;
    text-align: center;
}

.metric-card__value--compact {
    font-size: 1.35rem;
}

.routes-table__index {
    width: 1%;
}

.routes-table__actions {
    width: 180px;
}

/* --- Ops login (auth shell) özel düzenlemeler --- */
.auth-shell--ops::before {
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 58%),
        radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.14), transparent 48%),
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.08), transparent 52%);
}

.auth-shell--ops .auth-brand__logo {
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    box-shadow: 0 24px 64px -30px rgba(56, 189, 248, 0.65);
}

.auth-shell--ops .auth-card__badge {
    background: rgba(56, 189, 248, 0.16);
    color: #0ea5e9;
}

.auth-shell--ops .auth-submit {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    box-shadow: 0 24px 52px -28px rgba(14, 165, 233, 0.55);
}

.auth-shell--ops .auth-badge {
    background: rgba(14, 165, 233, 0.16);
}

.auth-shell--ops .auth-badge i {
    color: #0ea5e9;
}

.auth-shell--ops .auth-metric {
    border-color: rgba(56, 189, 248, 0.2);
    box-shadow: 0 18px 42px -28px rgba(14, 165, 233, 0.35);
}

[data-theme="dark"] .auth-shell--ops .auth-card__badge {
    background: rgba(14, 165, 233, 0.24);
    color: #bae6fd;
}

[data-theme="dark"] .auth-shell--ops .auth-badge {
    background: rgba(56, 189, 248, 0.24);
    color: rgba(224, 242, 254, 0.92);
}

[data-theme="dark"] .auth-shell--ops .auth-submit {
    box-shadow: 0 24px 58px -30px rgba(14, 165, 233, 0.45);
}

.profile-card__avatar {
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
}

[data-theme="dark"] .profile-card__avatar {
    background: rgba(148, 163, 184, 0.18);
    color: #ffffff;
}

.profile-card__stats {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.profile-card__stat {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface-alt-color);
}

.topbar-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--surface-alt-color);
    color: var(--text-color);
    [data-theme="dark"] .topbar-pill {
        color: var(--text-color);
        border-color: rgba(13, 110, 253, 0.28);
    }
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background var(--transition-base), color var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}

.topbar-pill:hover {
    transform: translateY(-1px);
    color: var(--text-color);
    border-color: rgba(13, 110, 253, 0.3);
}

.topbar-pill[disabled] {
    opacity: 0.55;
    pointer-events: none;
}

.topbar-pill--primary {
    background: rgba(13, 110, 253, 0.12);
    border-color: rgba(13, 110, 253, 0.24);
    color: #0d6efd;
}

.topbar-pill--primary:hover {
    background: rgba(13, 110, 253, 0.18);
    color: #0b5ed7;
}

.topbar-pill--danger {
    background: rgba(220, 53, 69, 0.12);
    border-color: rgba(220, 53, 69, 0.28);
    color: #dc3545;
}

.topbar-pill--danger:hover {
    background: rgba(220, 53, 69, 0.18);
}

.topbar-pill--ghost {
    background: transparent;
    border-color: rgba(148, 163, 184, 0.4);
    color: var(--muted-color);
}

.topbar-pill--ghost:hover {
    color: var(--text-color);
    border-color: rgba(13, 110, 253, 0.35);
    background: rgba(13, 110, 253, 0.08);
}

.topbar-pill--icon {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    border-radius: 999px;
    font-size: 1.1rem;
}

[data-theme="dark"] .topbar-pill {
    background: rgba(148, 163, 184, 0.16);
    border-color: rgba(148, 163, 184, 0.24);
    color: var(--text-color);
}

[data-theme="dark"] .topbar-pill:hover {
    border-color: rgba(13, 110, 253, 0.45);
}

[data-theme="dark"] .topbar-pill--primary {
    background: rgba(37, 99, 235, 0.22);
    border-color: rgba(37, 99, 235, 0.32);
    color: #cfe1ff;
}

[data-theme="dark"] .topbar-pill--danger {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

[data-theme="dark"] .topbar-pill--ghost {
    border-color: rgba(148, 163, 184, 0.35);
    color: rgba(226, 232, 240, 0.85);
    background: transparent;
}

[data-theme="dark"] .topbar-pill--ghost:hover {
    background: rgba(37, 99, 235, 0.18);
    color: #e2e8f0;
}

.filter-toolbar__header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.filter-toolbar__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
    font-size: 1.1rem;
}

[data-theme="dark"] .filter-toolbar__icon {
    background: rgba(37, 99, 235, 0.22);
    color: #cfe1ff;
}

.card-modern--flush {
    padding: clamp(1rem, 1.8vw, 1.75rem);
}

.card-modern--flush .table-responsive {
    margin: 0;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: var(--surface-alt-color);
    box-shadow: none;
}

.card-modern--flush .table-responsive table {
    margin: 0;
}

.table-mobile tbody tr {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.table-mobile tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 767.98px) {
    .table-mobile table {
        border: 0;
        background: transparent;
    }

    .table-mobile thead {
        display: none;
    }

    .table-mobile tbody {
        display: grid;
        gap: 1rem;
    }

    .table-mobile tbody tr {
        display: grid;
        gap: 0.75rem;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-lg);
        padding: 1rem;
        background: var(--surface-color);
    }

    .table-mobile tbody tr td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 1rem;
        border: 0;
        padding: 0;
        font-size: 0.95rem;
    }

    .table-mobile tbody tr td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--muted-color);
        flex: 0 0 45%;
    }

    .table-mobile tbody tr td .status-badge {
        margin-left: auto;
    }
}

#driver-tracking-empty {
    border: 1px dashed rgba(148, 163, 184, 0.4);
    border-radius: var(--radius-lg);
    margin-top: 1.5rem;
    background: var(--surface-alt-color);
}

.ops-page-driver-tracking .chip-list--compact .chip {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-color);
}

.ops-page-driver-tracking .chip-list--compact .chip i {
    color: rgba(37, 99, 235, 0.9);
}
