:root {
  --ink: #0b1f33;
  --ink-2: #14324d;
  --panel: #f4f7fb;
  --card: #ffffff;
  --line: #e4ebf3;
  --muted: #6b7c8f;
  --text: #152433;
  --accent: #0f8a6b;
  --accent-soft: #e8f8f2;
  --accent-2: #d9f3ea;
  --warn-soft: #fff6e8;
  --danger-soft: #fdecec;
  --radius: 14px;
  --shadow: 0 1px 0 rgba(15, 35, 55, 0.04), 0 10px 28px rgba(15, 35, 55, 0.06);
  --sidebar-w: 260px;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Source Serif 4", Georgia, serif;
}

* { box-sizing: border-box; }

body.app-shell {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 100% -10%, rgba(15, 138, 107, 0.08), transparent 55%),
    linear-gradient(180deg, #eef3f8 0%, var(--panel) 40%, #edf2f7 100%);
}

a { color: inherit; }

.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: linear-gradient(180deg, var(--ink) 0%, #0a1828 100%);
  color: #d7e2ee;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1rem;
  z-index: 1040;
  transition: transform .2s ease;
}

.sidebar-brand {
  display: flex;
  gap: .85rem;
  align-items: center;
  padding: .35rem .5rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 1rem;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #1f6f5b, #0f8a6b);
  color: #fff;
  font-size: 1.15rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
}

.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  line-height: 1.1;
}

.brand-tag {
  font-size: .72rem;
  color: #8aa0b5;
  margin-top: .15rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  flex: 1;
}

.side-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .72rem .85rem;
  border-radius: 10px;
  color: #b7c7d8;
  text-decoration: none;
  font-weight: 550;
  font-size: .94rem;
}

.side-link i { font-size: 1.05rem; opacity: .9; }

.side-link:hover {
  background: rgba(255,255,255,.06);
  color: #fff;
}

.side-link.active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.side-link.subtle {
  font-size: .85rem;
  color: #7f93a8;
}

.sidebar-foot { padding-top: .75rem; border-top: 1px solid rgba(255,255,255,.08); }

.app-main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1.5rem;
  background: rgba(244, 247, 251, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(228, 235, 243, .9);
}

