/* Uzem360 arayuzu. Sinif oneki: az-
   Duzen: solda sabit kenar cubugu (.az-side), sagda icerik (.az-content).
   Dar ekranda kenar cubugu cekmeceye doner (#az-nav-toggle isaret kutusuyla, JavaScript'siz). */

:root {
    /* Tasarim v2 (2026-10-14): notr gri zemin, tek vurgu rengi (turuncu), yumusak golge, daha belirgin yazi hiyerarsisi */
    --az-bg: #f5f6f8;
    --az-surface: #ffffff;
    --az-surface-2: #fafbfc;
    --az-text: #111827;
    --az-text-2: #374151;
    --az-muted: #6b7280;
    --az-line: #e7e9ee;
    --az-line-strong: #d4d8df;
    --az-primary: #c2410c;
    --az-primary-dark: #9a3412;
    --az-primary-soft: #fff1e8;
    --az-primary-ring: rgba(234, 88, 12, .18);
    --az-side: #0f1218;
    --az-side-2: #1b2029;
    --az-side-text: #c7ccd4;
    --az-side-muted: #8a919d;
    --az-danger: #b42318;
    --az-danger-bg: #fef3f2;
    --az-success: #067647;
    --az-success-bg: #ecfdf3;
    --az-info: #175cd3;
    --az-info-bg: #eff8ff;
    --az-warn: #b54708;
    --az-warn-bg: #fffaeb;
    --az-radius: 14px;
    --az-radius-sm: 9px;
    --az-shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 1px 3px rgba(17, 24, 39, .04);
    --az-shadow-md: 0 4px 12px -2px rgba(17, 24, 39, .08), 0 2px 4px -2px rgba(17, 24, 39, .05);
    --az-shadow-lg: 0 18px 40px -12px rgba(17, 24, 39, .22);
    --az-font: "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --az-font-display: "Segoe UI Variable Display", "Segoe UI", Inter, system-ui, -apple-system, Roboto, Arial, sans-serif;
    --az-side-width: 264px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--az-bg);
    color: var(--az-text);
    font: 14.5px/1.55 var(--az-font);
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "cv11", "ss01";
}

