/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-color: #f9f9f9;
  color: #222;
  padding-top: 0;
}

/* Keep fixed header from overlapping module content. */
body.barangay-admin-page,
body.citizen-page {
  padding-top: 80px;
}
/* ===== HEADER STYLES ===== */
header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  border-bottom: 3px solid #e0e6ff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 101;
  height: 80px;
  box-sizing: border-box;
  min-width: 320px;
  pointer-events: none;
}

header * {
  pointer-events: auto;
}

header > a {
  max-width: max-content;
  flex-shrink: 0;
  display: inline-flex;
  align-self: flex-start;
  position: relative;
  z-index: auto;
}

/* Logo and Title Section */
.logo-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  min-width: 0;
}

.logo-title img {
  height: 70px;
  flex-shrink: 0;
}

.logo-title h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin: 0;
  color: #002e8a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== NAVIGATION STYLES ===== */
/* Desktop Navigation */
nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}

nav button {
  background: #d0d0d0;
  color: #666;
  border: 2px solid #999;
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
  min-width: 80px;
}

/* Navigation Button Shimmer Effect */
nav button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 46, 138, 0.1), transparent);
  transition: left 0.5s;
}

/* Navigation Button Hover Effects */
nav button:not(.active):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 46, 138, 0.4);
  background: #002e8a;
  color: white;
  border-color: #002e8a;
}

nav button:not(.active):hover::before {
  left: 100%;
}

nav button:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0, 46, 138, 0.3);
}

/* Active Navigation Button State */
nav button.active {
  background: #002e8a;
  color: white;
  border-color: #002e8a;
  box-shadow: 0 4px 15px rgba(0, 46, 138, 0.4);
}

nav button.active:hover {
  background: #001a5c;
  color: white;
  border-color: #001a5c;
  box-shadow: 0 6px 20px rgba(0, 46, 138, 0.5);
}

/* ===== MOBILE NAVIGATION ===== */
/* Hamburger Menu Icon */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.hamburger:hover {
  background-color: rgba(0, 46, 138, 0.1);
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #002e8a;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Sidebar Toggle Button */
.sidebar-toggle {
  display: none;
  background: #d0d0d0;
  border: none;
  color: #666;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  margin: 0 0.5rem;
}

.sidebar-toggle:hover {
  background-color: #002e8a;
  color: white;
}

.sidebar-toggle.active {
  background-color: #002e8a;
  color: white;
}

/* Mobile Navigation Section - Back Button and Page Title */
.mobile-nav-section {
  display: none;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.mobile-back-btn {
  background: #d0d0d0;
  border: none;
  color: #666;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-back-btn:hover {
  background-color: #002e8a;
  color: white;
}

.mobile-page-title {
  flex: 1;
  font-weight: 600;
  font-size: 1rem;
  color: #002e8a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 0.5rem;
}

/* Mobile Navigation Dropdown (DEPRECATED - Removed) */
.mobile-nav {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  border-top: 1px solid #e0e6ff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 1rem 2rem;
  z-index: 1000;
}

.mobile-nav.active {
  display: block;
}

/* Mobile Navigation Buttons */
.mobile-nav button {
  width: 100%;
  margin-bottom: 0.5rem;
  background: white !important;
  color: #002e8a !important;
  border: 2px solid #002e8a !important;
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: 0 3px 12px rgba(0, 46, 138, 0.25);
  min-width: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mobile-nav button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 46, 138, 0.1), transparent);
  transition: left 0.5s;
}

.mobile-nav button:not(.active):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 46, 138, 0.4);
  background: #002e8a !important;
  color: white !important;
  border-color: #002e8a !important;
}

.mobile-nav button:not(.active):hover::before {
  left: 100%;
}

.mobile-nav button:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0, 46, 138, 0.3);
}

.mobile-nav button.active {
  background: #002e8a !important;
  color: white !important;
  border-color: #002e8a !important;
  box-shadow: 0 4px 15px rgba(0, 46, 138, 0.4);
}

.mobile-nav button.active:hover {
  background: #002e8a !important;
  color: white !important;
  border-color: #002e8a !important;
  box-shadow: 0 6px 20px rgba(0, 46, 138, 0.6);
}

.mobile-nav button:last-child {
  margin-bottom: 0;
}

/* ===== FOOTER SECTION ===== */
footer, .main-footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  font-size: 0.9rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.main-footer {
  position: relative;
  width: 100%;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content p {
  margin: 0;
  color: #fff;
}

.attribution {
  font-weight: 500;
  letter-spacing: 0.5px;
  color: #fff;
}

.attribution a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border-bottom: 1px dotted #fff;
  padding-bottom: 2px;
}

.attribution a:hover {
  color: #0d1657;
  border-bottom: 1px solid #0d1657;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg); 
  }
  50% { 
    transform: translateY(-20px) rotate(180deg); 
  }
}

/* ===== RESPONSIVE DESIGN ===== */
/* Tablet Styles */
@media (max-width: 768px) {
  header {
    padding: 1rem;
  }
  
  nav {
    display: none;
  }
  
  .hamburger {
    display: none !important;
  }
  
  .logo-title h1 {
    font-size: 1.4rem;
  }
  
  .logo-title img {
    height: 50px;
  }
  
  /* Mobile navigation section always visible on mobile/tablet */
  .mobile-nav-section {
    display: flex !important;
  }
  
  .sidebar-toggle {
    display: block;
  }
}

/* Mobile Styles */
@media (max-width: 600px) {
  header {
    padding: 0.8rem;
  }
  
  .hamburger {
    display: flex;
  }
  
  nav {
    display: none;
  }
  
  .logo-title h1 {
    font-size: 1.2rem;
  }
  
  .logo-title img {
    height: 40px;
  }
}

.feature-section {
    padding: 60px 0 40px 0;
    background: #fff;
}
.feature-section h2 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #007bff;
}
.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}
.feature-card {
    background: #f8f9fa;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 32px 24px;
    max-width: 340px;
    flex: 1 1 300px;
    text-align: center;
    transition: box-shadow 0.2s;
}
.feature-card:hover {
    box-shadow: 0 4px 24px rgba(0,123,255,0.13);
}
.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #0056b3;
}
.feature-card p {
    font-size: 1rem;
    color: #444;
}

@media (max-width: 768px) {
    .landing-hero h1 {
        font-size: 2.1rem;
    }
    .feature-list {
        flex-direction: column;
        gap: 18px;
    }
    .feature-card {
        max-width: 100%;
    }
}
/* ===== SIDEBAR LAYOUT COMPATIBILITY ===== */
.main-content {
    width: 100%;
}

.main-content .container {
    padding: 0;
}

.main-content body {
    background: transparent;
}

@media (max-width: 768px) {
    .sidebar-wrapper {
        flex-direction: column;
    }
}
