/* SMYK Admin — design system. Dark indie-SaaS aesthetic. © 2026 Ali3N Studios LLC */
:root {
  --coral: #FF6B6B;
  --coral-dim: #e85f5f;
  --lavender: #B19CD9;
  --bg: #1A1A2E;
  --bg-2: #1f1f38;
  --card: #252540;
  --card-2: #2c2c4d;
  --border: #34345a;
  --text: #ECECF5;
  --text-dim: #9a9ab8;
  --text-faint: #6c6c8a;
  --green: #4ade80;
  --green-bg: rgba(74, 222, 128, 0.12);
  --red: #f87171;
  --red-bg: rgba(248, 113, 113, 0.12);
  --amber: #fbbf24;
  --amber-bg: rgba(251, 191, 36, 0.12);
  --gray: #8a8aa0;
  --gray-bg: rgba(138, 138, 160, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  --sidebar-w: 240px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg); color: var(--text);
  font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: var(--lavender); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(255, 107, 107, 0.3); }

/* ── Layout ── */
.layout { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar {
  background: var(--bg-2); border-right: 1px solid var(--border);
  padding: 20px 14px; display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 18px; font-weight: 700; font-size: 16px; }
.brand .dot { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--coral), var(--lavender)); display: grid; place-items: center; font-size: 15px; }
.nav-section { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-faint); padding: 14px 10px 6px; font-weight: 600; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: var(--radius-sm);
  color: var(--text-dim); font-weight: 500; transition: all .15s var(--ease); border: none; background: none; width: 100%; text-align: left;
}
.nav-item:hover { background: var(--card); color: var(--text); }
.nav-item.active { background: var(--card-2); color: var(--text); }
.nav-item .ico { font-size: 16px; width: 18px; text-align: center; }
.nav-item .badge-count { margin-left: auto; background: var(--coral); color: #fff; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 10px; }

.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 58px; border-bottom: 1px solid var(--border); display: flex; align-items: center;
  padding: 0 28px; gap: 12px; position: sticky; top: 0; background: rgba(26, 26, 46, 0.8); backdrop-filter: blur(10px); z-index: 20;
}
.breadcrumb { color: var(--text-dim); font-weight: 500; }
.breadcrumb b { color: var(--text); font-weight: 600; }
.topbar .spacer { flex: 1; }
.content { padding: 28px; max-width: 1200px; width: 100%; }
.page-title { font-size: 22px; font-weight: 700; margin: 0 0 4px; }
.page-sub { color: var(--text-dim); margin: 0 0 24px; }

/* ── Cards ── */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.card-hover { transition: border-color .15s var(--ease), transform .15s var(--ease); }
.card-hover:hover { border-color: #44446e; transform: translateY(-1px); }
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.stat-card .label { color: var(--text-dim); font-size: 13px; font-weight: 500; }
.stat-card .value { font-size: 30px; font-weight: 700; margin-top: 6px; letter-spacing: -.02em; }
.stat-card .value.muted { color: var(--text-faint); font-size: 18px; font-weight: 500; }
.stat-card .sub { color: var(--text-faint); font-size: 12px; margin-top: 4px; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--card); color: var(--text); font-weight: 600; font-size: 13px; transition: all .15s var(--ease); }
.btn:hover { background: var(--card-2); border-color: #44446e; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--coral); border-color: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-dim); border-color: var(--coral-dim); }
.btn-green { background: var(--green-bg); border-color: rgba(74,222,128,.3); color: var(--green); }
.btn-green:hover { background: rgba(74,222,128,.2); }
.btn-red { background: var(--red-bg); border-color: rgba(248,113,113,.3); color: var(--red); }
.btn-red:hover { background: rgba(248,113,113,.2); }
.btn-ghost { background: none; border-color: transparent; }
.btn-ghost:hover { background: var(--card); }
.btn-sm { padding: 5px 11px; font-size: 12px; }

/* ── Badges ── */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-approved { color: var(--green); background: var(--green-bg); }
.badge-rejected { color: var(--red); background: var(--red-bg); }
.badge-review, .badge-pending { color: var(--amber); background: var(--amber-bg); }
.badge-resolved, .badge-dismissed, .badge-muted, .badge-deactivated { color: var(--gray); background: var(--gray-bg); }
.badge-plain { color: var(--text-dim); background: var(--gray-bg); padding: 2px 8px; }

/* ── Forms ── */
input[type=text], input[type=search], input[type=email], textarea, select {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); padding: 9px 12px; font-family: inherit; font-size: 14px; transition: border-color .15s var(--ease);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--coral); }
input::placeholder, textarea::placeholder { color: var(--text-faint); }
.search-box { position: relative; }
.search-box .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-faint); }
.search-box input { padding-left: 36px; }
label.field { display: block; font-size: 13px; color: var(--text-dim); font-weight: 500; margin-bottom: 6px; }
.checkbox { width: 17px; height: 17px; accent-color: var(--coral); cursor: pointer; }

