/* ============================================================
   ALTIS STUDIOS — Admin Dashboard Stylesheet
   Pro interface for managing quotes & projects
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow+Condensed:wght@400;500;600;700;800&family=Barlow:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg:        #0a0d12;
  --bg-2:      #0f1419;
  --bg-card:   #131820;
  --bg-elev:   #1a212c;
  --bg-hover:  #1f2733;
  --border:    rgba(255,255,255,0.06);
  --border-mid: rgba(255,255,255,0.12);
  --cyan:      #00f0f0;
  --cyan-soft: rgba(0,240,240,0.08);
  --orange:    #ff5c1f;
  --fg:        #f0f4f8;
  --fg-muted:  #8492a6;
  --fg-dim:    #4a586c;
  --danger:    #ff4060;
  --success:   #00d97e;
  --warning:   #ffa500;
  --info:      #4dabf7;
  --font-display: 'Bebas Neue', sans-serif;
  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
  --sidebar-w:    260px;
  --topbar-h:     64px;
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--font-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, select, textarea, button { font-family: inherit; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(0,240,240,0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }
::selection { background: rgba(0,240,240,0.3); color: #fff; }

body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025; mix-blend-mode: overlay; z-index: 1;
}

/* ─── LOGIN PAGE ─── */
.login-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  position: relative; overflow: hidden;
}
.login-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 30% 20%, rgba(0,240,240,0.1), transparent 70%),
    radial-gradient(ellipse 40% 30% at 70% 80%, rgba(255,92,31,0.08), transparent 70%);
  pointer-events: none;
}
.login-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,240,240,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,240,240,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 3rem 2.5rem;
  width: 100%; max-width: 440px;
  position: relative; z-index: 2;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 60px rgba(0,240,240,0.08);
}
.login-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}
.login-logo {
  text-align: center; margin-bottom: 2rem;
}
.login-logo img { height: 36px; margin: 0 auto 1.5rem; }
.login-logo .label {
  font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex; align-items: center; gap: 8px;
}
.login-logo .label::before {
  content: ''; width: 6px; height: 6px;
  background: var(--cyan); border-radius: 50%;
  box-shadow: 0 0 12px var(--cyan);
}
.login-card h1 {
  font-family: var(--font-display);
  font-size: 2.5rem; letter-spacing: 0.04em;
  text-align: center; margin-bottom: 0.5rem;
}
.login-card .subtitle {
  text-align: center; color: var(--fg-muted);
  font-size: 0.92rem; margin-bottom: 2.5rem;
}

.login-form .form-group { margin-bottom: 1.25rem; }
.login-form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--fg-muted);
  margin-bottom: 8px;
}
.login-form input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
  color: var(--fg);
  font-size: 0.95rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  outline: none;
}
.login-form input:focus {
  border-color: rgba(0,240,240,0.5);
  box-shadow: 0 0 0 3px rgba(0,240,240,0.1);
}
.login-error {
  display: none;
  background: rgba(255,64,96,0.08);
  border: 1px solid rgba(255,64,96,0.3);
  color: var(--danger);
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.88rem;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
}
.login-error.show { display: block; }

.login-btn {
  width: 100%;
  background: var(--cyan); color: var(--bg);
  font-family: var(--font-heading); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  font-size: 0.85rem;
  padding: 16px;
  border-radius: 6px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 0.5rem;
}
.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(0,240,240,0.3);
}
.login-btn:active { transform: scale(0.98); }

.login-help {
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.78rem; color: var(--fg-dim);
  text-align: center; line-height: 1.7;
}
.login-help strong { color: var(--cyan); }

.login-back {
  position: absolute;
  top: 2rem; left: 2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: inline-flex; align-items: center; gap: 8px;
  transition: color 0.2s ease;
  z-index: 3;
}
.login-back:hover { color: var(--cyan); }

