/* İzmir BB Toplu Ulaşım — Modern admin teması */

:root {
    --au-primary: #1e3a8a;
    --au-primary-2: #2563eb;
    --au-accent: #14b8a6;
    --au-bg: #f4f6fa;
    --au-card: #ffffff;
    --au-text: #1f2937;
    --au-muted: #6b7280;
    --au-border: #e5e7eb;
    --au-success: #16a34a;
    --au-warning: #f59e0b;
    --au-danger: #dc2626;
    --au-sidebar-w: 248px;
    --au-topbar-h: 60px;
    --au-radius: 10px;
    --au-shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 1px rgba(15, 23, 42, .02);
    --au-shadow: 0 4px 16px rgba(15, 23, 42, .06);
    --au-shadow-lg: 0 12px 32px rgba(15, 23, 42, .08);
    --au-bar-track: #eef2f7;
    --au-bg-alt: #fafbfc;
    --au-bg-row: #f1f3f7;
}

/* Karanlık tema */
html[data-theme="dark"] {
    --au-bg: #0f172a;
    --au-card: #1e293b;
    --au-text: #e2e8f0;
    --au-muted: #94a3b8;
    --au-border: #334155;
    --au-bar-track: #334155;
    --au-bg-alt: #172033;
    --au-bg-row: #233047;
    --au-shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
    --au-shadow: 0 4px 16px rgba(0, 0, 0, .4);
}
html[data-theme="dark"] .au-table th { background: #172033; color: #94a3b8; border-bottom-color: #334155; }
html[data-theme="dark"] .au-table td { border-bottom-color: #233047; }
html[data-theme="dark"] .au-table tr:hover td { background: #233047; }
html[data-theme="dark"] .au-card-header { background: #172033; border-bottom-color: #334155; }
html[data-theme="dark"] .au-input,
html[data-theme="dark"] .au-select,
html[data-theme="dark"] .au-textarea { background: #0f172a; color: #e2e8f0; border-color: #334155; }
html[data-theme="dark"] .au-pager a, html[data-theme="dark"] .au-pager span { background: #1e293b; color: #e2e8f0; border-color: #334155; }
html[data-theme="dark"] .au-helpcard { background: linear-gradient(135deg, rgba(37,99,235,.18), rgba(20,184,166,.12)); border-color: #334155; }
html[data-theme="dark"] .au-helpcard h5 { color: #93c5fd; }
html[data-theme="dark"] .au-helpcard p { color: #cbd5e1; }
html[data-theme="dark"] .au-helpcard i { color: #60a5fa; }
html[data-theme="dark"] .au-btn-secondary { background: #1e293b; color: #e2e8f0 !important; border-color: #334155; }
html[data-theme="dark"] .au-btn-secondary:hover { background: #233047; }
/* Topbar logo karanlık modda beyazlatılır (yatay logo siyah-mavi yazı içerir) */
html[data-theme="dark"] .au-topbar-logo img { filter: brightness(0) invert(1) opacity(.92); }
html[data-theme="dark"] .au-tag { background: rgba(37,99,235,.18); color: #93c5fd; }
html[data-theme="dark"] .au-a11y-badge { background: linear-gradient(135deg, rgba(37,99,235,.18), rgba(20,184,166,.12)); color: #93c5fd; }
html[data-theme="dark"] .au-bar { background: #233047; }
html[data-theme="dark"] .au-empty { color: #94a3b8; }
html[data-theme="dark"] .au-quicksearch-input kbd,
html[data-theme="dark"] .au-quicksearch-footer kbd { background: #233047; color: #cbd5e1; border-color: #334155; }
html[data-theme="dark"] .au-quicksearch-footer { background: #172033; border-top-color: #334155; }
html[data-theme="dark"] .au-quicksearch-item:hover,
html[data-theme="dark"] .au-quicksearch-item.active { background: #233047; }
html[data-theme="dark"] .au-modal-content { background: #1e293b; border: 1px solid #334155; }
html[data-theme="dark"] .au-confirm-head,
html[data-theme="dark"] .au-confirm-foot,
html[data-theme="dark"] .au-preview-head { border-color: #334155; }
html[data-theme="dark"] dl.au-dl dt { color: #94a3b8; }
html[data-theme="dark"] dl.au-dl dd { color: #e2e8f0; }
html[data-theme="dark"] .au-filter-bar { background: #1e293b; border-color: #334155; }
html[data-theme="dark"] .au-table-wrapper { background: #1e293b; border-color: #334155; }
html[data-theme="dark"] .au-topbar-search input { background: #0f172a; color: #e2e8f0; border-color: #334155; }
html[data-theme="dark"] .au-alert.au-info { background: rgba(14,165,233,.1); color: #7dd3fc; }
html[data-theme="dark"] .au-alert.au-success { background: rgba(22,163,74,.1); color: #86efac; }
html[data-theme="dark"] .au-alert.au-warning { background: rgba(245,158,11,.1); color: #fcd34d; }
html[data-theme="dark"] .au-alert.au-danger { background: rgba(220,38,38,.1); color: #fca5a5; }

* { box-sizing: border-box; }

html, body {
    margin: 0; padding: 0;
    background: var(--au-bg);
    color: var(--au-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--au-primary-2); text-decoration: none; }
a:hover { color: var(--au-primary); text-decoration: underline; }

/* App Shell */
.au-shell { display: flex; min-height: 100vh; }

.au-sidebar {
    width: var(--au-sidebar-w);
    flex: 0 0 var(--au-sidebar-w);
    background: linear-gradient(180deg, #0b1f4f 0%, #1e3a8a 50%, #2563eb 100%);
    color: #e0e7ff;
    display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh;
    overflow-y: auto;
    box-shadow: 4px 0 24px rgba(15, 23, 42, .12);
}
.au-sidebar-brand {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    display: flex; align-items: center; gap: 12px;
}
.au-sidebar-brand-logo {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, #14b8a6, #0ea5e9);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: 16px;
    box-shadow: 0 4px 14px rgba(20, 184, 166, .35);
}
.au-sidebar-brand-text { line-height: 1.15; }
.au-sidebar-brand-title { font-weight: 700; font-size: 14px; color: #fff; }
.au-sidebar-brand-sub { font-size: 11px; color: #a5b4fc; letter-spacing: .04em; text-transform: uppercase; }

/* İzmir BB resmi logosu — transparent kullanım */
.au-official-logo { display: inline-flex; align-items: center; line-height: 0; }
.au-official-logo img { display: block; height: auto; max-width: 100%; }

/* Beyaz arka plan üzerinde duran (mavi/lacivert) logoyu mavi gradient'te beyazlatmak için invert filter */
.au-logo-invert img { filter: brightness(0) invert(1); }

/* Sidebar üst başlığı — beyaz logo (filter ile invert) */
.au-sidebar-brand .au-official-logo { width: 100%; justify-content: center; padding: 4px 12px; }
.au-sidebar-brand .au-official-logo img { height: 60px; width: auto; }

/* Topbar — beyaz arka planda olduğu gibi (mavi yazı) */
.au-topbar-logo { display: flex; align-items: center; gap: 0; padding-left: 8px; }
.au-topbar-logo img { height: 36px; width: auto; }

/* Login — gradient mavi header üzerinde beyaz logo (filter ile invert) */
.au-login-head .au-official-logo img { height: 80px; width: auto; }

.au-nav { padding: 16px 8px; flex: 1; }
.au-nav-section {
    font-size: 11px; color: #94a3b8;
    text-transform: uppercase; letter-spacing: .08em;
    padding: 16px 14px 6px; font-weight: 600;
}
.au-nav-link {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 14px; border-radius: 8px;
    color: #cbd5e1; font-weight: 500;
    margin: 2px 4px; transition: all .15s ease;
}
.au-nav-link:hover { background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }
.au-nav-link.active {
    background: rgba(255, 255, 255, .14); color: #fff;
    box-shadow: inset 3px 0 0 #14b8a6;
}
.au-nav-link i { font-size: 16px; width: 18px; text-align: center; opacity: .85; }
.au-nav-badge {
    margin-left: auto; background: var(--au-warning);
    color: #fff; font-size: 10px; padding: 2px 7px;
    border-radius: 10px; font-weight: 600;
}
.au-sidebar-footer {
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: 11px; color: #94a3b8;
}

.au-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.au-topbar {
    height: var(--au-topbar-h);
    background: var(--au-card);
    border-bottom: 1px solid var(--au-border);
    display: flex; align-items: center;
    padding: 0 24px; gap: 16px;
    position: sticky; top: 0; z-index: 10;
    box-shadow: var(--au-shadow-sm);
}
.au-topbar-title { font-weight: 600; font-size: 15px; color: var(--au-text); }
.au-topbar-spacer { flex: 1; }
.au-topbar-search { width: 320px; max-width: 50%; position: relative; }
.au-topbar-search input {
    width: 100%; height: 38px;
    border: 1px solid var(--au-border);
    border-radius: 9px; padding: 0 14px 0 38px;
    background: var(--au-bg); font-size: 13px;
    color: var(--au-text); transition: all .15s ease;
}
.au-topbar-search input:focus {
    outline: none; border-color: var(--au-primary-2);
    background: #fff; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.au-topbar-search i {
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    color: var(--au-muted);
}
.au-topbar-user {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 10px; border-radius: 9px;
    cursor: pointer; transition: background .15s;
}
.au-topbar-user:hover { background: var(--au-bg); }
.au-topbar-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #14b8a6);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 13px;
}
.au-topbar-user-name { font-size: 13px; font-weight: 500; }
.au-topbar-user-role { font-size: 11px; color: var(--au-muted); }

.au-content { padding: 24px; flex: 1; }
.au-page-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 18px; gap: 12px; flex-wrap: wrap;
}
.au-page-title { font-size: 20px; font-weight: 700; margin: 0; color: var(--au-text); }
.au-page-sub { color: var(--au-muted); font-size: 13px; margin-top: 2px; }

/* Cards */
.au-card {
    background: var(--au-card);
    border: 1px solid var(--au-border);
    border-radius: var(--au-radius);
    box-shadow: var(--au-shadow-sm);
    overflow: hidden;
    display: flex; flex-direction: column;
    height: 100%;
}
.au-card + .au-card { margin-top: 16px; }
.au-card-body { padding: 20px; flex: 1; min-height: 0; }
.au-card-body.au-card-body-flush { padding: 0; }
/* Eski yapılarda doğrudan card altında olan tablo/empty de stretchlensin */
.au-card > table.au-table,
.au-card > .au-empty { flex: 1; min-height: 0; }
.au-card-header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--au-border);
    display: flex; justify-content: space-between; align-items: center;
    background: #fafbfc;
    flex-shrink: 0;
}
.au-card-title { font-weight: 600; font-size: 14px; margin: 0; }
.au-card-sub { font-size: 12px; color: var(--au-muted); }

/* KPI */
.au-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; align-items: stretch; }
.au-kpi {
    background: var(--au-card);
    border: 1px solid var(--au-border);
    border-radius: var(--au-radius);
    padding: 18px;
    min-height: 96px;
    display: flex; align-items: center; gap: 14px;
    box-shadow: var(--au-shadow-sm);
    transition: transform .15s ease, box-shadow .15s ease;
}
.au-kpi-main { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.au-kpi:hover { transform: translateY(-2px); box-shadow: var(--au-shadow); }
.au-kpi-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 20px; flex-shrink: 0;
}
.au-kpi-icon.bg-primary { background: linear-gradient(135deg, #2563eb, #1e40af); }
.au-kpi-icon.bg-success { background: linear-gradient(135deg, #16a34a, #15803d); }
.au-kpi-icon.bg-warning { background: linear-gradient(135deg, #f59e0b, #b45309); }
.au-kpi-icon.bg-danger { background: linear-gradient(135deg, #dc2626, #991b1b); }
.au-kpi-icon.bg-info { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.au-kpi-icon.bg-secondary { background: linear-gradient(135deg, #64748b, #475569); }
.au-kpi-value { font-size: 26px; font-weight: 700; line-height: 1; color: var(--au-text); }
.au-kpi-label { font-size: 12px; color: var(--au-muted); margin-top: 4px; font-weight: 500; }

/* Tables */
.au-table-wrapper {
    background: var(--au-card);
    border: 1px solid var(--au-border);
    border-radius: var(--au-radius);
    overflow: hidden;
    box-shadow: var(--au-shadow-sm);
}
.au-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.au-table th {
    text-align: left; background: #fafbfc;
    color: var(--au-muted); font-weight: 600;
    font-size: 11px; text-transform: uppercase; letter-spacing: .04em;
    padding: 12px 16px; border-bottom: 1px solid var(--au-border);
    white-space: nowrap;
}
.au-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f3f7;
    vertical-align: middle;
}
.au-table tr:last-child td { border-bottom: 0; }
.au-table tr:hover td { background: #fafbfc; }
.au-table .au-row-actions { white-space: nowrap; text-align: right; }

/* Badges */
.au-badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 600;
    padding: 3px 9px; border-radius: 999px;
    line-height: 1.4;
}
.au-badge.au-badge-success { background: #dcfce7; color: #166534; }
.au-badge.au-badge-warning { background: #fef3c7; color: #92400e; }
.au-badge.au-badge-danger  { background: #fee2e2; color: #991b1b; }
.au-badge.au-badge-info    { background: #ccfbf1; color: #115e59; }
.au-badge.au-badge-secondary { background: #e2e8f0; color: #334155; }
.au-badge.au-badge-primary { background: #dbeafe; color: #1e40af; }
.au-badge i { font-size: 10px; }

/* Forms */
.au-form-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.au-col-12 { grid-column: span 12; }
.au-col-9 { grid-column: span 9; }
.au-col-8 { grid-column: span 8; }
.au-col-6 { grid-column: span 6; }
.au-col-4 { grid-column: span 4; }
.au-col-3 { grid-column: span 3; }
.au-col-2 { grid-column: span 2; }
@media (max-width: 768px) {
    .au-col-9, .au-col-8, .au-col-6, .au-col-4, .au-col-3, .au-col-2 { grid-column: span 12; }
}

.au-label { display: block; font-size: 12px; font-weight: 600; color: var(--au-text); margin-bottom: 6px; }
.au-label .au-req { color: var(--au-danger); }
.au-input, .au-select, .au-textarea {
    width: 100%; height: 38px;
    border: 1px solid var(--au-border);
    border-radius: 8px; padding: 0 12px;
    background: #fff; font-size: 13px;
    color: var(--au-text); transition: all .15s ease;
    font-family: inherit;
}
.au-textarea { height: auto; padding: 10px 12px; min-height: 76px; resize: vertical; }
.au-input:focus, .au-select:focus, .au-textarea:focus {
    outline: none; border-color: var(--au-primary-2);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.au-input:disabled, .au-select:disabled { background: #f4f6fa; color: var(--au-muted); }
.au-help { font-size: 11px; color: var(--au-muted); margin-top: 4px; }
.au-checkbox { display: flex; align-items: center; gap: 8px; font-size: 13px; }

/* Buttons */
.au-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 8px;
    border: 1px solid transparent; background: transparent;
    color: var(--au-text); font-weight: 600; font-size: 13px;
    cursor: pointer; transition: all .15s ease;
    text-decoration: none !important; line-height: 1; white-space: nowrap;
}
.au-btn:hover { transform: translateY(-1px); }
.au-btn-primary {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, .25);
}
.au-btn-primary:hover { box-shadow: 0 6px 16px rgba(37, 99, 235, .35); }
.au-btn-secondary {
    background: #fff; border-color: var(--au-border);
    color: var(--au-text) !important;
}
.au-btn-secondary:hover { background: var(--au-bg); }
.au-btn-success { background: var(--au-success); color: #fff !important; }
.au-btn-warning { background: var(--au-warning); color: #fff !important; }
.au-btn-danger { background: var(--au-danger); color: #fff !important; }
.au-btn-ghost { color: var(--au-primary-2) !important; }
.au-btn-ghost:hover { background: var(--au-bg); }
.au-btn-sm { padding: 5px 10px; font-size: 12px; }
.au-btn-block { width: 100%; justify-content: center; }
.au-btn[disabled] { opacity: .55; pointer-events: none; }

/* Alerts */
.au-alert {
    border-radius: 8px; padding: 12px 16px; margin-bottom: 14px;
    display: flex; align-items: flex-start; gap: 10px; font-size: 13px;
    border-left: 4px solid transparent;
}
.au-alert.au-success { background: #f0fdf4; color: #166534; border-color: var(--au-success); }
.au-alert.au-warning { background: #fffbeb; color: #92400e; border-color: var(--au-warning); }
.au-alert.au-danger  { background: #fef2f2; color: #991b1b; border-color: var(--au-danger); }
.au-alert.au-info    { background: #f0f9ff; color: #075985; border-color: #0ea5e9; }
.au-alert i { font-size: 16px; }

/* Login */
.au-login {
    min-height: 100vh;
    background: linear-gradient(135deg, #0b1f4f 0%, #1e3a8a 60%, #2563eb 100%);
    display: flex; align-items: center; justify-content: center; padding: 24px;
}
.au-login-card {
    background: #fff; width: 100%; max-width: 420px;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
    overflow: hidden;
}
.au-login-head {
    padding: 24px 28px;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: #fff;
    display: flex; gap: 14px; align-items: center;
}
.au-login-head .au-sidebar-brand-logo { background: rgba(255, 255, 255, .18); box-shadow: none; }
.au-login-head .title { font-weight: 700; font-size: 17px; line-height: 1.2; }
.au-login-head .sub { font-size: 12px; color: rgba(255, 255, 255, .7); margin-top: 3px; }
.au-login-body { padding: 28px; }
.au-login-footer { padding: 14px 28px 22px; text-align: center; font-size: 11px; color: var(--au-muted); }

/* Tabs */
.au-tabs {
    display: flex; gap: 4px; border-bottom: 1px solid var(--au-border);
    margin-bottom: 16px;
}
.au-tab {
    padding: 10px 16px; border: 0; background: transparent;
    font-weight: 600; font-size: 13px; color: var(--au-muted);
    cursor: pointer; border-bottom: 2px solid transparent; text-decoration: none;
}
.au-tab:hover { color: var(--au-text); text-decoration: none; }
.au-tab.active { color: var(--au-primary-2); border-bottom-color: var(--au-primary-2); }

/* Pagination */
.au-pager { display: flex; gap: 4px; justify-content: center; margin-top: 16px; }
.au-pager a, .au-pager span {
    min-width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--au-border); border-radius: 8px;
    background: #fff; color: var(--au-text);
    font-size: 13px; font-weight: 500; padding: 0 10px;
    text-decoration: none; transition: all .15s;
}
.au-pager a:hover { border-color: var(--au-primary-2); color: var(--au-primary-2); text-decoration: none; }
.au-pager .active { background: var(--au-primary-2); color: #fff; border-color: var(--au-primary-2); }
.au-pager .disabled { opacity: .4; pointer-events: none; }

/* Filters */
.au-filter-bar {
    display: flex; gap: 12px; align-items: end; flex-wrap: wrap;
    margin-bottom: 16px; padding: 14px 16px;
    background: var(--au-card); border: 1px solid var(--au-border);
    border-radius: var(--au-radius);
}
.au-filter-bar > div { min-width: 140px; flex: 1; }
.au-filter-bar .au-label { margin-bottom: 4px; font-size: 11px; }

/* Misc */
.au-divider { height: 1px; background: var(--au-border); margin: 16px 0; }
.au-empty { text-align: center; padding: 40px 20px; color: var(--au-muted); }
.au-empty i { font-size: 36px; margin-bottom: 8px; display: block; }
.au-text-muted { color: var(--au-muted); }
.au-text-success { color: var(--au-success); }
.au-text-warning { color: var(--au-warning); }
.au-text-danger { color: var(--au-danger); }
.au-mb-0 { margin-bottom: 0 !important; }
.au-mb-1 { margin-bottom: 4px; }
.au-mb-2 { margin-bottom: 8px; }
.au-mb-3 { margin-bottom: 12px; }
.au-mt-2 { margin-top: 8px; }
.au-mt-3 { margin-top: 12px; }

dl.au-dl { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; margin: 0; font-size: 13px; }
dl.au-dl dt { color: var(--au-muted); font-weight: 500; }
dl.au-dl dd { margin: 0; color: var(--au-text); font-weight: 500; }

footer.au-footer {
    text-align: center; padding: 14px;
    color: var(--au-muted); font-size: 11px;
    border-top: 1px solid var(--au-border);
}

/* -------- Animations -------- */
@keyframes au-fade-in-up {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes au-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, .55); }
    50%      { box-shadow: 0 0 0 10px rgba(20, 184, 166, 0); }
}
@keyframes au-shimmer {
    from { background-position: -200% 0; }
    to   { background-position: 200% 0; }
}
@keyframes au-slide-in {
    from { opacity: 0; transform: translateX(-12px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes au-bar-grow { from { width: 0; } }

.au-content > * { animation: au-fade-in-up .35s ease both; }
.au-kpi { animation: au-fade-in-up .4s ease both; }
.au-kpi:nth-child(2) { animation-delay: .05s; }
.au-kpi:nth-child(3) { animation-delay: .10s; }
.au-kpi:nth-child(4) { animation-delay: .15s; }
.au-kpi:nth-child(5) { animation-delay: .20s; }
.au-kpi:nth-child(6) { animation-delay: .25s; }

.au-table tbody tr { animation: au-slide-in .25s ease both; }
.au-badge { transition: transform .15s ease; }

/* Renkli ilerleme barları (animasyonlu) */
.au-bar {
    height: 8px; background: #eef2f7; border-radius: 99px;
    overflow: hidden; position: relative;
}
.au-bar > span {
    display: block; height: 100%; border-radius: 99px;
    background: linear-gradient(90deg, #2563eb, #14b8a6);
    animation: au-bar-grow 1s ease;
    position: relative;
}
.au-bar > span.au-bar-success { background: linear-gradient(90deg, #16a34a, #22c55e); }
.au-bar > span.au-bar-warning { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.au-bar > span.au-bar-danger  { background: linear-gradient(90deg, #dc2626, #f87171); }
.au-bar > span.au-bar-info    { background: linear-gradient(90deg, #14b8a6, #22d3ee); }
.au-bar > span::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
    background-size: 200% 100%;
    animation: au-shimmer 2.4s linear infinite;
}

/* KPI hover ışıltısı */
.au-kpi { position: relative; overflow: hidden; }
.au-kpi::after {
    content: '';
    position: absolute; right: -40px; top: -40px;
    width: 120px; height: 120px;
    background: radial-gradient(circle, rgba(37, 99, 235, .08), transparent 70%);
    border-radius: 50%;
    transition: transform .35s ease;
}
.au-kpi:hover::after { transform: scale(1.4); }

/* Tablo satır vurgu */
.au-table tbody tr:hover { box-shadow: inset 3px 0 0 var(--au-primary-2); }

/* Sidebar aktif link nokta */
.au-nav-link.active::after {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #14b8a6;
    margin-left: auto;
    animation: au-pulse 2s ease-out infinite;
}

/* Sidebar link hover ışıltısı */
.au-nav-link { position: relative; overflow: hidden; }
.au-nav-link::before {
    content: '';
    position: absolute; left: -100%; top: 0;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.1), transparent);
    transition: left .4s ease;
    pointer-events: none;
}
.au-nav-link:hover::before { left: 100%; }

/* Yardım kartı (sayfa giriş yardımı için) */
.au-helpcard {
    background: linear-gradient(135deg, #eff6ff, #f0fdfa);
    border: 1px solid #bfdbfe;
    border-radius: var(--au-radius);
    padding: 14px 18px;
    margin-bottom: 16px;
    display: flex; gap: 12px;
    font-size: 13px;
    animation: au-fade-in-up .3s ease;
}
.au-helpcard i { font-size: 22px; color: var(--au-primary-2); flex-shrink: 0; }
.au-helpcard h5 { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--au-primary); }
.au-helpcard p { margin: 0; color: var(--au-text); opacity: .92; line-height: 1.5; }

/* Tag */
.au-tag {
    display: inline-block; padding: 2px 8px; border-radius: 6px;
    background: #eff6ff; color: #1e40af; font-size: 11px; font-weight: 600;
}

/* Modal */
.au-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-start; justify-content: center; padding-top: 80px; }
.au-modal[hidden] { display: none; }
.au-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); backdrop-filter: blur(2px); animation: au-fade-in-up .15s ease; }
.au-modal-content { position: relative; background: var(--au-card); border-radius: var(--au-radius); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); max-width: 96vw; animation: au-fade-in-up .2s ease; }
.au-modal-close { position: absolute; right: 12px; top: 12px; border: 0; background: transparent; cursor: pointer; color: var(--au-muted); font-size: 18px; }

/* Hızlı arama modal'ı */
.au-quicksearch-content { width: 640px; }
.au-quicksearch-input { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--au-border); }
.au-quicksearch-input i { font-size: 18px; color: var(--au-muted); }
.au-quicksearch-input input { flex: 1; border: 0; outline: none; background: transparent; font-size: 16px; color: var(--au-text); font-family: inherit; }
.au-quicksearch-input kbd { background: var(--au-bg-alt); padding: 3px 8px; border-radius: 6px; font-size: 11px; color: var(--au-muted); border: 1px solid var(--au-border); font-family: inherit; }
.au-quicksearch-results { max-height: 50vh; overflow-y: auto; padding: 8px 0; }
.au-quicksearch-empty { padding: 24px; text-align: center; color: var(--au-muted); }
.au-quicksearch-group { padding: 6px 18px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--au-muted); font-weight: 600; }
.au-quicksearch-item { display: flex; align-items: center; gap: 12px; padding: 10px 18px; cursor: pointer; color: inherit; text-decoration: none !important; transition: background .15s; }
.au-quicksearch-item:hover, .au-quicksearch-item.active { background: var(--au-bg-alt); color: var(--au-text); }
.au-quicksearch-item i { color: var(--au-primary-2); font-size: 18px; flex-shrink: 0; }
.au-quicksearch-item-main { flex: 1; min-width: 0; }
.au-quicksearch-item-title { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-quicksearch-item-sub { font-size: 11px; color: var(--au-muted); }
.au-quicksearch-item kbd { font-size: 10px; }
.au-quicksearch-footer { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--au-border); background: var(--au-bg-alt); border-bottom-left-radius: var(--au-radius); border-bottom-right-radius: var(--au-radius); font-size: 11px; color: var(--au-muted); }
.au-quicksearch-footer kbd { background: var(--au-card); padding: 2px 6px; border-radius: 4px; border: 1px solid var(--au-border); margin-right: 2px; }

/* Belge önizleme modal'ı */
.au-preview-content { width: 80vw; max-width: 1000px; height: 80vh; display: flex; flex-direction: column; }
.au-preview-head { padding: 12px 18px; border-bottom: 1px solid var(--au-border); display: flex; justify-content: space-between; align-items: center; }
.au-preview-frame { flex: 1; border: 0; width: 100%; }

/* Onay modal'ı (zincir önizleme) */
.au-confirm-content { width: 540px; }
.au-confirm-head { padding: 18px 20px; border-bottom: 1px solid var(--au-border); }
.au-confirm-body { padding: 18px 20px; max-height: 60vh; overflow-y: auto; }
.au-confirm-foot { padding: 12px 20px; border-top: 1px solid var(--au-border); display: flex; gap: 8px; justify-content: flex-end; }

/* Timeline */
.au-timeline { position: relative; padding-left: 32px; margin: 0; list-style: none; }
.au-timeline::before { content: ''; position: absolute; left: 12px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, #2563eb, #14b8a6); border-radius: 2px; }
.au-timeline-item { position: relative; padding: 12px 0 12px 12px; }
.au-timeline-item::before { content: ''; position: absolute; left: -25px; top: 16px; width: 14px; height: 14px; border-radius: 50%; background: var(--au-card); border: 3px solid var(--au-primary-2); }
.au-timeline-item.au-timeline-success::before { border-color: var(--au-success); }
.au-timeline-item.au-timeline-warning::before { border-color: var(--au-warning); }
.au-timeline-item.au-timeline-danger::before { border-color: var(--au-danger); }
.au-timeline-item.au-timeline-info::before { border-color: #14b8a6; }
.au-timeline-time { font-size: 11px; color: var(--au-muted); font-weight: 500; }
.au-timeline-title { font-size: 13px; font-weight: 600; color: var(--au-text); margin: 2px 0 4px; }
.au-timeline-body { font-size: 12px; color: var(--au-muted); }

/* Sticky uyarı banner'ı */
.au-banner { position: relative; padding: 12px 16px 12px 18px; border-radius: var(--au-radius); background: linear-gradient(135deg, #fef3c7, #fde68a); border-left: 4px solid var(--au-warning); display: flex; gap: 10px; align-items: center; margin-bottom: 14px; animation: au-fade-in-up .3s ease; }
.au-banner.au-banner-danger { background: linear-gradient(135deg, #fee2e2, #fecaca); border-left-color: var(--au-danger); }
.au-banner.au-banner-info { background: linear-gradient(135deg, #dbeafe, #bfdbfe); border-left-color: var(--au-primary-2); }
html[data-theme="dark"] .au-banner { background: rgba(245,158,11,.08); color: #fcd34d; }
html[data-theme="dark"] .au-banner.au-banner-danger { background: rgba(220,38,38,.08); color: #fca5a5; }
html[data-theme="dark"] .au-banner.au-banner-info { background: rgba(37,99,235,.08); color: #93c5fd; }
.au-banner i { font-size: 22px; flex-shrink: 0; }
.au-banner-title { font-weight: 700; }
.au-banner-actions { margin-left: auto; display: flex; gap: 6px; }

/* Bulk action bar */
.au-bulkbar { position: sticky; top: var(--au-topbar-h); z-index: 5; background: var(--au-primary); color: #fff; padding: 10px 16px; display: none; align-items: center; gap: 12px; border-radius: 0 0 var(--au-radius) var(--au-radius); margin-bottom: 12px; box-shadow: 0 8px 16px rgba(30,58,138,.25); }
.au-bulkbar.is-active { display: flex; animation: au-fade-in-up .25s ease; }
.au-bulkbar-count { font-weight: 700; }
.au-bulkbar select { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); color: #fff; padding: 6px 10px; border-radius: 6px; font-family: inherit; }
.au-bulkbar .au-btn { background: rgba(255,255,255,.15); color: #fff !important; border: 0; }
.au-bulkbar .au-btn:hover { background: rgba(255,255,255,.25); }

/* Erişilebilirlik rozetleri */
.au-a11y-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; padding: 4px 10px; border-radius: 999px; background: linear-gradient(135deg, #dbeafe, #ccfbf1); color: var(--au-primary); font-weight: 600; }

/* -------- Modern scrollbar -------- */
/* Firefox */
* { scrollbar-width: thin; scrollbar-color: rgba(100, 116, 139, .45) transparent; }
html[data-theme="dark"] * { scrollbar-color: rgba(148, 163, 184, .35) transparent; }

/* WebKit / Chromium */
*::-webkit-scrollbar { width: 10px; height: 10px; background: transparent; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(100,116,139,.55), rgba(100,116,139,.35));
    border-radius: 99px;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: background .2s;
}
*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(37,99,235,.7), rgba(20,184,166,.55));
    background-clip: padding-box;
    border: 2px solid transparent;
}
*::-webkit-scrollbar-corner { background: transparent; }

html[data-theme="dark"] *::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(148,163,184,.45), rgba(100,116,139,.3));
    background-clip: padding-box;
    border: 2px solid transparent;
}
html[data-theme="dark"] *::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(96,165,250,.6), rgba(20,184,166,.45));
    background-clip: padding-box;
    border: 2px solid transparent;
}

/* Sidebar scrollbar — beyaz tonda */
.au-sidebar { scrollbar-color: rgba(255,255,255,.25) transparent; }
.au-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.22);
    background-clip: padding-box;
    border: 2px solid transparent;
}
.au-sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.4); background-clip: padding-box; border: 2px solid transparent; }

/* -------- Responsive -------- */
.au-sidebar-toggle { display: none; }
.au-sidebar-backdrop {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(2px);
    z-index: 90;
    animation: au-fade-in-up .15s ease;
}
.au-sidebar-backdrop[hidden] { display: none; }

/* Tablet ve altı */
@media (max-width: 1024px) {
    :root { --au-sidebar-w: 220px; }
    .au-content { padding: 18px; }
    .au-page-header { gap: 10px; }
    .au-page-title { font-size: 18px; }
    .au-kpi { padding: 14px; min-height: 86px; }
    .au-kpi-value { font-size: 22px; }
    .au-topbar-search { display: none; }
    .au-hide-md { display: none !important; }
}

/* Mobil */
@media (max-width: 768px) {
    .au-shell { display: block; }
    .au-sidebar-toggle { display: inline-flex; }

    .au-sidebar {
        position: fixed; left: 0; top: 0; bottom: 0;
        width: 280px; max-width: 86vw;
        height: 100vh;
        z-index: 95;
        transform: translateX(-100%);
        transition: transform .25s ease;
        box-shadow: 8px 0 24px rgba(0, 0, 0, .35);
    }
    .au-sidebar.is-open { transform: translateX(0); }
    .au-main { width: 100%; min-width: 0; }

    .au-topbar {
        padding: 0 12px; gap: 8px;
        height: 56px;
    }
    .au-topbar-logo img { height: 28px; }
    .au-topbar-title {
        font-size: 14px;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        min-width: 0;
    }
    .au-topbar-user { padding: 4px; }
    .au-topbar-avatar { width: 30px; height: 30px; font-size: 12px; }
    .au-hide-sm { display: none !important; }

    .au-content { padding: 14px; }

    /* KPI tek kolon (auto-fit zaten 220px alt sınırı var, iyice daraltalım) */
    .au-kpi-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
    .au-kpi { padding: 12px; min-height: 72px; gap: 10px; }
    .au-kpi-icon { width: 38px; height: 38px; font-size: 16px; border-radius: 9px; }
    .au-kpi-value { font-size: 18px; }
    .au-kpi-label { font-size: 11px; }

    /* Inline grid'ler (Dashboard / detaylar) tek kolon */
    [style*="grid-template-columns:2fr 1fr"],
    [style*="grid-template-columns: 2fr 1fr"],
    [style*="grid-template-columns:1fr 2fr"],
    [style*="grid-template-columns: 1fr 2fr"],
    [style*="grid-template-columns:1fr 1fr"],
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Tablolar yatay scroll'a girsin */
    .au-table-wrapper, .au-card-body-flush { overflow-x: auto; }
    .au-card-body { padding: 14px; }
    .au-table { font-size: 12px; }
    .au-table th, .au-table td { padding: 10px 12px; }

    /* Filtre çubuğu sarmalı */
    .au-filter-bar { flex-direction: column; align-items: stretch; padding: 12px; }
    .au-filter-bar > div { min-width: 0; width: 100%; }

    /* Sayfa başlığı butonları alta düşsün */
    .au-page-header { flex-direction: column; align-items: stretch; }
    .au-page-header > div:last-child { display: flex; flex-wrap: wrap; gap: 6px; }
    .au-btn { padding: 8px 12px; }
    .au-btn-sm { padding: 6px 10px; }

    /* Yardım kartı */
    .au-helpcard { padding: 12px; font-size: 12px; }
    .au-helpcard p { line-height: 1.45; }

    /* Modal mobilde tam genişlik */
    .au-modal { padding-top: 40px; }
    .au-quicksearch-content,
    .au-confirm-content,
    .au-preview-content { width: 94vw; }
    .au-preview-content { height: 88vh; }

    /* Footer altta yapışık değil */
    footer.au-footer { padding: 12px; font-size: 10px; }

    /* Dashboard çubuk grafiği daha kısa olsun */
    .au-spark-bars { height: 110px; }
}

/* Çok küçük telefon */
@media (max-width: 420px) {
    .au-topbar-title { display: none; }
    .au-kpi-grid { grid-template-columns: 1fr 1fr; }
    .au-content { padding: 10px; }
}

/* Mini sparkline (CSS-only) */
.au-spark {
    display: inline-flex; align-items: end; gap: 2px; height: 28px;
}
.au-spark > span {
    display: inline-block; width: 4px; background: linear-gradient(180deg, #14b8a6, #2563eb);
    border-radius: 2px; opacity: .85;
}

/* Çubuk grafik (dashboard "Son 14 gün") */
.au-spark-chart { display: flex; flex-direction: column; gap: 6px; }
.au-spark-bars {
    display: flex; align-items: flex-end; gap: 6px;
    height: 160px; padding: 0 2px;
    border-bottom: 1px solid var(--au-border);
}
.au-spark-col {
    flex: 1 1 0; min-width: 0;
    height: 100%;
    display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
    gap: 4px; position: relative;
}
.au-spark-bar {
    width: 100%;
    min-height: 8px;
    background: linear-gradient(180deg, #22d3ee 0%, #2563eb 100%);
    border-radius: 6px 6px 0 0;
    box-shadow: 0 2px 6px rgba(37, 99, 235, .25);
    transition: height .5s cubic-bezier(.2,.8,.2,1), background .2s ease;
    position: relative;
}
.au-spark-col:hover .au-spark-bar {
    background: linear-gradient(180deg, #14b8a6 0%, #1e3a8a 100%);
    box-shadow: 0 4px 12px rgba(20, 184, 166, .4);
}
.au-spark-value {
    font-size: 10px; font-weight: 600; color: var(--au-muted);
    opacity: 0; transition: opacity .15s;
    line-height: 1;
}
.au-spark-col:hover .au-spark-value { opacity: 1; color: var(--au-primary-2); }
.au-spark-labels {
    display: flex; gap: 6px; padding: 0 2px;
}
.au-spark-labels small {
    flex: 1 1 0; text-align: center;
    font-size: 10px; color: var(--au-muted); font-weight: 500;
}
html[data-theme="dark"] .au-spark-bar {
    background: linear-gradient(180deg, #22d3ee 0%, #3b82f6 100%);
    box-shadow: 0 2px 6px rgba(59, 130, 246, .35);
}
html[data-theme="dark"] .au-spark-col:hover .au-spark-bar {
    background: linear-gradient(180deg, #5eead4 0%, #60a5fa 100%);
}
html[data-theme="dark"] .au-spark-bars { border-bottom-color: #334155; }
