/* ============================================================
   Chaijohn Dashboard — Global Stylesheet
   ============================================================ */

/* ── 1. CSS Variables ─────────────────────────────────────── */
:root {
  --color-income: #22c55e;
  --color-expense: #ef4444;
  --color-warning: #f59e0b;
  --color-primary: #3b82f6;
  --bg-card: #ffffff;
  --bg-page: #f8fafc;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --border: #e2e8f0;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
  --nav-height: 60px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-card: #1e1e2e;
    --bg-page: #13131f;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --border: #2d2d44;
    --shadow: 0 1px 3px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.5);
  }
}

/* ── 2. CSS Reset ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

body, h1, h2, h3, h4, h5, h6, p {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
}

/* ── 3. Nav bar (.main-nav) ───────────────────────────────── */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--nav-height);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  z-index: 1000;
}

.nav-inner {
  display: flex;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  gap: 0.5rem;
  width: 100%;
  height: 100%;
}

.nav-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary);
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
}

.nav-link {
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-primary);
}

.nav-logout {
  margin-left: auto;
}

.nav-logout:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-expense);
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    bottom: 0;
    top: auto;
    height: auto;
    border-top: 1px solid var(--border);
    border-bottom: none;
    box-shadow: none;
  }

  .nav-inner {
    justify-content: space-around;
    padding: 0.25rem 0.5rem;
    gap: 0;
    height: auto;
  }

  .nav-brand {
    display: none;
  }

  .nav-link {
    font-size: 0.7rem;
    flex-direction: column;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0.4rem 0.5rem;
    margin-left: 0;
  }

  .nav-logout {
    margin-left: 0;
  }
}

/* ── 4. Page layout ───────────────────────────────────────── */
.page-content {
  margin-top: calc(var(--nav-height) + 1rem);
  padding: 1rem 1.5rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .page-content {
    padding: 0.75rem;
    margin-top: calc(var(--nav-height) + 0.5rem);
    margin-bottom: 80px;
  }
}

/* ── 5. Card ──────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

/* ── 6. Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.15s;
  text-decoration: none;
  font-family: inherit;
  line-height: 1.4;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

.btn-success {
  background: var(--color-income);
  color: white;
}

.btn-danger {
  background: var(--color-expense);
  color: white;
}

.btn-warning {
  background: var(--color-warning);
  color: white;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.btn-sm {
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn:hover:not(:disabled) {
  filter: brightness(0.9);
}

/* ── 7. Form elements ─────────────────────────────────────── */
input,
select,
textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

textarea {
  resize: vertical;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

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

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ── 8. Badges ────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: default;
}

.badge-income {
  background: rgba(34, 197, 94, 0.15);
  color: var(--color-income);
}

.badge-expense {
  background: rgba(239, 68, 68, 0.15);
  color: var(--color-expense);
}

.badge-primary {
  background: rgba(59, 130, 246, 0.15);
  color: var(--color-primary);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--color-warning);
}

.badge-gray {
  background: rgba(100, 116, 139, 0.15);
  color: var(--text-secondary);
}

/* ── 9. Tab bar ───────────────────────────────────────────── */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.75rem 1.25rem;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  transition: color 0.15s, border-color 0.15s;
}

.tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ── 10. Table styles ─────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.data-table tr:hover {
  background: rgba(59, 130, 246, 0.04);
}

.data-table .row-green {
  background: rgba(34, 197, 94, 0.06);
}

.data-table .row-amber {
  background: rgba(245, 158, 11, 0.06);
}

.data-table .row-red {
  background: rgba(239, 68, 68, 0.06);
}

/* ── 11. Amount display ───────────────────────────────────── */
.amount-positive {
  color: var(--color-income);
  font-weight: 600;
}

.amount-negative {
  color: var(--color-expense);
  font-weight: 600;
}

.amount-neutral {
  color: var(--text-primary);
  font-weight: 600;
}

/* ── 12. Loading spinner ──────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
}

/* ── 13. Modal ────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-backdrop.hidden {
  display: none;
}

.modal {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  width: min(500px, 90vw);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 600;
}

/* ── 14. Quote banner ─────────────────────────────────────── */
.quote-banner {
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--color-primary);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), transparent);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 1.5rem;
  position: relative;
}

.quote-text {
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-primary);
  font-family: Georgia, 'Times New Roman', serif;
}

.quote-author {
  text-align: right;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.quote-dismiss {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  padding: 0;
  transition: color 0.15s;
}

.quote-dismiss:hover {
  color: var(--text-primary);
}

/* ── 15. Alert strip ──────────────────────────────────────── */
.alert-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}

.alert-chip {
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
}

.alert-chip-red {
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-expense);
}

.alert-chip-orange {
  background: rgba(245, 158, 11, 0.1);
  color: var(--color-warning);
}

.alert-chip-yellow {
  background: rgba(234, 179, 8, 0.1);
  color: #ca8a04;
}

/* ── 16. Progress bar ─────────────────────────────────────── */
.progress-wrap {
  height: 8px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--color-primary);
  border-radius: 100px;
  transition: width 0.3s ease;
}

.progress-bar.green {
  background: var(--color-income);
}

.progress-bar.amber {
  background: var(--color-warning);
}

.progress-bar.red {
  background: var(--color-expense);
}

/* ── 17. Drop zone panel ──────────────────────────────────── */
#dropzone-toggle-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
}

#dropzone-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  background: var(--color-expense);
  color: white;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

#dropzone-badge.hidden {
  display: none;
}

