/* ============================================================
   PREMIUM FOUNDATION — global polish
   ============================================================ */

/* Custom scrollbars */
* { scrollbar-width: thin; scrollbar-color: #c7ccd6 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd2dc; border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #aab3c0; background-clip: content-box; }
body.dark * { scrollbar-color: #384253 transparent; }
body.dark ::-webkit-scrollbar-thumb { background: #384253; background-clip: content-box; }

/* Text selection */
::selection { background: rgba(37,99,235,0.18); }

/* Keyboard focus ring (accessibility) */
button:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px;
}

/* Sidebar depth */
.sidebar { background: linear-gradient(180deg, #0f2142 0%, #0b1830 100%); }

/* Reusable card + elevation helpers */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* Subtle, consistent table row hover */
.history-table tbody tr:hover, .ledger-table tbody tr:hover { background: var(--brand-light); }
