/* === Global Styles === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* === Custom Color Palette === */
:root {
  --primary: #78C1F3;         /* Bold blue for main actions */
  --primary-light: #9BE8D8;   /* Teal for secondary actions */
  --primary-bg: #E2F6CA;      /* Card backgrounds */
  --background: #F8FDCF;      /* Page background */
  --success: #3A7D7D;         /* Dark teal for success */
  --cta: #FF6363;             /* Bold red for call-to-action */
  --warning: #FFFDA2;         /* Soft yellow for warnings */
  --error: #FF6363;           /* Red for errors */
  --highlight: #FFAB76;       /* Orange for highlights */
  --text-dark: #222C36;       /* For headings and important text */
}

/* === Sticky Header === */
.sticky-header {
  background: var(--primary-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid var(--primary-light);
}

.header-content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2.8rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: hidden;
}

.navbar-logout {
  position: absolute;
  right: 2.5rem;
}

.btn-logout {
  background-color: var(--warning);
  color: #721c24;
  border: 1px solid var(--error);
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-logout:hover {
  background-color: var(--error);
  border-color: var(--error);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sticky-header .main-title {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
  text-align: center;
}

/* === Body Styles === */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--background);
  min-height: 100vh;
  color: #2c3e50;
  position: relative;
  overflow-x: hidden;
}

body.has-collapsible-sidebar {
  padding-left: 0;
  transition: padding-left 0.3s ease;
}

body.sidebar-collapsed {
  padding-left: 0;
}

/* === Collapsible Sidebar === */
.sidebar {
  position: fixed;
  top: 0;
  left: -300px; /* Hidden by default */
  width: 300px;
  height: 100vh;
  background: #ffffff;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  transition: left 0.3s ease;
  z-index: 999;
  border-right: 1px solid var(--primary-light);
}
body.sidebar-is-open .sidebar {
  left: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--primary-light);
  background: var(--primary-bg);
}

.sidebar-header h3 {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c3e50;
}

.sidebar-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #6c757d;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s, transform 0.2s;
}

.sidebar-close:hover {
  background-color: var(--primary-bg);
  transform: rotate(90deg);
}

/* Sidebar Open Button */
.sidebar-open {
  position: fixed;
  top: 20px;
  left: 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(29, 211, 176, 0.3);
  z-index: 998;
  display: block;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
body.sidebar-is-open .sidebar-open {
  display: none;
}

body.has-collapsible-sidebar {
  padding-left: 0;
  transition: padding-left 0.3s ease;
}
/* body.sidebar-is-open.has-collapsible-sidebar {
  padding-left: 300px;
} */

.main-content {
  transition: margin-left 0.3s ease;
  margin-left: 0;
}
/* body.sidebar-is-open .main-content {
  margin-left: 300px;
} */

.sidebar-nav {
  padding: 1rem 0;
}

.sidebar-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-nav ul li {
  margin: 0;
}

.sidebar-nav ul li a {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  color: #495057;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s;
  border-left: 3px solid transparent;
}

.sidebar-nav ul li a:hover {
  background-color: var(--primary-bg);
  color: #2c3e50;
  border-left-color: var(--primary);
}

.sidebar-nav ul li a i {
  margin-right: 0.75rem;
  width: 16px;
  text-align: center;
}

.sidebar-nav ul li button {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  color: #495057;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  border-left: 3px solid transparent;
}

.sidebar-nav ul li button:hover {
  background-color: var(--warning);
  color: #2c3e50;
  border-left-color: var(--error);
}

.sidebar-nav ul li button i {
  margin-right: 0.75rem;
  width: 16px;
  text-align: center;
}

/* === Main Content === */
.main-content {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* === Content Cards === */
.content-card {
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-bg) 100%);
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(29, 211, 176, 0.15);
  padding: 2.5rem;
  margin-bottom: 2rem;
  border: 2px solid var(--primary-light);
  position: relative;
  overflow: hidden;
}

.content-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--success), var(--highlight));
}

.content-card h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #2c3e50;
  margin-top: 0;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
}

