/* General reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: #2c3e50;
  background-color: #f9f9f9;
}

:root {
  /* --secondary: #ff000050;
  --primary: #9e0e0ef5;
  --hover: #b71c1c; */
  --primary: #1b4f72;
  --secondary: #21618c;
  --hover: #21618c;
  --hoverSecondary:  #2874a6;
  --text:  #1b4f72;
  --highlight: #D97706;
  --lightShade: #2874a6;
}

/* Header styling */
.district_title {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 2rem 1rem;
  text-align: center;
}
.district_title h1 {
  font-size: 2rem;
  font-weight: 700;
}
.district_title p {
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* Main content */
main {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* .district_title {
  padding: 1.5rem;
  margin: 1.5rem;
  text-align: center;
} */

  /* Sidebar Styles */
  .sidebar {
      width: 280px;
      background: white;
      padding: 2rem;
      box-shadow: 2px 0 10px rgba(0,0,0,0.05);
      position: sticky;
      top: 0;
      height: fit-content;
      border-radius: 0 8px 8px 0;
  }
  .sidebar h3 {
      color: var(--primary);
      font-size: 1.3rem;
      margin-bottom: 1.5rem;
      text-align: center;
      padding-bottom: 0.75rem;
      border-bottom: 3px solid var(--secondary);
  }
  .district-link {
      display: block;
      text-decoration: none;
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      color: white;
      padding: 1rem 1.25rem;
      margin-bottom: 1rem;
      border-radius: 8px;
      font-weight: 600;
      text-align: center;
      position: relative;
      overflow: hidden;
      transition: all 0.3s ease;
      box-shadow: 0 2px 8px rgba(231, 76, 60, 0.2);
  }
  .district-link::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
      transition: left 0.6s ease;
  }
  .district-link:hover::before {
      left: 100%;
  }
  .district-link:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
  }
  .district-link:active {
      transform: translateY(0);
  }
  .district-name {
      font-size: 0.95rem;
      margin-bottom: 0.25rem;
  }
  .district-location {
      font-size: 0.8rem;
      opacity: 0.9;
      font-weight: 400;
  }

.advantage, .summary {
  background: white;
  border-left: 5px solid var(--primary);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.advantage h2, .summary h2 {
  color: #1b4f72;
  margin-bottom: 0.75rem;
}

ul {
  margin-left: 1.5rem;
  margin-top: 1.5rem;
}

.summary {
  background: #ecf0f1;
  border-left-color: var(--secondary);
}

.summary a {
  text-decoration: none;
  color: #FF7F00;
  font-size: larger;
  font-weight: bolder;
}

.cta {
  background: var(--lightShade);
  border-left-color: var(--highlight);
}

.cta h2, .cta p {
  color: white;
}


/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
} 
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
} 


/* --------------------------- */
/* RESPONSIVE DESIGN */
/* --------------------------- */

/* Small devices (phones) */
@media (max-width: 600px) {
  .district_title {
    padding: 1.5rem 1rem;
  }
  .district_title h1 {
    font-size: 1.6rem;
  }
  .district_title p {
    font-size: 0.95rem;
  }
  .district-container {
    flex-direction: column;
    gap: 0;
  }
  .sidebar {
    width: 100%;
    position: static;
    border-radius: 0;
    padding: 1.5rem;
  }
  .sidebar h3 {
      font-size: 1.1rem;
  }

  main {
    margin: 1.5rem auto;
  }
  .advantage, .summary {
    padding: 1rem;
  }
  .advantage h2, .summary h2 {
    font-size: 1.2rem;
  }
  ul {
    margin-left: 1rem;
  }
}

/* Medium devices (tablets) */
@media (min-width: 601px) and (max-width: 900px) {
  .district_title h1 {
    font-size: 2.2rem;
  }
  .district_title p {
    font-size: 1.05rem;
  }
  .advantage h2, .summary h2 {
    font-size: 1.3rem;
  }
  .district-container {
    flex-direction: column;
    gap: 0;
  }
  .sidebar {
    width: 100%;
    position: static;
    border-radius: 0;
    padding: 1.5rem;
  }
  .sidebar h3 {
      font-size: 1.1rem;
  }
}