#dropzone-panel {
  position: fixed;
  bottom: 80px;
  right: 1.5rem;
  width: 320px;
  height: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  display: none;
}

#dropzone-panel.open {
  display: flex;
}

#dropzone-panel .dz-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

#dropzone-panel .dz-date {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 400;
}

#dropzone-panel .dz-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
}

#dropzone-panel .dz-drop-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

#dropzone-panel .dz-drop-area.drag-over {
  border-color: var(--color-primary);
  background: rgba(59, 130, 246, 0.05);
  animation: dash-animate 0.5s linear infinite;
}

@keyframes dash-animate {
  0%   { border-dash-offset: 0; }
  100% { border-dash-offset: 20px; }
}

.dz-review-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  margin-top: 0.75rem;
  transition: background 0.3s;
}

.dz-review-card.approved {
  background: rgba(34, 197, 94, 0.1);
}

.dz-review-card .dz-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}

#dropzone-approve-all {
  width: 100%;
  margin-bottom: 0.5rem;
}

/* ── 18. Slide-in panel ───────────────────────────────────── */
.slide-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 100vw);
  height: 100vh;
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
  z-index: 7000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding: 1.5rem;
  overflow-y: auto;
}

.slide-panel.open {
  transform: translateX(0);
}

.slide-panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 6999;
  display: none;
}

.slide-panel-backdrop.open {
  display: block;
}

.slide-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.slide-panel-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  line-height: 1;
  padding: 0;
  transition: color 0.15s;
}

.slide-panel-close:hover {
  color: var(--text-primary);
}

/* ── 19. Diary two-panel layout ───────────────────────────── */
.diary-layout {
  display: grid;
  grid-template-columns: 35% 1fr;
  height: calc(100vh - var(--nav-height) - 2rem);
  gap: 1rem;
}

.diary-list-panel {
  overflow-y: auto;
  border-right: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.diary-editor-panel {
  overflow-y: auto;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.diary-entry-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}

.diary-entry-item:hover,
.diary-entry-item.active {
  background: rgba(59, 130, 246, 0.06);
}

.diary-entry-item .entry-preview {
  font-size: 0.82rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.2rem;
}

@media (max-width: 768px) {
  .diary-layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .diary-list-panel {
    height: 40vh;
  }
}

/* ── 20. Collection grid ──────────────────────────────────── */
.asset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 1024px) {
  .asset-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .asset-grid {
    grid-template-columns: 1fr;
  }
}

.asset-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.asset-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  display: block;
}

.asset-card-body {
  padding: 0.75rem;
}

.asset-card-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.fab-btn {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-income);
  color: white;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter 0.15s;
}

.fab-btn:hover {
  filter: brightness(0.9);
}

/* ── 21. Chart containers ─────────────────────────────────── */
.chart-container {
  position: relative;
  width: 100%;
}

.chart-container canvas {
  display: block;
  max-width: 100%;
}

/* ── 22. Filter bar ───────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.period-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.period-btn {
  padding: 0.4rem 0.9rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}

.period-btn.active {
  background: var(--color-primary);
  color: white;
}

/* ── 23. Cashflow cards (Section A) ───────────────────────── */
.speed-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .speed-panel {
    grid-template-columns: 1fr;
  }
}

.speed-card {
  text-align: center;
}

.speed-card .metric-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.speed-card .metric-value {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0.5rem 0;
}

.speed-card .metric-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.gauge-wrap {
  position: relative;
  display: inline-block;
  margin: 0 auto;
}

/* Standalone metric-value (used outside speed-card too) */
.metric-value {
  font-size: 1.8rem;
  font-weight: 700;
}

/* ── 24. AI chat ──────────────────────────────────────────── */
.chat-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  height: calc(100vh - var(--nav-height) - 2rem);
  gap: 1rem;
}

.chat-sidebar {
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 0.75rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.chat-main {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

#messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message {
  max-width: 80%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  line-height: 1.6;
  font-size: 0.9rem;
}

.message.user {
  align-self: flex-end;
  background: var(--color-primary);
  color: white;
  border-radius: 12px 12px 4px 12px;
}

.message.assistant {
  align-self: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px 12px 12px 4px;
}

.chat-input-area {
  padding: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  flex-shrink: 0;
}

#chat-input {
  flex: 1;
  resize: none;
  min-height: 44px;
  font-family: inherit;
}

@media (max-width: 768px) {
  .chat-layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .chat-sidebar {
    height: 200px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

/* ── 25. Animations ───────────────────────────────────────── */
@keyframes fadeIn {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes slideUp {
  0%   { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0);    opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.3s ease;
}

.slide-up {
  animation: slideUp 0.3s ease;
}

/* ── 26. Section headers ──────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 1rem;
  font-weight: 600;
}

/* ── 27. Utility classes ──────────────────────────────────── */
.hidden       { display: none !important; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.mt-1         { margin-top: 0.25rem; }
.mt-2         { margin-top: 0.5rem; }
.mt-3         { margin-top: 1rem; }
.mb-1         { margin-bottom: 0.25rem; }
.mb-2         { margin-bottom: 0.5rem; }
.mb-3         { margin-bottom: 1rem; }
.gap-1        { gap: 0.25rem; }
.gap-2        { gap: 0.5rem; }
.flex         { display: flex; }
.flex-col     { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full       { width: 100%; }
.w-auto       { width: auto; }
.relative     { position: relative; }

/* ── 28. Scrollbar styling ────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 100px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}