/* === Initiatives Section === */
.initiatives h3 {
  font-size: 1.4rem;
  font-weight: 500;
  color: #34495e;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  border-top: 1px solid #e0e0e0;
  padding-top: 2rem;
}

.initiative-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.initiative-item {
  text-align: center;
  padding: 1.5rem;
  border-radius: 8px;
  transition: background-color 0.3s, transform 0.3s;
}

.initiative-item:hover {
  background-color: var(--primary-bg);
  transform: translateY(-5px);
}

.initiative-item i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.initiative-item h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.initiative-item p {
  font-size: 0.9rem;
  color: #666;
}

/* Flowchart Section */
.flowchart-container {
  text-align: center;
  padding: 40px 20px;
  animation: fadeIn 1.2s ease-in-out;
}

.flowchart-image {
  max-width: 50%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Keyframe animation for fade-in effect */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Explorers Section === */
.explorers-section {
  text-align: center;
  margin: 4rem 0;
}

.explorers-section h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
}

.explorer-buttons {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.explorer-btn {
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-bg) 100%);
  border: 2px solid var(--primary-light);
  border-radius: 50%;
  width: 240px;
  height: 240px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 8px 25px rgba(29, 211, 176, 0.15);
  transition: all 0.3s ease;
  color: #2c3e50;
  position: relative;
  overflow: hidden;
}

.explorer-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--success), var(--highlight));
}

.explorer-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(29, 211, 176, 0.25);
  border-color: var(--primary);
}

.explorer-btn .btn-icon i {
  font-size: 3rem;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
  color: var(--primary);
}

.explorer-btn.user-btn:hover .btn-icon i {
  color: var(--primary);
  transform: scale(1.1);
}

.explorer-btn.recycler-btn:hover .btn-icon i {
  color: var(--success);
  transform: scale(1.1);
}

.explorer-btn .btn-content h3 {
  font-size: 1.4rem;
  margin: 0.5rem 0;
}

.explorer-btn .btn-content p {
  font-size: 0.9rem;
  color: #6c757d;
  margin: 0;
}

/* === Testimonials === */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.testimonial {
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-bg) 100%);
  border: 2px solid var(--primary-light);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 25px rgba(29, 211, 176, 0.15);
  position: relative;
  overflow: hidden;
}

.testimonial::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--success), var(--highlight));
}

.testimonial-content p {
  font-style: italic;
  color: #495057;
  line-height: 1.7;
  margin: 0 0 1.5rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.testimonial-content p::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -0.5rem;
  font-size: 2.5rem;
  color: var(--primary);
  opacity: 0.3;
}

.testimonial-author {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--primary-light);
  padding-top: 1.5rem;
}

.author-avatar i {
  font-size: 2.5rem;
  color: #adb5bd;
  margin-right: 1rem;
}

.author-info h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.author-info span {
  font-size: 0.85rem;
  color: #6c757d;
}

/* === Footer === */
.footer {
  background: #ffffff;
  color: #6c757d;
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.9rem;
  border-top: 1px solid #e0e0e0;
}

.main-content + .footer {
  margin-top: auto;
}