/* Large devices (desktops) */
@media (min-width: 901px) {
  .district_title h1 {
    font-size: 2.5rem;
  }
  .district_title p {
    font-size: 1.15rem;
    margin: 0 8rem;
  }
}




/* General Styles */
  
.district-container {
  display: flex;
            min-height: 100vh;
            gap: 2rem;
            max-width: 1400px;
            margin: 0 auto;
}

  .container {
    width: 80vw;
    margin: 2rem auto;
  }
  
  /* Preloader Styles */
  .preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }
  
  .spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid var(--primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }


  /* Header Styling */
header {
  background-color: #000000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  /* position: sticky; */
  top: 0;
  z-index: 1000;
}

.header {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}

/* Logo and Title Section */
.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
}

.header-brand img {
  width: 50px;
  height: auto;
  flex-shrink: 0;
}

.header-brand p {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
}

/* Navigation Styling */
.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
  align-items: center;
  z-index: 5;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.nav-menu a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #aed6f1;
}

/* Active page styling */
.nav-menu a.active {
  background-color: #1b4f72;
  color: white;
  font-weight: 700;
}

.nav-menu a.active:hover {
  background-color: #21618c;
  color: white;
}

/* Hamburger Menu (hidden by default) */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.25rem;
  background: none;
  border: none;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Hamburger animation when active */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile menu overlay */
.nav-menu.mobile-open {
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  background-color: #000000;
  flex-direction: column;
  padding: 1rem 0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  gap: 0;
}

