/* ========== ROOT THEME COLORS ========== */
:root {
  --bg-body: #0d0f0c;
  --bg-header: #0d0f0c;
  --bg-footer: #121915;
  --text: #e0ffe0;
  --text-muted: rgba(200,255,200,0.5);
  --accent: #45D034;
  --accent-glow: #66ff99;
  --card-bg: #1a1f1a;
  --alert-success: #173d1a;
  --alert-warning: #3d3b17;
  --alert-error: #3d1717;
}

/* ========== RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========== GLOBAL ELEMENT STYLING ========== */
html {
  font-family: 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background: var(--bg-body);
  color: var(--text);
}

body {
  min-height: 100vh;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color .2s ease;
}
a:hover {
  color: var(--accent-glow);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
  margin-bottom: .75rem;
}

p {
  margin-bottom: 1rem;
}

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
  font: inherit;
  color: #000;
  background: var(--accent);
  border: none;
  border-radius: 6px;
  padding: .75rem 1.25rem;
  cursor: pointer;
  transition: background .3s ease, box-shadow .3s ease;
}
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover {
  background: var(--accent-glow);
  box-shadow: 0 0 8px var(--accent-glow);
}

input,
textarea,
select {
  font: inherit;
  color: var(--text);
  background: var(--bg-footer);
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: .75rem;
  width: 100%;
  margin-bottom: 1rem;
  transition: border .3s ease, box-shadow .3s ease;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent-glow);
  box-shadow: 0 0 5px var(--accent-glow);
}

fieldset {
  border: 1px solid var(--accent);
  padding: 1rem;
  margin-bottom: 1.5rem;
}
legend {
  padding: 0 .5rem;
  font-weight: bold;
}

/* ========== CONTAINER ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* ========== HEADER ========== */
.header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--accent);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .5rem 0;
}

.logo {
  height: 36px;
}

/* ========== TOGGLE BUTTON (MOBILE) ========== */
.menu-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 1.75rem;
  cursor: pointer;
  z-index: 1001;
}

/* ========== NAVIGATION (MOBILE-FIRST) ========== */
.nav-wrapper {
  position: fixed;
  top: 0;
  left: -100%;
  width: 75%;
  height: 100vh;
  background: var(--bg-footer);
  display: flex;
  flex-direction: column;
  padding: 4rem 1.5rem;
  gap: 1rem;
  transition: left .3s ease;
  z-index: 1000;
}
.nav-wrapper.active {
  left: 0;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.nav a {
  font-size: 1.1rem;
  font-weight: 500;
}
.nav a.active {
  color: var(--accent-glow);
  border-left: 4px solid var(--accent-glow);
  padding-left: .75rem;
}

/* ========== DESKTOP OVERRIDE ========== */
@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }
  .nav-wrapper {
    position: static;
    left: 0 !important;
    width: auto;
    height: auto;
    background: transparent;
    display: flex;
    flex-direction: row;
    gap: 2rem;
    padding: 0;
    transition: none;
  }
  .nav {
    flex-direction: row;
    gap: 2rem;
  }
  .nav a.active {
    border-left: none;
    border-bottom: 2px solid var(--accent-glow);
    padding-left: 0;
    padding-bottom: .25rem;
  }
}

/* ========== MAIN CONTENT ========== */
.main {
  padding: 2rem 1rem;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--accent);
  color: var(--text-muted);
}
.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  text-align: center;
  padding: 1rem 0;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-links a:hover {
  color: var(--accent-glow);
}

/* FOOTER DESKTOP */
@media (min-width: 769px) {
  .footer .container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ========== CARD COMPONENT ========== */
.card {
  background: var(--card-bg);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 8px rgba(102,255,153,0.1);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(102,255,153,0.2);
}

/* ========== ALERT COMPONENTS ========== */
.alert {
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-weight: 500;
  animation: fadeIn .5s forwards;
  opacity: 0;
}
@keyframes fadeIn { to { opacity: 1; } }
.alert-success {
  background: var(--alert-success);
  color: #a8f5b0;
  border: 1px solid var(--accent);
}
.alert-warning {
  background: var(--alert-warning);
  color: #fff6b3;
  border: 1px solid var(--accent);
}
.alert-error {
  background: var(--alert-error);
  color: #ffb3b3;
  border: 1px solid var(--accent);
}