/* === Responsive Design === */
@media (max-width: 900px) {
  /* --- INDEX PAGE SPECIFIC RESPONSIVE FIXES --- */

  /* 1. Core Layout for Index Page */
  body.has-collapsible-sidebar,
  /* body.sidebar-is-open.has-collapsible-sidebar {
    padding-left: 0;
  } */
  .main-content,
  .page-container {
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
  }

  /* Handle Sidebar state via CSS for reliability */
  .sidebar {
    left: -300px; /* Hidden by default on mobile */
    transition: left 0.3s ease;
  }
  body.sidebar-is-open .sidebar {
    left: 0; /* Show sidebar when body class is present */
  }
  .sidebar-open {
    display: block; /* Show hamburger button on mobile */
    opacity: 1;
    transform: scale(1);
  }
  body.sidebar-is-open .sidebar-open {
    display: none; /* Hide hamburger when sidebar is open */
  }

  /* 2. Header */
  .sticky-header .main-title {
    font-size: 1.5rem;
    text-align: center;
  }
  .header-content {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
  }

  /* 3. "Our Mission" & "Initiatives" Grid */
  .initiative-grid {
    grid-template-columns: 1fr; /* Stack to single column */
    gap: 1rem;
  }

  /* 4. "How it Works" Flowchart */
  .flowchart-image {
      max-width: 90%; /* Make flowchart larger on mobile */
  }

  /* 5. "Choose Your Path" Buttons */
  .explorers-section h2 {
    font-size: 1.25rem;
  }
  .explorer-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  .explorer-btn {
    width: 100%;
  }

  /* 6. "Testimonials" Section */
  .testimonials {
    grid-template-columns: 1fr; /* Stack testimonials */
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .main-content,
  .page-container {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
  }
  body {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* === Auth Page Styles === */
.auth-body {
  padding: 0;
  background-color: #eef1f4;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.auth-container {
  width: 100%;
  max-width: 450px;
  padding: 1.5rem;
  margin: auto; /* Center vertically and horizontally */
}

.auth-card {
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-bg) 100%);
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(29, 211, 176, 0.15);
  padding: 2.5rem 3rem;
  border: 2px solid var(--primary-light);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--success), var(--highlight));
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  color: #2c3e50;
  text-decoration: none;
  margin-bottom: 1rem;
}

.auth-logo i {
  font-size: 2.2rem;
  color: var(--success);
}

.auth-logo h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.auth-header p {
  color: #6c757d;
  font-size: 1rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f1f3f5;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.auth-tab-link {
  background: transparent;
  border: none;
  padding: 0.8rem;
  font-size: 1rem;
  font-weight: 600;
  color: #6c757d;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.auth-tab-link.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.auth-tab-content {
  display: none;
}

.auth-tab-content.active {
  display: block;
}

.auth-form .form-group {
  margin-bottom: 1.5rem;
}

.auth-form label {
  display: block;
  font-weight: 500;
  color: #495057;
  margin-bottom: 0.5rem;
}

.auth-form input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 211, 176, 0.25);
}

.btn-submit {
  width: 100%;
  padding: 0.9rem;
  font-size: 1.1rem;
  font-weight: 600;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-submit:hover {
  background: var(--primary-light);
}

.social-auth .separator {
  text-align: center;
  margin: 2rem 0;
  color: #adb5bd;
  font-weight: 500;
  position: relative;
}

.social-auth .separator::before,
.social-auth .separator::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: #ced4da;
}

.social-auth .separator::before {
  left: 0;
}

.social-auth .separator::after {
  right: 0;
}

.btn-social {
  width: 100%;
  padding: 0.8rem;
  font-size: 1rem;
  font-weight: 500;
  background: #ffffff;
  color: #495057;
  border: 1px solid #ced4da;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.btn-social:hover {
  background-color: var(--primary-bg);
  border-color: var(--primary-light);
}

.btn-social i {
  font-size: 1.2rem;
  color: #db4437;
}

.auth-footer {
  text-align: center;
  margin-top: 2rem;
}

.auth-footer a {
  color: #6c757d;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.auth-footer a:hover {
  color: var(--primary);
}

.auth-footer a i {
  margin-right: 0.5rem;
}

/* === Page Navbar (for Profile, etc.) === */
.page-navbar {
  background: var(--primary-bg);
  padding: 1rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-bottom: 1px solid var(--primary-light);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.7rem 2.5rem;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  text-decoration: none;
}

.navbar-links {
  margin-left: 20rem;
}

.navbar-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.navbar-links a {
  color: #495057;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding-bottom: 0.5rem;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.navbar-links a:hover::after {
  width: 100%;
}

/* === Profile Page Styles === */
.profile-body {
  padding-top: 80px; /* Add padding for the navbar */
  background-color: var(--background);
}

.profile-container {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.profile-card {
  background: linear-gradient(145deg, #ffffff 0%, var(--primary-bg) 50%, #f0f8ff 100%);
  border-radius: 16px;
  border: 2px solid var(--primary-light);
  box-shadow: 0 12px 35px rgba(29, 211, 176, 0.2);
  overflow: hidden; /* To keep children within rounded corners */
  position: relative;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--success), var(--cta));
}

.profile-user-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--primary-bg) 0%, #e8f4fd 50%, #ffffff 100%);
}

