/* ============================================================
   Uygulama Bileşen Kütüphanesi
   ============================================================ */

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }
[data-theme="dark"] a { color: var(--brand-300); }

:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; }
::selection { background: var(--brand-100); color: var(--brand-900); }
[data-theme="dark"] ::selection { background: rgba(99, 102, 241, .35); color: #fff; }

h1, h2, h3, h4, h5 { margin: 0 0 .4em; color: var(--text); font-weight: 700; letter-spacing: -.02em; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--n-300); border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #2b3a55; background-clip: content-box; }

/* ------------------------------------------------------------- Layout */
.app { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w);
  background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; z-index: 60;
  transition: transform .25s ease;
}
.content { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.content-inner { padding: var(--space-5); flex: 1; }

.brand {
  height: var(--topbar-h); display: flex; align-items: center; gap: 10px;
  padding: 0 20px; border-bottom: 1px solid var(--border); font-weight: 800;
  color: var(--text); letter-spacing: -.03em;
}
.brand img { height: 34px; }
.brand .brand-dot { width: 12px; height: 12px; border-radius: 4px; background: var(--brand-600); box-shadow: 0 0 0 4px var(--brand-100); }
[data-theme="dark"] .brand .brand-dot { box-shadow: 0 0 0 4px rgba(99,102,241,.25); }

.nav { padding: 14px 12px; overflow-y: auto; flex: 1; }
.nav-section { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); padding: 16px 14px 6px; font-weight: 700; }
.nav-item { margin-bottom: 2px; }
.nav-link, .nav-toggle {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px 14px; border-radius: var(--radius-sm); color: var(--text-soft);
  font-weight: 600; cursor: pointer; border: 0; background: none; font-size: 13.5px;
  transition: background .15s, color .15s; text-align: left;
}
.nav-link:hover, .nav-toggle:hover { background: var(--surface-2); color: var(--text); }
.nav-link.active, .nav-item.active > .nav-toggle {
  background: var(--brand-50); color: var(--brand-700);
  box-shadow: inset 3px 0 0 var(--brand-600);
}
[data-theme="dark"] .nav-link.active, [data-theme="dark"] .nav-item.active > .nav-toggle { background: rgba(99,102,241,.14); color: var(--brand-300); box-shadow: inset 3px 0 0 var(--brand-400); }
.nav-icon { width: 18px; text-align: center; font-size: 16px; }
.nav-caret { margin-left: auto; transition: transform .2s; font-size: 11px; opacity: .6; }
.nav-item.open .nav-caret { transform: rotate(90deg); }
.nav-sub { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding-left: 30px; }
.nav-item.open .nav-sub { max-height: 320px; }
.nav-sub a { display: block; padding: 8px 14px; border-radius: var(--radius-sm); color: var(--text-muted); font-weight: 500; font-size: 13px; }
.nav-sub a:hover { background: var(--surface-2); color: var(--text); }
.nav-sub a.active { color: var(--brand-700); font-weight: 700; }

/* ------------------------------------------------------------- Topbar */
.topbar {
  height: var(--topbar-h); background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px; padding: 0 22px;
  position: sticky; top: 0; z-index: 40;
}
.topbar .hamburger { display: none; background: none; border: 0; font-size: 22px; color: var(--text); cursor: pointer; }
.topbar .spacer { flex: 1; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px;
  border-radius: var(--radius-pill); background: var(--success-bg); color: var(--success);
  border: 1px solid color-mix(in srgb, var(--success) 25%, transparent); font-weight: 600; font-size: 12.5px;
}
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-soft); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; font-size: 17px;
  transition: all .15s; position: relative;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); transform: translateY(-1px); }
.icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); border: 2px solid var(--surface); }

