/* =========================
   GLOBAL RESET
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* =========================
   ROOT COLORS
========================= */
:root {
  --bg-main: #010101; /* Caviar - Deep near-black for main app canvas and navigation */
  --bg-card: #312E2E; /* Rein - Slightly lifted dark surface for sections and cards */
  --bg-input: #312E2E; /* Rein - Also for inputs */

  --border-soft: rgba(255, 255, 255, 0.05); /* Very subtle white border on dark */
  --border-focus: var(--accent-saddle); /* Saddle for focus borders */

  --text-main-headings: #E0E0E0; /* Light gray for headings */
  --text-body: #807D7D; /* Mustang - Warm muted gray-brown for body text and secondary info */
  --text-white: #FFFFFF; /* Pure white for contrast on dark sections, where applicable */

  --accent-saddle: #5C5551; /* Saddle - Main accent, emphasis, progress indicators */
  
  --danger: #9A5A34; /* Rust/brown for warning states, as specified by user. */
  --highlight-reward: #C6955F; /* Warm sand/tan for reward highlights */
}

/* =========================
   BODY & CONTAINER
========================= */
body {
  background: linear-gradient(to bottom, #2B2A29, #3A3735); /* Gradient */
  color: var(--text-body); /* Mustang */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.container {
  width: 100%;
  max-width: 420px;
  animation: fadeIn 0.35s ease;
}

/* Style for Policy Pages */
.policy-container {
  width: 100%;
  max-width: 800px; /* Increased max-width for better readability of long text */
  margin: 0 auto; /* Center the container */
  padding: 20px; /* Add some padding inside the container */
  animation: fadeIn 0.35s ease;
}

/* Specific styling for content within .policy-container */
.policy-container p, .policy-container ul {
  margin-bottom: 1em; /* Add space below paragraphs and lists */
  line-height: 1.6; /* Improve line spacing for readability */
}

.policy-container h1 {
  font-size: 2em; /* Adjust heading size */
  margin-bottom: 0.8em;
  text-align: center; /* Center policy headings */
}

.policy-container h2 {
  font-size: 1.5em; /* Adjust heading size */
  margin-top: 1.5em; /* Space above subheadings */
  margin-bottom: 0.7em;
}

.policy-container ul {
  padding-left: 20px; /* Indent list items */
}

.policy-container li {
  margin-bottom: 0.5em; /* Space between list items */
}



/* =========================
   HEADINGS
========================= */
h1, h2, h3 {
  color: var(--text-main-headings); /* Shadow */
  font-weight: 600;
  letter-spacing: 0.4px;
}

h1 {
  text-align: center;
  margin-bottom: 18px;
}

h2 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

h3 {
  font-size: 1rem;
}

/* =========================
   FADE ANIMATION
========================= */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* =========================
   BUTTONS
========================= */
button {
  background: var(--accent-saddle); /* Saddle */
  border: none;
  color: var(--text-white); /* White text */
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(92, 85, 81, 0.35); /* Saddle shadow */
}

button:active {
  transform: scale(0.98);
}

button.danger {
  background: var(--danger); /* Rust/brown */
}

/* =========================
   INPUTS & SELECT
========================= */
input,
select {
  width: 100%;
  background: var(--bg-input); /* Rein */
  border: 1px solid var(--border-soft);
  color: var(--text-main-headings); /* Shadow */
  padding: 11px 12px;
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder {
  color: var(--text-body); /* Mustang */
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--border-focus); /* Saddle */
  box-shadow: 0 0 0 3px rgba(92, 85, 81, 0.3); /* Saddle shadow */
}

/* Style for date input */
.date-input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background-color: var(--bg-input);
  color: var(--text-main-headings);
  font-size: 0.95rem;
  box-sizing: border-box; /* Ensure padding doesn't increase width */
  appearance: none; /* Remove default browser styling */
}

/* For better appearance in some browsers */
.date-input::-webkit-calendar-picker-indicator {
  filter: invert(1); /* Invert color for dark theme */
  cursor: pointer;
}

/* =========================
   DROPDOWN FIX (CRITICAL)
========================= */
select option,
select optgroup {
  background: var(--bg-card); /* Rein */
  color: var(--text-body); /* Mustang */
}

/* =========================
   CUSTOM SPLIT BOX
========================= */
.custom-box {
  background: var(--bg-card); /* Rein */
  border: 1px solid var(--border-soft);
  padding: 15px;
  border-radius: 14px;
  margin-top: 20px;
  animation: fadeIn 0.3s ease;
}

/* =========================
   CUSTOM ACTIONS BOX
========================= */
.custom-actions {
  margin-top: 15px;
  background: var(--bg-card); /* Rein */
  border: 1px solid var(--border-soft);
  padding: 12px;
  border-radius: 14px;
}

.custom-actions button {
  width: 100%;
  margin-bottom: 8px;
}

/* =========================
   DAY LIST (PAGE 2)
========================= */
.day-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.day-card {
  flex: 1;
  background: var(--bg-card); /* Rein */
  border: 1px solid var(--border-soft);
  padding: 12px;
  border-radius: 14px;
  margin-right: 10px;
  cursor: default;
  animation: fadeIn 0.25s ease;
}

.day-card h3 {
  margin-bottom: 6px;
  cursor: pointer;
}

.day-card p {
  color: var(--text-body); /* Mustang */
  font-size: 0.9rem;
}

/* =========================
   REST CHECKBOX
========================= */

.rest-box { 
  color: var(--text-body); /* Mustang */
  display: flex;
  align-items: center;
  font-size: 0.95rem;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-saddle); /* Saddle */
  cursor: pointer;
  transition: transform 0.15s ease;
}

