/* Nex Bazaar AI — Minimalist Siyah & Beyaz (Monochrome) & Yüksek Veri Yoğunluğu Stilleri */
:root {
  --nb-bg: #f8fafc;
  --nb-text: #0f172a;
  --nb-card: #ffffff;
  --nb-border: #e2e8f0;
  --nb-dark: #0f172a;
  --nb-dark-hover: #000000;
}

body {
  font-size: 13px;
  background-color: var(--nb-bg);
  color: var(--nb-text);
  -webkit-font-smoothing: antialiased;
}

/* Sol Navigasyon Menüsü */
.nav-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .38rem .65rem;
  border-radius: .5rem;
  color: #334155;
  font-weight: 500;
  font-size: .8125rem;
  transition: all .12s ease-in-out;
}
.nav-link:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.nav-link.active {
  background: #0f172a;
  color: #ffffff;
  font-weight: 600;
}
.nav-link svg {
  color: #64748b;
  transition: color .12s;
}
.nav-link:hover svg,
.nav-link[aria-expanded=true] svg {
  color: #0f172a;
}
.nav-link.active svg {
  color: #ffffff;
}

.nav-badge {
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 2px 5px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #e2e8f0;
}
.nav-link.active .nav-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-color: transparent;
}
.nav-plus {
  width: 16px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 600;
}
.nav-link.active .nav-plus {
  color: #ffffff;
}
.nav-sub {
  margin: 2px 0 4px 14px;
  padding-left: 10px;
  border-left: 1.5px solid #e2e8f0;
}
.nav-sublink {
  display: block;
  padding: .28rem .55rem;
  border-radius: .375rem;
  color: #475569;
  font-size: .8125rem;
  transition: all .12s;
}
.nav-sublink:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.nav-sublink.active {
  background: #0f172a;
  color: #ffffff;
  font-weight: 600;
}

/* Butonlar — Siyah & Beyaz Minimalist */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  border-radius: .5rem;
  padding: .38rem .75rem;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.25rem;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s ease-in-out;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  border-radius: .5rem;
  padding: .38rem .8rem;
  font-size: .8125rem;
  font-weight: 600;
  background: #0f172a;
  color: #ffffff;
  border: 1px solid #0f172a;
  white-space: nowrap;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.btn-primary:hover {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  border-radius: .5rem;
  padding: .38rem .8rem;
  font-size: .8125rem;
  font-weight: 600;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  white-space: nowrap;
}
.btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #000000;
}
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  border-radius: .5rem;
  padding: .38rem .8rem;
  font-size: .8125rem;
  font-weight: 600;
  background: #ffffff;
  color: #e11d48;
  border: 1px solid #fecdd3;
  white-space: nowrap;
}
.btn-danger:hover {
  background: #fff1f2;
}
.btn-sm {
  padding: .25rem .5rem;
  font-size: .75rem;
  border-radius: .375rem;
}

/* Kartlar ve Formlar */
.card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: .75rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.02);
}
.card-pad {
  padding: 1rem 1.15rem;
}
.label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: .25rem;
}
.input, .select, .textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: .5rem;
  padding: .38rem .65rem;
  font-size: .8125rem;
  background: #ffffff;
  color: #0f172a;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: #0f172a;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.12);
}
.input.is-invalid, .select.is-invalid {
  border-color: #f43f5e;
}
.input-sm {
  padding: .25rem .45rem;
  font-size: .75rem;
  border-radius: .375rem;
}

/* Yüksek Yoğunluklu Geniş Ekran Veri Tablosu */
.table {
  width: 100%;
  font-size: .8125rem;
  border-collapse: separate;
  border-spacing: 0;
}
.table th {
  text-align: left;
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #475569;
  font-weight: 600;
  padding: .45rem .65rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}
.table td {
  padding: .45rem .65rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
.table tbody tr:hover td {
  background: #f8fafc;
}
.table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Rozetler (Badges) */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .1rem .5rem;
  font-size: .7rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge-green { background: #dcfce7; color: #166534; }
.badge-red { background: #ffe4e6; color: #9f1239; }
.badge-amber { background: #fef3c7; color: #92400e; }
.badge-blue { background: #f1f5f9; color: #0f172a; border: 1px solid #e2e8f0; }
.badge-gray { background: #f1f5f9; color: #475569; }
.badge-teal { background: #ccfbf1; color: #115e59; }

.page-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}
.muted {
  color: #64748b;
}

/* İstatistik & KPI Kartları */
.stat {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: .75rem;
  padding: .85rem 1rem;
}
.stat .k {
  font-size: .7rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.stat .v {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: .2rem;
  font-variant-numeric: tabular-nums;
}

/* Sekmeler */
.tabs a {
  padding: .45rem .8rem;
  border-bottom: 2px solid transparent;
  color: #64748b;
  font-weight: 600;
  font-size: .8125rem;
  white-space: nowrap;
  transition: all .12s;
}
.tabs a:hover {
  color: #0f172a;
}
.tabs a.active {
  border-color: #0f172a;
  color: #0f172a;
}

.ac-list {
  position: fixed;
  z-index: 1000;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: .5rem;
  box-shadow: 0 10px 25px -10px rgba(15, 23, 42, .25);
  max-height: 260px;
  overflow: auto;
}
.ac-item {
  padding: .4rem .65rem;
  cursor: pointer;
  font-size: .8125rem;
}
.ac-item:hover, .ac-item.on {
  background: #f1f5f9;
  color: #0f172a;
}

dialog.modal {
  border: none;
  border-radius: .75rem;
  padding: 0;
  max-width: 560px;
  width: calc(100% - 2rem);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .35);
}
dialog.modal::backdrop {
  background: rgba(15, 23, 42, .55);
}

@media print {
  body { background: #fff; }
  .card { border: none; }
  .no-print { display: none !important; }
}

.tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-left: 4px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 10px;
  font-weight: 700;
  cursor: help;
  position: relative;
  vertical-align: middle;
  border: 1px solid #e2e8f0;
}
.tip:hover::after, .tip:focus::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  width: max-content;
  max-width: 260px;
  white-space: normal;
  background: #0f172a;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  padding: 6px 8px;
  border-radius: 6px;
  z-index: 80;
  box-shadow: 0 8px 20px -6px rgba(15, 23, 42, .35);
  text-transform: none;
  letter-spacing: 0;
}
.tip:hover::before, .tip:focus::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: calc(100% + 1px);
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #0f172a;
  z-index: 80;
}

/* Sol Taraf Hamburger & Kapanan / Daralan Sidebar (Collapsible) */
#sidebar {
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.main-content-wrap {
  transition: padding-left 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 1024px) {
  html.sidebar-collapsed #sidebar,
  body.sidebar-collapsed #sidebar {
    transform: translateX(-100%) !important;
  }
  html.sidebar-collapsed .main-content-wrap,
  body.sidebar-collapsed .main-content-wrap {
    padding-left: 0 !important;
  }
}
