/* Extracted from index.css L661-L788: Theme transition + glass panel base */

/* ===== THEME TRANSITION ===== */
/* Applied once on first toggle — prevents flash on initial load */
body.theme-ready,
body.theme-ready .sidebar,
body.theme-ready .nav-column,
body.theme-ready .card,
body.theme-ready .stat-card,
body.theme-ready .month-card,
body.theme-ready .nav-item,
body.theme-ready .main,
body.theme-ready .alert-banner,
body.theme-ready .cloud-status,
body.theme-ready .cd-list,
body.theme-ready .dp-panel,
body.theme-ready input,
body.theme-ready select,
body.theme-ready textarea {
  transition:
    background-color 250ms ease,
    background 250ms ease,
    color 250ms ease,
    border-color 250ms ease,
    box-shadow 250ms ease;
}

/* Theme toggle button */
#theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: background 250ms ease, border-color 250ms ease, box-shadow 250ms ease, transform 250ms ease;
  box-shadow: var(--shadow-card);
  outline: none;
}
#theme-toggle:hover {
  background: var(--bg-card-hover);
  transform: rotate(18deg);
}
#theme-toggle:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 2px;
}
[data-theme="light"] #theme-toggle {
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: var(--shadow-card);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px; 
  background-color: #050810;
  background-image: url('../assets/backgrounds/black-sand.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

/* ── Background overlay — dims the image to a whisper ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 16, 0.55);
  pointer-events: none;
  z-index: 0;
}

/* ── Radial glow — subtle warmth behind the main content area ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(
    circle at 60% 35%,
    rgba(30, 60, 110, 0.18),
    transparent 62%
  );
  pointer-events: none;
  z-index: 0;
}

/* ===== GLASS PANEL =====
   Use on large section containers — not individual rows or buttons.
   Examples: dashboard sections, budget overview, transaction panels.
   ================================================= */
.glass-panel {
  background: rgba(10, 14, 28, 0.58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
}

/* Edge highlight — polished top rim on glass panels */
.glass-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.01) 40%,
    transparent
  );
  pointer-events: none;
  z-index: 0;
}

