/* ==========================================================================
   Sakans Studio — arayüz teması (Bootstrap 5.3 üzerine)
   ========================================================================== */

:root {
    --ink: #121317;
    --ink-2: #2b2d35;
    --text: #1d1f25;
    --muted: #6d717d;
    --faint: #9a9ea8;
    --line: #e9e7e3;
    --line-2: #f1efec;
    --bg: #f6f5f2;
    --surface: #ffffff;
    --surface-2: #faf9f7;

    --accent: #ff5c35;
    --accent-2: #ff8a5c;
    --accent-soft: #fff0eb;

    --ok: #16a34a;      --ok-soft: #e8f7ee;     --ok-ink: #11703a;
    --warn: #d97706;    --warn-soft: #fdf3e2;   --warn-ink: #8a4b04;
    --bad: #dc3b3b;     --bad-soft: #fdecec;    --bad-ink: #9f2323;
    --idle: #71757f;    --idle-soft: #f0efec;   --idle-ink: #4a4d55;

    --radius: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(18, 19, 23, .05);
    --shadow: 0 1px 2px rgba(18, 19, 23, .04), 0 6px 20px -8px rgba(18, 19, 23, .10);
    --shadow-lg: 0 20px 50px -20px rgba(18, 19, 23, .30);
    --sidebar-w: 264px;

    --bs-body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --bs-body-color: var(--text);
    --bs-body-bg: var(--bg);
    --bs-border-color: var(--line);
    --bs-link-color: var(--ink);
    --bs-link-color-rgb: 18, 19, 23;
    --bs-link-hover-color: var(--accent);
    --bs-link-hover-color-rgb: 255, 92, 53;
    --bs-primary: var(--ink);
    --bs-primary-rgb: 18, 19, 23;
    --bs-secondary-color: var(--muted);
    --bs-border-radius: var(--radius-sm);
    --bs-focus-ring-color: rgba(255, 92, 53, .25);
}

body {
    background: var(--bg);
    font-size: .925rem;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -.005em;
}
h1, h2, h3, h4, h5, h6 { letter-spacing: -.02em; color: var(--ink); }
a { text-decoration: none; }
a:hover { color: var(--accent); }
.text-muted { color: var(--muted) !important; }
::selection { background: var(--accent-soft); color: var(--ink); }

/* ---------------------------------------------------------------- Uygulama iskeleti */

.app { display: flex; min-height: 100vh; }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-content { padding: 32px 36px 64px; max-width: 1440px; width: 100%; }