.profile-avatar i {
  font-size: 5rem;
  color: #adb5bd;
}

.profile-details h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.8rem;
  color: #2c3e50;
}

.role-tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.8rem;
  background-color: var(--primary-bg);
  color: var(--primary);
  text-transform: capitalize;
}

.profile-points, .profile-badges {
  padding: 2rem 2.5rem;
  border-top: 1px solid #e0e0e0;
}

.profile-points h3, .profile-badges h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  color: #34495e;
}

.points-display {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: var(--highlight);
  color: #856404;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.points-display i {
  font-size: 2rem;
}
.points-display span {
  font-size: 2.5rem;
  font-weight: 700;
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1.5rem;
}

.badge {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  color: #adb5bd;
}
.badge i {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
}
.badge span {
  font-weight: 600;
  font-size: 0.9rem;
}

.badge.earned {
  color: var(--success-dark);
  border-color: var(--success-dark);
  background-color: var(--primary-bg);
}
.badge.earned i {
  transform: scale(1.1);
  transition: transform 0.2s;
}
.badge.earned:hover i {
  transform: scale(1.2) rotate(-5deg);
}

/* === Schedule Page Styles === */
.schedule-body {
  padding-top: 80px; /* Add padding for the navbar */
  background-color: var(--background);
}

.page-container {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.schedule-card {
  background: linear-gradient(145deg, #ffffff 0%, var(--primary-bg) 30%, #f8f9ff 100%);
  border-radius: 20px;
  padding: 2.5rem 3rem;
  border: 2px solid var(--primary-light);
  box-shadow: 0 15px 40px rgba(29, 211, 176, 0.18);
  position: relative;
  overflow: hidden;
}

.schedule-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--success), var(--highlight), var(--cta));
}

/* Progress Bar */
.progress-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
}
.progress-step {
  text-align: center;
  position: relative;
}
.step-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-bg);
  color: #adb5bd;
  border: 2px solid var(--primary-light);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}
.step-label {
  position: absolute;
  width: 100px;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0.5rem;
  font-weight: 500;
  color: #adb5bd;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}
.progress-line {
  flex-grow: 1;
  height: 4px;
  background-color: var(--primary-light);
}
.progress-step.active .step-icon {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: scale(1.1);
}
.progress-step.active .step-label {
  color: var(--primary);
  font-weight: 600;
}

/* Form Steps */
.form-step {
  display: none;
}
.form-step.active {
  display: block;
}
.step-title {
  text-align: center;
  margin-top: 0;
  margin-bottom: 2rem;
  font-size: 1.6rem;
  color: #34495e;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="date"] {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
}

.time-slots {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.time-slots input[type="radio"] {
  display: none;
}
.time-slots label {
  padding: 0.8rem 1.5rem;
  border: 1px solid #ced4da;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.time-slots input[type="radio"]:checked + label {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

#confirmation-details p {
  background: var(--primary-bg);
  padding: 1rem;
  border-left: 4px solid var(--primary);
  margin-bottom: 0.5rem;
}
#confirmation-details strong {
  display: inline-block;
  width: 120px;
}

/* Navigation Buttons */
.form-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  border-top: 1px solid var(--primary-light);
  padding-top: 2rem;
}
.btn-next, .btn-prev {
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid var(--primary);
}
.btn-next {
  background-color: var(--primary);
  color: #ffffff;
}
.btn-prev {
  background-color: #ffffff;
  color: var(--primary);
}

/* === Recycler Dashboard Styles === */
.recycler-body {
  padding-top: 80px;
  background-color: var(--background);
}

.recycler-container {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.dashboard-card {
  background: linear-gradient(145deg, #ffffff 0%, var(--primary-bg) 40%, #f0f8ff 100%);
  border-radius: 18px;
  border: 2px solid var(--primary-light);
  box-shadow: 0 12px 35px rgba(29, 211, 176, 0.2);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}

.dashboard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--success), var(--cta), var(--highlight));
}

.dashboard-header {
  border-bottom: 1px solid var(--primary-light);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.dashboard-header h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
}

.dashboard-header p {
  font-size: 1rem;
  color: #6c757d;
  margin: 0.5rem 0 0 0;
}