.topbar-search { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 8px 16px; width: 340px; max-width: 40vw; color: var(--text-muted); }
.topbar-search input { border: 0; background: none; outline: none; color: var(--text); font-family: inherit; font-size: 13px; width: 100%; }
.topbar-search:focus-within { border-color: var(--brand-400); box-shadow: var(--ring); }

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 260px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 6px; display: none; z-index: 100; overflow: hidden;
}
.dropdown.open .dropdown-menu { display: block; animation: pop .14s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.dropdown-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text-soft); font-weight: 600; font-size: 13px; }
.dropdown-item:hover { background: var(--surface-2); color: var(--text); }
.dropdown-head { padding: 10px 12px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.notif-list { max-height: 340px; overflow-y: auto; }
.notif { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.notif:last-child { border-bottom: 0; }
.notif h6 { margin: 0; font-size: 13px; font-weight: 700; }
.notif small { color: var(--text-muted); }

/* ------------------------------------------------------------- Kartlar */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: var(--space-5);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.card-header {
  padding: 18px 22px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 220%);
}
.card-title { font-size: 15.5px; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 11px; letter-spacing: -.01em; }
.card-title .ico {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: inline-grid; place-items: center; font-size: 16px;
  background: var(--brand-soft-grad); color: var(--brand-600);
  border: 1px solid color-mix(in srgb, var(--brand-500) 14%, transparent);
}
[data-theme="dark"] .card-title .ico { color: var(--brand-300); }
.card-title .ico.text-success { color: var(--success); }
.card-title .ico.text-danger { color: var(--danger); }
.card-body { padding: 22px; }
.card-body.p-0 { padding: 0; }

.grid { display: grid; gap: var(--space-5); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-2-1 { grid-template-columns: 2fr 1fr; }

.stat {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 6px;
  color: var(--text); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.stat:hover, .stat.is-link:hover {
  transform: translateY(-2px); box-shadow: var(--shadow-hover);
  border-color: color-mix(in srgb, var(--brand-500) 30%, var(--border)); color: var(--text);
}
.stat::after {
  content: ''; position: absolute; inset: 0 0 auto; height: 3px;
  background: var(--brand-grad); opacity: 0; transition: opacity .2s ease;
}
a.stat:hover::after, .stat.is-link:hover::after { opacity: 1; }
.stat .stat-label { color: var(--text-muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.stat .stat-value { font-size: clamp(21px, 2vw, 27px); font-weight: 800; letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1.15; }
.stat .stat-sub { color: var(--text-muted); font-size: 12px; font-weight: 600; margin-top: 2px; }
.stat .stat-ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; margin-bottom: 6px;
  background: var(--surface-2); color: var(--text-soft); border: 1px solid var(--border);
}
.stat .stat-ico.brand { background: var(--brand-soft-grad); color: var(--brand-600); border-color: color-mix(in srgb, var(--brand-500) 14%, transparent); }
.stat .stat-ico.green { background: var(--success-bg); color: var(--success); border-color: color-mix(in srgb, var(--success) 20%, transparent); }
.stat .stat-ico.red { background: var(--danger-bg); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 20%, transparent); }
.stat .stat-ico.amber { background: var(--warning-bg); color: var(--warning); border-color: color-mix(in srgb, var(--warning) 22%, transparent); }
[data-theme="dark"] .stat .stat-ico.brand { color: var(--brand-300); }

/* Tek satırda kompakt özet şeridi */
.summary-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); margin-bottom: var(--space-5); overflow: hidden;
}
.summary-item { padding: 16px 20px; display: flex; flex-direction: column; gap: 3px; position: relative; color: var(--text); transition: background .15s ease; }
.summary-item:hover { background: var(--surface-2); color: var(--text); }
.summary-item + .summary-item { border-left: 1px solid var(--border); }
.summary-item .summary-label { color: var(--text-muted); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.summary-item .summary-value { font-size: 19px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.summary-item .summary-value.text-danger { color: var(--danger); }
.summary-item .summary-value.text-success { color: var(--success); }
@media (max-width: 900px) {
  .summary-strip { grid-template-columns: repeat(2, 1fr); }
  .summary-item:nth-child(3) { border-left: 0; }
  .summary-item:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 560px) {
  .summary-strip { grid-template-columns: 1fr; }
  .summary-item + .summary-item { border-left: 0; border-top: 1px solid var(--border); }
}

/* ------------------------------------------------------------- Tablolar */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table thead th {
  text-align: left; padding: 12px 18px; background: var(--surface-2); color: var(--text-muted);
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table tbody td { padding: 13px 18px; border-bottom: 1px solid var(--border); color: var(--text-soft); vertical-align: middle; }
.table tbody tr { transition: background .14s ease; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface-2); }
.table .row-danger > td:first-child { box-shadow: inset 4px 0 0 var(--danger); }
.table .right { text-align: right; font-variant-numeric: tabular-nums; }
.table .muted { color: var(--text-muted); }
.table td a { font-weight: 600; }

/* Kalan süre göstergesi (dashboard / listeler) */
.days { display: flex; align-items: center; gap: 10px; min-width: 132px; }
.days-bar { flex: 1; height: 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.days-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--success); transition: width .3s ease; }
.days-bar.warning > span { background: var(--warning); }
.days-bar.danger > span { background: var(--danger); }
.days .tag { padding: 4px 9px; font-size: 11px; }

/* ------------------------------------------------------------- Etiket */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--radius-pill); font-weight: 700; font-size: 11.5px; white-space: nowrap; border: 1px solid transparent; }
.tag.success { background: var(--success-bg); color: var(--success); border-color: color-mix(in srgb, var(--success) 18%, transparent); }
.tag.danger  { background: var(--danger-bg); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 18%, transparent); }
.tag.warning { background: var(--warning-bg); color: var(--warning); border-color: color-mix(in srgb, var(--warning) 20%, transparent); }
.tag.info    { background: var(--info-bg); color: var(--info); border-color: color-mix(in srgb, var(--info) 18%, transparent); }
.tag.brand   { background: var(--brand-50); color: var(--brand-700); border-color: color-mix(in srgb, var(--brand-500) 14%, transparent); }
.tag.passive { background: var(--surface-2); color: var(--text-muted); border-color: var(--border); }
[data-theme="dark"] .tag.brand { background: rgba(99,102,241,.16); color: var(--brand-300); }

