/* ===============================
   GLOBAL RESET & BASE
   =============================== */

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

html, body {
  height: 100%;
  background: #020617;
  color: #e5e7eb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: hidden; /* 🔒 only inner scroll allowed */
  overflow-x: hidden;
}


/* ===============================
   APP LAYOUT
   =============================== */

body {
  display: flex;
  flex-direction: column;
}

/* ===============================
   HEADER (FIXED)
   =============================== */

header {
  height: 64px;
  background: #020617;
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  flex-shrink: 0;
}

header .logo {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}

header nav a {
  color: #e5e7eb;
  text-decoration: none;
  margin-left: 22px;
  font-size: 14px;
  opacity: 0.85;
}

header nav a:hover {
  color: #38bdf8;
  opacity: 1;
}

/* ===============================
   MAIN (SCROLL LOCK)
   =============================== */

main {
  flex: 1;
  overflow: hidden;
  display: flex;
}

/* ONLY scrollable area */
.scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 40px 24px 80px;
}

/* ===============================
   FOOTER (FIXED)
   =============================== */

footer {
  height: 56px;
  background: #020617;
  border-top: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #94a3b8;
  flex-shrink: 0;
}

/* =====================================================
   GLOBAL SCROLLBAR – KUNAL FINANCE THEME
   Applies to all pages & scroll containers
   ===================================================== */

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #1fb6ff rgba(255, 255, 255, 0.06);
}

/* Chrome / Edge / Safari */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(0, 210, 255, 0.95),
    rgba(0, 120, 200, 0.95)
  );
  border-radius: 12px;
  border: 3px solid rgba(0, 0, 0, 0.55);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(0, 220, 255, 1),
    rgba(0, 140, 220, 1)
  );
}

/* Optional: horizontal scrollbar polish */
::-webkit-scrollbar-corner {
  background: transparent;
}