.pickups-table-container {
  overflow-x: auto; /* For responsive tables */
}

.pickups-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.pickups-table th,
.pickups-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--primary-light);
}

.pickups-table th {
  font-weight: 600;
  color: #495057;
  background-color: var(--primary-bg);
}

.pickups-table td {
  color: #2c3e50;
}

.pickups-table tbody tr:hover {
  background-color: var(--primary-bg);
}

.loading-cell {
  text-align: center !important;
  padding: 3rem;
  color: #6c757d;
  font-style: italic;
}

.status-tag {
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: capitalize;
}

.status-scheduled {
  background-color: var(--primary-bg);
  color: var(--primary);
}

.status-completed {
  background-color: var(--success);
  color: var(--success-dark);
}

.btn-complete-pickup {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid var(--success);
  background-color: var(--success);
  color: #ffffff;
  transition: all 0.2s ease;
}

.btn-complete-pickup:hover {
  background-color: var(--cta);
  border-color: var(--cta);
}

.btn-complete-pickup:disabled {
  background-color: #6c757d;
  border-color: #6c757d;
  cursor: not-allowed;
}

/* === Statistics Section Styles === */
.statistics-card {
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-bg) 100%);
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(29, 211, 176, 0.15);
  padding: 2.5rem;
  margin: 2rem auto;
  max-width: 1200px;
  border: 2px solid var(--primary-light);
  position: relative;
  overflow: hidden;
}

.statistics-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--success), var(--highlight));
}

.statistics-header {
  text-align: center;
  margin-bottom: 2rem;
}

.statistics-header h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.statistics-header p {
  color: #6c757d;
  font-size: 1rem;
  margin: 0;
}

.statistics-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.filter-btn {
  background: var(--primary-bg);
  border: 2px solid var(--primary-light);
  color: #6c757d;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.statistics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 15px rgba(29, 211, 176, 0.3);
  transition: transform 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
}

.stat-card:nth-child(2) {
  background: linear-gradient(135deg, var(--highlight) 0%, var(--error) 100%);
  box-shadow: 0 4px 15px rgba(242, 181, 212, 0.3);
}

.stat-card:nth-child(3) {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-bg) 100%);
  box-shadow: 0 4px 15px rgba(128, 255, 219, 0.3);
}

.stat-card:nth-child(4) {
  background: linear-gradient(135deg, var(--success) 0%, var(--cta) 100%);
  box-shadow: 0 4px 15px rgba(178, 255, 158, 0.3);
}

.stat-icon {
  font-size: 2rem;
  opacity: 0.9;
}

.stat-content h3 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
}

.stat-content p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.9rem;
}

.statistics-details {
  background: var(--primary-bg);
  border-radius: 12px;
  padding: 2rem;
}

.statistics-details h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  text-align: center;
}

.breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.breakdown-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.item-info {
  display: flex;
  flex-direction: column;
  min-width: 150px;
}

.item-name {
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.95rem;
}

.item-count {
  color: #6c757d;
  font-size: 0.85rem;
}

.item-bar {
  flex: 1;
  height: 8px;
  background: var(--primary-light);
  border-radius: 4px;
  overflow: hidden;
}

.item-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 4px;
  transition: width 0.3s ease;
}

.item-percentage {
  font-weight: 600;
  color: #2c3e50;
  min-width: 50px;
  text-align: right;
}

/* Status badges for pickup table */
.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
}

.status-pending {
  background: var(--highlight);
  color: var(--text-dark);
}

.status-progress {
  background: var(--primary);
  color: #fff;
}

.status-completed {
  background: var(--success);
  color: #fff;
}

