/* "Plex" = IBM Plex Sans harfleri + IBM Plex Mono rakamları (rakam yüzleri sonra tanımlanır, öncelik onlarda) */
@font-face { font-family: "Plex"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-ext-400.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-ext-500.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-ext-600.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-ext-700.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400.woff2") format("woff2"); unicode-range: U+0030-0039; }
@font-face { font-family: "Plex"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400.woff2") format("woff2"); unicode-range: U+0030-0039; }
@font-face { font-family: "Plex"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-600.woff2") format("woff2"); unicode-range: U+0030-0039; }
@font-face { font-family: "Plex"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-600.woff2") format("woff2"); unicode-range: U+0030-0039; }
/* Kodlar ve anahtarlar için tam IBM Plex Mono */
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-ext-400.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-ext-600.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --c-primary: #2563eb; --c-primary-600: #1d4ed8; --c-primary-50: #eff4ff;
  --c-ink: #111827; --c-ink-2: #374151; --c-muted: #6b7280; --c-line: #e5e7eb; --c-line-2: #f0f1f4;
  --c-bg: #f6f7f9; --c-surface: #fff; --radius: 12px;
  --bs-body-font-family: "Plex", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-font-monospace: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --bs-body-font-size: .9rem; --bs-body-color: var(--c-ink-2); --bs-body-bg: var(--c-bg);
  --bs-primary: var(--c-primary); --bs-primary-rgb: 37,99,235; --bs-link-color: var(--c-primary); --bs-link-color-rgb: 37,99,235;
  --bs-border-color: var(--c-line);
}
body { -webkit-font-smoothing: antialiased; background: var(--c-bg); }
.ic { flex: none; vertical-align: -.15em; }
a { text-decoration: none; }
h1 { font-size: 1.5rem; font-weight: 700; color: var(--c-ink); letter-spacing: -.01em; margin: 0; }
.min-w-0 { min-width: 0; }
.mono { font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace; font-size: .84em; }

/* Üst çubuk */
.topnav { background: var(--c-surface); border-bottom: 1px solid var(--c-line); position: sticky; top: 0; z-index: 10; }
.topnav .container { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--c-ink); font-weight: 600; white-space: nowrap; }
.brand-logo { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.brand small { display: block; font-weight: 400; color: var(--c-muted); font-size: .75rem; line-height: 1.1; }
.navlinks { display: flex; gap: 4px; flex: 1; }
.navlinks a { color: var(--c-ink-2); padding: 7px 12px; border-radius: 8px; font-weight: 500; display: flex; align-items: center; gap: 7px; }
.navlinks a:hover { background: var(--c-line-2); }
.navlinks a.active { background: var(--c-primary-50); color: var(--c-primary); }
.user { display: flex; align-items: center; gap: 10px; color: var(--c-muted); font-size: .85rem; }
.user .btn { padding: 5px 10px; }

main { padding-top: 28px; padding-bottom: 48px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head .sub { color: var(--c-muted); margin-top: 4px; }
.eyebrow { font-size: .82rem; margin-bottom: 6px; }
.eyebrow a { color: var(--c-muted); display: inline-flex; align-items: center; gap: 6px; }
.eyebrow a:hover { color: var(--c-primary); }

/* Kartlar ve düğmeler */
.card { border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(16,24,40,.04); background: var(--c-surface); }
.card-header { background: none; font-weight: 600; color: var(--c-ink); padding: 14px 18px; border-bottom: 1px solid var(--c-line); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card-header:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.card-body { padding: 18px; }
.btn { border-radius: 8px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.btn-primary { --bs-btn-bg: var(--c-primary); --bs-btn-border-color: var(--c-primary); --bs-btn-hover-bg: var(--c-primary-600); --bs-btn-hover-border-color: var(--c-primary-600); --bs-btn-active-bg: var(--c-primary-600); }
.btn-light { --bs-btn-bg: #fff; --bs-btn-border-color: #d0d5dd; --bs-btn-hover-bg: #f9fafb; --bs-btn-hover-border-color: #d0d5dd; --bs-btn-color: var(--c-ink-2); }
.form-control, .form-select { border-color: #d0d5dd; border-radius: 8px; }
.form-control:focus, .form-select:focus { border-color: #93b4f8; box-shadow: 0 0 0 3px rgba(37,99,235,.14); }
.form-label { font-weight: 500; color: var(--c-ink); margin-bottom: 5px; }

/* Özet kutuları */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 18px; }
.card.stat { flex-direction: row; } .stat { display: flex; gap: 12px; align-items: center; padding: 16px; color: inherit; transition: border-color .15s; }
a.stat:hover { border-color: #b9c8f5; }
a.stat.on { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.chip { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.chip-blue { background: #eff4ff; color: #2563eb; } .chip-green { background: #ecfdf3; color: #079455; }
.chip-amber { background: #fffaeb; color: #dc6803; } .chip-red { background: #fef3f2; color: #d92d20; } .chip-violet { background: #f4f3ff; color: #6938ef; }
.stat .label { color: var(--c-muted); font-size: .8rem; font-weight: 500; }
.stat .value { font-size: 1.45rem; font-weight: 600; line-height: 1.15; color: var(--c-ink); }

/* Araç çubuğu */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.tb-search { position: relative; flex: 1; min-width: 220px; max-width: 420px; }
.tb-search .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--c-muted); }
.tb-search input { padding-left: 36px; }
.tb-count { margin-left: auto; color: var(--c-muted); font-size: .85rem; }

/* Tablo */
.table { --bs-table-bg: transparent; margin: 0; }
.table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--c-muted); background: #f9fafb; font-weight: 600; padding: 10px 14px; border-bottom-color: var(--c-line); white-space: nowrap; }
.table td { padding: 12px 14px; border-color: var(--c-line-2); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.row-link { cursor: pointer; }
.row-link:hover td { background: #fafbfc; }
.muted-line { display: block; color: var(--c-muted); font-size: .8rem; }
.empty { text-align: center; color: var(--c-muted); padding: 40px 16px; }

/* Rozetler */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 500; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.p-green { background: #ecfdf3; color: #067647; } .p-amber { background: #fffaeb; color: #b54708; }
.p-red { background: #fef3f2; color: #b42318; } .p-gray { background: #f2f4f7; color: #344054; } .p-blue { background: #eff4ff; color: #1d4ed8; }
.pill.lg { font-size: .85rem; padding: 4px 12px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #d0d5dd; margin-right: 6px; }
.dot.on { background: #12b76a; box-shadow: 0 0 0 3px rgba(18,183,106,.18); }

/* Kalan süre çubuğu */
.bar { height: 6px; background: var(--c-line-2); border-radius: 99px; overflow: hidden; margin-top: 5px; width: 120px; }
.bar > span { display: block; height: 100%; border-radius: 99px; background: #12b76a; }
.bar.amber > span { background: #f79009; } .bar.red > span { background: #f04438; }
.bar.wide { width: 100%; height: 8px; margin-top: 10px; }

/* Detay: süre kartı */
.sure-ust { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.sure-ust .big { font-size: 1.9rem; font-weight: 600; color: var(--c-ink); line-height: 1.1; }
.sure-ust .kalan { color: var(--c-muted); }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.presets .btn { min-width: 76px; }
.ozel { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--c-line); }
.ozel form { display: flex; gap: 8px; align-items: flex-end; }
.ozel form > div { flex: 1; }
.preset-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.preset-row button { border: 1px solid #d0d5dd; background: #fff; border-radius: 99px; padding: 3px 11px; font-size: .8rem; color: var(--c-ink-2); }
.preset-row button:hover, .preset-row button.on { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-primary-50); }

.key { word-break: break-all; background: #f9fafb; border: 1px solid var(--c-line); border-radius: 8px; padding: 12px; font-size: .78rem; line-height: 1.5; color: var(--c-ink); max-height: 140px; overflow: auto; }
dl.info { display: grid; grid-template-columns: 130px 1fr; gap: 9px 12px; margin: 0; }
dl.info dt { color: var(--c-muted); font-weight: 400; }
dl.info dd { margin: 0; color: var(--c-ink); min-width: 0; overflow-wrap: anywhere; }

/* Zaman çizelgesi */
.timeline { list-style: none; margin: 0; padding: 4px 18px 8px; }
.timeline li { position: relative; padding: 10px 0 10px 22px; border-left: 2px solid var(--c-line-2); margin-left: 5px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 15px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid #98a2b3; }
.timeline li.t-green::before { border-color: #12b76a; } .timeline li.t-red::before { border-color: #f04438; }
.timeline li.t-blue::before { border-color: #2563eb; } .timeline li.t-amber::before { border-color: #f79009; }
.timeline .t-head { font-weight: 600; color: var(--c-ink); }
.timeline .t-meta { color: var(--c-muted); font-size: .8rem; }

/* Açılır menü (Bootstrap JS olmadan) */
details.menu { position: relative; }
details.menu > summary { list-style: none; height: 100%; min-height: 38px; }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu .menu-body { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--c-line); border-radius: 10px;
  box-shadow: 0 12px 28px rgba(16,24,40,.12); padding: 6px; min-width: 250px; z-index: 20; }
.menu-body button { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 7px; color: var(--c-ink-2); }
.menu-body button:hover { background: var(--c-line-2); }
.menu-body button.danger { color: #b42318; }
.menu-body button.danger:hover { background: #fef3f2; }
.menu-body small { display: block; color: var(--c-muted); font-size: .75rem; }

.alert { border-radius: 10px; display: flex; gap: 10px; align-items: flex-start; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login .card { width: min(400px, 100%); }

@media (max-width: 991px) { .stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .topnav .container { gap: 12px; }
  .brand small, .user span, .navlinks a span { display: none; }
  .ozel { grid-template-columns: 1fr; }
  .d-mob-none { display: none; }
  dl.info { grid-template-columns: 110px 1fr; }
}
.validation-summary-valid { display: none !important; }