.topbar-title .eyebrow {
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.page-heading {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.15;
}

.topbar-pills {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pill {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .35rem .75rem;
  display: flex;
  flex-direction: column;
  min-width: 7rem;
  box-shadow: 0 1px 2px rgba(15,35,55,.04);
}

.pill-label {
  font-size: .65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 700;
}

.pill strong {
  font-size: .88rem;
  font-variant-numeric: tabular-nums;
}

.btn-ink {
  --bs-btn-bg: var(--ink);
  --bs-btn-border-color: var(--ink);
  --bs-btn-hover-bg: var(--ink-2);
  --bs-btn-hover-border-color: var(--ink-2);
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  border-radius: 10px;
  font-weight: 650;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
}

.app-content {
  padding: 1.25rem 1.5rem 2rem;
  flex: 1;
}

.app-footer {
  padding: .85rem 1.5rem 1.25rem;
  color: var(--muted);
  font-size: .8rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.dash-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.dash-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
  font-weight: 700;
  margin: 0;
}

.dash-hero p {
  margin: .35rem 0 0;
  color: var(--muted);
  max-width: 36rem;
}

.section-label {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .65rem;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
  margin-bottom: 1rem;
}

.kpi {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.05rem;
  box-shadow: var(--shadow);
  min-height: 102px;
  animation: rise .45s ease both;
}

.kpi:nth-child(1) { animation-delay: .02s; }
.kpi:nth-child(2) { animation-delay: .05s; }
.kpi:nth-child(3) { animation-delay: .08s; }
.kpi:nth-child(4) { animation-delay: .11s; }
.kpi:nth-child(5) { animation-delay: .14s; }
.kpi:nth-child(6) { animation-delay: .17s; }
.kpi:nth-child(7) { animation-delay: .2s; }
.kpi:nth-child(8) { animation-delay: .23s; }
.kpi:nth-child(9) { animation-delay: .26s; }
.kpi:nth-child(10) { animation-delay: .29s; }
.kpi:nth-child(11) { animation-delay: .32s; }
.kpi:nth-child(12) { animation-delay: .35s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.kpi-label {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: .45rem;
}

.kpi-value {
  font-size: 1.28rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.kpi-sub {
  margin-top: .35rem;
  font-size: .75rem;
  color: var(--muted);
}

.kpi.accent {
  background: linear-gradient(160deg, var(--accent-soft), #fff 70%);
  border-color: #c7e9db;
}

.kpi.accent-strong {
  background: linear-gradient(160deg, var(--accent-2), var(--accent-soft));
  border-color: #b7e0d0;
}

.kpi.warn {
  background: linear-gradient(160deg, var(--warn-soft), #fff 75%);
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.2rem;
  height: 100%;
}

.panel-title {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.month-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: .75rem;
  align-items: center;
  margin-bottom: .7rem;
}

.month-row:last-child { margin-bottom: 0; }

.month-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-grid;
  place-items: center;
  font-size: .7rem;
  margin-right: .35rem;
}

.month-label {
  display: flex;
  align-items: center;
  font-weight: 650;
  font-size: .88rem;
}

.month-track {
  height: 8px;
  background: #edf2f7;
  border-radius: 999px;
  overflow: hidden;
}

.month-fill {
  height: 100%;
  background: linear-gradient(90deg, #1aa37d, #0f8a6b);
  border-radius: inherit;
  min-width: 0;
  transition: width .5s ease;
}

.month-val {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: .88rem;
  min-width: 5.5rem;
  text-align: right;
}

.bank-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--line);
}

.bank-row:last-child { border-bottom: 0; }

.bank-name { font-weight: 700; }
.bank-meta { font-size: .78rem; color: var(--muted); margin-top: .15rem; }
.bank-nums { text-align: right; font-variant-numeric: tabular-nums; }
.bank-nums strong { display: block; }
.bank-nums span { font-size: .78rem; color: var(--muted); }

.table-num { font-variant-numeric: tabular-nums; white-space: nowrap; }

.form-section-title {
  font-size: .95rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: .75rem;
}

.card-soft, .stat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fff;
}

.stat-card .stat-label,
.stat-label {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 600;
}

.stat-card .stat-value,
.stat-value {
  font-size: 1.2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.bg-teal { background-color: var(--ink) !important; }

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 18, 30, .45);
  z-index: 1035;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.sidebar-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1199.98px) {
  .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
  .app-sidebar { transform: translateX(-105%); }
  .app-sidebar.open { transform: none; }
  .app-main { margin-left: 0; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-content { padding: 1rem; }
}

@media (max-width: 575.98px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .kpi-value { font-size: 1.05rem; }
  .pill { min-width: auto; }
  .dash-hero { flex-direction: column; align-items: stretch; }
}

/* —— Giriş —— */
body.login-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(900px 420px at 10% 0%, rgba(15, 138, 107, 0.16), transparent 55%),
    linear-gradient(160deg, #0b1f33 0%, #14324d 45%, #0f8a6b 140%);
}

.login-shell {
  width: min(420px, 100%);
}

.login-brand {
  text-align: center;
  color: #e8eef5;
  margin-bottom: 1.25rem;
}

.login-brand .brand-mark {
  margin: 0 auto .85rem;
  background: linear-gradient(145deg, #1d4f7a, #0f8a6b);
}

.login-brand h1 {
  font-family: var(--display);
  font-size: 1.85rem;
  margin: 0 0 .35rem;
  font-weight: 700;
}

.login-brand p {
  margin: 0;
  opacity: .75;
  font-size: .95rem;
}

.login-card {
  background: #fff;
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem 1.4rem 1.6rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
}

.login-card .form-label {
  font-weight: 600;
  font-size: .9rem;
}

.side-user {
  padding: .35rem .65rem .55rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: .35rem;
}