/* ------------------------------------------------------------- Buton */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-family: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
  transition: all .15s; text-decoration: none; line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: linear-gradient(180deg, var(--brand-500) 0%, var(--brand-600) 100%); color: #fff; box-shadow: 0 6px 16px -8px rgba(79,70,229,.7); }
.btn-primary:hover { background: linear-gradient(180deg, var(--brand-600) 0%, var(--brand-700) 100%); color: #fff; box-shadow: 0 8px 20px -8px rgba(79,70,229,.8); }
.btn-ghost { background: var(--surface); color: var(--text-soft); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); border-color: var(--n-300); }
[data-theme="dark"] .btn-ghost:hover { border-color: #2b3a55; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(.94); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { filter: brightness(.94); color: #fff; }
.btn-sm { padding: 7px 12px; font-size: 12.5px; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text-soft); transition: all .15s; }
.btn-icon:hover { background: var(--surface-2); color: var(--text); }
.btn-icon.edit:hover { color: var(--success); border-color: color-mix(in srgb, var(--success) 40%, transparent); }
.btn-icon.del:hover { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn-icon.renew:hover { color: var(--brand-600); border-color: color-mix(in srgb, var(--brand-600) 40%, transparent); }
.btn-block { width: 100%; }

/* ------------------------------------------------------------- Form */
.form-row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.col-3 { grid-column: span 3; } .col-4 { grid-column: span 4; } .col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; } .col-12 { grid-column: span 12; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 12.5px; font-weight: 700; color: var(--text-soft); margin-bottom: 7px; letter-spacing: .01em; }
.form-label small { color: var(--text-muted); font-weight: 500; }
.form-control, select.form-control, textarea.form-control {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font-family: inherit; font-size: 13.5px; font-weight: 500;
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus { outline: none; border-color: var(--brand-500); box-shadow: var(--ring); }
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { min-height: 110px; resize: vertical; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.required::after { content: ' *'; color: var(--danger); }

/* ------------------------------------------------------------- Alert */
.alert { padding: 14px 18px; border-radius: var(--radius); font-weight: 600; font-size: 13.5px; margin-bottom: var(--space-5); display: flex; align-items: center; gap: 10px; border: 1px solid transparent; }
.alert-success { background: var(--success-bg); color: var(--success); border-color: color-mix(in srgb, var(--success) 25%, transparent); }
.alert-danger  { background: var(--danger-bg); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.alert-warning { background: var(--warning-bg); color: var(--warning); border-color: color-mix(in srgb, var(--warning) 25%, transparent); }
.alert-info    { background: var(--info-bg); color: var(--info); border-color: color-mix(in srgb, var(--info) 25%, transparent); }

/* ------------------------------------------------------------- Sayfalama */
.pagination { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding: 16px 0; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px;
  color: var(--text-soft); background: var(--surface); font-variant-numeric: tabular-nums;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.pagination a:hover { background: var(--surface-2); color: var(--text); border-color: var(--n-300); transform: translateY(-1px); }
.pagination .active { background: var(--brand-grad); border-color: transparent; color: #fff; box-shadow: 0 6px 14px -8px rgba(79,70,229,.8); }
.pagination .disabled, .pagination span.disabled { opacity: .45; pointer-events: none; }
.pagination .dots { border-color: transparent; background: none; color: var(--text-muted); pointer-events: none; }
.pagination-meta { color: var(--text-muted); font-size: 12px; font-weight: 600; }

/* ------------------------------------------------------------- Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.55); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 520px; overflow: hidden; animation: pop .16s ease; }
.modal-head { padding: 20px 24px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 16px; }
.modal-body { padding: 24px; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

/* ------------------------------------------------------------- Toast */
.toast-wrap { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 300; }
.toast { min-width: 280px; padding: 14px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: 10px; animation: pop .18s ease; }
.toast.success { border-left: 4px solid var(--success); }
.toast.danger  { border-left: 4px solid var(--danger); }
.toast.warning { border-left: 4px solid var(--warning); }

/* ------------------------------------------------------------- Login */
.login-page { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(1000px 600px at 10% -10%, var(--brand-100), transparent), radial-gradient(900px 500px at 110% 10%, #cffafe, transparent), var(--bg); padding: 24px; }
[data-theme="dark"] .login-page { background: radial-gradient(1000px 600px at 10% -10%, rgba(79,70,229,.25), transparent), radial-gradient(900px 500px at 110% 10%, rgba(8,145,178,.18), transparent), var(--bg); }
.login-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 40px 34px; }
.login-logo { width: 56px; height: 56px; border-radius: 16px; background: var(--brand-600); display: grid; place-items: center; color: #fff; font-size: 26px; margin: 0 auto 18px; }

/* ------------------------------------------------------------- Yardımcı */
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.m-0{margin:0 !important}
.mt-0{margin-top:0}.mt-2{margin-top:8px}.mt-3{margin-top:12px}.mt-4{margin-top:16px}.mb-0{margin-bottom:0}.mb-2{margin-bottom:8px}.mb-3{margin-bottom:12px}.mb-4{margin-bottom:16px}.mb-5{margin-bottom:24px}
.text-muted { color: var(--text-muted); } .text-danger{color:var(--danger)} .text-success{color:var(--success)} .text-right{text-align:right}
.fw-700 { font-weight: 700; } .fw-800 { font-weight: 800; }
.small { font-size: 12px; } .text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-100 { width: 100%; }
.page-title { font-size: 23px; font-weight: 800; letter-spacing: -.035em; margin: 0 0 3px; }
.page-sub { color: var(--text-muted); font-size: 13px; margin: 0 0 var(--space-5); }
.empty {
  text-align: center; color: var(--text-muted); padding: 38px 24px; font-weight: 600;
}
.empty:not(td) { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty .empty-ico {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  font-size: 20px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted);
}
.empty .empty-ico + span { font-size: 13px; }

/* ------------------------------------------------------------- Akış listesi */
.feed-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.feed-item:first-child { padding-top: 0; }
.feed-item:last-child { border-bottom: 0; padding-bottom: 0; }
.feed-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 7px; flex: none; background: var(--brand-500); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-500) 14%, transparent); }
.feed-dot.success { background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 14%, transparent); }
.feed-dot.danger  { background: var(--danger); box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 14%, transparent); }
.feed-body { flex: 1; min-width: 0; }
.feed-title { font-size: 13px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 7px; }
.feed-sub { color: var(--text-muted); font-size: 12px; margin-top: 2px; }
.feed-time { color: var(--text-muted); font-size: 11.5px; white-space: nowrap; }

/* ------------------------------------------------------------- Hareket */
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.content-inner { animation: fadeUp .28s ease both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

.sidebar-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 55; display: none; }
.sidebar-backdrop.show { display: block; }

/* ------------------------------------------------------------- DataTables uyumu */
.dataTables_wrapper .dataTables_filter input { padding: 9px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); }
.dataTables_wrapper .dataTables_length select { padding: 7px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter { color: var(--text-muted); font-size: 13px; }
.dataTables_wrapper { padding: 8px 20px 4px; }

.bulk-bar { display: flex; align-items: center; gap: 10px; padding: 12px 24px; background: var(--surface-2); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.code-box { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 12.5px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; color: var(--text-soft); overflow-x: auto; white-space: nowrap; }

/* ------------------------------------------------------------- Yazdırma */
@media print {
  .sidebar, .topbar, .sidebar-backdrop, .no-print { display: none !important; }
  .content { margin-left: 0 !important; }
  .content-inner { padding: 0 !important; }
  body { background: #fff !important; }
  .card { box-shadow: none !important; border-color: #cbd5e1 !important; break-inside: avoid; }
  .print-title { display: block !important; }
}
.print-title { display: none; }

/* ------------------------------------------------------------- Responsive */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  .content { margin-left: 0; }
  .topbar .hamburger { display: inline-flex; }
  .grid-2-1, .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .topbar-search { display: none; }
}
@media (max-width: 640px) {
  .content-inner { padding: 16px; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .col-3, .col-4, .col-6, .col-8, .col-12 { grid-column: span 1; }
  .card-body { padding: 18px; }
  .chip span.chip-text { display: none; }
}