.sidebar {
    width: var(--sidebar-w);
    background: var(--ink) !important; /* offcanvas-lg geniş ekranda arka planı şeffaflaştırıyor */
    color: #c9cbd2;
    display: flex;
    flex-direction: column;
}
@media (min-width: 992px) {
    .sidebar { position: sticky; top: 0; height: 100vh; flex-shrink: 0; }
}
.sidebar .offcanvas-body { display: flex; flex-direction: column; padding: 0; height: 100%; }
.sidebar-brand { padding: 26px 22px 22px; display: flex; align-items: center; gap: 12px; color: #fff; }
.sidebar-brand:hover { color: #fff; }
.sidebar-section { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: #6f727c; padding: 18px 24px 8px; font-weight: 600; }
.side-nav { list-style: none; margin: 0; padding: 0 12px; }
.side-nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; margin-bottom: 2px;
    border-radius: 10px; color: #b9bcc5; font-weight: 500;
    position: relative; transition: background .15s, color .15s;
}
.side-nav a i { font-size: 1.1rem; width: 20px; text-align: center; opacity: .85; }
.side-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side-nav a.active { background: rgba(255, 255, 255, .09); color: #fff; }
.side-nav a.active::before {
    content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px;
    border-radius: 0 3px 3px 0; background: var(--accent);
}
.side-nav a.active i { color: var(--accent); opacity: 1; }
.side-nav .count {
    margin-left: auto; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700;
    min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
}
.sidebar-cta { margin: 16px 12px 0; }
.sidebar-cta .btn { background: var(--accent); border-color: var(--accent); color: #fff; width: 100%; font-weight: 600; padding: 10px; }
.sidebar-cta .btn:hover { background: #f04c25; border-color: #f04c25; }
.sidebar-user {
    margin-top: auto; padding: 16px; border-top: 1px solid rgba(255, 255, 255, .07);
    display: flex; align-items: center; gap: 12px;
}
.avatar {
    width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent), #ffb168); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem;
}
.sidebar-user .name { color: #fff; font-weight: 600; font-size: .88rem; line-height: 1.2; }
.sidebar-user .role { color: #7e818b; font-size: .75rem; }
.sidebar-user .icon-btn { color: #9a9da6; margin-left: auto; padding: 6px; border-radius: 8px; }
.sidebar-user .icon-btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.topbar {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--ink); color: #fff; padding: 12px 16px; position: sticky; top: 0; z-index: 1020;
}
.topbar .btn { color: #fff; border: 0; font-size: 1.4rem; padding: 2px 6px; }

/* Logo */
.logo-mark {
    width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent) 0%, #ffb168 100%);
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px -6px rgba(255, 92, 53, .7);
}
.logo-mark svg { width: 20px; height: 20px; }
.logo-text { font-weight: 800; font-size: 1.2rem; letter-spacing: -.03em; line-height: 1; color: inherit; }
.logo-text small { display: block; font-weight: 500; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: #8c8f99; margin-top: 4px; }

/* ---------------------------------------------------------------- Sayfa başlığı */

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.page-head .crumb { font-size: .82rem; color: var(--muted); margin-bottom: 6px; display: inline-flex; align-items: center; gap: 6px; }
.page-head .crumb:hover { color: var(--accent); }
.page-title { font-size: 1.65rem; font-weight: 700; margin: 0; line-height: 1.2; }
.page-sub { color: var(--muted); margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.page-sub .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--faint); display: inline-block; }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------------------------------------------------------------- Kartlar / paneller */

.card {
    --bs-card-border-color: var(--line);
    --bs-card-border-radius: var(--radius);
    --bs-card-inner-border-radius: calc(var(--radius) - 1px);
    --bs-card-cap-bg: transparent;
    --bs-card-spacer-y: 1.25rem;
    --bs-card-spacer-x: 1.25rem;
    box-shadow: var(--shadow-sm);
    background: var(--surface);
}
.card-header { padding: 16px 20px; font-weight: 650; color: var(--ink); border-bottom-color: var(--line-2); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-header .sub { font-weight: 400; color: var(--muted); font-size: .85rem; }
.card-footer { background: var(--surface-2); border-top-color: var(--line-2); }
.panel-title { font-size: .95rem; font-weight: 700; margin-bottom: 14px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.panel-title .step {
    width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff;
    font-size: .75rem; display: inline-flex; align-items: center; justify-content: center;
}

/* İstatistik kartları */
.stat-card { padding: 20px; display: flex; flex-direction: row; gap: 16px; align-items: flex-start; height: 100%; }
.stat-card .ico {
    width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem;
    background: var(--idle-soft); color: var(--ink);
}
.stat-card .ico.accent { background: var(--accent-soft); color: var(--accent); }
.stat-card .ico.ok { background: var(--ok-soft); color: var(--ok); }
.stat-card .ico.warn { background: var(--warn-soft); color: var(--warn); }
.stat-card .ico.bad { background: var(--bad-soft); color: var(--bad); }
.stat-card .ico.dark { background: var(--ink); color: #fff; }
.stat-label { font-size: .8rem; color: var(--muted); font-weight: 500; }
.stat-value { font-size: 1.6rem; font-weight: 750; letter-spacing: -.03em; color: var(--ink); line-height: 1.2; margin-top: 2px; }
.stat-foot { font-size: .78rem; color: var(--muted); margin-top: 2px; }
a.stat-link { color: inherit; display: block; height: 100%; }
a.stat-link .card { transition: box-shadow .15s, transform .15s; }
a.stat-link:hover .card { box-shadow: var(--shadow); transform: translateY(-1px); }

.stat-hero { background: var(--ink); color: #fff; border: 0; position: relative; overflow: hidden; }
.stat-hero::after {
    content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 92, 53, .45), transparent 70%);
}
.stat-hero .stat-label { color: #a4a7b0; }
.stat-hero .stat-value { color: #fff; font-size: 2rem; }

/* ---------------------------------------------------------------- Tablolar */

.table { --bs-table-bg: transparent; --bs-table-hover-bg: var(--surface-2); margin: 0; }
.table > :not(caption) > * > * { padding: 14px 16px; border-bottom-color: var(--line-2); }
.table thead th {
    font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
    font-weight: 600; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table tbody tr:last-child > * { border-bottom: 0; }
.table-sm > :not(caption) > * > * { padding: 10px 16px; }
.card > .table-responsive:first-child .table thead th:first-child,
.card > .table:first-child thead th:first-child { border-top-left-radius: calc(var(--radius) - 1px); }
.card > .table-responsive:first-child .table thead th:last-child,
.card > .table:first-child thead th:last-child { border-top-right-radius: calc(var(--radius) - 1px); }
.cell-title { font-weight: 600; color: var(--ink); }
.cell-sub { font-size: .8rem; color: var(--muted); }
.amount { font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; }
.amount.plus { color: var(--ok-ink); }
.amount.minus { color: var(--bad-ink); }

/* ---------------------------------------------------------------- Butonlar & form */

.btn { font-weight: 600; border-radius: 10px; padding: .55rem 1rem; font-size: .88rem; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; }
.btn-sm { padding: .35rem .7rem; font-size: .8rem; border-radius: 8px; }
.btn-lg { padding: .8rem 1.25rem; font-size: 1rem; border-radius: 12px; }
.btn-primary { --bs-btn-bg: var(--ink); --bs-btn-border-color: var(--ink); --bs-btn-hover-bg: #2a2c33; --bs-btn-hover-border-color: #2a2c33; --bs-btn-active-bg: #000; --bs-btn-active-border-color: #000; --bs-btn-disabled-bg: var(--ink); --bs-btn-disabled-border-color: var(--ink); }
.btn-accent { --bs-btn-color: #fff; --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #f04c25; --bs-btn-hover-border-color: #f04c25; --bs-btn-active-bg: #e0431d; --bs-btn-active-color: #fff; box-shadow: 0 6px 16px -8px rgba(255, 92, 53, .8); }
.btn-success { --bs-btn-bg: var(--ok); --bs-btn-border-color: var(--ok); --bs-btn-hover-bg: #128a3e; --bs-btn-hover-border-color: #128a3e; box-shadow: 0 6px 16px -8px rgba(22, 163, 74, .7); }
.btn-light { --bs-btn-bg: var(--surface); --bs-btn-border-color: var(--line); --bs-btn-hover-bg: var(--surface-2); --bs-btn-hover-border-color: #dcd9d4; --bs-btn-color: var(--ink); }
.btn-outline-primary { --bs-btn-color: var(--ink); --bs-btn-border-color: var(--line); --bs-btn-bg: var(--surface); --bs-btn-hover-bg: var(--ink); --bs-btn-hover-border-color: var(--ink); --bs-btn-hover-color: #fff; --bs-btn-active-bg: var(--ink); --bs-btn-disabled-color: var(--faint); --bs-btn-disabled-border-color: var(--line); }
.btn-outline-secondary { --bs-btn-color: var(--ink-2); --bs-btn-border-color: var(--line); --bs-btn-bg: var(--surface); --bs-btn-hover-bg: var(--surface-2); --bs-btn-hover-color: var(--ink); --bs-btn-hover-border-color: #d6d3cd; }
.btn-outline-danger { --bs-btn-color: var(--bad); --bs-btn-border-color: #f3caca; --bs-btn-bg: var(--surface); --bs-btn-hover-bg: var(--bad); --bs-btn-hover-border-color: var(--bad); }
.btn-outline-success { --bs-btn-color: var(--ok-ink); --bs-btn-border-color: #bfe6cd; --bs-btn-bg: var(--surface); --bs-btn-hover-bg: var(--ok); --bs-btn-hover-border-color: var(--ok); }
.btn-warning { --bs-btn-bg: var(--warn-soft); --bs-btn-border-color: #f6dfb5; --bs-btn-color: var(--warn-ink); --bs-btn-hover-bg: #fbe8c6; --bs-btn-hover-border-color: #f1d49d; --bs-btn-hover-color: var(--warn-ink); }

.form-control, .form-select {
    border-radius: 10px; border-color: var(--line); padding: .6rem .85rem; font-size: .9rem; background-color: var(--surface);
}
.form-control:focus, .form-select:focus { border-color: var(--accent-2); box-shadow: 0 0 0 4px var(--bs-focus-ring-color); }
.form-control-sm, .form-select-sm { padding: .4rem .65rem; font-size: .82rem; border-radius: 8px; }
.form-label { font-weight: 600; font-size: .82rem; color: var(--ink-2); margin-bottom: .4rem; }
.form-text { color: var(--muted); font-size: .78rem; }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.form-check-input:focus { box-shadow: 0 0 0 4px var(--bs-focus-ring-color); border-color: var(--accent-2); }
.input-group-text { background: var(--surface-2); border-color: var(--line); color: var(--muted); }
.form-grid { display: grid; gap: 14px; }

/* Dosya bırakma alanı */
.dropzone {
    position: relative; border: 1.5px dashed #d8d4ce; border-radius: var(--radius); background: var(--surface-2);
    padding: 26px 18px; text-align: center; transition: border-color .15s, background .15s; cursor: pointer;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone .dz-ico { width: 48px; height: 48px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--accent); margin-bottom: 10px; }
.dropzone .dz-title { font-weight: 650; color: var(--ink); }
.dropzone .dz-sub { font-size: .8rem; color: var(--muted); }

/* ---------------------------------------------------------------- Durum etiketleri */

.pill {
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
    padding: 4px 10px 4px 8px; border-radius: 999px; font-size: .74rem; font-weight: 650; line-height: 1.2;
    background: var(--idle-soft); color: var(--idle-ink);
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.pill-bekliyor { background: var(--idle-soft); color: var(--idle-ink); }
.pill-onay_bekliyor { background: var(--warn-soft); color: var(--warn-ink); }
.pill-onaylandi { background: var(--ok-soft); color: var(--ok-ink); }
.pill-reddedildi { background: var(--bad-soft); color: var(--bad-ink); }
.pill-plain::before { display: none; }
.pill-dark { background: var(--ink); color: #fff; }
.pill-accent { background: var(--accent-soft); color: #c73d17; }

.bg-bekliyor { background: var(--idle-soft) !important; color: var(--idle-ink) !important; }
.bg-onay_bekliyor { background: var(--warn-soft) !important; color: var(--warn-ink) !important; }
.bg-onaylandi { background: var(--ok-soft) !important; color: var(--ok-ink) !important; }
.bg-reddedildi { background: var(--bad-soft) !important; color: var(--bad-ink) !important; }

.badge { font-weight: 650; border-radius: 999px; padding: .35em .65em; }

/* İlerleme çubuğu */
.progress { height: 6px; background: var(--line-2); border-radius: 999px; }
.progress-bar.bg-success { background: var(--ok) !important; }
.progress-bar.bg-warning { background: #f0b44c !important; }
.progress-bar.bg-danger { background: var(--bad) !important; }
.progress-meta { display: flex; gap: 10px; font-size: .76rem; color: var(--muted); margin-top: 6px; flex-wrap: wrap; }
.progress-meta b { color: var(--ink); font-weight: 650; }

/* ---------------------------------------------------------------- Uyarılar / boş durum */

.alert { border-radius: var(--radius-sm); border: 1px solid transparent; font-size: .88rem; padding: 12px 16px; display: flex; gap: 10px; align-items: flex-start; }
.alert .btn-close { margin-left: auto; padding: .5rem; position: static; }
.alert-dismissible { padding-right: 16px; }
.alert-success { background: var(--ok-soft); color: var(--ok-ink); border-color: #c9ebd6; }
.alert-danger { background: var(--bad-soft); color: var(--bad-ink); border-color: #f5cfcf; }
.alert-warning { background: var(--warn-soft); color: var(--warn-ink); border-color: #f5e0b8; }
.alert-info, .alert-light, .alert-secondary { background: var(--surface); color: var(--ink-2); border-color: var(--line); }
.flash-stack { margin-bottom: 20px; }

.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty .empty-ico {
    width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 14px; font-size: 1.6rem;
    display: flex; align-items: center; justify-content: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink);
}
.empty h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }

/* ---------------------------------------------------------------- Resimler */

.img-tile { position: relative; border-radius: var(--radius-sm); overflow: hidden; background: var(--line-2); display: block; }
.img-tile img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; transition: transform .3s ease; }
a.img-tile:hover img { transform: scale(1.03); }
.img-tile .tag {
    position: absolute; left: 8px; top: 8px; background: rgba(18, 19, 23, .75); color: #fff; backdrop-filter: blur(6px);
    font-size: .68rem; font-weight: 600; padding: 3px 8px; border-radius: 6px; letter-spacing: .02em;
    white-space: nowrap; max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis;
}
.img-tile .tag.accent { background: var(--accent); }
.img-tile .corner { position: absolute; right: 8px; top: 8px; }
.img-tile .zoom {
    position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; border-radius: 8px; background: rgba(255, 255, 255, .9);
    display: flex; align-items: center; justify-content: center; color: var(--ink); opacity: 0; transition: opacity .15s;
}
a.img-tile:hover .zoom { opacity: 1; }
.img-tile.sq img { aspect-ratio: 1; }

.thumb { width: 44px; height: 58px; object-fit: cover; border-radius: 8px; background: var(--line-2); flex-shrink: 0; }
.thumb-lg { width: 64px; height: 84px; }
.thumb-stack { display: flex; }
.thumb-stack .thumb { border: 2px solid var(--surface); margin-left: -12px; box-shadow: var(--shadow-sm); }
.thumb-stack .thumb:first-child { margin-left: 0; }

/* Görev kartı */
.task-card {
    display: block; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 10px; transition: box-shadow .15s, transform .15s, border-color .15s; height: 100%;
}
.task-card:hover { color: inherit; box-shadow: var(--shadow); transform: translateY(-2px); border-color: #dedbd5; }
.task-card .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.task-card .pair .img-tile img { aspect-ratio: 3/4; }
.task-card .meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 0 4px 2px; }
.task-card .t1 { font-weight: 650; color: var(--ink); font-size: .88rem; }
.task-card .t2 { font-size: .78rem; color: var(--muted); }
.task-card.is-red { border-color: #f1c4c4; background: linear-gradient(180deg, #fff 70%, #fff7f7); }
.task-card .note { margin: 8px 4px 2px; font-size: .76rem; color: var(--bad-ink); background: var(--bad-soft); border-radius: 8px; padding: 6px 8px; display: flex; gap: 6px; }
.task-card .note span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.onizleme img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 10px; }

/* Seçilebilir manken kutusu */
.pick { position: relative; display: block; cursor: pointer; }
.pick input { position: absolute; opacity: 0; }
.pick .img-tile { outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .15s, opacity .15s; }
.pick input:not(:checked) + .img-tile { opacity: .45; filter: grayscale(.6); }
.pick input:checked + .img-tile { outline-color: var(--accent); }
.pick .check {
    position: absolute; right: 8px; top: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface);
    border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: .8rem; color: transparent;
}
.pick input:checked + .img-tile .check { background: var(--accent); border-color: var(--accent); color: #fff; }
.pick .cap { font-size: .78rem; font-weight: 600; text-align: center; margin-top: 6px; color: var(--ink-2); }

/* ---------------------------------------------------------------- Matris */

.matrix { border-collapse: separate; border-spacing: 6px; width: 100%; }
.matrix th, .matrix td { text-align: center; vertical-align: middle; padding: 0; }
.matrix thead th { font-size: .75rem; font-weight: 600; color: var(--ink-2); padding-bottom: 4px; }
.matrix thead th .thumb { display: block; margin: 0 auto 6px; }
.matrix tbody th { text-align: left; white-space: nowrap; padding-right: 10px; font-weight: 600; font-size: .85rem; }
.matrix .cell {
    display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; min-width: 96px;
    border-radius: 10px; font-size: .75rem; font-weight: 650; transition: transform .12s, box-shadow .12s;
}
.matrix .cell:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.matrix .cell small { font-weight: 500; opacity: .75; font-size: .68rem; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .78rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* Sekmeler */
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); padding: 4px; border-radius: 12px; gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg a { white-space: nowrap; flex-shrink: 0; }
.seg a { padding: 8px 14px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: .85rem; display: inline-flex; align-items: center; gap: 8px; }
.seg a:hover { color: var(--ink); background: var(--surface-2); }
.seg a.active { background: var(--ink); color: #fff; }
.seg a .n { font-size: .72rem; background: var(--line-2); color: var(--ink-2); border-radius: 999px; padding: 1px 7px; }
.seg a.active .n { background: rgba(255, 255, 255, .15); color: #fff; }

/* Liste */
.list-row { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line-2); color: inherit; }
.list-row:last-child { border-bottom: 0; }
a.list-row:hover { background: var(--surface-2); color: inherit; }

/* Zaman çizelgesi */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 16px 22px; font-size: .82rem; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.timeline li::after { content: ""; position: absolute; left: 7.5px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.ok::before { background: var(--ok); }
.timeline li.bad::before { background: var(--bad); }
.timeline li.up::before { background: var(--warn); }
.timeline .when { color: var(--faint); font-size: .75rem; }

.chip-btn { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: .76rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.chip-btn:hover { border-color: var(--bad); color: var(--bad); background: var(--bad-soft); }

.sticky-side { position: sticky; top: 24px; }
details > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: "\F282"; font-family: "bootstrap-icons"; color: var(--muted); transition: transform .2s; }
details[open] > summary::after { transform: rotate(180deg); }

.kv { display: flex; justify-content: space-between; padding: 6px 0; font-size: .88rem; }
.kv span { color: var(--muted); }
.kv b { color: var(--ink); font-weight: 650; }
.kv.total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 12px; font-size: 1rem; }

/* ---------------------------------------------------------------- Giriş ekranı */

.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--surface); }
.auth-art {
    background: var(--ink); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between;
    position: relative; overflow: hidden;
}
.auth-art::before {
    content: ""; position: absolute; width: 620px; height: 620px; right: -220px; bottom: -260px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 92, 53, .55), rgba(255, 138, 92, .15) 45%, transparent 70%);
}
.auth-art .frames { position: absolute; right: 56px; top: 50%; transform: translateY(-50%); display: flex; gap: 14px; opacity: .95; }
.auth-art .frames div { width: 110px; aspect-ratio: 3/4; border-radius: 14px; background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(4px); }
.auth-art .frames div:nth-child(2) { transform: translateY(-28px); background: linear-gradient(160deg, rgba(255,92,53,.55), rgba(255,177,104,.25)); }
.auth-art .frames div:nth-child(3) { transform: translateY(18px); }
.auth-art h2 { color: #fff; font-size: 2.3rem; font-weight: 750; line-height: 1.15; max-width: 440px; position: relative; }
.auth-art p { color: #a7aab3; max-width: 400px; position: relative; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-form .box { width: 100%; max-width: 380px; }
@media (max-width: 991.98px) {
    .auth { grid-template-columns: 1fr; }
    .auth-art { display: none; }
}

/* ---------------------------------------------------------------- Mobil */

@media (max-width: 991.98px) {
    .app { flex-direction: column; }
    .app-content { padding: 20px 16px 48px; }
    .page-title { font-size: 1.35rem; }
    .page-head { margin-bottom: 20px; align-items: flex-start; }
    .sidebar.offcanvas-lg { --bs-offcanvas-width: 280px; --bs-offcanvas-bg: var(--ink); }
    .sticky-side { position: static; }
    .stat-value { font-size: 1.3rem; }
}
.min-w-0{min-width:0}