/* ─── DASHBOARD LAYOUT ─── */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.sidebar-logo {
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 12px;
}
.sidebar-logo img { height: 28px; }
.sidebar-logo .label {
  font-family: var(--font-mono);
  font-size: 0.65rem; letter-spacing: 0.18em;
  color: var(--cyan); text-transform: uppercase;
  padding: 3px 8px;
  background: var(--cyan-soft);
  border-radius: 4px;
}

.sidebar-section { padding: 0 1rem; margin-bottom: 1.5rem; }
.sidebar-section .title {
  font-family: var(--font-mono);
  font-size: 0.65rem; letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding: 0 0.75rem; margin-bottom: 0.5rem;
}
.sidebar-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  border-radius: 6px;
  font-size: 0.93rem;
  color: var(--fg-muted);
  transition: background-color 0.2s ease, color 0.2s ease;
  margin-bottom: 2px;
  position: relative;
}
.sidebar-link svg {
  width: 18px; height: 18px; flex-shrink: 0;
}
.sidebar-link .badge {
  margin-left: auto;
  background: var(--cyan); color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  min-width: 22px; text-align: center;
}
.sidebar-link:hover {
  background: var(--bg-elev);
  color: var(--fg);
}
.sidebar-link.active {
  background: var(--cyan-soft);
  color: var(--cyan);
}
.sidebar-link.active::before {
  content: '';
  position: absolute; left: 0; top: 25%; bottom: 25%;
  width: 2px; background: var(--cyan);
  border-radius: 2px;
}

