/* ═══════════════════════════════════════════════════════
   MEDICINE MASTER — PREMIUM DARK-MODE DESIGN SYSTEM
   ═══════════════════════════════════════════════════════ */

/* ─── CSS Custom Properties ─── */
:root {
  --bg-deep: #080d19;
  --bg-primary: #0f1729;
  --bg-card: #162031;
  --bg-card-hover: #1c2a45;
  --bg-input: #0d1526;
  --border: #1e3054;
  --border-focus: #3b82f6;
  --text-primary: #e8edf5;
  --text-secondary: #8898b9;
  --text-muted: #5a6a8a;
  --accent-blue: #3b82f6;
  --accent-blue-glow: rgba(59, 130, 246, 0.15);
  --accent-green: #10b981;
  --accent-green-glow: rgba(16, 185, 129, 0.15);
  --accent-purple: #8b5cf6;
  --accent-purple-glow: rgba(139, 92, 246, 0.15);
  --accent-amber: #f59e0b;
  --accent-amber-glow: rgba(245, 158, 11, 0.15);
  --accent-red: #ef4444;
  --accent-red-glow: rgba(239, 68, 68, 0.15);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --sidebar-w: 260px;
  --topbar-h: 64px;
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 15px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  color: var(--text-primary);
  background: var(--bg-deep);
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--text-primary); }

/* ═══════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════ */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--bg-primary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Logo */
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  border-radius: 10px;
  color: #fff;
  flex-shrink: 0;
}
.sidebar-logo-title {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.sidebar-logo-sub {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Nav Items */
.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px 10px;
  gap: 2px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 16px;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}
.nav-item:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}
.nav-item.active {
  background: var(--accent-blue-glow);
  color: var(--accent-blue);
  border-left-color: var(--accent-blue);
}
.nav-icon { font-size: 1.15rem; flex-shrink: 0; width: 24px; text-align: center; }
.nav-label { white-space: nowrap; }

/* Footer */
.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* ═══════════════════════════════════════════════════════
   HAMBURGER (Mobile)
   ═══════════════════════════════════════════════════════ */
.hamburger-btn {
  display: none;
  position: fixed;
  top: 14px; left: 14px;
  z-index: 200;
  width: 40px; height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.hamburger-btn span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 90;
  backdrop-filter: blur(4px);
}
.sidebar-overlay.visible { display: block; }

/* ═══════════════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════════════ */
.main-content {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top Bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--topbar-h);
  padding: 0 32px;
  background: rgba(15, 23, 41, 0.82);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border-bottom: 1px solid var(--border);
}
.topbar-title {
  font-size: 1.25rem;
  font-weight: 700;
}
.topbar-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.breadcrumb-current { color: var(--text-secondary); }
.breadcrumb-sep { opacity: 0.4; }

.live-clock {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════
   PAGES — Transitions
   ═══════════════════════════════════════════════════════ */
.page {
  display: none;
  padding: 28px 32px 48px;
  animation: pageIn 0.35s ease forwards;
}
.page.active { display: block; }

@keyframes pageIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════
   STAT CARDS
   ═══════════════════════════════════════════════════════ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px 18px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.stat-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow);
}

