/* THEMED CSS (replace your previous CSS with this) */

/* RESET */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* THEME VARIABLES */
:root{
  --accent: #cc4d04;         /* primary orange */
  --accent-dark: #993a03;    /* darker orange */
  --accent-ghost: rgba(204,77,4,0.06);
  --brand-grad: linear-gradient(180deg, var(--accent), var(--accent-dark));
  --text: #333;
  --muted: #666;
  --bg: #ffffff;
}

/* BASE BODY */
body {
  font-family: 'Segoe UI', sans-serif;
  background: var(--bg); /* white page background */
  color: var(--text);
  min-height: 100vh;
}

/* =============== AUTH PAGES =============== */
.auth-page {
  display: flex;
  justify-content: center;
  padding-top: 40px; /* space below fixed/sticky header */
  padding-bottom: 40px; /* extra spacing at bottom */
}

.auth-box {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.08);
  width: 350px;
}

.auth-box h2 { text-align: center; margin-bottom: 20px; }

.auth-box input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #e6e6e6;
  border-radius: 5px;
}

.auth-box button {
  width: 100%;
  background: var(--brand-grad);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 5px;
  cursor: pointer;
}

.auth-box button:hover { background: var(--accent-dark); }

.auth-box a {
  display: block;
  text-align: center;
  margin-top: 15px;
  color: var(--muted);
  text-decoration: none;
}

/* Flash Messages */
.message { text-align: center; margin-bottom: 15px; font-weight: bold; }
.message.error { color: red; }
.message.success { color: var(--accent); }

/* =============== NAVIGATION =============== */
.navbar {
  background: var(--brand-grad);
  color: #fff;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 100;
}

.logo { font-size: 18px; font-weight: bold; }

.nav-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  display: none;
  cursor: pointer;
}

/* Nav links (desktop) */
.nav-links { display: flex; gap: 20px; transition: all 0.3s ease; }

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 4px;
}

.nav-links a:hover { background: rgba(255,255,255,0.12); }

/* Mobile styles */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 15px;
    background: var(--accent-dark);
    width: 200px;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  }

  .nav-links.show {
    display: flex;
    animation: slideDown 0.3s ease forwards;
  }

  .nav-links a { padding: 10px; width: 100%; text-align: left; }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* =============== HERO SECTION =============== */
.home-hero {
  text-align: center;
  padding: 60px 20px;
  background: transparent; /* removed green background */
}

.home-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: #222;
}

.home-hero p {
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 25px;
  color: #555;
}

.cta-buttons a {
  display: inline-block;
  margin: 8px;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s ease;
}

.cta-buttons .primary {
  background: var(--brand-grad);
  color: white;
}
.cta-buttons .primary:hover { background: var(--accent-dark); }

.cta-buttons .secondary {
  background: #e9e9e9;
  color: #333;
}
.cta-buttons .secondary:hover { background: #d6d6d6; }

/* =============== FEATURE SECTION =============== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  padding: 40px 20px;
  background: #fff;
}

.feature-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  padding: 25px;
  text-align: center;
}

.feature-card h3 {
  color: var(--accent);
  margin-bottom: 10px;
}

.feature-card p {
  color: #666;
  font-size: 15px;
  line-height: 1.5;
}

/* =============== FOOTER =============== */
.footer {
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: #888;
  background: #fff; /* keep footer white since page background is white */
}

/* =============== RESPONSIVE =============== */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    background: var(--accent-dark);
    padding: 10px;
    border-radius: 5px;
  }

  .nav-links.show { display: flex; }

  .home-hero h1 { font-size: 28px; }

  .home-hero p { font-size: 16px; }
}

/* DASHBOARD NAVIGATION BAR */
.dashboard-nav {
  background: var(--brand-grad);
  color: #fff;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.dashboard-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  margin-left: 15px;
}

.dashboard-nav a:hover { text-decoration: underline; }

/* CONTAINER FOR DASHBOARD */
.container {
  max-width: 960px;
  margin: 40px auto;
  padding: 0 20px;
}

.container h1 { font-size: 28px; margin-bottom: 25px; }

/* CARD BOX FOR DASHBOARD */
.card {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 30px;
}

.card h2 { margin-bottom: 10px; font-size: 12px; color: #333; }

/* LINKS IN DASHBOARD */
ul.links { list-style: none; padding: 0; }

ul.links li { margin-bottom: 12px; }

ul.links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

ul.links a:hover { text-decoration: underline; }

.dashboard-header {
  background: var(--accent-dark);
  color: #fff;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.dashboard-header a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  margin-left: 15px;
}

.dashboard-header a:hover { text-decoration: underline; }

/* RESPONSIVE DASHBOARD NAV */
@media (max-width: 768px) {
  .dashboard-nav { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* CAPTCHA Slider */
.captcha-slider { margin: 20px 0; font-size: 14px; }

.captcha-slider input[type="range"] { width: 100%; }

#captcha-message {
  margin-top: 8px;
  color: var(--accent-dark);
  font-weight: bold;
  font-size: 13px;
}

/* CAPTCHA Slider Enhanced */
.captcha-slider { margin-top: 20px; }

.slider-label { font-size: 14px; margin-bottom: 8px; display: block; }

.slider-container {
  position: relative;
  height: 40px;
  background: #ddd;
  border-radius: 20px;
  overflow: hidden;
  user-select: none;
}

.slider-track {
  height: 100%;
  background: linear-gradient(90deg, rgba(204,77,4,0.08), rgba(153,58,3,0.06));
  position: relative;
  transition: background 0.3s ease;
}

.slider-knob {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: left 0.1s ease;
}

.slider-icon { font-size: 18px; color: #fff; }

.captcha-success {
  margin-top: 10px;
  font-size: 14px;
  color: var(--accent-dark);
  font-weight: bold;
}

/* Mobile friendly */
@media (max-width: 500px) {
  .slider-knob { width: 36px; height: 36px; }
  .slider-icon { font-size: 16px; }
}

/* NAV - final adjustments */
.navbar {
  padding: 15px 30px;
}

/* ticket-multi-stage theming */
.ticket-multi-stage {
  text-align: left;
  padding: 16px 24px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  margin-top: 20px;
  color: #222;
  max-width: 800px;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

.ticket-multi-stage h2 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--accent);
  font-weight: 700;
}

.ticket-multi-stage dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  margin: 0;
}

.ticket-multi-stage dt { font-weight: 600; color: #444; user-select: none; }
.ticket-multi-stage dd { margin: 0; color: #555; }

.ticket-multi-stage ul { margin: 12px 0 0 1.25rem; padding-left: 0; color: #555; }
.ticket-multi-stage ul li { margin-bottom: 6px; line-height: 1.4; }

.ticket-multi-stage .advance-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background: var(--brand-grad);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  user-select: none;
}

.ticket-multi-stage .advance-btn:hover,
.ticket-multi-stage .advance-btn:focus { background: var(--accent-dark); outline: none; }

/* Responsive Mobile Styles */
@media (max-width: 600px) {
  .ticket-multi-stage { padding: 12px 16px; max-width: 100%; }
  .ticket-multi-stage h2 { font-size: 1.1rem; }
  .ticket-multi-stage dl { grid-template-columns: 1fr; gap: 4px 0; }
  .ticket-multi-stage dt { font-weight: 700; margin-top: 12px; }
  .ticket-multi-stage dd { margin-left: 0; padding-left: 12px; }
  .ticket-multi-stage ul { margin-left: 1rem; font-size: 0.9rem; }
  .ticket-multi-stage .advance-btn { width: 100%; text-align: center; padding: 12px 0; font-size: 1rem; }
}