/* ── Avatar / images ── */
.avatar { border-radius: 50%; object-fit: cover; background: var(--bg-2); flex-shrink: 0; }
.thumb { border-radius: var(--radius-sm); object-fit: cover; background: var(--bg-2); cursor: zoom-in; transition: transform .15s var(--ease); }
.thumb:hover { transform: scale(1.02); }

/* ── Lists / rows ── */
.row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.row:last-child { border-bottom: none; }
.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.mono { font-family: ui-monospace, 'SF Mono', monospace; font-size: 12px; }
.flex { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.wrap { flex-wrap: wrap; }

/* ── Skeletons ── */
.skel { background: linear-gradient(90deg, var(--card) 25%, var(--card-2) 50%, var(--card) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Empty state ── */
.empty { text-align: center; padding: 60px 20px; color: var(--text-dim); }
.empty .emoji { font-size: 40px; margin-bottom: 12px; }
.empty .title { font-weight: 600; color: var(--text); margin-bottom: 4px; }

/* ── Toasts ── */
.toasts { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 10px; z-index: 100; }
.toast { display: flex; align-items: center; gap: 12px; background: var(--card-2); border: 1px solid var(--border); border-left: 3px solid var(--coral); border-radius: var(--radius-sm); padding: 12px 16px; box-shadow: var(--shadow); min-width: 280px; animation: slideIn .25s var(--ease); }
.toast.success { border-left-color: var(--green); }
.toast.error { border-left-color: var(--red); }
.toast .msg { flex: 1; font-weight: 500; }
.toast .undo { color: var(--lavender); font-weight: 600; background: none; border: none; }
@keyframes slideIn { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── Modals / lightbox ── */
.overlay { position: fixed; inset: 0; background: rgba(10, 10, 20, 0.7); backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 90; animation: fade .15s var(--ease); padding: 20px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; max-width: 460px; width: 100%; box-shadow: var(--shadow); }
.modal h3 { margin: 0 0 8px; font-size: 18px; }
.modal .modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.lightbox-img { max-width: 90vw; max-height: 90vh; border-radius: var(--radius); }

/* ── Sticky action bar ── */
.action-bar { position: sticky; bottom: 0; background: rgba(31, 31, 56, 0.92); backdrop-filter: blur(10px); border-top: 1px solid var(--border); padding: 14px 28px; display: flex; gap: 10px; align-items: center; margin: 24px -28px -28px; }

/* ── Fade-out for resolved items ── */
.fade-leave-active { transition: all .3s var(--ease); }
.fade-leave-to { opacity: 0; transform: translateX(30px); }

/* ── Sparkline / charts ── */
.spark { width: 100%; height: 40px; }
.pie-legend { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.pie-legend .dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 8px; }

/* ── kbd ── */
kbd { background: var(--bg-2); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; font-family: ui-monospace, monospace; font-size: 11px; color: var(--text-dim); }

/* ── Responsive ── */
@media (max-width: 880px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; z-index: 50; transform: translateX(-100%); transition: transform .2s var(--ease); width: 260px; }
  .sidebar.open { transform: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .content { padding: 18px; }
  .menu-btn { display: inline-flex !important; }
}
.menu-btn { display: none; }