.stat-blue::before  { background: linear-gradient(90deg, var(--accent-blue), #60a5fa); }
.stat-blue          { box-shadow: 0 -1px 20px var(--accent-blue-glow); }
.stat-purple::before { background: linear-gradient(90deg, var(--accent-purple), #a78bfa); }
.stat-purple        { box-shadow: 0 -1px 20px var(--accent-purple-glow); }
.stat-amber::before { background: linear-gradient(90deg, var(--accent-amber), #fbbf24); }
.stat-amber         { box-shadow: 0 -1px 20px var(--accent-amber-glow); }
.stat-green::before { background: linear-gradient(90deg, var(--accent-green), #34d399); }
.stat-green         { box-shadow: 0 -1px 20px var(--accent-green-glow); }

.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.stat-icon { font-size: 1.6rem; }
.stat-number {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}
.stat-text-value {
  font-size: 1.3rem;
}
.stat-sub {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════
   SECTION CARDS
   ═══════════════════════════════════════════════════════ */
.section-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 24px;
}
.section-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}
.subsection-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* ═══════════════════════════════════════════════════════
   FORMAT CHART (Pure CSS)
   ═══════════════════════════════════════════════════════ */
.format-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.format-bar-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.format-bar-label {
  flex-shrink: 0;
  width: 90px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: right;
}
.format-bar-track {
  flex: 1;
  height: 26px;
  background: var(--bg-input);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.format-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}
.format-bar-fill.bar-blue   { background: linear-gradient(90deg, var(--accent-blue), #60a5fa); }
.format-bar-fill.bar-purple { background: linear-gradient(90deg, var(--accent-purple), #a78bfa); }
.format-bar-fill.bar-amber  { background: linear-gradient(90deg, var(--accent-amber), #fbbf24); }
.format-bar-fill.bar-green  { background: linear-gradient(90deg, var(--accent-green), #34d399); }
.format-bar-fill.bar-red    { background: linear-gradient(90deg, var(--accent-red), #f87171); }

.format-bar-pct {
  flex-shrink: 0;
  width: 52px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════
   QUICK ACTIONS
   ═══════════════════════════════════════════════════════ */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.quick-action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 16px;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-hover) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  color: inherit;
  font-family: inherit;
}
.quick-action-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.qa-icon { font-size: 2rem; }
.qa-title { font-size: 0.92rem; font-weight: 600; color: var(--text-primary); }
.qa-desc { font-size: 0.78rem; color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════
   SEARCH BAR
   ═══════════════════════════════════════════════════════ */
.search-bar-wrapper {
  position: relative;
  margin-bottom: 24px;
}
.search-bar-icon {
  position: absolute;
  left: 18px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  display: flex;
}
.search-input {
  width: 100%;
  padding: 14px 18px 14px 50px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-blue-glow), 0 0 20px var(--accent-blue-glow);
}

@keyframes focusPulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--accent-blue-glow); }
  50%      { box-shadow: 0 0 0 6px var(--accent-blue-glow), 0 0 30px var(--accent-blue-glow); }
}
.search-input:focus { animation: focusPulse 2s ease-in-out infinite; }

.search-match-badge {
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  background: var(--accent-blue-glow);
  color: var(--accent-blue);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════
   DATA TABLES
   ═══════════════════════════════════════════════════════ */
.table-wrapper { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
}
.data-table thead th {
  position: sticky; top: 0;
  background: var(--bg-primary);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}
.data-table tbody tr {
  transition: background 0.15s ease;
}
.data-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.015); }
.data-table tbody tr:hover { background: var(--bg-card-hover); }
.data-table tbody td {
  padding: 11px 16px;
  border-bottom: 1px solid rgba(30, 48, 84, 0.4);
  color: var(--text-secondary);
  white-space: nowrap;
}
.data-table tbody td:first-child { color: var(--text-primary); font-weight: 500; }

/* Staggered fade-in for rows */
@keyframes rowFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.data-table tbody tr.row-animate {
  animation: rowFadeIn 0.3s ease forwards;
  opacity: 0;
}

/* ═══════════════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════════════ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 20px;
  text-align: center;
}
.empty-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.6; }
.empty-title { font-size: 1.05rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.empty-desc { font-size: 0.85rem; color: var(--text-muted); max-width: 340px; }
.empty-link {
  margin-top: 14px;
  color: var(--accent-blue);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  background: none;
  border: none;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.empty-link:hover { color: #60a5fa; }

/* ═══════════════════════════════════════════════════════
   ONLINE SEARCH LAYOUT
   ═══════════════════════════════════════════════════════ */
.online-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.online-search-panel,
.import-form-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.online-search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.online-search-bar .search-input {
  padding-left: 18px;
  flex: 1;
}
.online-results {
  min-height: 140px;
}

/* Snippet Cards */
.snippet-card {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  transition: border-color 0.2s;
}
.snippet-card:hover { border-color: var(--accent-blue); }
.snippet-card-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-size: 0.88rem;
}

/* AI Suggestions */
.ai-suggestions-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.chip-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.chip-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 90px;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  background: var(--accent-blue-glow);
  color: var(--accent-blue);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  animation: chipBounce 0.4s ease;
}
.chip:hover {
  background: rgba(59, 130, 246, 0.25);
  transform: translateY(-1px);
}
.chip-purple {
  background: var(--accent-purple-glow);
  color: var(--accent-purple);
  border-color: rgba(139, 92, 246, 0.25);
}
.chip-purple:hover { background: rgba(139, 92, 246, 0.25); }
.chip-amber {
  background: var(--accent-amber-glow);
  color: var(--accent-amber);
  border-color: rgba(245, 158, 11, 0.25);
}
.chip-amber:hover { background: rgba(245, 158, 11, 0.25); }

@keyframes chipBounce {
  0%   { opacity: 0; transform: scale(0.7); }
  60%  { transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

/* ═══════════════════════════════════════════════════════
   IMPORT FORM
   ═══════════════════════════════════════════════════════ */
.import-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.form-input {
  padding: 11px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  -webkit-appearance: none;
}
.form-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-blue-glow);
}
.form-input::placeholder { color: var(--text-muted); }
.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%235a6a8a' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 6l3.5 4 3.5-4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.form-select option { background: var(--bg-card); color: var(--text-primary); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-input.highlight-flash {
  animation: inputFlash 0.6s ease;
}
@keyframes inputFlash {
  0%, 100% { box-shadow: 0 0 0 3px transparent; }
  50%      { box-shadow: 0 0 0 4px var(--accent-green-glow), 0 0 20px var(--accent-green-glow); border-color: var(--accent-green); }
}

/* Size Preview */
.size-preview {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.size-preview-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.size-preview-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.size-preview-list li {
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
}

/* ═══════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), #2563eb);
  color: #fff;
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.3);
}
.btn-primary:hover { box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4); }

.btn-success {
  background: linear-gradient(135deg, var(--accent-green), #059669);
  color: #fff;
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.3);
}
.btn-success:hover { box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4); }

.btn-outline {
  background: transparent;
  color: var(--accent-blue);
  border: 1px solid var(--accent-blue);
}
.btn-outline:hover {
  background: var(--accent-blue-glow);
}

.btn-lg { padding: 13px 28px; font-size: 0.95rem; }
.btn-sm { padding: 7px 14px; font-size: 0.8rem; }

/* Spinner */
.btn-spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════
   BULK IMPORT
   ═══════════════════════════════════════════════════════ */
.bulk-textarea {
  width: 100%;
  padding: 16px 18px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  margin-bottom: 16px;
  transition: border-color 0.25s ease;
}
.bulk-textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-blue-glow);
}
.bulk-textarea::placeholder { color: var(--text-muted); }

.bulk-summary {
  display: flex;
  gap: 20px;
  margin-bottom: 18px;
  font-size: 0.88rem;
  font-weight: 600;
}
.bulk-found { color: var(--accent-green); }
.bulk-missing { color: var(--accent-red); }
.bulk-total { color: var(--text-secondary); }

.status-found {
  color: var(--accent-green);
  font-weight: 600;
}
.status-missing {
  color: var(--accent-red);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════
   BACKUPS
   ═══════════════════════════════════════════════════════ */
.backups-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

/* ═══════════════════════════════════════════════════════
   NOTIFICATIONS
   ═══════════════════════════════════════════════════════ */
.notification-container {
  position: fixed;
  top: 16px; right: 16px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.notification {
  pointer-events: all;
  min-width: 300px;
  max-width: 420px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  border-left: 4px solid;
  background: var(--bg-card);
  box-shadow: var(--shadow);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  animation: notifIn 0.35s ease forwards;
  backdrop-filter: blur(12px);
}
.notification.removing {
  animation: notifOut 0.3s ease forwards;
}
.notification.notif-success { border-left-color: var(--accent-green); background: linear-gradient(90deg, var(--accent-green-glow), var(--bg-card) 40%); }
.notification.notif-error   { border-left-color: var(--accent-red);   background: linear-gradient(90deg, var(--accent-red-glow), var(--bg-card) 40%); }
.notification.notif-info    { border-left-color: var(--accent-blue);  background: linear-gradient(90deg, var(--accent-blue-glow), var(--bg-card) 40%); }

@keyframes notifIn {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes notifOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(60px); }
}

/* ═══════════════════════════════════════════════════════
   SKELETON / SHIMMER
   ═══════════════════════════════════════════════════════ */
.skeleton-bar, .skeleton-row {
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--bg-input) 25%, var(--bg-card-hover) 50%, var(--bg-input) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite ease-in-out;
}
.skeleton-bar { margin-bottom: 12px; }
.skeleton-bar:nth-child(2) { width: 80%; }
.skeleton-bar:nth-child(3) { width: 60%; }
.skeleton-bar:nth-child(4) { width: 45%; }
.skeleton-bar:nth-child(5) { width: 30%; }

.skeleton-row { margin-bottom: 10px; }
.skeleton-row:nth-child(2) { width: 90%; }
.skeleton-row:nth-child(3) { width: 75%; }

.skeleton-table {
  padding: 20px;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .online-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hamburger-btn { display: flex; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .topbar { padding: 0 16px 0 60px; }
  .page { padding: 20px 16px 40px; }
  .stat-grid { grid-template-columns: 1fr; }
  .quick-actions-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .topbar-title { font-size: 1.05rem; }
  .stat-number { font-size: 1.6rem; }
  .backups-header { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ═══════════════════════════════════════════════════════
   SELECTION
   ═══════════════════════════════════════════════════════ */
::selection { background: var(--accent-blue); color: #fff; }