input[type="checkbox"]:checked {
  transform: scale(1.1);
}

/* =========================
   CUSTOM GYM CHECKBOX
========================= */
.gym-checkbox-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-body); /* Mustang */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default checkbox */
.gym-checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.gym-checkbox {
  position: relative;
  height: 22px;
  width: 22px;
  background-color: var(--bg-input); /* Rein */
  border: 1px solid var(--border-soft);
  border-radius: 5px;
  margin-right: 10px;
  transition: background-color 0.2s;
}

/* On mouse-over, add a grey background color */
.gym-checkbox-container:hover input ~ .gym-checkbox {
  background-color: rgba(92, 85, 81, 0.1); /* Subtle Saddle */
}

/* When the checkbox is checked, add a bright purple background */
.gym-checkbox-container input:checked ~ .gym-checkbox {
  background-color: var(--accent-saddle); /* Saddle */
  border-color: var(--accent-saddle); /* Saddle */
}

/* Create the checkmark/indicator (hidden when not checked) */
.gym-checkbox:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.gym-checkbox-container input:checked ~ .gym-checkbox:after {
  display: block;
}

/* Style the checkmark/indicator */
.gym-checkbox-container .gym-checkbox:after {
  left: 7px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid var(--text-white); /* White checkmark */
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.gym-checkbox-container .done-text {
    color: var(--text-body); /* Mustang */
    font-weight: 500;
}


/* =========================
   EXERCISES (PAGE 3)
========================= */
.exercise-row {
  background: var(--bg-card); /* Rein */
  border: 1px solid var(--border-soft);
  padding: 12px;
  border-radius: 14px;
  margin-bottom: 12px;
  animation: fadeIn 0.25s ease;
}

.action-row {
  display: flex;
  justify-content: center;
  gap: 10px; /* Space between buttons */
  margin-top: 15px; /* Add some top margin for spacing */
}

.log-set-btn {
  flex-grow: 1; /* Allow buttons to grow and take equal space */
  padding: 12px; /* Ensure consistent padding */
  text-align: center;
}

.action-row {
  display: flex;
  justify-content: center;
  gap: 10px; /* Space between buttons */
  margin-top: 15px; /* Add some top margin for spacing */
}

.log-set-btn {
  flex-grow: 1; /* Allow buttons to grow and take equal space */
  padding: 12px; /* Ensure consistent padding */
  text-align: center;
}

/* --- Styles for Compact Layout --- */
.exercise-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.exercise-row-top .input-wrapper {
  flex-grow: 1;
  margin-right: 10px;
  margin-bottom: 0; /* Override default margin */
}

.exercise-row-top .gym-checkbox-container {
  flex-shrink: 0;
  margin-bottom: 0; /* Override default margin */
}

.exercise-row-stats {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.exercise-row-stats .input-wrapper {
  flex: 1;
  min-width: 0;
  margin-bottom: 0; /* Override default margin */
}

.delete-exercise-btn {
  display: block; /* To allow margin auto to work */
  margin: 15px auto 0 auto;
  padding: 8px 12px;
  font-size: 0.9rem;
  border-radius: 8px;
  width: 150px;
  position: relative;
  overflow: hidden;
  z-index: 1; /* Ensure text is above the pseudo-element */
  color: white; /* Ensure text is white */
}

.delete-exercise-btn::before,
#resetWeekBtn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.2); /* Darker fill color */
  width: 0;
  z-index: -1;
}

.delete-exercise-btn.deleting::before,
#resetWeekBtn.deleting::before {
  width: 100%;
  transition: width 2s linear;
}