.sidebar-user {
  margin-top: auto;
  padding: 1rem;
  border-top: 1px solid var(--border);
}
.user-card {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  background: var(--bg-card);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), #00b4d8);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.user-info { flex: 1; min-width: 0; }
.user-info .name {
  font-weight: 600; color: var(--fg);
  font-size: 0.9rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.user-info .role {
  font-family: var(--font-mono);
  font-size: 0.68rem; color: var(--cyan);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.user-actions { display: flex; gap: 6px; }
.user-action-btn {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  color: var(--fg-muted);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.user-action-btn:hover { background: var(--bg-elev); color: var(--cyan); }
.user-action-btn.logout:hover { color: var(--danger); }

/* ─── MAIN ─── */
.main {
  display: flex; flex-direction: column;
  min-width: 0;
}
.topbar {
  height: var(--topbar-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
  position: sticky; top: 0; z-index: 10;
}
.topbar h1 {
  font-family: var(--font-heading);
  font-weight: 700; font-size: 1.4rem;
  letter-spacing: 0.01em;
}
.topbar-search {
  flex: 1; max-width: 480px;
  position: relative;
}
.topbar-search input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px 10px 40px;
  color: var(--fg);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.topbar-search input:focus {
  border-color: rgba(0,240,240,0.4);
  box-shadow: 0 0 0 3px rgba(0,240,240,0.08);
}
.topbar-search svg {
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--fg-dim);
  pointer-events: none;
}
.topbar-actions { display: flex; gap: 8px; align-items: center; }
.topbar-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 0.85rem;
  font-family: var(--font-mono); letter-spacing: 0.05em;
  transition: all 0.2s ease;
}
.topbar-btn:hover {
  color: var(--cyan);
  border-color: rgba(0,240,240,0.3);
  background: var(--bg-elev);
}
.topbar-btn svg { width: 16px; height: 16px; }

.content {
  flex: 1;
  padding: 2rem;
  max-width: 100%;
}

/* ─── Stats Cards ─── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.stat-card:hover {
  border-color: rgba(0,240,240,0.25);
  transform: translateY(-2px);
}
.stat-card .stat-icon {
  position: absolute; top: 1rem; right: 1rem;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--cyan-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
}
.stat-card .stat-icon svg { width: 18px; height: 18px; }
.stat-card.success .stat-icon { background: rgba(0,217,126,0.1); color: var(--success); }
.stat-card.warning .stat-icon { background: rgba(255,165,0,0.1); color: var(--warning); }
.stat-card.danger .stat-icon { background: rgba(255,64,96,0.1); color: var(--danger); }
.stat-card .label {
  font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 0.5rem;
}
.stat-card .value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  letter-spacing: 0.03em;
  line-height: 1;
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.stat-card .change {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--fg-dim);
  display: inline-flex; align-items: center; gap: 4px;
}
.stat-card .change.up { color: var(--success); }
.stat-card .change.down { color: var(--danger); }

/* ─── Filters bar ─── */
.filters-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  display: flex; flex-wrap: wrap;
  gap: 0.75rem; align-items: center;
  margin-bottom: 1.5rem;
}
.filters-bar .filter-tabs {
  display: flex; gap: 4px;
  flex-wrap: wrap;
}
.filter-tab {
  padding: 7px 14px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  background: transparent;
  transition: all 0.2s ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.filter-tab:hover { color: var(--fg); background: var(--bg-elev); }
.filter-tab.active { background: var(--cyan-soft); color: var(--cyan); }
.filter-tab .count {
  background: var(--bg-elev);
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 0.72rem;
}
.filter-tab.active .count { background: rgba(0,240,240,0.15); }

.filters-bar .spacer { flex: 1; }
.filters-bar select {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 7px 30px 7px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='%238492a6'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m19.5 8.25-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px;
  outline: none;
  cursor: pointer;
}

/* ─── Quotes Table ─── */
.quotes-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.quotes-table {
  width: 100%;
  border-collapse: collapse;
}
.quotes-table thead {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.quotes-table th {
  padding: 14px 16px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 500;
  white-space: nowrap;
}
.quotes-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  vertical-align: middle;
}
.quotes-table tbody tr {
  transition: background-color 0.2s ease;
  cursor: pointer;
}
.quotes-table tbody tr:hover { background: var(--bg-elev); }
.quotes-table tbody tr:last-child td { border-bottom: none; }
.quotes-table .ref {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--cyan);
}
.quotes-table .name strong {
  display: block;
  color: var(--fg);
  font-weight: 600;
  margin-bottom: 2px;
}
.quotes-table .name span {
  color: var(--fg-muted);
  font-size: 0.82rem;
}
.quotes-table .service {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

.status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.status::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%;
}
.status.new {
  background: rgba(77,171,247,0.1); color: var(--info);
}
.status.new::before { background: var(--info); }
.status.contacted {
  background: rgba(255,165,0,0.1); color: var(--warning);
}
.status.contacted::before { background: var(--warning); }
.status.in-progress {
  background: rgba(0,240,240,0.1); color: var(--cyan);
}
.status.in-progress::before { background: var(--cyan); animation: pulse 2s infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.status.won {
  background: rgba(0,217,126,0.1); color: var(--success);
}
.status.won::before { background: var(--success); }
.status.lost {
  background: rgba(255,64,96,0.08); color: var(--danger);
}
.status.lost::before { background: var(--danger); }

.priority {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem; letter-spacing: 0.06em;
  text-transform: uppercase;
}
.priority.high { background: rgba(255,64,96,0.1); color: var(--danger); }
.priority.normal { background: var(--bg-elev); color: var(--fg-muted); }
.priority.low { background: rgba(132,146,166,0.08); color: var(--fg-dim); }

.date-cell {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--fg-muted);
}

.action-cell {
  text-align: right;
}
.action-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 6px;
  color: var(--fg-muted);
  transition: all 0.2s ease;
}
.action-btn:hover {
  background: var(--bg-elev);
  color: var(--cyan);
}

.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--fg-muted);
}
.empty-state svg { color: var(--fg-dim); margin-bottom: 1rem; }
.empty-state h3 { color: var(--fg); margin-bottom: 0.5rem; font-family: var(--font-heading); font-weight: 700; }
.empty-state p { font-size: 0.9rem; }

