/* NovaSoft Bayi Panel — CoreUI 5.9.1 üzerine özel stiller */

:root {
  --nova-brand: #6f42c1;
  --nova-brand-2: #22d3a5;
  --nova-sidebar-w: 240px;
}

html, body { max-width: 100%; overflow-x: hidden; }

/* ── Marka ── */
.nova-brand-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  letter-spacing: .3px;
  color: #fff;
  text-decoration: none;
}
.nova-logo {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--nova-brand), var(--nova-brand-2));
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1rem;
  flex: 0 0 auto;
}
.nova-logo svg { width: 18px; height: 18px; }

/* ── Sidebar ── */
.nova-sidebar {
  width: var(--nova-sidebar-w);
  position: fixed;
  top: 0; bottom: 0;
  left: 0;
  z-index: 1035;
  background: #1a1b26;
  transition: transform .25s ease;
  overflow-y: auto;
  overflow-x: hidden;
}
[data-coreui-theme="light"] .nova-sidebar { background: #24252f; }
.nova-sidebar .sidebar-brand {
  height: 60px;
  display: flex; align-items: center;
  padding: 0 1rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.nova-sidebar .sidebar-nav { padding: .5rem 0; }
.nova-sidebar .nav-title {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.38);
  padding: 1rem 1rem .35rem;
}
.nova-sidebar .nav-link {
  display: flex; align-items: center; gap: .65rem;
  color: rgba(255,255,255,.72);
  padding: .62rem 1rem;
  border-left: 3px solid transparent;
  text-decoration: none;
  font-size: .92rem;
  white-space: nowrap;
}
.nova-sidebar .nav-link svg { width: 18px; height: 18px; flex: 0 0 auto; opacity: .85; }
.nova-sidebar .nav-link:hover { color: #fff; background: rgba(255,255,255,.05); }
.nova-sidebar .nav-link.active {
  color: #fff;
  background: rgba(111, 66, 193, .28);
  border-left-color: var(--nova-brand-2);
}
.nova-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1030;
}
body.sidebar-open .nova-backdrop { display: block; }

/* ── Wrapper / header ── */
.nova-wrapper {
  margin-left: var(--nova-sidebar-w);
  min-height: 100vh;
  display: flex; flex-direction: column;
  min-width: 0;
}
.nova-header {
  height: 60px;
  background: var(--cui-body-bg, #fff);
  border-bottom: 1px solid var(--cui-border-color, rgba(255,255,255,.1));
  display: flex; align-items: center;
  padding: 0 1rem;
  gap: .5rem;
  position: sticky; top: 0; z-index: 1020;
}
.nova-view {
  padding: 1rem;
  flex: 1 1 auto;
  min-width: 0;
}

/* ── Login ── */
.nova-auth-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.nova-auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--cui-card-bg, #1e1f2b);
  border: 1px solid var(--cui-border-color, rgba(255,255,255,.1));
  border-radius: 14px;
  padding: 2rem 1.75rem;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}

/* ── Kart & pill ── */
.nova-stat { border-radius: 12px; }
.nova-stat .stat-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; opacity: .65; }
.nova-stat .stat-value { font-size: 1.45rem; font-weight: 700; }
.pill {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .74rem; font-weight: 600;
  padding: .22rem .6rem;
  border-radius: 99px;
  white-space: nowrap;
}
.pill-ok   { background: rgba(34,211,165,.15); color: #22d3a5; }
.pill-off  { background: rgba(255,255,255,.12); color: #adb5bd; }
.pill-err  { background: rgba(220,53,69,.18); color: #ff6b7a; }
.pill-warn { background: rgba(255,193,7,.15); color: #ffc107; }
[data-coreui-theme="light"] .pill-off { background: rgba(0,0,0,.08); color: #495057; }

/* ── Tablo ── */
.nova-table-wrap { overflow-x: auto; max-width: 100%; }
.table > :not(caption) > * > * { padding: .55rem .75rem; }

/* ── Toast ── */
.toast-wrap {
  position: fixed;
  right: 1rem; bottom: 1rem;
  z-index: 3000;
  display: flex; flex-direction: column; gap: .5rem;
  max-width: calc(100vw - 2rem);
}
.nova-toast {
  background: #212232;
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  border-left: 4px solid #6c757d;
  border-radius: 8px;
  padding: .6rem .9rem;
  font-size: .88rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  transition: opacity .3s;
  max-width: 340px;
}
.nova-toast.ok  { border-left-color: #22d3a5; }
.nova-toast.err { border-left-color: #e5484d; }

/* ── Tawk preview ── */
.nova-parse-box {
  border: 1px dashed var(--cui-border-color, rgba(255,255,255,.2));
  border-radius: 10px;
  padding: .75rem .9rem;
  font-size: .88rem;
}
.nova-kv { display: flex; gap: .4rem; align-items: baseline; }
.nova-kv code {
  background: rgba(111,66,193,.18);
  color: #c3a6ff;
  padding: .1rem .45rem;
  border-radius: 6px;
  word-break: break-all;
}
[data-coreui-theme="light"] .nova-kv code { color: #5a2ea6; }

/* ── Mobil ── */
@media (max-width: 991.98px) {
  .nova-sidebar { transform: translateX(-100%); }
  body.sidebar-open .nova-sidebar { transform: translateX(0); }
  .nova-wrapper { margin-left: 0; }
  .nova-view { padding: .75rem; }
}
@media (max-width: 575.98px) {
  .nova-stat .stat-value { font-size: 1.15rem; }
  .nova-auth-card { padding: 1.5rem 1.15rem; }
  .nova-header { padding: 0 .6rem; }
}

/* ── Modal ── */
.nova-modal-back {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 2500;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.nova-modal {
  background: var(--cui-card-bg, #1e1f2b);
  border: 1px solid var(--cui-border-color, rgba(255,255,255,.12));
  border-radius: 12px;
  max-width: 420px;
  width: 100%;
  padding: 1.25rem;
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
}