/* =========================
   BACK BUTTON
========================= */
#backBtn {
  position: fixed;
  top: 70px; /* Default for desktop */
  right: 18px;

  background: var(--bg-card); /* Rein */
  border: 1px solid var(--border-soft);
  color: var(--text-main-headings); /* Shadow */

  padding: 6px 10px;
  border-radius: 10px;

  font-size: 0.9rem;
  cursor: pointer;

  z-index: 1000;
  transition: border 0.2s ease, background 0.2s ease, top 0.2s ease;
}

#backBtn:hover {
  border-color: var(--accent-saddle); /* Saddle */
  background: var(--bg-card); /* Rein */
}

@media (max-width: 768px) {
  #backBtn {
    top: 100px; /* Adjusted for taller mobile navbar */
  }
}

/* =========================
   SAVE / ADD BUTTONS
========================= */
#resetWeekBtn,
#addExerciseBtn,
#saveDayBtn,
#saveWeek,
#finishExerciseBtn {
  width: 100%;
  margin-top: 12px;
}

/* =========================
   SCROLLBAR (OPTIONAL POLISH)
========================= */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-thumb {
  background: var(--accent-saddle); /* Saddle */
  border-radius: 10px;
}

/* Progress Bar */
.progress-container {
  margin: 10px 0 20px;
}

.progress-bar {
  width: 100%;
  height: 12px; /* bigger */
  background: var(--bg-input); /* Rein */
  border-radius: 10px;
  overflow: hidden;
}

#progressFill {
  height: 100%;
  width: 0%;
  background: var(--accent-saddle); /* Saddle */
  transition: width 0.4s ease;
}

#progressText {
  font-size: 13px;
  margin-bottom: 6px;
  opacity: 0.85;
  letter-spacing: 0.5px;
  color: var(--text-body); /* Mustang */
}


/* Completed exercise */
.exercise-row.completed {
  opacity: 1;
  color: var(--text-body); /* Mustang */
}

.exercise-row.completed input,
.exercise-row.completed select {
  text-decoration: line-through;
}

/* Reset button */
#resetWeekBtn {
  margin-top: 20px;
  background: var(--bg-card); /* Rein */
  border: 1px solid var(--border-soft);
  color: var(--text-body); /* Mustang */
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

#resetWeekBtn:hover {
  background: var(--danger); /* Rust/brown */
  border-color: var(--danger); /* Rust/brown */
  color: var(--text-white); /* White */
}

/* ===== NAVBAR ===== */
.navbar {
  width: 100%;
  background: var(--bg-main); /* Caviar */
  border-bottom: 1px solid var(--border-soft); /* Subtle border */
  z-index: 1010; /* Ensure navbar is above back button */
}

/* MAIN BAR */
.navbar-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */
.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-white); /* White */
  text-decoration: none; /* Remove underline */
}

/* DESKTOP LINKS */
.nav-links {
  display: flex;
  gap: 22px;
}

.nav-links a {
  color: var(--text-body); /* Mustang */
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-saddle); /* Saddle */
}