/* ─── Modal (quote detail) ─── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(10,13,18,0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  padding: 2rem;
}
.modal-overlay.show {
  display: flex;
  animation: fade-in-bg 0.3s ease;
}
@keyframes fade-in-bg { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: 100%; max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slide-up 0.4s var(--ease-out);
}
@keyframes slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal::before {
  content: ''; position: sticky; top: 0;
  display: block; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}
.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0;
  background: var(--bg-card);
  z-index: 1;
}
.modal-header h2 {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 1.4rem;
  display: flex; align-items: center; gap: 12px;
}
.modal-header .ref-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.08em;
  color: var(--cyan);
  padding: 4px 10px;
  background: var(--cyan-soft);
  border-radius: 4px;
}
.modal-close {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  color: var(--fg-muted);
  transition: all 0.2s ease;
}
.modal-close:hover {
  background: var(--bg-elev);
  color: var(--danger);
}

.modal-body { padding: 2rem; }
.modal-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.modal-row:last-child { border-bottom: none; }
.modal-row .label {
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding-top: 2px;
}
.modal-row .value {
  color: var(--fg);
  font-size: 0.95rem;
  word-break: break-word;
}
.modal-row .value a { color: var(--cyan); }
.modal-row .value a:hover { text-decoration: underline; }
.modal-row.full { grid-template-columns: 1fr; }
.modal-row.full .value {
  background: var(--bg);
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  white-space: pre-wrap;
  margin-top: 8px;
  line-height: 1.7;
}

.modal-actions {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  display: flex; gap: 0.75rem; flex-wrap: wrap;
  justify-content: space-between;
}
.modal-actions .group { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn-action {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--bg-elev);
  color: var(--fg);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}
.btn-action:hover { background: var(--bg-hover); }
.btn-action.primary {
  background: var(--cyan); color: var(--bg);
  border-color: var(--cyan);
}
.btn-action.primary:hover {
  box-shadow: 0 4px 20px rgba(0,240,240,0.3);
}
.btn-action.danger:hover {
  background: rgba(255,64,96,0.1);
  color: var(--danger);
  border-color: rgba(255,64,96,0.3);
}
.btn-action svg { width: 14px; height: 14px; }

.status-changer {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.status-changer label {
  font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.status-changer select {
  background: transparent;
  border: none;
  color: var(--fg);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

/* Notes section in modal */
.notes-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.notes-section h3 {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 10px;
}
.note-list { margin-bottom: 1rem; }
.note-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}
.note-item .meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-dim);
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 8px;
}
.note-item .meta strong { color: var(--cyan); }
.note-input-row {
  display: flex; gap: 8px;
}
.note-input-row textarea {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.9rem;
  resize: vertical;
  min-height: 60px;
  outline: none;
  transition: border-color 0.25s ease;
}
.note-input-row textarea:focus { border-color: rgba(0,240,240,0.4); }

/* ─── Toast notifications ─── */
.toast {
  position: fixed;
  bottom: 2rem; right: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 0.92rem;
  color: var(--fg);
  z-index: 200;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  display: flex; align-items: center; gap: 12px;
  animation: toast-in 0.3s var(--ease-out);
  max-width: 400px;
}
.toast.success { border-left-color: var(--success); }
.toast.danger { border-left-color: var(--danger); }
.toast svg { flex-shrink: 0; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  :root { --sidebar-w: 240px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; top: 0; left: -100%; bottom: 0;
    width: 280px;
    transition: left 0.3s var(--ease-out);
    z-index: 99;
  }
  .sidebar.open { left: 0; }
  .topbar { padding: 0 1rem; gap: 1rem; }
  .topbar h1 { font-size: 1.1rem; }
  .topbar-search { display: none; }
  .content { padding: 1rem; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .quotes-table { font-size: 0.85rem; }
  .quotes-table th, .quotes-table td { padding: 10px 12px; }
  .modal { max-height: 95vh; }
  .modal-row { grid-template-columns: 1fr; gap: 4px; }
  .modal-actions { flex-direction: column; }
  .modal-actions .group { width: 100%; }
  .btn-action { flex: 1; justify-content: center; }
  .topbar-mobile-burger { display: flex !important; }
}

.topbar-mobile-burger {
  display: none;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--fg-muted);
}

/* Hide on mobile */
@media (max-width: 600px) {
  .quotes-table .hide-mobile { display: none; }
}
