/* ==========================================================================
   CSS Variables (Design System) - Easy to update!
   ========================================================================== */
:root {
  /* Light Mode Colors */
  --bg-color: #f0f3f5; /* Off-white background */
  --surface-color: #fcfcfc; /* White cards */
  --text-main: #1e293b; /* Near black */
  --text-muted: #64748b; /* Gray */
  --primary-muted: #625c50; /* Brown Gray */
  --secondary-muted: #475569; /* Slate */
  --accent-color: #953123; /* Brick/Red for buttons */
  --accent-hover: #953123;
  --notification-bg: #cde5f5;
  --notification-text: #063c58;
  
  /* Shadows & Borders */
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --card-hover-shadow: 0 4px 6px -1px rgba(0,0,0, 0.16), 0 2px 4px rgba(0,0,0, 0.1);
  --border-radius: 12px;

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;

--scroll-track: #c3e8ff ;
--scroll-thumb: #192852;
--scroll-thumbhover: #199bc3;
--footerbg: #112131;
--footerlinks: #7cc9e0;
--footerlinks-hover: #7ff7f9;
--login-hover: #f4bc23;
}



/* Dark Mode Overrides */

[data-theme="dark"] {
  :root {
    --bg-color: #0f172a; /* Deep dark blue/black */
    --surface-color: #1e293b; /* Dark gray cards */
    --text-main: #f1f5f9; /* Off-white text */
    --text-muted: #94a3b8; /* Light gray */
    --primary-muted: #3b82f6; /* Lighter blue for visibility */
    --secondary-muted: #64748b; 
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --notification-bg: #1e3a8a;
    --notification-text: #bae6fd;
    --accent-color: #f4bc23; /* Amber/Gold for buttons */
    --accent-hover: #f9ca29;
      
    --scroll-track: #180438 ;
    --scroll-thumb: #345573;
    --scroll-thumbhover: #f9ca29;
    --footerbg: #130621;
    --footerlinks:#f2b426;
    --footerlinks-hover: #f7b500;  
  }
}

/* ==========================================================================
   Base Styles & Scrollbar
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Styled Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--scroll-track);
}
::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--scroll-thumbhover);
}

/* ==========================================================================
   Layout Components
   ========================================================================== */
/* Top Notification Bar */
.notification-bar {
  background-color: var(--notification-bg);
  color: var(--notification-text);
  text-align: center;
  padding: 0.5rem;
  font-size: 0.9rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

/* Header & Navigation */
header {
  background-color: var(--surface-color);
  box-shadow: var(--card-shadow);
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-family: "Bodoni Moda", serif;
  font-size: 2rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 900;
  text-transform:none;
    
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--accent-color);
}

/* Main Content Area */
main {
  flex: 1;
  padding: 2rem 5%;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Cards */
.card {
  background-color: var(--surface-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease;
  margin-bottom: 1.5rem;
}

.card:hover {
  transform: translateY(-2px);
}

.card-stable {
  background-color: var(--surface-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: transform 1s;
  margin-bottom: 1.5rem;
}

.card-stable:hover {
 box-shadow:var(--card-hover-shadow);
 transition-duration:1s;
}


/* Forms & Inputs */
input[type="email"] {
  padding: 0.75rem;
  border: 1px solid var(--text-muted);
  border-radius: var(--border-radius);
  background-color: var(--bg-color);
  color: var(--text-main);
  width: 50%;
  max-width: 100px;
  transition-duration:3s;

}

input:focus {
    background-color: #1e293b;
    color:#7ff7f9;
    width:100%;
    max-width:200px;
    transition-duration:3s;
}

button {
  background-color: var(--accent-color);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.7s ease-in;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: -3px 3px 2px rgba(0,0,0,0.2);
  transition-duration:.7s;

}

button:hover {
  background-color: var(--accent-hover);
  transform:translateY(4px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.1);
    transition-duration:.7s;
}

/* Footer */
footer {
  background-color: var(--footerbg);
  text-align: center;
  padding: 2rem 5%;
  border-top: 1px solid var(--text-muted);
  margin-top: auto;
  color: #ffcb55;
}

.footer-links {
  margin-top: 1rem;
}

.footer-links a {
  color: var(--footerlinks);
  text-decoration: none;
  margin: 0 10px;
  font-size: 0.85rem;
  transition-duration:1s ease;
  cursor: pointer;
  opacity:.7;

}

.footer-links a:hover {
    color: var(--footerlinks-hover);
    transform:translateY(2px);
    transition-duration:1s ease;
    cursor: pointer;
    opacity:1;
}

/* Discrete Login (Hidden in plain sight) */
.discrete-login {
  color: var(--text-muted);
  opacity: 0.45;
  text-decoration: none;
  font-size: 1rem;
  cursor: not-allowed;
  transition-duration:1s ease;
}

.discrete-login:hover {
  color:var(--login-hover);
  opacity: 1;
  transform:translateY(2px);
  transition-duration:1s ease;
  cursor: not-allowed;

}


/* ==========================================================================
   Responsive Design & Mobile Menu
   ========================================================================== */
#mobile-menu-btn {
  display: none;
  cursor: pointer;
  user-select: none;
  color: var(--primary-muted);
  font-size: 2rem;
}

@media (max-width: 768px) {
  #mobile-menu-btn {
    display: block; /* Show the hamburger icon on mobile */
  }
  
  header {
    flex-wrap: wrap; /* Allows the menu to drop below the logo */
    position: relative;
  }

  nav {
    width: 100%;
  }

  #nav-links {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    width: 100%;
    background-color: var(--surface-color);
    position: absolute;
    top: 100%;
    left: 0;
    padding: 1rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  }

  #nav-links.active {
    display: flex; /* Displayed when the .active class is added via JS */
  }

  #nav-links li {
    text-align: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--bg-color);
  }

  #nav-links li:last-child {
    border-bottom: none;
  }
}




/* ==========================================================================
   Sidebar & Two-Column Layout
   ========================================================================== */
.page-container {
  display: flex;
  gap: 2rem;
  align-items: flex-start; /* Prevents sidebar from stretching to full height */
}

.sidebar {
  width: 250px;
  flex-shrink: 0;
  background-color: var(--surface-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  position: sticky;
  top: 90px; /* Keeps it in view when scrolling, accounting for the header */
}

.sidebar h3 {
  color: var(--primary-muted);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--bg-color);
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  margin-bottom: 0.75rem;
}

.sidebar a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar a:hover {
  color: var(--accent-color);
}

.main-content {
  flex-grow: 1;
}

/* Responsive adjustment for tablets and phones */
@media (max-width: 900px) {
  .page-container {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    position: static; /* Removes sticky behavior on small screens */
  }
}