/* HAMBURGER */
.nav-toggle {
  display: none;
  font-size: 22px;
  background: none;
  border: none;
  color: var(--text-main-headings); /* Shadow */
  cursor: pointer;
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-main); /* Caviar */
  display: flex; /* Keep flex for centering items */
  flex-direction: column;
  justify-content: center; /* Center items vertically */
  align-items: center; /* Center items horizontally */
  z-index: 1001; /* Ensure it's above other content */
  opacity: 0; /* Start invisible */
  visibility: hidden; /* Hide from screen readers */
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out; /* Smooth transition */
}

.mobile-menu.show {
  opacity: 1; /* Fade in */
  visibility: visible; /* Make visible */
}

.mobile-menu a {
  padding: 20px 24px; /* Increased padding for better touch */
  color: var(--text-body); /* Mustang */
  text-decoration: none;
  text-align: center; /* Center text */
  width: 100%; /* Make links take full width */
  font-size: 1.2rem; /* Larger font size */
}

.mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.05); /* Subtle white hover */
  color: var(--accent-saddle); /* Saddle */
}

/* =========================
   CLOSE BUTTON FOR MOBILE MENU
========================= */
.close-nav-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 2.5rem; /* Larger for better touch target */
  color: var(--text-main-headings); /* Shadow */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 10px; /* Add some horizontal padding */
  line-height: 1; /* Adjust line height for better centering of X */
}

.close-nav-btn:hover {
    color: var(--danger); /* Rust/brown */
    transform: none; /* Remove button hover effect */
    box-shadow: none; /* Remove button hover effect */
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .mobile-menu.show {
    display: flex;
  }
}

.app-wrapper {
  display: flex;
  justify-content: center;
  padding: 30px 15px;
  flex-grow: 1;
}

.about-wrapper, .article-wrapper, .blog-wrapper, .contact-wrapper, .page-wrapper {
    flex-grow: 1;
}

.search-results {
    position: absolute;
    width: 100%;
    max-width: 380px; /* Match container width approx. */
    background: var(--bg-card); /* Rein */
    border: 1px solid var(--border-soft);
    border-radius: 0 0 10px 10px;
    margin-top: -1px; /* Overlap with input bottom border */
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    display: none; /* Hidden by default */
}

.search-result-item {
    padding: 10px 15px;
    cursor: pointer;
    color: var(--text-body); /* Mustang */
}

.search-result-item:hover {
    background: rgba(92, 85, 81, 0.1); /* Subtle Saddle */
}


/* =========================
   CONSISTENCY SECTION
========================= */
.consistency-section {
}

.consistency-section .primary-btn {
    width: 100%;
    margin-top: 20px;
}

.card {
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-card); /* Rein */
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    text-align: left;
}

.consistency-section .card h2 {
    margin-bottom: 15px;
    text-align: center;
}

.consistency-bar-container {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.consistency-bar {
    flex: 1;
    height: 15px;
    background: var(--bg-input); /* Rein */
    border-radius: 999px;
    overflow: hidden;
    margin-right: 10px;
}

.consistency-fill {
    height: 100%;
    background: var(--accent-saddle); /* Saddle */
    width: 0%; /* Initial width */
    transition: width 0.5s ease-out;
}

#consistencyRate {
    font-weight: bold;
    color: var(--text-main-headings); /* Shadow */
}

/* Primary Button general style */
.primary-btn {
  background: var(--accent-saddle); /* Saddle */
  border: none;
  color: var(--text-white); /* White text */
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(92, 85, 81, 0.35); /* Saddle shadow */
}

.primary-btn:active {
  transform: scale(0.98);
}

/* =========================
   CONSISTENCY CALENDAR
========================= */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 days a week */
    gap: 5px;
    margin-top: 20px;
    font-size: 0.85rem;
    text-align: center;
}

.calendar-day-name {
    font-weight: bold;
    color: var(--text-body); /* Mustang */
    padding-bottom: 5px;
}

.calendar-day {
    padding: 8px 0;
    border-radius: 5px;
    background-color: var(--bg-input); /* Rein */
    color: var(--text-main-headings); /* Shadow */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 35px; /* Fixed height for days */
}

.calendar-day.blank {
    background-color: transparent;
    border: none;
}

.calendar-day.past-journey-start {
    background-color: rgba(128, 125, 125, 0.2); /* Softer Mustang */
    color: var(--text-body); /* Mustang */
    opacity: 1; /* Remove explicit opacity for consistency */
}

