/* ===== GLOBAL RESET ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ===== THEME VARIABLES ===== */
:root {
  --navbar-height: 64px;

  --bg: #0b1220;
  --primary: #0e1a2b;
  --text: #e6ebf1;
  --text-muted: rgba(230, 235, 241, 0.7);
  --secondary-text: #9fb3c8;
  --accent: #6c5ce7;
  --accent-2: #8f77ff;
  --surface: rgba(255, 255, 255, 0.06);
  --border-soft: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.2);
  --accent-soft: rgba(143, 119, 255, 0.22);
  --shadow-md: 0 16px 30px rgba(5, 8, 14, 0.35);
  --shadow-lg: 0 22px 50px rgba(5, 8, 14, 0.45);
}

/* ===== BASE DOCUMENT ===== */
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;              /* ✅ NOT 100vw */
  min-height: 100%;
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===== REACT ROOT ===== */
#root {
  min-height: 100vh;
  width: 100%;              /* ✅ NOT 100vw */
  background-color: var(--bg);
  overflow-x: hidden;
}

/* ===== MAIN CONTENT SAFETY ===== */
main,
.home-wrapper,
.loginSection,
.signupSection {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar {
  height: var(--navbar-height);
  background: var(--primary);
  color: #ffffff;
  padding: 0 32px;
  width: 100%;
}

.navbar a {
  color: #ffffff;
  margin: 0 10px;
  text-decoration: none;
}

/* Remove underline for all links */
a {
  text-decoration: none;
}

/* ===== GLOBAL BUTTONS ===== */
.btn-primary {
  background: linear-gradient(135deg, #3f5cff, #5b7cff);
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 10px 26px rgba(75, 52, 227, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(63, 92, 255, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.btn-secondary:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}