.nav-menu.mobile-open li {
  width: 100%;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-menu.mobile-open li:last-child {
  border-bottom: none;
}

.nav-menu.mobile-open a {
  display: block;
  padding: 1rem;
  width: 100%;
  border-radius: 0;
}

/* --------------------------- */
/* RESPONSIVE DESIGN */
/* --------------------------- */

/* Large screens - full navigation */
@media (min-width: 769px) {
  .hamburger {
    display: none;
  }
  
  .nav-menu {
    display: flex;
  }
}

/* Medium screens - adjust spacing */
@media (min-width: 601px) and (max-width: 768px) {
  .header-brand p {
    font-size: 1rem;
  }
  
  .nav-menu {
    gap: 1rem;
  }
  
  .nav-menu a {
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
  }
  
  .hamburger {
    display: none;
  }
  
  .nav-menu {
    display: flex;
  }
}

/* Small screens - hamburger menu */
@media (max-width: 600px) {
  .header {
    padding: 0 1rem;
  }
  
  .header-brand p {
    font-size: 0.95rem;
  }
  
  .header-brand img {
    width: 40px;
  }
  
  /* Hide desktop menu */
  .nav-menu {
    display: none;
  }
  
  /* Show hamburger */
  .hamburger {
    display: flex;
  }
  
  /* Show mobile menu when active */
  .nav-menu.mobile-open {
    display: flex;
  }
}

/* Very small screens */
@media (max-width: 480px) {
  .header {
    min-height: 50px;
  }
  
  .header-brand {
    gap: 0.5rem;
  }
  
  .header-brand p {
    font-size: 0.9rem;
  }
  
  .header-brand img {
    width: 35px;
  }
  
  .hamburger span {
    width: 20px;
    height: 2px;
  }
}

/* Accessibility improvements */
.hamburger:focus {
  outline: 2px solid #1b4f72;
  outline-offset: 2px;
}

.nav-menu a:focus {
  outline: 2px solid #1b4f72;
  outline-offset: 2px;
}

/* Smooth transitions for mobile menu */
.nav-menu {
  transition: all 0.3s ease;
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
  overflow: hidden;
}

/* Additional styling for better mobile UX */
@media (max-width: 600px) {
  .nav-menu.mobile-open {
    animation: slideDown 0.3s ease-out;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
} 
  
 
  
  /* Hero Section */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Background Image Container */
.hero .background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero .background-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Dark overlay for better text readability */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(135deg, rgba(27, 79, 114, 0.85), rgba(33, 97, 140, 0.75)); */
  /* background: linear-gradient(135deg, var(--primary), var(--secondary)); */
  z-index: 2;
}

/* Container positioning */
.hero .container {
  position: relative;
  z-index: 3;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
  width: 100%;
}

/* Email Signup Card */
.email-signup {
  background: rgba(255, 255, 255, 0.6);
  /* background: var(--primary); */
  backdrop-filter: blur(10px);
  border-left: 5px solid var(--primary);
  /* border-left: 5px solid var(--primary); */
  padding: 2rem;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  max-width: 600px;
  margin: 0 auto;
}

/* Email Signup Typography */
.email-signup h2 {
  color: var(--text);
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  text-align: center;
}

.email-signup p {
  color: #2c3e50;
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 0 1rem 0;
  text-align: center;
}

.email-signup h5 {
  color: #6f7b7b;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.5;
  margin: 0 0 1.5rem 0;
  text-align: center;
  font-style: italic;
}

/* Form Styling */
.email-signup form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Email Input */
.email-signup input[type="email"] {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e8e8e8;
  border-radius: 4px;
  font-size: 1rem;
  color: #2c3e50;
  background: white;
  transition: border-color 0.3s ease;
}

.email-signup input[type="email"]:focus {
  outline: none;
  border-color: #1b4f72;
  box-shadow: 0 0 0 3px rgba(27, 79, 114, 0.1);
}

/* Custom Checkbox Container */
.email-container {
  display: flex;
  align-items: flex-start;
  position: relative;
  padding-left: 2rem;
  margin: 0.5rem 0;
  cursor: pointer;
  font-size: 1rem;
  color: #2c3e50;
  line-height: 1.4;
  user-select: none;
}

/* Hide default checkbox */
.email-container input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Custom checkmark */
.checkmark {
  position: absolute;
  top: 2px;
  left: 0;
  height: 18px;
  width: 18px;
  background-color: white;
  border: 2px solid #1b4f72;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Checkmark on hover */
.email-container:hover input ~ .checkmark {
  background-color: #ecf0f1;
}

/* Checkmark when checked */
.email-container input:checked ~ .checkmark {
  background-color: #1b4f72;
  border-color: #1b4f72;
}

/* Create checkmark indicator */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show checkmark when checked */
.email-container input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark */
.email-container .checkmark:after {
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Submit Button */
.email-signup button[type="submit"] {
  background: linear-gradient(135deg, #1b4f72, #21618c);
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.5rem;
}

.email-signup button[type="submit"]:hover {
  background: linear-gradient(135deg, #21618c, #2874a6);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(27, 79, 114, 0.3);
}

.email-signup button[type="submit"]:active {
  transform: translateY(0);
}

/* --------------------------- */
/* RESPONSIVE DESIGN */
/* --------------------------- */

/* Small devices (phones) */
@media (max-width: 600px) {
  .hero {
    min-height: 50vh;
  }
  
  .hero .container {
    padding: 1.5rem 1rem;
  }
  
  .email-signup {
    padding: 1.5rem;
    margin: 0 -1rem;
    border-left: none;
    border-top: 5px solid #1b4f72;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.5);
  }
  
  .email-signup h2 {
    font-size: 1.5rem;
  }
  
  .email-signup p {
    font-size: 1rem;
  }
  
  .email-signup h5 {
    font-size: 0.85rem;
  }
  
  .email-container {
    font-size: 0.95rem;
    padding-left: 1.75rem;
  }
  
  .checkmark {
    height: 16px;
    width: 16px;
  }
  
  .email-container .checkmark:after {
    left: 4px;
    top: 1px;
    width: 3px;
    height: 7px;
  }
  
  .email-signup button[type="submit"] {
    font-size: 1rem;
    padding: 0.875rem 1.5rem;
  }
}

/* Medium devices (tablets) */
@media (min-width: 601px) and (max-width: 900px) {
  .hero {
    min-height: 55vh;
  }
  
  .email-signup {
    padding: 1.75rem;
  }
  
  .email-signup h2 {
    font-size: 1.75rem;
  }
  
  .email-signup p {
    font-size: 1.05rem;
  }
}

/* Large devices (desktops) */
@media (min-width: 901px) {
  .hero {
    min-height: 65vh;
  }
  
  .hero .container {
    padding: 3rem 1rem;
  }
  
  .email-signup {
    padding: 2.5rem;
  }
  
  .email-signup h2 {
    font-size: 2.25rem;
  }
  
  .email-signup p {
    font-size: 1.15rem;
  }
  
  .email-signup h5 {
    font-size: 0.95rem;
  }
  
  .email-container {
    font-size: 1.05rem;
  }
  
  .email-signup button[type="submit"] {
    font-size: 1.2rem;
    padding: 1.25rem 2.5rem;
  }
}

/* Focus states for accessibility */
.email-container:focus-within .checkmark {
  box-shadow: 0 0 0 3px rgba(27, 79, 114, 0.2);
}

.email-signup button[type="submit"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(27, 79, 114, 0.3);
}
 

  /* Daily Report Section */
  /* Daily Report Table-Style Container */

          /* Tab Navigation */
        .report-tabs {
            position: absolute;
            top: 20px;
            right: 20px;
            display: flex;
            background: #f1f3f4;
            border-radius: 8px;
            padding: 4px;
            z-index: 10;
        }

        .tab-button {
            background: transparent;
            border: none;
            padding: 8px 16px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            color: #666;
            transition: all 0.3s ease;
            position: relative;
        }

        .tab-button:hover {
            color: #333;
            background: rgba(255, 255, 255, 0.5);
        }

        .tab-button.active {
            background: white;
            color: #2563eb;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        /* Tab Content */
        .tab-content {
            display: none;
            animation: slideIn 0.4s ease-out;
        }

        .tab-content.active {
            display: block;
        }

        @keyframes slideIn {
            from { 
                opacity: 0; 
                transform: translateX(20px); 
            }
            to { 
                opacity: 1; 
                transform: translateX(0); 
            }
        }

.daily-report-table {
  background: white;
  border-left: 5px solid #1b4f72;
  padding: 0.5rem;
  margin-top: 6rem;
  margin-bottom: 6rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  overflow-x: auto;
}

/* Report header styling (matches table header) */
.daily-report-table h2 {
  background: linear-gradient(135deg, #1b4f72, #21618c);
  color: white;
  font-weight: 700;
  padding: 1rem 0.75rem;
  margin: -1.5rem -1.5rem 1.5rem -1.5rem;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 6px 6px 0 0;
}

/* Report metrics table */
.report-metrics-table {
  width: 100%;
  border-collapse: collapse;
  /* margin-bottom: 1.5rem; */
  font-size: 1rem;
  min-width: 600px;
}

/* Table cells */
.report-metrics-table td {
  /* padding: 1rem 0.75rem; */
  border-bottom: 1px solid #e8e8e8;
  color: #2c3e50;
  vertical-align: middle;
}

/* Metric description column */
.report-metrics-table td:first-child {
  font-weight: 600;
  color: #1b4f72;
  width: 70%;
}

/* Number column */
.report-metrics-table td:last-child {
  font-weight: 700;
  font-size: 1.5rem;
  color: #e74c3c;
  text-align: center;
  width: 30%;
}

/* Alternating row colors */
.report-metrics-table tr:nth-child(even) {
  background-color: #f8f9fa;
}

.report-metrics-table tr:nth-child(odd) {
  background-color: white;
}

/* Hover effect */
.report-metrics-table tr:hover {
  background-color: #ecf0f1;
  transition: background-color 0.3s ease;
}


/* Explanation section (matches summary styling) */
.report-explanation {
  background: #ecf0f1;
  border-left: 5px solid #21618c;
  padding: 1.5rem;
  margin-top: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.report-explanation h3 {
  color: #21618c;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.report-explanation p {
  margin-bottom: 1rem;
  color: #2c3e50;
}

.report-explanation p:last-child {
  margin-bottom: 0;
}

.report-explanation ul {
  margin-left: 1.5rem;
  margin-top: 1rem;
  color: #2c3e50;
}

.report-explanation ul li {
  margin-bottom: 0.5rem;
}

.report-explanation strong {
  color: #21618c;
}

/* --------------------------- */
/* RESPONSIVE DESIGN */
/* --------------------------- */

/* Small devices (phones) */
@media (max-width: 1000px) {
  .daily-report-table {
    padding: 1rem;
    padding-top: 60px;
    margin-left: -1rem;
    margin-right: -1rem;
    border-left: none;
    border-top: 5px solid #1b4f72;
    border-radius: 0;
  }
  
  .daily-report-table h2 {
    padding: 0.75rem 0.5rem;
    margin: -1rem -1rem 1rem -1rem;
    font-size: 1rem;
    border-radius: 0;
  }

  .report-tabs {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0;
    border-radius: 0;
    border-bottom: 1px solid #e5e7eb;
    background: white;
    padding: 10px 20px;
    justify-content: center;
}

 .report-header {
  padding-top: 20px;
}

.tab-button {
    padding: 10px 16px;
    font-size: 16px;
}
  
  .report-metrics-table {
    font-size: 0.85rem;
    min-width: 500px;
  }
  
  .report-metrics-table td {
    padding: 0.75rem 0.5rem;
  }
  
  .report-metrics-table td:last-child {
    font-size: 1.25rem;
  }
  
  .report-explanation {
    padding: 1rem;
    margin-left: -1rem;
    margin-right: -1rem;
    border-left: none;
    border-top: 5px solid #21618c;
    border-radius: 0;
  }
  
  .report-explanation h3 {
    font-size: 1.1rem;
  }
  
  .report-explanation ul {
    margin-left: 1rem;
  }
  
  /* Add scroll hint */
  .daily-report-table::after {
    content: "← Scroll horizontally to see more →";
    display: block;
    text-align: center;
    color: #7f8c8d;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    font-style: italic;
  }
}

/* Medium devices (tablets) */
@media (min-width: 601px) and (max-width: 900px) {
  .daily-report-table h2 {
    font-size: 1.1rem;
  }

  .daily-report-table {
    padding-top: 60px;
  }
  
  .report-metrics-table {
    font-size: 0.95rem;
  }
  
  .report-metrics-table td {
    padding: 0.875rem 0.625rem;
  }
  
  .report-metrics-table td:last-child {
    font-size: 1.35rem;
  }

    .report-tabs {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0;
    border-radius: 0;
    border-bottom: 1px solid #e5e7eb;
    background: white;
    padding: 10px 20px;
    justify-content: center;
}

 .report-header {
  padding-top: 20px;
}

.tab-button {
    padding: 10px 16px;
    font-size: 16px;
}
  
  .report-explanation {
    padding: 1.25rem;
  }
  
  .report-explanation h3 {
    font-size: 1.2rem;
  }
}

/* Large devices (desktops) */
@media (min-width: 901px) {
  .daily-report-table h2 {
    font-size: 1.35rem;
  }
  
  .report-metrics-table {
    font-size: 1rem;
    min-width: auto;
  }
  
  .report-metrics-table td {
    padding: 1.25rem 1rem;
  }
  
  .report-metrics-table td:last-child {
    font-size: 1.75rem;
  }
  
  .daily-report-table {
    padding: 2rem;
  }
  
  .daily-report-table h2 {
    margin: -2rem -2rem 2rem -2rem;
    padding: 1.25rem 1rem;
  }
  
  .report-explanation {
    padding: 2rem;
  }
  
  .report-explanation h3 {
    font-size: 1.3rem;
  }
}
 
  
  /* About Section */
  .about {
    padding: 60px 0;
    text-align: center;
    background-color: #ffffff;
    color: #2c3e50;
  }
  
  .about h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
  }
  
  .about p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
  }

  @media (max-width: 1000px) {

    .about h2 {
      font-size: 1.5rem;
    }

    .about p {
      font-size: 0.9rem;
    }
  }
  
  
  /* Problems Section */
  /* Table container for horizontal scrolling on small screens */
.table-container {
  background: white;
  border-left: 5px solid #1b4f72;
  max-width: 95%;
  padding: 1.5rem;
  margin: 1.5rem auto;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  overflow-x: auto;
}

/* Base table styling */
.responsive-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 1rem;
  background: white;
  min-width: 600px; /* Prevents table from becoming too narrow */
}

/* Table header */
.responsive-table thead th {
  background: linear-gradient(135deg, #1b4f72, #21618c);
  color: white;
  font-weight: 700;
  padding: 1rem 0.75rem;
  text-align: left;
  border-bottom: 2px solid #21618c;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Table body cells */
.responsive-table tbody td {
  padding: 1rem 0.75rem;
  border-bottom: 1px solid #e8e8e8;
  color: #2c3e50;
  vertical-align: top;
}

/* Alternating row colors */
.responsive-table tbody tr:nth-child(even) {
  background-color: #f8f9fa;
}

.responsive-table tbody tr:nth-child(odd) {
  background-color: white;
}

/* Hover effect for rows */
.responsive-table tbody tr:hover {
  background-color: #ecf0f1;
  transition: background-color 0.3s ease;
}

/* First column styling (if it's a header column) */
.responsive-table tbody td:first-child {
  font-weight: 600;
  color: #1b4f72;
}

/* --------------------------- */
/* RESPONSIVE BREAKPOINTS */
/* --------------------------- */

/* Small devices (phones) */
@media (max-width: 600px) {
  .table-container {
    padding: 1rem;
    /* margin-left: -1rem;
    margin-right: -1rem; */
    border-left: none;
    border-top: 5px solid #1b4f72;
    border-radius: 0;
  }
  
  .responsive-table {
    font-size: 0.85rem;
    min-width: 500px; /* Adjust based on your content needs */
  }
  
  .responsive-table thead th {
    padding: 0.75rem 0.5rem;
    font-size: 0.8rem;
  }
  
  .responsive-table tbody td {
    padding: 0.75rem 0.5rem;
  }
  
  /* Add scroll hint */
  .table-container::after {
    content: "← Scroll horizontally to see more →";
    display: block;
    text-align: center;
    color: #7f8c8d;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    font-style: italic;
  }
}

/* Medium devices (tablets) */
@media (min-width: 601px) and (max-width: 900px) {
  .responsive-table {
    font-size: 0.95rem;
    max-width: 80%;
    margin: auto;
  }
  
  .responsive-table thead th {
    padding: 0.875rem 0.625rem;
    font-size: 0.9rem;
  }
  
  .responsive-table tbody td {
    padding: 0.875rem 0.625rem;
  }
}

/* Large devices (desktops) */
@media (min-width: 901px) {
  .table-container {
    max-width: 80%;
    margin-top: 3rem;
    margin-bottom: 7rem;
  }
  
  .responsive-table {
    font-size: 1rem;
    min-width: auto; /* Remove minimum width constraint */
  }
  
  .responsive-table thead th {
    padding: 1.25rem 1rem;
    font-size: 1rem;
  }
  
  .responsive-table tbody td {
    padding: 1.25rem 1rem;
  }
}

/* Alternative: Card-based layout for very small screens */
@media (max-width: 480px) {
  /* Hide the table and show card layout instead */
  .responsive-table.card-layout {
    display: none;
  }
  
  .table-cards {
    display: block;
  }
  
  .table-card {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }
  
  .table-card-header {
    font-weight: 700;
    color: #1b4f72;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ecf0f1;
  }
  
  .table-card-row {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    border-bottom: 1px solid #f8f9fa;
  }
  
  .table-card-row:last-child {
    border-bottom: none;
  }
  
  .table-card-label {
    font-weight: 600;
    color: #34495e;
    flex: 1;
  }
  
  .table-card-value {
    flex: 1;
    text-align: right;
    color: #2c3e50;
  }
}

/* For larger screens, hide the card layout */
@media (min-width: 481px) {
  .table-cards {
    display: none;
  }
}
 

  /* Base card styling */
.card {
  background: white;
  border-left: 5px solid #1b4f72;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

/* Card hover effect */
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Card header styling */
.card h3 {
  color: #1b4f72;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
}

/* Card text styling */
.card p {
  color: #2c3e50;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* Additional paragraph spacing if multiple paragraphs */
.card p + p {
  margin-top: 1rem;
}


/* Card grid layouts */
.card-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.card-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

/* --------------------------- */
/* RESPONSIVE DESIGN */
/* --------------------------- */

/* Small devices (phones) */
@media (max-width: 600px) {
  .card {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
  }
  
  .card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  
  .card p {
    font-size: 0.95rem;
  }
  
  .card-grid {
    gap: 1rem;
  }
  
  .card-grid-2,
  .card-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Medium devices (tablets) */
@media (min-width: 601px) and (max-width: 900px) {
  .card h3 {
    font-size: 1.2rem;
  }
  
  .card p {
    font-size: 0.98rem;
  }
  
  .card-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

/* Large devices (desktops) */
@media (min-width: 901px) {
  .card {
    padding: 2rem;
  }
  
  .card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }
  
  .card p {
    font-size: 1.05rem;
  }
  
  .card-grid {
    gap: 2rem;
  }
}

/* Special compact card variant */
.card.compact {
  padding: 1rem;
  margin-bottom: 1rem;
}

.card.compact h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card.compact p {
  font-size: 0.95rem;
}

 

  .disclaimer {
    font-size: 0.75rem;
    /* color: lightslategrey; */
    color: var(--text);
    text-align: center;
    padding: 1rem;
  }
  
  /* Footer */
  footer {
    background-color: var(--primary);
    color: white;
    text-align: center;
    padding: 20px 0;
  }


  

          /* Header styling */
        .page-title {
            background: linear-gradient(135deg, #1b4f72, #21618c);
            color: white;
            padding: 2rem 1rem;
            text-align: center;
        }
        
        .page-title h1 {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }
        
        .page-title p {
            font-size: 1rem;
            margin-top: 0.5rem;
        }
        
        /* Main content */
        main {
            max-width: 900px;
            margin: 2rem auto;
            padding: 0 1rem;
        }
        
        /* Form container */
        .contact-form {
            background: white;
            border-left: 5px solid #1b4f72;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
            border-radius: 6px;
            box-shadow: 0 2px 6px rgba(0,0,0,0.08);
        }
        
        .form-section {
            margin-bottom: 2rem;
        }
        
        .form-section h2 {
            color: #1b4f72;
            margin-bottom: 0.75rem;
            font-size: 1.25rem;
        }

         /* City sections */
        .city-section {
            margin-bottom: 2rem;
            margin-top: 2rem;
        }
        
        .city-section h3 {
            color: #1b4f72;
            font-size: 1.1rem;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid #ecf0f1;
        }
        
        /* Councilor selection */
        .councilor-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1rem;
            margin-top: 1rem;
        }
        
        .councilor-item {
            display: flex;
            align-items: center;
            padding: 0.75rem;
            background: #f8f9fa;
            border-radius: 4px;
            transition: background-color 0.3s ease;
        }
        
        .councilor-item:hover {
            background: #ecf0f1;
        }
        
        .councilor-checkbox {
            margin-right: 0.75rem;
            transform: scale(1.2);
        }
        
        .councilor-info h3 {
            font-size: 1rem;
            color: #1b4f72;
            margin-bottom: 0.25rem;
        }
        
        .councilor-info p {
            font-size: 0.9rem;
            color: #7f8c8d;
            margin: 0;
        }
        
        /* Selected recipients display */
        .selected-recipients {
            background: #ecf0f1;
            border: 2px solid #21618c;
            border-radius: 4px;
            padding: 1rem;
            margin-top: 1rem;
            min-height: 60px;
        }
        
        .selected-recipients h3 {
            color: #21618c;
            font-size: 1rem;
            margin-bottom: 0.5rem;
        }
        
        .recipient-tag {
            display: inline-block;
            background: #1b4f72;
            color: white;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.85rem;
            margin: 0.25rem 0.5rem 0.25rem 0;
        }
        
        /* Email composition */
        .email-textarea {
            width: 100%;
            min-height: 300px;
            padding: 1rem;
            border: 2px solid #e8e8e8;
            border-radius: 4px;
            font-family: inherit;
            font-size: 1rem;
            line-height: 1.6;
            resize: vertical;
            transition: border-color 0.3s ease;
        }
        
        .email-textarea:focus {
            outline: none;
            border-color: #1b4f72;
            box-shadow: 0 0 0 3px rgba(27, 79, 114, 0.1);
        }
        
        /* Name input */
        .name-input {
            width: 100%;
            max-width: 400px;
            padding: 0.75rem;
            border: 2px solid #e8e8e8;
            border-radius: 4px;
            font-size: 1rem;
            transition: border-color 0.3s ease;
        }
        
        .name-input:focus {
            outline: none;
            border-color: #1b4f72;
            box-shadow: 0 0 0 3px rgba(27, 79, 114, 0.1);
        }
        
        /* Send button */
        .send-button {
            background: linear-gradient(135deg, #1b4f72, #21618c);
            color: white;
            border: none;
            padding: 1rem 2rem;
            font-size: 1.1rem;
            font-weight: 700;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            width: 100%;
            max-width: 300px;
        }
        
        .send-button:hover {
            background: linear-gradient(135deg, #21618c, #2874a6);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(27, 79, 114, 0.3);
        }
        
        .send-button:disabled {
            background: #95a5a6;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
        
        /* Footer explanation */
        .explanation-footer {
            background: #ecf0f1;
            border-left: 5px solid #21618c;
            padding: 1.5rem;
            margin-top: 1.5rem;
            border-radius: 6px;
            box-shadow: 0 2px 6px rgba(0,0,0,0.08);
        }
        
        .explanation-footer h3 {
            color: #21618c;
            margin-bottom: 0.75rem;
        }
        
        .explanation-footer ul {
            margin-left: 1.5rem;
            color: #2c3e50;
        }
        
        .explanation-footer li {
            margin-bottom: 0.5rem;
        }
        
        /* Responsive design */
        @media (max-width: 600px) {
            .page-title {
                padding: 1.5rem 1rem;
            }
            
            .page-title h1 {
                font-size: 1.6rem;
            }
            
            main {
                margin: 1.5rem auto;
            }
            
            .contact-form, .explanation-footer {
                padding: 1rem;
                margin-left: -1rem;
                margin-right: -1rem;
                border-left: none;
                border-top: 5px solid #1b4f72;
                border-radius: 0;
            }
            
            .explanation-footer {
                border-top: 5px solid #21618c;
            }
            
            .councilor-grid {
                grid-template-columns: 1fr;
            }
            
            .send-button {
                width: 100%;
            }
        }
        
        @media (min-width: 601px) and (max-width: 900px) {
            .page-title h1 {
                font-size: 2.2rem;
            }
        }
        
        @media (min-width: 901px) {
            .page-title h1 {
                font-size: 2.5rem;
            }
            
            .page-title p {
                font-size: 1.15rem;
                margin: 0 8rem;
            }
        }