.btn-action {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-action:hover {
  background: var(--primary-light);
}

.completed-text {
  color: var(--success);
  font-weight: 600;
  font-size: 0.85rem;
}

.no-data {
  text-align: center;
  color: #6c757d;
  font-style: italic;
  padding: 2rem;
}

.error {
  text-align: center;
  color: var(--error);
  font-weight: 500;
  padding: 2rem;
}

/* Responsive design for statistics */
@media (max-width: 768px) {
  .statistics-grid {
    grid-template-columns: 1fr;
  }
  
  .statistics-filters {
    flex-direction: column;
    align-items: center;
  }
  
  .filter-btn {
    width: 200px;
  }
  
  .breakdown-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .item-info {
    min-width: auto;
    width: 100%;
  }
  
  .item-bar {
    width: 100%;
  }
  
  .item-percentage {
    text-align: left;
  }
}

/* === Chatbot Styles === */
.chat-container {
  background: var(--primary-bg);
  border-radius: 12px;
  border: 2px solid var(--primary-light);
  overflow: hidden;
  margin-bottom: 2rem;
}

.chat-messages {
  height: 400px;
  overflow-y: auto;
  padding: 1.5rem;
  background: #ffffff;
}

.message {
  display: flex;
  margin-bottom: 1.5rem;
  align-items: flex-start;
  gap: 1rem;
}

.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-message .message-avatar {
  background: var(--success);
}

.message-content {
  background: var(--primary-bg);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--primary-light);
  max-width: 80%;
}

.user-message .message-content {
  background: var(--success);
  color: #155724;
  border-color: var(--success);
  margin-left: auto;
}

.message-content p {
  margin: 0 0 0.5rem 0;
  line-height: 1.6;
}

.message-content ul {
  margin: 0.5rem 0 0 0;
  padding-left: 1.5rem;
}

.message-content li {
  margin-bottom: 0.25rem;
  line-height: 1.5;
}

.chat-input-container {
  padding: 1.5rem;
  background: var(--primary-bg);
  border-top: 1px solid var(--primary-light);
}

.chat-input-wrapper {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.chat-input {
  flex: 1;
  padding: 1rem;
  border: 2px solid var(--primary-light);
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  transition: border-color 0.2s ease;
}

.chat-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 211, 176, 0.25);
}

.send-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.send-button:hover {
  background: var(--primary-light);
  transform: scale(1.05);
}

.send-button:active {
  transform: scale(0.95);
}

/* Quick Action Styles */
.quick-action {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.quick-action:hover {
  background: var(--primary-bg);
  border-color: var(--primary-light);
  transform: translateY(-5px);
}

.quick-action i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.quick-action h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #2c3e50;
}

.quick-action p {
  font-size: 0.9rem;
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.quick-action .btn-action {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-action .btn-action:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

/* FAQ Content Styles */
.testimonial .testimonial-content h4 {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.testimonial .testimonial-content p {
  color: #495057;
  line-height: 1.7;
  margin: 0;
}

/* Responsive Chat Styles */
@media (max-width: 768px) {
  .chat-messages {
    height: 300px;
    padding: 1rem;
  }
  
  .message-content {
    max-width: 90%;
  }
  
  .chat-input-wrapper {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .chat-input {
    width: 100%;
  }
  
  .send-button {
    align-self: flex-end;
  }
}

/* Bolder headers */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
}

/* Bolder primary buttons */
.btn-action, .btn-submit, .btn-logout {
  background-color: var(--primary);
  color: #fff;
  border: none;
  font-weight: 600;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.btn-action:hover, .btn-submit:hover, .btn-logout:hover {
  background-color: var(--cta);
  color: #fff;
}

/* CTA buttons */
.btn-cta {
  background-color: var(--cta);
  color: #fff;
  font-weight: 700;
}
.btn-cta:hover {
  background-color: var(--primary);
  color: #fff;
}

/* Success, warning, error badges */
.status-badge.status-completed {
  background: var(--success);
  color: #fff;
}
.status-badge.status-pending {
  background: var(--highlight);
  color: var(--text-dark);
}
.status-badge.status-progress {
  background: var(--primary);
  color: #fff;
}
.status-badge.status-error {
  background: var(--error);
  color: #fff;
}

/* Card headers */
.dashboard-header h2, .statistics-header h2 {
  color: var(--primary);
}

/* Links */
a, .navbar-links a {
  color: var(--primary);
  font-weight: 600;
}
a:hover, .navbar-links a:hover {
  color: var(--cta);
}

/* Highlighted elements */
.highlight, .badge.earned {
  background: var(--highlight);
  color: var(--text-dark);
}