h1 { font-family: var(--az-font-display); font-size: 1.6rem; font-weight: 700; line-height: 1.2; margin: 0 0 1rem; letter-spacing: -.022em; color: var(--az-text); }
h2 { font-family: var(--az-font-display); font-size: 1.08rem; font-weight: 650; line-height: 1.3; margin: 1.8rem 0 .8rem; letter-spacing: -.01em; }
h3 { font-family: var(--az-font-display); letter-spacing: -.01em; }
h1 small, h2 small { font-size: .82rem; font-weight: 400; }
p { margin: 0 0 .9rem; }
a { color: var(--az-primary); }
a:hover { color: var(--az-primary-dark); }
code { background: #eef1f5; padding: 1px 6px; border-radius: 5px; font-size: .9em; }
:focus-visible { outline: 2px solid var(--az-primary); outline-offset: 2px; }
[hidden] { display: none !important; }

.az-muted { color: var(--az-muted); }
.az-icon { flex: 0 0 auto; }

/* ------------------------------------------------------------------ kabuk */
.az-shell { min-height: 100vh; }
.az-nav-toggle { position: absolute; opacity: 0; pointer-events: none; }

.az-side {
    position: fixed; inset: 0 auto 0 0; width: var(--az-side-width); z-index: 40;
    display: flex; flex-direction: column;
    background: var(--az-side);
    color: var(--az-side-text);
}
.az-content { margin-left: var(--az-side-width); min-height: 100vh; display: flex; flex-direction: column; }

.az-brand {
    display: flex; align-items: center; gap: 12px; padding: 20px 20px 16px;
    color: #fff; text-decoration: none; font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em;
}
.az-brand:hover { color: #fff; }
.az-brand-mark {
    display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg, #f97316, var(--az-primary)); color: #fff; font-size: 1.1rem;
}
.az-brand-text { display: grid; line-height: 1.15; }
.az-brand-text small { font-weight: 500; font-size: .72rem; color: var(--az-side-muted); letter-spacing: .04em; text-transform: uppercase; }

.az-nav { flex: 1; overflow-y: auto; padding: 4px 12px 16px; }
.az-nav-group {
    padding: 16px 10px 6px; font-size: .7rem; font-weight: 600; letter-spacing: .08em;
    text-transform: uppercase; color: var(--az-side-muted);
}
.az-nav a {
    display: flex; align-items: center; gap: 11px; padding: 9px 10px; margin-bottom: 2px;
    border-radius: var(--az-radius-sm); color: var(--az-side-text); text-decoration: none; font-weight: 500;
}
.az-nav a:hover { background: var(--az-side-2); color: #fff; }
.az-nav a.is-active { background: var(--az-primary); color: #fff; }
.az-nav a:focus-visible { outline-color: #7fe0d3; }
.az-nav a > span { min-width: 0; }
.az-nav-course { align-items: flex-start !important; }
.az-nav-course > span { display: grid; line-height: 1.3; }
.az-nav-course small { color: var(--az-side-muted); font-weight: 400; font-size: .78rem; }
.az-nav-course.is-active small { color: #d3f1ec; }

.az-side-foot { padding: 12px; border-top: 1px solid rgba(255, 255, 255, .08); }
.az-side-foot form { margin: 0; }
.az-user { display: flex; align-items: center; gap: 10px; padding: 6px 8px 10px; }
.az-avatar {
    display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
    background: var(--az-side-2); color: #fff; font-weight: 600; flex: 0 0 auto;
}
.az-user-text { display: grid; line-height: 1.25; color: #fff; font-weight: 600; font-size: .9rem; min-width: 0; overflow-wrap: anywhere; }
.az-user-text small { color: var(--az-side-muted); font-weight: 400; font-size: .78rem; }
.az-side-btn {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px;
    border: 0; border-radius: var(--az-radius-sm); background: transparent; color: var(--az-side-text);
    font: inherit; font-weight: 500; cursor: pointer; text-align: left;
}
.az-side-btn:hover { background: var(--az-side-2); color: #fff; }

.az-topbar {
    display: none; align-items: center; gap: 12px; padding: 10px 14px;
    background: var(--az-surface); border-bottom: 1px solid var(--az-line); position: sticky; top: 0; z-index: 20;
}
.az-topbar-title { font-weight: 600; }
.az-menu-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--az-radius-sm); cursor: pointer; color: var(--az-text); }
.az-menu-btn:hover { background: var(--az-bg); }
.az-backdrop { display: none; }

.az-main { width: 100%; max-width: 1180px; margin: 0 auto; padding: 28px 28px 48px; }
.az-main-narrow { max-width: 920px; }

@media (max-width: 900px) {
    .az-side { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
    .az-content { margin-left: 0; }
    .az-topbar { display: flex; }
    .az-nav-toggle:checked ~ .az-side { transform: none; }
    .az-nav-toggle:checked ~ .az-backdrop { display: block; position: fixed; inset: 0; background: rgba(12, 20, 32, .5); z-index: 30; }
    .az-main { padding: 18px 16px 40px; }
}
@media (prefers-reduced-motion: reduce) {
    .az-side { transition: none; }
}

/* ---------------------------------------------------------------- dugmeler */
.az-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 9px 16px; border: 1px solid var(--az-primary); border-radius: var(--az-radius-sm);
    background: var(--az-primary); color: #fff; font: inherit; font-weight: 600; line-height: 1.3;
    cursor: pointer; text-decoration: none; white-space: nowrap;
}
.az-btn:hover { background: var(--az-primary-dark); border-color: var(--az-primary-dark); color: #fff; }
.az-btn-ghost { background: var(--az-surface); color: var(--az-primary); border-color: var(--az-line-strong); padding: 7px 12px; }
.az-btn-ghost:hover { background: var(--az-primary-soft); color: var(--az-primary-dark); border-color: var(--az-primary); }
.az-btn-danger { color: var(--az-danger); border-color: #e3b9b9; }
.az-btn-danger:hover { background: var(--az-danger-bg); color: var(--az-danger); border-color: var(--az-danger); }
button.az-btn-danger:not(.az-btn-ghost) { background: var(--az-danger); border-color: var(--az-danger); color: #fff; }
.az-btn[disabled], .az-btn.is-disabled { opacity: .45; cursor: not-allowed; }

/* ------------------------------------------------------------- bildirimler */
.az-alert { padding: 11px 14px; border-radius: var(--az-radius-sm); margin-bottom: 16px; border: 1px solid transparent; overflow-wrap: anywhere; }
.az-alert-danger { background: var(--az-danger-bg); color: var(--az-danger); border-color: #f3caca; }
.az-alert-success { background: var(--az-success-bg); color: var(--az-success); border-color: #bfe3cd; }
.az-alert-info { background: var(--az-info-bg); color: var(--az-info); border-color: #c5d9f5; }
.az-alert ul { margin: 6px 0 0; padding-left: 20px; }

.az-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #eef1f5; color: var(--az-muted); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.az-tag-ok { background: var(--az-success-bg); color: var(--az-success); }
.az-tag-danger { background: var(--az-danger-bg); color: var(--az-danger); }

/* ------------------------------------------------------------ kart ve pano */
.az-card, .az-form {
    background: var(--az-surface); border: 1px solid var(--az-line); border-radius: var(--az-radius);
    padding: 20px; margin-bottom: 18px; box-shadow: var(--az-shadow);
}
.az-card > h2:first-child, .az-form > h2:first-child { margin-top: 0; }
.az-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 1rem; }
.az-head h1, .az-head h2 { margin: 0; }

.az-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 22px; }
.az-kpi {
    background: var(--az-surface); border: 1px solid var(--az-line); border-radius: var(--az-radius);
    padding: 18px 20px; box-shadow: var(--az-shadow); border-left: 4px solid var(--az-primary);
}
.az-kpi-value { font-size: 1.6rem; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; overflow-wrap: anywhere; }
.az-kpi-label { color: var(--az-muted); font-size: .88rem; margin-top: 2px; }

/* ------------------------------------------------------------------- tablo */
.az-table-wrap {
    overflow-x: auto; background: var(--az-surface); border: 1px solid var(--az-line);
    border-radius: var(--az-radius); box-shadow: var(--az-shadow); margin-bottom: 18px;
}
.az-table { width: 100%; border-collapse: collapse; }
.az-table th, .az-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--az-line); vertical-align: middle; }
.az-table th { font-size: .76rem; color: var(--az-muted); font-weight: 600; white-space: nowrap; text-transform: uppercase; letter-spacing: .04em; background: #f8fafc; }
.az-table tbody tr:hover td { background: #fafbfd; }
.az-table tbody tr:last-child td { border-bottom: 0; }
.az-empty { text-align: center; color: var(--az-muted); padding: 32px 14px !important; }
.az-actions { display: flex; gap: 6px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.az-actions form { margin: 0; }
td.az-actions { white-space: nowrap; }
.az-inline-details > summary { list-style: none; margin: 0; }
.az-inline-details > summary::-webkit-details-marker { display: none; }
.az-inline-details form { display: flex; gap: 6px; margin-top: 6px; }
.az-inline-details input { padding: 7px 10px; border: 1px solid var(--az-line-strong); border-radius: var(--az-radius-sm); font: inherit; min-width: 180px; }

/* -------------------------------------------------------------------- form */
.az-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-bottom: 16px; }
.az-form label, .az-row label, .az-filter label { display: block; font-weight: 600; font-size: .9rem; }
.az-form > label { margin-bottom: 14px; }
.az-form input:not([type=checkbox]):not([type=radio]), .az-form select, .az-form textarea,
.az-row input:not([type=checkbox]):not([type=radio]), .az-row select, .az-row textarea,
.az-filter input, .az-filter select, .az-auth input {
    display: block; width: 100%; margin-top: 5px; padding: 9px 12px;
    border: 1px solid var(--az-line-strong); border-radius: var(--az-radius-sm);
    font: inherit; font-weight: 400; color: var(--az-text); background: #fff;
}
.az-form textarea, .az-row textarea { resize: vertical; line-height: 1.5; }
.az-form input:focus, .az-form select:focus, .az-form textarea:focus,
.az-row input:focus, .az-row select:focus, .az-row textarea:focus,
.az-filter input:focus, .az-filter select:focus, .az-auth input:focus {
    outline: none; border-color: var(--az-primary); box-shadow: 0 0 0 3px var(--az-primary-ring);
}
.az-form small, .az-row small { display: block; margin-top: 4px; font-weight: 400; color: var(--az-muted); font-size: .82rem; }
.az-form-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.az-form-inline { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.az-form-inline label { flex: 1 1 240px; }
.az-row { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 12px; }
.az-row label { flex: 1 1 220px; }
.az-row label.az-narrow { flex: 0 1 140px; }
.az-row label.az-wide { flex: 1 1 100%; }
.az-check { display: flex !important; align-items: flex-start; gap: 9px; font-weight: 400 !important; font-size: .95rem !important; }
.az-check input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--az-primary); flex: 0 0 auto; }
.az-check-inline { display: inline-flex !important; margin: 0 16px 6px 0; }
.az-check-help { margin: 2px 0 14px 25px; font-size: .85rem; }
.az-checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 16px; }
.az-fieldset { border: 1px solid var(--az-line); border-radius: var(--az-radius-sm); padding: 12px 16px; margin: 0 0 14px; }
.az-fieldset legend { padding: 0 6px; font-weight: 600; font-size: .88rem; }
.az-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.az-filter input, .az-filter select { width: auto; flex: 1 1 200px; margin-top: 0; }
details > summary { cursor: pointer; color: var(--az-primary); font-weight: 600; margin: 8px 0; }

/* ------------------------------------------------------- giris ve hata */
.az-auth-body {
    min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
    background: radial-gradient(1100px 500px at 15% -10%, #dff1ee 0%, rgba(223, 241, 238, 0) 60%), var(--az-bg);
}
.az-auth-wrap { width: 100%; max-width: 420px; }
.az-auth {
    background: var(--az-surface); border: 1px solid var(--az-line); border-radius: 16px;
    padding: 30px; box-shadow: 0 10px 34px rgba(16, 28, 45, .08); margin-bottom: 16px;
}
.az-auth h1 { color: var(--az-primary); margin-bottom: 4px; }
.az-auth h2 { margin-top: 0; }
.az-auth-sub { margin: 0 0 20px; color: var(--az-muted); }
.az-auth label { display: block; margin: 14px 0 0; font-weight: 600; font-size: .9rem; }
.az-auth form .az-btn { width: 100%; margin-top: 20px; padding: 11px 16px; }
.az-auth-inline { max-width: 460px; margin-left: auto; margin-right: auto; }
.az-shell .az-auth-inline { margin-top: 12px; }
.az-auth-wrap:has(.az-verify) { max-width: 540px; }
.az-dl { display: grid; grid-template-columns: minmax(110px, 34%) 1fr; gap: 8px 14px; margin: 14px 0; }
.az-dl dt { color: var(--az-muted); }
.az-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.az-hash { font-size: .72rem; word-break: break-all; }

.az-error-body { display: grid; place-items: center; min-height: 100vh; padding: 16px; }
.az-error { text-align: center; max-width: 480px; }
.az-error-code { font-size: 4.5rem; font-weight: 800; color: var(--az-primary); line-height: 1; }
.az-error-link { color: var(--az-primary); font-weight: 600; }

/* ----------------------------------------------------- icerik studyosu */
.az-step { border-top: 1px solid var(--az-line); padding: 14px 0; }
.az-step-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.az-qlist { margin: 0 0 8px; padding-left: 20px; }
.az-qlist li { margin-bottom: 8px; }
.az-qlist form { display: inline; margin-left: 8px; }
.az-body { line-height: 1.7; }

/* ---------------------------------------------------- calisan: egitim */
.az-course {
    display: flex; gap: 16px; align-items: center; justify-content: space-between;
    background: var(--az-surface); border: 1px solid var(--az-line); border-radius: var(--az-radius);
    padding: 18px 20px; margin-bottom: 12px; color: inherit; text-decoration: none; box-shadow: var(--az-shadow);
}
.az-course:hover { border-color: var(--az-primary); color: inherit; }
.az-course-main { display: grid; gap: 4px; flex: 1; min-width: 0; }
.az-course-main strong { font-size: 1.05rem; }
.az-bar { height: 8px; background: #e6eaf0; border-radius: 999px; overflow: hidden; margin: 10px 0; }
.az-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #17a393, var(--az-primary)); transition: width .4s; }

.az-outline { list-style: none; margin: 0; padding: 0; }
.az-outline-section { font-weight: 700; margin: 22px 0 8px; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--az-muted); }
.az-outline-step {
    display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
    background: var(--az-surface); border: 1px solid var(--az-line); border-radius: var(--az-radius-sm);
    padding: 12px 14px; margin-bottom: 8px;
}
.az-outline-step > a, .az-outline-step > span:nth-child(2) { flex: 1; min-width: 160px; font-weight: 600; }
.az-outline-step > a { text-decoration: none; }
.az-outline-step > a:hover { text-decoration: underline; }
.az-outline-step > .az-muted:last-child { font-size: .86rem; }
.az-outline-step.is-locked { background: #f8fafc; }
.az-outline-step.is-locked > span:nth-child(2) { color: var(--az-muted); font-weight: 500; }
.az-outline-step.is-done { border-left: 3px solid var(--az-success); }
.az-outline-step.is-done .az-outline-mark { color: var(--az-success); }
.az-outline-exam { border-style: dashed; border-color: var(--az-line-strong); }
.az-outline-mark { width: 1.5em; text-align: center; color: var(--az-primary); }

.az-consent-body {
    max-height: 300px; overflow: auto; padding: 14px 16px; margin-bottom: 14px; line-height: 1.65;
    border: 1px solid var(--az-line); border-radius: var(--az-radius-sm); background: #fafbfd;
}

/* ---------------------------------------------------------- oynatici */
.az-video { background: #000; border-radius: var(--az-radius); overflow: hidden; box-shadow: var(--az-shadow); }
.az-video video { display: block; width: 100%; max-height: 70vh; }
.az-player-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.az-pdf { max-height: 75vh; overflow: auto; border: 1px solid var(--az-line); border-radius: var(--az-radius); background: #fff; box-shadow: var(--az-shadow); }
.az-pdf canvas { display: block; width: 100%; height: auto; }
.az-option {
    display: block; width: 100%; text-align: left; margin: 8px 0; padding: 12px 14px;
    border: 1px solid var(--az-line-strong); border-radius: var(--az-radius-sm); background: #fff; font: inherit; cursor: pointer;
}
.az-option:hover:not([disabled]) { border-color: var(--az-primary); background: var(--az-primary-soft); }
.az-option.is-correct { border-color: var(--az-success); background: var(--az-success-bg); }
.az-option.is-wrong { border-color: var(--az-danger); background: var(--az-danger-bg); }
.az-modal { position: fixed; inset: 0; background: rgba(12, 20, 32, .62); display: grid; place-items: center; padding: 16px; z-index: 60; }
.az-modal-box { background: var(--az-surface); border-radius: var(--az-radius); padding: 24px; width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.az-modal-box h2 { margin-top: 0; }

/* -------------------------------------------------------------- sinav */
.az-rules { margin: 0 0 14px; padding-left: 20px; line-height: 1.8; }
.az-exam-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    position: sticky; top: 0; background: var(--az-bg); padding: 10px 0; z-index: 5;
}
.az-exam-head h1 { margin: 0; }
.az-timer { font-weight: 700; font-variant-numeric: tabular-nums; padding: 7px 14px; border-radius: var(--az-radius-sm); background: var(--az-surface); border: 1px solid var(--az-line-strong); }
.az-timer.is-low { color: var(--az-danger); border-color: var(--az-danger); background: var(--az-danger-bg); }
.az-exam-q { margin-left: 0; margin-right: 0; }
.az-exam-q legend { font-weight: 600; padding: 0 6px; }
.az-exam-opt {
    display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; margin: 7px 0;
    border: 1px solid var(--az-line-strong); border-radius: var(--az-radius-sm); cursor: pointer;
}
.az-exam-opt:hover { border-color: var(--az-primary); background: var(--az-primary-soft); }
.az-exam-opt input { margin-top: 4px; accent-color: var(--az-primary); }

@media (max-width: 900px) {
    .az-exam-head { top: 61px; }
}
@media print {
    .az-side, .az-topbar, .az-backdrop { display: none !important; }
    .az-content { margin-left: 0; }
}

/* Yuz yuze oturum */
.az-qr { display: inline-block; padding: 12px; background: #fff; border: 1px solid var(--az-line); border-radius: var(--az-radius); }
.az-qr img { display: block; max-width: 100%; height: auto; }
.az-isg-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 12px; }

/* Takip, bildirim */
.az-badge { margin-left: auto; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: #d94848; color: #fff; font-size: .72rem; font-weight: 700; text-align: center; }
a.az-kpi-link { display: block; color: inherit; text-decoration: none; }
a.az-kpi-link:hover, a.az-kpi-link.is-active { border-color: var(--az-primary); background: var(--az-primary-soft); color: inherit; }
.az-kpi.is-danger { border-left-color: var(--az-danger); }
.az-kpi.is-danger .az-kpi-value { color: var(--az-danger); }
.az-note { margin-bottom: 10px; }
.az-note .az-head { margin: 0; }
.az-note.is-unread { border-left: 4px solid var(--az-danger); }

/* E-imza */
.az-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.az-input-sm { width: 9.5em; padding: 6px 8px; font-size: 13px; }

/* Sekmeler (paket duzenleme) */
.az-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--az-line-strong); margin: 18px 0 20px; overflow-x: auto; overflow-y: hidden; }
.az-tabs a {
    padding: 10px 16px; text-decoration: none; color: var(--az-muted); font-weight: 600; white-space: nowrap;
    border-bottom: 3px solid transparent; margin-bottom: -1px; border-radius: 8px 8px 0 0;
}
.az-tabs a:hover { color: var(--az-text); background: var(--az-surface); }
.az-tabs a.is-active { color: var(--az-primary-dark); border-bottom-color: var(--az-primary); background: var(--az-surface); }
.az-count { display: inline-block; min-width: 1.6em; padding: 1px 7px; margin-left: 4px; border-radius: 999px; background: var(--az-line); color: var(--az-text); font-size: .78rem; text-align: center; }
.az-tabs a.is-active .az-count { background: var(--az-primary-soft); color: var(--az-primary-dark); }
.az-tab-title { font-size: 1.15rem; margin: 0 0 6px; }
[data-tabpanel][hidden] { display: none; }

/* Paket icerigi: bolum ve adimlar */
.az-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.az-section-head h3 { margin: 0; font-size: 1.05rem; }
.az-section-head h3 small { font-weight: 400; margin-left: 8px; }
.az-section-no { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 6px; border-radius: 50%; background: var(--az-primary-soft); color: var(--az-primary-dark); font-size: .85rem; }
.az-section .az-step:first-of-type { margin-top: 12px; }
.az-fold > summary { font-size: .9rem; margin: 6px 0; }
.az-fold[open] { background: var(--az-bg); border: 1px solid var(--az-line); border-radius: var(--az-radius-sm); padding: 4px 14px 10px; margin: 8px 0; }
.az-fold-row { display: flex; gap: 2px 18px; flex-wrap: wrap; }
.az-fold-row > .az-fold[open] { flex: 1 1 100%; }
.az-fold-add > summary { color: var(--az-primary-dark); }
.az-card-dashed { border: 1px dashed var(--az-line-strong); box-shadow: none; background: transparent; }
.az-card-dashed h3 { margin-top: 0; }
.az-empty-box { text-align: center; color: var(--az-muted); padding: 28px 14px; margin-bottom: 16px; border: 1px dashed var(--az-line-strong); border-radius: var(--az-radius); }
.az-tag-warn { background: #fdf3d7; color: #7a5200; }

/* Sinav kartlari */
.az-exam-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; align-items: start; }
.az-exam-card { margin: 0; }
.az-exam-card.has-exam { border-color: #bfe3cd; }
.az-exam-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.az-exam-head h3 { margin: 0; }
.az-exam-when { font-weight: 600; margin: 6px 0 4px; }
.az-exam-item { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; padding: 10px 12px; margin: 10px 0; background: var(--az-success-bg); border-radius: var(--az-radius-sm); }
.az-exam-form { display: block; }
.az-exam-form label { margin-bottom: 10px; }
.az-form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* "Kurs ac" acilir paneli */
.az-panel { margin-bottom: 18px; }
.az-panel > summary.az-btn { display: inline-flex; list-style: none; color: #fff; margin: 0 0 12px; }
.az-panel > summary.az-btn::-webkit-details-marker { display: none; }

/* ------------------------------------------------------------------ mobil */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
img, video, canvas { max-width: 100%; }

@media (max-width: 900px) {
    /* iOS, 16 pikselden kucuk yazili alana dokununca sayfayi yakinlastirir. */
    input, select, textarea { font-size: 16px !important; }

    /* Dokunma hedefleri en az 44 piksel. */
    .az-btn, .az-btn-ghost, .az-side-btn { min-height: 44px; }
    .az-nav a { min-height: 44px; }
    details > summary { padding: 11px 0; margin: 0; }
    .az-panel > summary.az-btn { padding: 9px 16px; margin-bottom: 12px; }
    .az-inline-details > summary { padding: 7px 12px; }
    .az-tabs a { padding: 13px 14px; }
    .az-check { min-height: 44px; align-items: center; }
    .az-check input { width: 22px; height: 22px; margin-top: 0; }
    .az-check-help { margin-left: 31px; }
    .az-check-inline { margin-bottom: 0; }

    .az-main { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
    .az-topbar { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
    .az-side { padding-bottom: env(safe-area-inset-bottom); }

    .az-head { align-items: flex-start; }
    .az-head h1 { font-size: 1.35rem; overflow-wrap: anywhere; }
    .az-card, .az-form { padding-left: 14px; padding-right: 14px; }
    .az-dl { grid-template-columns: 1fr; gap: 2px 0; }
    .az-dl dd { margin-bottom: 8px; }
    .az-inline-details form { flex-wrap: wrap; }
    .az-inline-details input { min-width: 0; flex: 1 1 160px; }
}

@media (max-width: 700px) {
    /* Dugmeler tam genislik: basparmakla kolay basilir. */
    .az-form > .az-btn, .az-form-inline > .az-btn, .az-row > .az-btn, .az-auth .az-btn { width: 100%; }
    .az-row label, .az-row label.az-narrow, .az-form-inline label { flex: 1 1 100%; }
    .az-form-pair { grid-template-columns: 1fr; }
    .az-exam-grid { grid-template-columns: 1fr; }
    .az-player-bar .az-btn { flex: 1 1 auto; }
    .az-video video { max-height: 56vh; }
    .az-pdf { max-height: 68vh; }

    /* Tablo -> kart (panel.js hucrelere data-label yazar; betik calismazsa tablo yana kayar). */
    .az-table-wrap.is-stack { overflow: visible; background: transparent; border: 0; box-shadow: none; }
    .az-table.is-stack, .az-table.is-stack tbody, .az-table.is-stack tr, .az-table.is-stack td { display: block; width: 100%; }
    .az-table.is-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .az-table.is-stack tr {
        background: var(--az-surface); border: 1px solid var(--az-line); border-radius: var(--az-radius);
        box-shadow: var(--az-shadow); padding: 6px 14px; margin-bottom: 10px;
    }
    .az-table.is-stack td { position: relative; border: 0; padding: 7px 0; min-height: 34px; overflow-wrap: anywhere; white-space: normal; }
    .az-table.is-stack td[data-label] { padding-left: 40%; }
    .az-table.is-stack td[data-label]::before {
        content: attr(data-label); position: absolute; left: 0; top: 7px; width: 37%;
        color: var(--az-muted); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; line-height: 1.5;
    }
    .az-table.is-stack td:empty { display: none; }
    .az-table.is-stack tbody tr:hover td { background: transparent; }
    .az-table.is-stack td.az-actions { display: flex; justify-content: flex-start; white-space: normal; padding-top: 10px; border-top: 1px solid var(--az-line); margin-top: 4px; }
    .az-table.is-stack td.az-actions .az-btn { flex: 1 1 auto; }
    .az-table.is-stack td.az-empty { text-align: center; padding: 20px 0 !important; }
    .az-table.is-stack .az-input-sm { width: 100%; }
}@media (max-width: 700px) {
    /* Satir ici acilan formlar (ornegin belge iptali) karti tasirmasin. */
    .az-table.is-stack td.az-actions .az-inline-details { flex: 1 1 100%; }
    .az-inline-details form .az-btn { flex: 1 1 100%; white-space: normal; }
}

/* =====================================================================
   TASARIM v2 (2026-10-14) — bilesen katmani. Yukaridaki temel kurallarin
   uzerine yazar; sinif adlari degismedi, sayfa isaretlemesi ayni kalir.
   ===================================================================== */

/* ---- tipografi ve sayilar */
.az-table, .az-kpi-value, .az-dl dd, .az-count, .az-badge { font-variant-numeric: tabular-nums; }
::selection { background: #fed7aa; color: #431407; }
code { background: #f2f4f7; color: var(--az-text-2); border: 1px solid var(--az-line); padding: 0 6px; border-radius: 6px; font-size: .86em; }
a { text-underline-offset: 2px; }

/* ---- sayfa basligi */
.az-main { padding-top: 26px; }
.az-head { margin-bottom: 1.25rem; align-items: flex-end; }
.az-head > div:first-child { min-width: 0; }
.az-head h1 small { display: inline-block; margin-left: 6px; font-family: var(--az-font); font-size: .82rem; font-weight: 500; color: var(--az-muted); letter-spacing: 0; vertical-align: middle; }
.az-crumbs { font-size: .8rem !important; font-weight: 500; margin-bottom: 6px !important; color: var(--az-muted); }
.az-crumbs a { color: var(--az-muted) !important; }
.az-crumbs a:hover { color: var(--az-primary) !important; text-decoration: underline; }

/* ---- dugmeler: tek vurgu (birincil turuncu), ikincil notr */
.az-btn {
    min-height: 38px; padding: 8px 15px; border-radius: var(--az-radius-sm); font-size: .9rem; font-weight: 600; letter-spacing: -.005em;
    box-shadow: 0 1px 2px rgba(17, 24, 39, .08), inset 0 1px 0 rgba(255, 255, 255, .12);
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .05s ease;
}
.az-btn:active { transform: translateY(1px); }
.az-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--az-primary-ring); }
.az-btn-ghost {
    background: var(--az-surface); color: var(--az-text-2); border-color: var(--az-line-strong);
    padding: 8px 13px; box-shadow: 0 1px 2px rgba(17, 24, 39, .05);
}
.az-btn-ghost:hover { background: #f9fafb; color: var(--az-text); border-color: #c3c8d1; }
.az-btn-ghost .az-icon { color: var(--az-muted); }
.az-btn-ghost:hover .az-icon { color: var(--az-primary); }
.az-btn-danger { color: var(--az-danger); border-color: #fecdca; }
.az-btn-danger:hover { background: var(--az-danger-bg); color: var(--az-danger); border-color: #fda29b; }
.az-btn[disabled], .az-btn.is-disabled { opacity: .5; box-shadow: none; }
.az-btn-xs { min-height: 0; }

/* ---- bildirim kutulari */
.az-alert { border-radius: 10px; padding: 12px 14px 12px 16px; border-width: 1px; border-left-width: 4px; font-size: .92rem; }
.az-alert-danger { border-color: #fecdca; border-left-color: var(--az-danger); }
.az-alert-success { border-color: #abefc6; border-left-color: #17b26a; }
.az-alert-info { border-color: #b2ddff; border-left-color: #2e90fa; }

/* ---- etiketler: noktali hap */
.az-tag {
    display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px;
    background: #f2f4f7; color: #344054; border: 1px solid #e4e7ec; font-size: .74rem; font-weight: 600; line-height: 1.5;
}
.az-tag-ok { background: var(--az-success-bg); color: var(--az-success); border-color: #abefc6; }
.az-tag-danger { background: var(--az-danger-bg); color: var(--az-danger); border-color: #fecdca; }
.az-tag-warn { background: var(--az-warn-bg); color: var(--az-warn); border-color: #fedf89; }
.az-tag-ok::before, .az-tag-danger::before, .az-tag-warn::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }

/* ---- kartlar */
.az-card, .az-form { border-color: var(--az-line); border-radius: var(--az-radius); padding: 22px; box-shadow: var(--az-shadow); }
.az-card > h2:first-child, .az-form > h2:first-child { font-size: 1rem; }
a.az-card, .az-card-link { transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
a.az-card:hover, .az-card-link:hover { border-color: #fdba74; box-shadow: var(--az-shadow-md); transform: translateY(-1px); }

/* ---- KPI: ust etiket + buyuk deger, kalin renk seridi yerine sakin kart */
.az-kpis { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; margin-bottom: 24px; }
.az-kpi {
    position: relative; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px;
    padding: 16px 18px 15px; border: 1px solid var(--az-line); border-left: 1px solid var(--az-line); border-radius: var(--az-radius);
    box-shadow: var(--az-shadow); overflow: hidden;
}
.az-kpi::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #fb923c, var(--az-primary)); opacity: 0; transition: opacity .15s ease; }
.az-kpi-value { font-family: var(--az-font-display); font-size: 1.75rem; font-weight: 700; letter-spacing: -.03em; color: var(--az-text); }
.az-kpi-value small { font-size: .9rem; font-weight: 500; color: var(--az-muted); letter-spacing: 0; }
.az-kpi-label { margin: 0; font-size: .78rem; font-weight: 600; color: var(--az-muted); text-transform: uppercase; letter-spacing: .045em; }
a.az-kpi-link { transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
a.az-kpi-link:hover, a.az-kpi-link.is-active { background: var(--az-surface); border-color: #fdba74; box-shadow: var(--az-shadow-md); transform: translateY(-1px); }
a.az-kpi-link:hover::after, a.az-kpi-link.is-active::after { opacity: 1; }
.az-kpi.is-danger { border-color: #fecdca; background: linear-gradient(180deg, #fff 0%, #fffbfa 100%); }
.az-kpi.is-danger::after { opacity: 1; background: var(--az-danger); }
.az-kpi.is-danger .az-kpi-label { color: var(--az-danger); }

/* ---- tablolar */
.az-table-wrap { border-radius: var(--az-radius); border-color: var(--az-line); box-shadow: var(--az-shadow); }
.az-table th, .az-table td { padding: 12px 16px; border-bottom-color: #eef0f3; }
.az-table th { background: var(--az-surface-2); color: #667085; font-size: .72rem; letter-spacing: .05em; font-weight: 600; border-bottom-color: var(--az-line); }
.az-table td { color: var(--az-text-2); }
.az-table td strong, .az-table td a:not(.az-btn) { color: var(--az-text); }
.az-table td a:not(.az-btn) { font-weight: 600; text-decoration: none; }
.az-table td a:not(.az-btn):hover { color: var(--az-primary); text-decoration: underline; }
.az-table tbody tr { transition: background-color .1s ease; }
.az-table tbody tr:hover td { background: #fafbfc; }
.az-table td .az-btn-ghost { min-height: 32px; padding: 5px 11px; font-size: .84rem; }
.az-empty { padding: 40px 14px !important; }

/* ---- formlar */
.az-form label, .az-row label, .az-filter label { font-size: .86rem; font-weight: 600; color: var(--az-text-2); }
.az-form input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), .az-form select, .az-form textarea,
.az-row input:not([type=checkbox]):not([type=radio]), .az-row select, .az-row textarea,
.az-filter input, .az-filter select, .az-auth input {
    min-height: 40px; padding: 8px 12px; margin-top: 6px; border-color: var(--az-line-strong); border-radius: var(--az-radius-sm);
    box-shadow: 0 1px 2px rgba(17, 24, 39, .04); transition: border-color .15s ease, box-shadow .15s ease;
}
.az-form input:hover, .az-form select:hover, .az-form textarea:hover, .az-filter input:hover, .az-filter select:hover { border-color: #b9bfc9; }
.az-form input:focus, .az-form select:focus, .az-form textarea:focus,
.az-row input:focus, .az-row select:focus, .az-row textarea:focus,
.az-filter input:focus, .az-filter select:focus, .az-auth input:focus {
    border-color: #f97316; box-shadow: 0 0 0 4px var(--az-primary-ring);
}
.az-form input::placeholder, .az-filter input::placeholder, .az-auth input::placeholder, .az-form textarea::placeholder { color: #98a2b3; }
.az-form input[type=file] { display: block; margin-top: 6px; font: inherit; font-size: .88rem; }
.az-form input[type=file]::file-selector-button { margin-right: 10px; padding: 7px 12px; border: 1px solid var(--az-line-strong); border-radius: 8px; background: #fff; font: inherit; font-weight: 600; color: var(--az-text-2); cursor: pointer; }
.az-form input[type=file]::file-selector-button:hover { background: #f9fafb; }
.az-form small, .az-row small { color: #667085; }
.az-fieldset { border-color: var(--az-line); border-radius: 12px; padding: 14px 18px 4px; background: var(--az-surface-2); }
.az-fieldset legend { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--az-muted); }
.az-form-actions { padding-top: 4px; }
.az-filter { padding: 12px; background: var(--az-surface); border: 1px solid var(--az-line); border-radius: var(--az-radius); box-shadow: var(--az-shadow); align-items: center; }
.az-filter input, .az-filter select { margin-top: 0; }
.az-filter .az-btn { min-height: 40px; }
details > summary { color: var(--az-text-2); }
details > summary:hover { color: var(--az-primary); }

/* ---- sekmeler */
.az-tabs { gap: 2px; border-bottom-color: var(--az-line); }
.az-tabs a { padding: 10px 14px; border-radius: 0; font-size: .9rem; color: var(--az-muted); border-bottom-width: 2px; }
.az-tabs a:hover { background: transparent; color: var(--az-text); }
.az-tabs a.is-active { background: transparent; color: var(--az-text); border-bottom-color: var(--az-primary); }
.az-count { background: #f2f4f7; color: #475467; font-weight: 600; }

/* ---- bos durum ve katlanir alanlar */
.az-empty-box { padding: 36px 18px; border: 1.5px dashed var(--az-line-strong); border-radius: var(--az-radius); background: var(--az-surface); color: var(--az-muted); }
.az-empty-box p:first-child strong { color: var(--az-text); }
.az-fold[open] { background: var(--az-surface); border-color: var(--az-line); border-radius: 12px; box-shadow: var(--az-shadow); padding: 6px 16px 12px; }
.az-dl dt { font-size: .86rem; }
.az-dl dd { font-weight: 600; color: var(--az-text); }

/* ---- giris ekrani: iki sutun (marka paneli + form) */
.az-auth-body { background: radial-gradient(900px 480px at 85% -10%, #ffedd5 0%, rgba(255, 237, 213, 0) 60%), radial-gradient(700px 420px at -10% 110%, #fee2e2 0%, rgba(254, 226, 226, 0) 55%), var(--az-bg); }
.az-auth { border-radius: 18px; padding: 34px 32px; border-color: var(--az-line); box-shadow: var(--az-shadow-lg); }
.az-auth h1 { color: var(--az-text); font-size: 1.5rem; }
.az-auth-sub { margin-bottom: 22px; }
.az-auth form .az-btn { min-height: 44px; font-size: .95rem; }
.az-auth-note { margin: 22px 0 0; font-size: .8rem; color: #98a2b3; text-align: center; }
.az-auth-wrap:has(.az-auth-split) { max-width: 980px; }
.az-auth-split { display: grid; grid-template-columns: 1.05fr 1fr; background: var(--az-surface); border: 1px solid var(--az-line); border-radius: 22px; box-shadow: var(--az-shadow-lg); overflow: hidden; }
.az-auth-split .az-auth { border: 0; border-radius: 0; box-shadow: none; margin: 0; padding: 48px 44px; align-self: center; }
.az-auth-hero {
    position: relative; display: flex; flex-direction: column; gap: 28px; padding: 40px; color: #fde7d6; min-height: 480px;
    background: radial-gradient(520px 320px at 110% 0%, rgba(249, 115, 22, .55) 0%, rgba(249, 115, 22, 0) 60%), linear-gradient(160deg, #1c1917 0%, #0c0a09 100%);
}
.az-auth-hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 28px 28px; pointer-events: none; }
.az-auth-hero > * { position: relative; z-index: 1; }
.az-auth-hero-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: #fff; }
.az-auth-hero-brand .az-brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(135deg, #fb923c, #c2410c); box-shadow: 0 6px 18px rgba(249, 115, 22, .45); }
.az-auth-hero-body { margin-top: auto; }
.az-auth-hero h2 { margin: 0 0 18px; font-size: 1.65rem; line-height: 1.2; color: #fff; letter-spacing: -.025em; }
.az-auth-hero ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.az-auth-hero li { display: flex; gap: 10px; align-items: center; font-size: .93rem; color: #e7e0da; }
.az-auth-hero li::before { content: ""; width: 18px; height: 18px; flex: 0 0 auto; border-radius: 50%; background: rgba(249, 115, 22, .22); box-shadow: inset 0 0 0 5px rgba(28, 25, 23, 1), inset 0 0 0 9px #fb923c; }
.az-auth-hero-foot { margin: 0; font-size: .8rem; color: #a8a29e; }
@media (max-width: 820px) {
    .az-auth-split { grid-template-columns: 1fr; }
    .az-auth-hero { display: none; }
    .az-auth-split .az-auth { padding: 32px 24px; }
}

/* ---- diger */
.az-modal-box { border-radius: 18px; box-shadow: var(--az-shadow-lg); }

@media (max-width: 900px) {
    .az-main { padding-top: 18px; }
    .az-head { align-items: flex-start; }
    .az-card, .az-form { padding: 18px 16px; }
    .az-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .az-kpi-value { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
    .az-btn, .az-kpi, a.az-card, .az-table tbody tr { transition: none; }
    a.az-kpi-link:hover, a.az-card:hover { transform: none; }
}
a.az-kpi.az-kpi-link { display: flex; }

/* =====================================================================
   TASARIM v2.1 (2026-10-14) — ferahlik. Kullanici: "bogucu bir hava var".
   Ilke: daha az cerceve, ic ice kutu yok, daha cok bosluk, agirlik yalniz
   onemli yerde (deger > etiket > aciklama).
   ===================================================================== */
:root { --az-bg: #f7f8fa; --az-line: #eceef2; --az-gap: 20px; }

.az-main { max-width: 1200px; padding: 32px 32px 56px; }
.az-head { margin-bottom: 26px; }
.az-head h1 { font-size: 1.55rem; }

/* kartlar: golgesiz, ince cerceve; aralarinda nefes */
.az-card, .az-form { box-shadow: none; border-color: var(--az-line); padding: 24px; margin-bottom: var(--az-gap); }
.az-grid { gap: var(--az-gap); }
.az-card h2, .az-card h3, .az-section-head h2, .az-section-head h3 { font-weight: 600; font-size: 1rem; color: var(--az-text); }
.az-card > p.az-muted, .az-section-head + p.az-muted { font-size: .88rem; line-height: 1.55; }
.az-section-head { margin-bottom: 12px; }
.az-section-head .az-btn-ghost { min-height: 32px; padding: 5px 12px; font-size: .84rem; }

/* KPI: tek bir serit kart, ayiricilarla bolunmus (6 ayri kutu yerine) */
.az-kpis {
    gap: 0; background: var(--az-surface); border: 1px solid var(--az-line); border-radius: var(--az-radius); overflow: hidden;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 28px;
}
.az-kpi, a.az-kpi.az-kpi-link {
    border: 0; border-radius: 0; box-shadow: -1px 0 0 var(--az-line), 0 -1px 0 var(--az-line); background: transparent;
    padding: 18px 22px; gap: 4px;
}
.az-kpi::after { display: none; }
.az-kpi-label { text-transform: none; letter-spacing: 0; font-size: .84rem; font-weight: 500; color: var(--az-muted); }
.az-kpi-value { font-size: 1.6rem; font-weight: 650; }
a.az-kpi-link:hover, a.az-kpi-link.is-active { transform: none; background: #fafbfc; box-shadow: -1px 0 0 var(--az-line), 0 -1px 0 var(--az-line); }
a.az-kpi-link:hover .az-kpi-label { color: var(--az-primary); }
.az-kpi.is-danger, a.az-kpi.az-kpi-link.is-danger { background: transparent; }
.az-kpi.is-danger .az-kpi-value { color: var(--az-danger); }
.az-kpi.is-danger .az-kpi-label { color: var(--az-danger); }

/* kart icinde kutu yok: tablo ve bos durum karta yaslanir */
.az-card .az-table-wrap, .az-pano-kart .az-table-wrap { border: 0; border-radius: 0; box-shadow: none; margin: 0; background: transparent; }
.az-card .az-table th { background: transparent; border-bottom-color: var(--az-line); }
.az-card .az-table th:first-child, .az-card .az-table td:first-child { padding-left: 0; }
.az-card .az-table th:last-child, .az-card .az-table td:last-child { padding-right: 0; }
.az-card .az-empty-box { border: 0; background: var(--az-surface-2); border-radius: 10px; padding: 22px 16px; margin: 4px 0 0; font-size: .9rem; }
.az-card .az-empty-box p { margin: 0; }

/* tablolar genel: daha hafif baslik */
.az-table th { background: transparent; color: #8a93a3; font-weight: 600; }
.az-table-wrap .az-table thead th { background: var(--az-surface-2); }

/* etiket ve sayac: daha sakin */
.az-count { background: #f2f4f7; color: #667085; font-size: .72rem; }

/* sayfa basligi eylemleri: ikincil dugmeler daha hafif */
.az-head .az-actions { gap: 8px; }

@media (max-width: 900px) {
    .az-main { padding: 20px 16px 40px; }
    .az-card, .az-form { padding: 18px 16px; }
    .az-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .az-kpi, a.az-kpi.az-kpi-link { padding: 14px 16px; }
}
.az-card > h2:first-child, .az-card > h3:first-child, .az-form > h2:first-child, .az-form > h3:first-child { margin-top: 0; margin-bottom: 14px; }

/* =====================================================================
   TASARIM v2.2 (2026-10-14) — derinlik ve renk. Kullanici: "siliklik kaldi,
   renk ver, sayfaya ic ice gecmis gibi durmasin, daha etkin".
   Ilke: zemin bir ton koyu + kartlarda yumusak golge (kart zeminden ayrisir);
   KPI ve pano kartlarinda sira renkleri; ust kisimda hafif sicak isilti.
   ===================================================================== */
:root {
    --az-bg: #eef1f5;
    --az-line: #e3e7ed;
    --az-card-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 2px 8px -2px rgba(16, 24, 40, .08);
    /* sira renkleri: turuncu, mavi, mor, yesil, pembe, camgobegi */
    --az-c1: #ea580c; --az-c1-bg: #fff1e6;
    --az-c2: #2563eb; --az-c2-bg: #eaf1ff;
    --az-c3: #7c3aed; --az-c3-bg: #f2ecff;
    --az-c4: #059669; --az-c4-bg: #e6f7f0;
    --az-c5: #db2777; --az-c5-bg: #fdebf3;
    --az-c6: #0891b2; --az-c6-bg: #e3f5f9;
}

/* ust kisimda sicak isilti: sayfa duz gri gorunmesin */
.az-content { background: radial-gradient(1100px 340px at 78% -140px, rgba(251, 146, 60, .16), rgba(251, 146, 60, 0) 70%), radial-gradient(800px 300px at 10% -160px, rgba(37, 99, 235, .07), rgba(37, 99, 235, 0) 70%), var(--az-bg); }
.az-baglam { background: rgba(255, 255, 255, .7); }

/* kartlar zeminden ayrisir */
.az-card, .az-form, .az-table-wrap, .az-kpis, .az-filter { border-color: var(--az-line); box-shadow: var(--az-card-shadow); }
.az-card .az-table-wrap, .az-pano-kart .az-table-wrap { box-shadow: none; }
.az-card h2, .az-card h3, .az-section-head h2, .az-section-head h3 { font-weight: 650; }

/* KPI: her bolmenin ustunde renkli serit + renkli nokta; deger koyu ve iri */
.az-kpi, a.az-kpi.az-kpi-link { --k: var(--az-c1); --kb: var(--az-c1-bg); padding: 20px 22px 18px; }
.az-kpis > .az-kpi:nth-child(6n+2) { --k: var(--az-c2); --kb: var(--az-c2-bg); }
.az-kpis > .az-kpi:nth-child(6n+3) { --k: var(--az-c3); --kb: var(--az-c3-bg); }
.az-kpis > .az-kpi:nth-child(6n+4) { --k: var(--az-c4); --kb: var(--az-c4-bg); }
.az-kpis > .az-kpi:nth-child(6n+5) { --k: var(--az-c5); --kb: var(--az-c5-bg); }
.az-kpis > .az-kpi:nth-child(6n+6) { --k: var(--az-c6); --kb: var(--az-c6-bg); }
.az-kpi::after, a.az-kpi.az-kpi-link::after { display: block; opacity: 1; height: 3px; background: var(--k); }
.az-kpi-label { display: flex; align-items: center; gap: 8px; color: #4b5563; font-weight: 600; }
.az-kpi-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--k); box-shadow: 0 0 0 4px var(--kb); flex: 0 0 auto; }
.az-kpi-value { font-size: 1.9rem; font-weight: 700; color: var(--az-text); }
a.az-kpi-link:hover, a.az-kpi-link.is-active { background: linear-gradient(180deg, var(--kb) 0%, rgba(255, 255, 255, 0) 100%); }
a.az-kpi-link:hover .az-kpi-label { color: var(--k); }
.az-kpi.is-danger, a.az-kpi.az-kpi-link.is-danger { --k: var(--az-danger); --kb: var(--az-danger-bg); background: linear-gradient(180deg, #fff5f4 0%, #fff 100%); }

/* pano kartlari: sira renkli simge rozeti */
.az-pano-kart { --k: var(--az-c1); --kb: var(--az-c1-bg); }
.az-pano-grid > :nth-child(6n+2) { --k: var(--az-c2); --kb: var(--az-c2-bg); }
.az-pano-grid > :nth-child(6n+3) { --k: var(--az-c3); --kb: var(--az-c3-bg); }
.az-pano-grid > :nth-child(6n+4) { --k: var(--az-c4); --kb: var(--az-c4-bg); }
.az-pano-grid > :nth-child(6n+5) { --k: var(--az-c5); --kb: var(--az-c5-bg); }
.az-pano-grid > :nth-child(6n+6) { --k: var(--az-c6); --kb: var(--az-c6-bg); }
.az-pano-kart h2 > .az-icon { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--kb); color: var(--k); }
.az-pano-kart h2 .az-pano-link { color: var(--k); font-weight: 600; }
.az-pano-kart h2 .az-pano-link:hover { color: var(--k); text-decoration: underline; }
.az-pano-kart { transition: box-shadow .15s ease, transform .15s ease; }
.az-pano-kart:hover { box-shadow: 0 2px 4px rgba(16, 24, 40, .06), 0 10px 24px -8px rgba(16, 24, 40, .16); transform: translateY(-1px); }
.az-pano-kart strong { font-size: 1.02em; }

/* istasyonlar: bos olan okunur, isi olan renkli */
.az-istasyon { background: #f3f5f8; border-color: #e8ebf0; }
.az-istasyon strong { color: #8a93a3; }
.az-istasyon:hover { background: #fff; border-color: #fdba74; }
.az-istasyon.is-dolu { background: linear-gradient(180deg, #fff1e6 0%, #fff 100%); border-color: #fdba74; box-shadow: 0 2px 8px -2px rgba(234, 88, 12, .25); }

/* bos durum satiri: biraz daha belirgin */
.az-card .az-empty-box { background: #f5f7fa; color: #6b7280; }

/* tablo basligi bir ton belirgin */
.az-table-wrap .az-table thead th, .az-card .az-table th { color: #6b7280; }

@media (prefers-reduced-motion: reduce) { .az-pano-kart:hover { transform: none; } }

/* v2.2 — pano kartlari ve atolye istasyonlari icin yerlesim (renk kurallari yukarida; burada renk ezilmez) */
.az-pano-grid { gap: var(--az-gap, 20px); }
.az-pano-kart { display: flex; flex-direction: column; }
.az-pano-kart h2 { font-size: .98rem; gap: 10px; margin-bottom: 14px; }
.az-pano-kart h2 .az-pano-link { border: 0; padding: 2px 4px; font-size: .8rem; text-decoration: none; background: transparent; }
.az-pano-kart h2 .az-pano-link::after { content: " →"; }
.az-pano-kart.is-danger { border-color: #fecdca; box-shadow: inset 3px 0 0 var(--az-danger), var(--az-card-shadow); }
.az-pano-kart p, .az-pano-kart li { font-size: .9rem; color: #4b5563; }
.az-pano-kart strong { color: var(--az-text); font-weight: 650; }
.az-istasyon-grid { gap: 8px; }
.az-istasyon { min-height: 72px; padding: 12px 14px; gap: 0; font-size: .88rem; color: var(--az-text-2); transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease; }
.az-istasyon strong { font-size: 1.35rem; font-weight: 650; }
.az-istasyon small { font-size: .74rem; color: #8a93a3 !important; }
.az-istasyon.is-dolu strong { color: var(--az-primary-dark); }
.az-istasyon.is-hurda.is-dolu { background: var(--az-danger-bg); border-color: #fecdca; box-shadow: none; }
.az-istasyon.is-hurda.is-dolu strong { color: var(--az-danger); }

/* Fotograf galerisi (is emri karti, kontrol detayi) */
.az-galeri { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.az-galeri-oge { display: flex; flex-direction: column; background: var(--az-surface); border: 1px solid var(--az-line); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--az-text); box-shadow: var(--az-card-shadow, var(--az-shadow)); transition: transform .15s ease, box-shadow .15s ease; }
.az-galeri-oge:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(16, 24, 40, .2); color: var(--az-text); }
.az-galeri-oge img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #eef1f5; display: block; }
.az-galeri-oge.is-sorunlu { border-color: #fda29b; }
.az-galeri-oge.is-sorunlu img { outline: 3px solid var(--az-danger); outline-offset: -3px; }
.az-galeri-alt { display: grid; gap: 2px; padding: 8px 10px; font-size: .85rem; }
.az-galeri-alt small { color: var(--az-muted); font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- marka logosu (2026-10-15): isaret beyaz karo icinde; tam logo giris formunda */
.az-brand-mark { background: #fff; padding: 3px; overflow: hidden; }
.az-brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.az-auth-hero-brand .az-brand-mark { width: 44px; height: 44px; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.az-auth h1.az-auth-logo { margin: 0 0 6px; line-height: 0; }
.az-auth-logo img { display: block; width: 100%; max-width: 230px; height: auto; margin: 0 auto; background: #fff; border-radius: 14px; padding: 8px; }
.az-auth-logo + .az-auth-sub { text-align: center; }