.calendar-day.future-day {
    background-color: rgba(128, 125, 125, 0.1); /* Even softer Mustang */
    color: var(--text-body); /* Mustang */
    opacity: 1; /* Remove explicit opacity */
}

.calendar-day.rest-day {
    background-color: rgba(58, 79, 99, 0.55); /* 65% opacity */
    font-weight: bold;
    color: #837f7f; /* Light gray text */
}

.calendar-day.completed-day {
    background: rgba(63, 95, 82, 0.55); /* 65% opacity */
    color: #837f7f; /* Light gray text */
    font-weight: bold;
}

.calendar-day.missed-day {
    background: rgba(90, 58, 58, 0.55); /* 65% opacity */
    color: #837f7f; /* Light gray text */
    font-weight: bold;
}

/* =========================
   CALENDAR NAVIGATION
========================= */
.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-main-headings); /* Shadow */
}

.calendar-nav #currentMonthDisplay {
    flex-grow: 1;
    text-align: center;
}

.secondary-btn {
    background: var(--bg-card); /* Rein */
    border: 1px solid var(--border-soft);
    color: var(--text-body); /* Mustang */
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.secondary-btn:hover {
    border-color: var(--accent-saddle); /* Saddle */
    transform: translateY(-1px);
}

.secondary-btn:active {
    transform: scale(0.98);
}
/* =========================
   NEW EXERCISE STYLES
========================= */
.weight-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.weight-input-wrapper input {
  flex-grow: 1; /* Input takes available space */
  margin-bottom: 0; /* Remove margin from input inside wrapper */
}

.unit-selector {
  flex-shrink: 0; /* Prevent selector from shrinking */
  width: auto; /* Auto width based on content */
  margin-bottom: 0;
  padding-right: 30px; /* Space for dropdown arrow */
}

.incrementer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-input);
  border-radius: 10px;
  padding: 5px;
  border: 1px solid var(--border-soft);
}

.incrementer-btn {
  background-color: var(--accent-saddle);
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex; /* Add flexbox for centering */
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
}

.incrementer-btn:hover {
  transform: none;
  box-shadow: none;
  background-color: #6c635e;
}


.incrementer-value {
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--text-main-headings);
  padding: 0 15px;
}
/* Make labels brighter and bold */
.input-wrapper span {
  font-weight: bold;
  color: var(--text-main-headings); /* This is #E0E0E0, a light gray */
}

#timer-display {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--bg-card);
  color: var(--text-white);
  padding: 10px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1020;
  display: none;
  font-size: 1.1rem;
  font-weight: 500;
  border: 1px solid var(--border-soft);
}
/* =========================
   FOOTER
========================= */
.footer {
  background: var(--bg-main);
  color: var(--text-body);
  padding: 20px 0;
  text-align: center;
  margin-top: 40px;
  border-top: 1px solid var(--border-soft);
}

.footer-links {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-body);
  text-decoration: none;
  margin: 0 10px;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--accent-saddle);
}

.footer-copyright {
  font-size: 12px;
}

/* =========================
   COOKIE OVERLAY
========================= */
#cookie-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black */
  z-index: 9999; /* Below the banner, above everything else */
  display: none; /* Hidden by default, shown by JS */
}

/* =========================
   COOKIE BANNER
========================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg-main);
  color: var(--text-white);
  padding: 15px 20px;
  display: none; /* Hidden by default, shown by JS */
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
  z-index: 10000; /* Ensure it's on top of everything */
}

.cookie-banner p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  max-width: 800px; /* Limit text width for readability */
}

.cookie-banner a {
  color: var(--accent-saddle);
  text-decoration: underline;
}

.cookie-banner a:hover {
  color: var(--text-white);
}

.cookie-banner button {
  flex-shrink: 0; /* Prevent button from shrinking */
  padding: 8px 15px;
  font-size: 14px;
  border-radius: 8px;
  background: var(--accent-saddle);
  color: var(--text-white);
  cursor: pointer;
  border: none;
  transition: background 0.2s ease;
}

.cookie-banner button:hover {
  background: #6c635e; /* Slightly darker saddle */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
  }
}
