* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.hidden {
    display: none;
}

/* Color Palette from DigiStood Logo */
:root {
  --navy: #1E1E7A;        /* Deep indigo/navy from laptop body */
  --teal: #00BCD4;        /* Vibrant teal/cyan from figure swoosh */
  --coral: #FF6B6B;       /* Coral/salmon from accent sparks */
  --white: #ffffff;
  --light-gray: #f4f4f4;
  --header-height: 140px;
}

/* Ensure content doesn't hide behind the fixed menu */
body {
  margin: 0;
  padding-top: var(--header-height);
}

/* ─── Menu Bar ─────────────────────────────────────────── */

#menu-bar-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
  padding: 15px 0;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  border-bottom: 4px solid var(--teal); /* teal accent instead of lime */
}

#menu-bar-container h1 {
  color: var(--navy);
  margin: 0 0 15px 0;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#menu-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 20px;
}

#menu-bar button {
  background-color: var(--navy);
  color: var(--white);
  border: 2px solid var(--navy);
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

/* Hover — teal from the figure swoosh */
#menu-bar button:hover {
  background-color: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

/* Active/focused — coral from the sparkle accents */
#menu-bar button:active,
#menu-bar button:focus {
  background-color: var(--coral);
  border-color: var(--coral);
  color: var(--white);
  outline: none;
}

@media (max-width: 768px) {
  :root {
    --header-height: 220px;
  }

  #menu-bar {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  #menu-bar button {
    width: 90%;
    max-width: 350px;
  }
}

/* ─── Sidebar ───────────────────────────────────────────── */

#middle-basic-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background-color: var(--navy);  /* Deep indigo from logo */
    color: white;
    overflow-y: auto;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Heading — teal from figure swoosh */
#middle-basic-menu h2 {
    font-size: 1.2rem;
    color: var(--teal);
    border-bottom: 1px solid rgba(0, 188, 212, 0.25);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

#middle-basic-menu ul {
    list-style: none;
    padding-left: 15px;
    margin: 5px 0;
}

#middle-basic-menu li {
    margin: 4px 0;
}

#middle-basic-menu button {
    width: 100%;
    text-align: left;
    background: transparent;
    color: #e0e0e0;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    border-radius: 4px;
    outline: none;
}

/* Hover — soft teal tint */
#middle-basic-menu button:hover {
    background-color: rgba(0, 188, 212, 0.12);
    color: var(--teal);
}

/* Active / focus — solid teal with navy text */
#middle-basic-menu button:focus {
    background-color: var(--teal);
    color: var(--navy);
    font-weight: bold;
}

/* Close button — coral accent */
#middle-basic-close-button {
    margin-top: 20px;
    border: 1px solid var(--coral) !important;
    color: var(--coral) !important;
    text-align: center !important;
}

#middle-basic-close-button:hover {
    background-color: var(--coral) !important;
    color: var(--white) !important;
}

.hidden {
    display: none !important;
}

/* Scrollbar — teal thumb */
#middle-basic-menu::-webkit-scrollbar {
    width: 5px;
}
#middle-basic-menu::-webkit-scrollbar-thumb {
    background: var(--teal);
    border-radius: 10px;
}