.poppins-regular {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.anton-regular {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.league-gothic-regular {
  font-family: "League Gothic", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}


#global-loader {
  position: fixed;
  z-index: 9999;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgb(255, 255, 255);
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #960000;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
  }
  
  body {
    display: flex;
    height: 100vh;
    background-color: transparent;
  }

  /* Login page body override */
  html.login-page body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    padding: 0;
  }

  
  
  main {
    display: flex;
    width: 100%;
  }

  main.layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
  }
  
  /* Fixed Sidebar Styles */
/* Updated Sidebar Styles - Matching the Design */
.sidebar {
    width: 300px;
    min-width: 300px !important;
    max-width: 300px !important;
    flex-shrink: 0 !important;
    background-color: #960000;
    color: white;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: relative;
    overflow: hidden;
    z-index: 100;
}

/* Profile section - updated design */
/* Enhanced Profile Section - More Appealing */
.profile {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #960000 0%, #b30000 50%, #cc0000 100%);
    padding: 35px 25px;
    width: 100%;
    justify-content: flex-start;
    position: relative;
    z-index: 2;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@keyframes profileGlow {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    100% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

/* Profile image with enhanced styling */
.profile img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    margin-right: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        0 0 0 2px rgba(255, 255, 255, 0.1),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
}

.profile img:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.4),
        0 0 0 3px rgba(255, 255, 255, 0.2),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
}

/* Profile info with enhanced typography */
.profile-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.profile .name {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #ffffff;
    margin: 0 0 6px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
}


.profile:hover .name::after {
    width: 100%;
}

.profile .role {
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    color: #ffebeb;
    opacity: 0.95;
    margin: 0;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.3px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-block;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.profile:hover .role {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Status indicator */
.profile-status {
    position: absolute;
    top: 50px;
    right: 25px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4CAF50;
    box-shadow: 0 0 8px #4CAF50;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.status-text {
    font-size: 11px;
    color: #ffebeb;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Edit profile button */
.profile-edit {
    position: absolute;
    bottom: 15px;
    right: 25px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 3;
    opacity: 0;
    transform: translateY(10px);
}

.profile:hover .profile-edit {
    opacity: 1;
    transform: translateY(0);
}

.profile-edit:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.profile-edit i {
    font-size: 14px;
}

/* Floating particles in profile section */
.profile-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: float 8s infinite linear;
}

.particle:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
.particle:nth-child(2) { top: 60%; left: 80%; animation-delay: 1s; }
.particle:nth-child(3) { top: 40%; left: 40%; animation-delay: 2s; }
.particle:nth-child(4) { top: 80%; left: 60%; animation-delay: 3s; }
.particle:nth-child(5) { top: 30%; left: 70%; animation-delay: 4s; }

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}


/* Updated Menu container */
.menu {
    display: flex;
    flex-direction: column;
}

/* Menu sections with headers */
.menu-section {
    margin-bottom: 20px;
}

.menu-header {
    font-size: 12px;
    font-weight: 600;
    color: #ffcccc;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 25px 12px 25px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Updated menu items */
.menu a {
    text-decoration: none;
    color: white;
    padding: 12px 25px;
    margin: 2px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
}

.menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
    z-index: -1;
}

.menu a:hover::before {
    left: 100%;
}

.menu a:hover,
.menu a.active {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}


.menu a.active::after {
    background: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.menu a i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 16px;
    opacity: 0.9;
}

.menu a:hover i {
    transform: scale(1.1);
    opacity: 1;
}

/* Updated separator */
.menu-separator {
    border: none;
    height: 1px;
    background: #960000;
    margin: 20px 25px;
    position: relative;
}

/* Updated logout button */
.menu .logout {
    margin-top: auto;
    color: #ffcccc;
    background: rgba(179, 0, 0, 0.3);
    border: 1px solid rgba(255, 204, 204, 0.2);
    transition: all 0.4s ease;
    padding: 12px 25px;
    margin: 15px 15px 25px 15px;
    border-radius: 8px;
    font-size: 14px;
}

.menu .logout:hover {
    background: rgba(179, 0, 0, 0.6);
    color: white;
    border-color: rgba(255, 204, 204, 0.4);
    box-shadow: 0 4px 12px rgba(255, 204, 204, 0.2);
    transform: translateY(-2px);
}

/* Sub-menu indicators */
.menu a.has-submenu::after {
    content: '›';
    position: absolute;
    right: 20px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.menu a.has-submenu:hover::after {
    color: white;
    transform: translateX(2px);
}

/* Remove old flow effect */
.sidebar::before {
    display: none;
}

/* Add subtle background pattern */
.sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}
  
 
  .content {
    flex-grow: 1;
    overflow-y: auto;
    height: 100vh;
    background: linear-gradient(135deg, #f5f5f5 0%, #f0f0f0 50%, #e8e8e8 100%);
    padding: 40px;
    position: relative;
    z-index: 1;
}

.content::before {
    content: '';
    position: fixed; /* Changed from absolute to fixed */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(150, 0, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(150, 0, 0, 0.03) 0%, transparent 50%);
    background-size: 50px 50px;
    background-repeat: repeat;
    z-index: -1;
    opacity: 0.6;
    pointer-events: none;
}

  
  .content h1 {
    font-family: 'Anton', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #960000;
    font-weight: 600;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

  .content h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #960000, transparent);
    border-radius: 2px;
}


  main.layout {
    display: flex !important;
    width: 100% !important;
    height: 100vh !important;
    overflow: hidden !important;
}
  
  .main-box {
    width: 1130px;
    height:100px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }

  .menu a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
  }

  
  
/* ANNOUNCEMENT PAGE */

.section-title {
  text-align: center;
  color: #8B0000;
  font-size: 22px;
  padding-top: 10px;
}

.announcement-main-box {
  width: 600px;
  margin: 20px auto;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  padding: 20px;
}

.announcement-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.announcement-header img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.announcement-header .name {
  font-weight: bold;
  font-size: 16px;
}

.announcement-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.announcement-form textarea {
  width: 100%;
  height: 80px;
  padding: 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 20px;
  resize: none;
  background-color: #f5f5f5;
}

.announcement-form input[type="file"] {
  border: none;
  font-size: 14px;
  margin-top: 5px;
}

.announcement-form small {
  font-size: 12px;
  color: #888;
  margin-top: -5px;
}

.btn-post {
  background-color: #8B0000;
  color: white;
  padding: 10px 0;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 16px;
  width: 100px;
  align-self: flex-end;
  transition: background-color 0.3s ease;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-post:hover {
  background-color: #a40000;
}

/* RECENT ANNOUNCEMENTS - UPDATED */

#announcements-container {
  width: 600px;
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Updated announcement post style to match the image */
.announcement-post {
  background-color: white;
  border-radius: 8px;
  padding: 15px;
  border: 1px solid #e0e0e0;
  position: relative;
  margin-bottom: 15px;
}

.announcement-profile-pic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

.announcement-user-info {
  flex: 1;
}

.announcement-username {
  font-weight: bold;
  font-size: 14px;
  margin: 0;
}

.announcement-role {
  color: #666;
  font-size: 12px;
  margin: 0;
}

.announcement-date {
  color: #888;
  font-size: 12px;
  margin-top: 2px;
}

.announcement-content {
  font-size: 14px;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.4;
}

.announcement-image {
  max-width: 100%;
  border-radius: 8px;
  margin-top: 10px;
}

.announcement-actions {
  display: flex;
  align-items: center;
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.announcement-action {
  display: flex;
  align-items: center;
  margin-right: 15px;
  color: #666;
  font-size: 12px;
  cursor: pointer;
}

.announcement-action i {
  margin-right: 5px;
}

.announcement-divider {
  border: none;
  height: 1px;
  background-color: #eee;
  margin: 15px 0;
}


.announcement-action {
  pointer-events: none;
  cursor: default;
}

.like-count {
  margin-left: 5px;
  color: 0xFF9B1B30;
}

/* Dropdown Styles */
.announcement-actions-dropdown {
  position: relative;
  display: inline-block;
  margin-left: auto;
}

.dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  padding: 5px;
}

.dropdown-menu-announcement {
  display: none;
  position: absolute;
  right: 0;
  background-color: white;
  min-width: 120px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  border-radius: 4px;
  z-index: 100;
}

.dropdown-menu-announcement.show {
  display: block;
}

.dropdown-item-announcement {
  width: 100%;
  display: block;
  text-align: left;
  background: transparent;
  border: none;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
}

.dropdown-item-announcement:hover {
  background-color: #f5f5f5;
}

.dropdown-item-announcement.delete-announcement {
  color: #ff0000;
}

/* Add this CSS for the edit form */

.edit-announcement-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.edit-announcement-form textarea {
  width: 100%;
  min-height: 100px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.current-image {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.current-image img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 4px;
}

.edit-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-cancel, .btn-save {
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-cancel {
  background: #f5f5f5;
  border: 1px solid #ddd;
}

.btn-delete {
  background: #960000;
  color: #f5f5f5;
  border: 1px solid #ddd;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-save {
  background: #960000;
  color: white;
  border: none;
}

.modal-buttons {
  padding-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}


/* WASTE SCHEDULE PAGE - UPDATED TO MATCH THEME */
.schedule-container{
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.schedule-info {
  margin-bottom: 30px;
  color: #666;
  background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
  padding: 25px;
  border-radius: 16px;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(150, 0, 0, 0.05);
  border: 1px solid rgba(150, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.schedule-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #960000, #b30000);
}

.schedule-info p {
    margin-bottom: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.schedule-info p:last-child {
    margin-bottom: 0;
}

.schedule-info span {
    font-weight: 600;
    color: #960000;
}

.search-container {
    margin-bottom: 30px;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(150, 0, 0, 0.05);
    border: 1px solid rgba(150, 0, 0, 0.1);
    position: relative;
}

.search-icon {
    position: absolute;
    left: 45px;
    top: 50%;
    transform: translateY(-50%);
    color: #960000;
    opacity: 0.6;
    z-index: 2;
    font-size: 16px;
    pointer-events: none; /* So clicks go through to input */
}

/* Fixed Search Icon Positioning */
.search-container::before {
    content: '\f002';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 45px; /* Adjusted position */
    top: 50%;
    transform: translateY(-50%);
    color: #960000;
    opacity: 0.6;
    z-index: 2;
    font-size: 16px;
}

#search-barangay {
    width: 100%;
    padding: 15px 20px 15px 50px; /* Increased left padding for icon */
    border: 1px solid rgba(150, 0, 0, 0.2);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: relative;
}

#search-barangay:focus {
    outline: none;
    border-color: #960000;
    box-shadow: 
        0 0 0 3px rgba(150, 0, 0, 0.1),
        0 4px 20px rgba(150, 0, 0, 0.15);
    background: white;
    transform: translateY(-2px);
}

.schedule-table-container {
    overflow-x: auto;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 4px 16px rgba(150, 0, 0, 0.08);
    border: 1px solid rgba(150, 0, 0, 0.1);
    position: relative;
}

.schedule-table-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #960000, #b30000, #960000);
    border-radius: 20px 20px 0 0;
}

#schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

#schedule-table th {
    background: linear-gradient(135deg, #960000, #b30000);
    color: white;
    font-weight: 600;
    padding: 18px 20px;
    text-align: left;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    font-size: 15px;
    position: relative;
}

#schedule-table th::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: rgba(255, 255, 255, 0.3);
}

#schedule-table th:last-child::after {
    display: none;
}

#schedule-table td {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(150, 0, 0, 0.1);
    background: white;
    transition: all 0.3s ease;
}

#schedule-table tr:last-child td {
  border-bottom: none;
}

#schedule-table tr:hover td {
    background: rgba(150, 0, 0, 0.02);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(150, 0, 0, 0.1);
}

.sub-area {
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(150, 0, 0, 0.03);
    border-left: 3px solid #960000;
    transition: all 0.3s ease;
}

.sub-area:hover {
    background: rgba(150, 0, 0, 0.08);
    transform: translateX(4px);
}

.sub-area-name {
    font-weight: 600;
    color: #333;
    display: block;
    font-size: 14px;
}

.sub-area-schedule {
    color: #960000;
    font-size: 13px;
    display: block;
    margin-top: 4px;
    font-weight: 500;
}

.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    height: 100%;
}

.btn-edit {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #960000, #b30000);
    color: white;
    height: 40px;
    font-weight: 500;
}

.btn-edit:hover {
    background: linear-gradient(135deg, #b30000, #cc0000);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(150, 0, 0, 0.3);
}

/* MODAL STYLES - UPDATED TO MATCH THEME */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 25px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  max-height: 70vh;
  overflow-y: auto;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  border: 1px solid #e0e0e0;
}


.modal-content h2 {
  color: #960000;
  margin-bottom: 20px;
  font-size: 20px;
  padding-bottom: 10px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
  margin-top: -10px;
}

.close:hover {
  color: #960000;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #555;
  font-size: 14px;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #960000;
  box-shadow: 0 0 0 2px rgba(150,0,0,0.1);
}

.form-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.btn-primary, .btn-secondary {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background-color: #960000;
  color: white;
  border: none;
}

.btn-primary:hover {
  background-color: #b30000;
}

.btn-secondary {
  background-color: #f1f1f1;
  color: #333;
  border: 1px solid #ddd;
}

.btn-secondary:hover {
  background-color: #e6e6e6;
}

/* SUB-AREA ITEMS IN MODAL */
.sub-area-item {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  align-items: center;
}

.sub-area-item input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.sub-area-item button {
  background: #ff4d4d;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.sub-area-item button:hover {
  background: #ff3333;
}

#add-sub-area {
  width: 100%;
  margin-bottom: 15px;
  background: #f1f1f1;
  color: #333;
  border: 1px dashed #ccc;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

#add-sub-area:hover {
  background: #e6e6e6;
  border-color: #aaa;
}

  /*LOGIN PAGE*/
/* Enhanced Login Page Design */
.login-page {
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #960000 0%, #b30000 50%, #cc0000 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    font-family: "Poppins", sans-serif;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Remove any unwanted box/border */
.login-page * {
    box-sizing: border-box;
}

/* Background Pattern Overlay */
.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    z-index: 1;
}

/* Floating Particles Animation */
.login-page::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 2%, transparent 4%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 2%, transparent 4%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.1) 2%, transparent 4%),
        radial-gradient(circle at 60% 20%, rgba(255, 255, 255, 0.1) 2%, transparent 4%);
    background-size: 400px 400px;
    animation: floatParticles 20s linear infinite;
    z-index: 1;
}

@keyframes floatParticles {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-400px) rotate(360deg); }
}

/* Enhanced Login Container - WIDER */
.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 50px 40px;
    border-radius: 24px;
    text-align: center;
    width: 100%;
    max-width: 500px; /* Increased from 450px to 500px */
    min-width: 450px; /* Ensure minimum width */
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 8px 32px rgba(150, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
    animation: slideUp 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
    margin: 20px; /* Added margin for smaller screens */
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Enhanced Logo/Brand */
.login-container h2 {
    color: #960000;
    font-weight: 800;
    font-size: 3.5rem;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    display: inline-block;
}

.login-container p {
    color: #666;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
}

/* Enhanced Form Styles */
.login-container form {
    margin-bottom: 0;
    width: 100%;
}

.input-group {
    margin-bottom: 24px;
    text-align: left;
    position: relative;
    width: 100%;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.input-group input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    font-family: "Poppins", sans-serif;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.input-group input:focus {
    outline: none;
    border-color: #960000;
    background: white;
    box-shadow: 
        0 4px 20px rgba(150, 0, 0, 0.15),
        0 0 0 4px rgba(150, 0, 0, 0.1);
    transform: translateY(-2px);
}

.input-group input::placeholder {
    color: #999;
    font-weight: 400;
}

/* Enhanced Login Button */
.login-btn {
    margin: 30px auto 20px;
    background: linear-gradient(135deg, #960000, #b30000);
    color: white;
    padding: 16px 32px;
    border: none;
    width: 100%;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: "Poppins", sans-serif;
    transition: all 0.3s ease;
    display: block;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(150, 0, 0, 0.3);
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(150, 0, 0, 0.4),
        0 4px 15px rgba(150, 0, 0, 0.3);
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:active {
    transform: translateY(-1px);
}

/* Enhanced Toggle Buttons */
.form-toggle {
    margin-top: 30px;
    /* Always center the toggle buttons horizontally and vertically */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;        /* spacing between buttons */
    width: 100%;
    flex-wrap: wrap;  /* keeps layout nice on narrow screens */
}

.toggle-btn {
    background: none;
    border: none;
    color: #960000;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    font-family: "Poppins", sans-serif;
    transition: all 0.3s ease;
    padding: 12px 20px;
    border-radius: 8px;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.toggle-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #960000;
    transition: width 0.3s ease;
}

.toggle-btn:hover {
    color: #b30000;
    background: rgba(150, 0, 0, 0.05);
    transform: translateY(-2px);
}

.toggle-btn:hover::before {
    width: 80%;
}

/* Additional Visual Effects */
.login-container .decoration {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(150, 0, 0, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.decoration-1 {
    top: -50px;
    right: -50px;
    animation: float 6s ease-in-out infinite;
}

.decoration-2 {
    bottom: -80px;
    left: -80px;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Success/Error States */
.input-group.success input {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.input-group.error input {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}


.input-group input:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #dc3545;
}



/* Notification Popup Styles */
.notification-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #960000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10000;
    overflow: hidden;
}

.notification-popup.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-popup.success {
    border-left-color: #28a745;
}

.notification-popup.error {
    border-left-color: #dc3545;
}

.notification-popup.warning {
    border-left-color: #ffc107;
}

.notification-popup.info {
    border-left-color: #17a2b8;
}

.notification-content {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
}

.notification-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.notification-icon-i {
    font-size: 20px;
}

.notification-popup.success .notification-icon-i {
    color: #28a745;
}

.notification-popup.error .notification-icon-i {
    color: #dc3545;
}

.notification-popup.warning .notification-icon-i {
    color: #ffc107;
}

.notification-popup.info .notification-icon-i {
    color: #17a2b8;
}

.notification-text {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.3;
}

.notification-message {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    word-wrap: break-word;
}

.notification-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #960000;
    width: 100%;
    transform: scaleX(0);
    transform-origin: left;
}

.notification-popup.success .notification-progress {
    background: #28a745;
}

.notification-popup.error .notification-progress {
    background: #dc3545;
}

.notification-popup.warning .notification-progress {
    background: #ffc107;
}

.notification-popup.info .notification-progress {
    background: #17a2b8;
}

@keyframes progress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

/* Form Animation Enhancements */
.login-container {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-group input {
    transition: all 0.3s ease;
}

.input-group input:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(150, 0, 0, 0.15);
}

/* Password Requirements Styles */
.password-requirements {
    margin-top: 8px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 13px;
    color: #666;
    transition: all 0.3s ease;
}

.requirement-item:last-child {
    margin-bottom: 0;
}

.requirement-item i {
    font-size: 12px;
    color: #ccc;
    transition: all 0.3s ease;
}

.requirement-item.met {
    color: #28a745;
}

.requirement-item.met i {
    color: #28a745;
}

.requirement-item span {
    font-weight: 500;
}



#manage-posts-container {
  width: 600px;
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}


.post-actions {
  margin-top: 10px;
  align-items: center;
  justify-content: center;
  display: flex;
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.like-btn, .comment-btn {
  font-size: 15px;
  width: 100%;
}

.like-icon {
  color: #960000;
  transition: all 0.2s;
}

.like-btn.liked .like-icon {
  color: #960000;
}

.btn-approve {
  background-color: #960000;
  color: white;
  padding: 8px 0;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 16px;
  width: 150px;
  align-self: flex-end;
  transition: background-color 0.3s ease;
}

.btn-reject {
  color: #960000;
  padding: 8px 0;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 16px;
  background-color: #00000000;
  width: 150px;
  font-weight: bold;
  align-self: flex-end;
}

#posts-container {
  width: 600px;
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.post {
  background-color: white;
  border-radius: 8px;
  padding: 15px;
  border: 1px solid #e0e0e0;
  position: relative;
  margin-bottom: 15px;
}

.post-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.post-header img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.post-header .name {
  font-weight: bold;
  font-size: 16px;
}

.post-profile-pic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

.post-user-info {
  flex: 1;
}

.post-username {
  font-weight: bold;
  font-size: 14px;
  margin: 0;
}

.post-date {
  color: #888;
  font-size: 12px;
  margin-top: 2px;
}

.post-content {
  font-size: 14px;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.4;
}

.post-image {
  max-width: 100%;
  border-radius: 8px;
  margin-top: 10px;
}

.post-actions {
  display: flex;
  align-items: center;
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.post-actions button {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  margin-left: 10px;
}

.comments-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.comment-content {
  background: white;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  pointer-events: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.modal-header h3 {
  margin: 0;
  color: #960000;
  font-size: 18px;
  font-weight: 600;
}

.modal-header h2 {
  margin: 0;
  color: #960000;
  font-size: 20px;
}

.info-btn {
  background: none;
  border: none;
  color: #960000;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.info-btn:hover {
  color: #b30000;
  transform: scale(1.1);
}

.info-btn i {
  font-size: 1.4rem;
}

#guidelines-modal .modal-content {
  max-width: 600px;
}

#guidelines-modal .disclaimer-content {
  padding: 0 10px;
}

#guidelines-modal .disclaimer-section {
  margin-bottom: 20px;
}

#guidelines-modal .disclaimer-section:last-child {
  margin-bottom: 0;
}

.comments-container {
  flex: 1;
  overflow-y: auto;
  padding: 15px 20px;
  min-height: 0;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.comments-list .no-comments {
  text-align: center;
  color: #999;
  padding: 20px;
  font-style: italic;
}

.comment {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
}

.comment-text {
  margin: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

.comment-footer {
  font-size: 0.8rem;
  color: #666;
  margin-top: 2px;
}


.comment-actions {
  position: absolute;
  right: 0;
  top: 0;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
  z-index: 10;
}

.comment:hover .comment-actions {
  opacity: 1;
}

.comment-actions.active {
  opacity: 1;
}

.comment-header:hover .comment-actions {
  opacity: 1;
}

.comment-menu-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e0e0e0;
  color: #666;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.comment-menu-btn:hover {
  background-color: #f0f0f0;
  color: #333;
  border-color: #ccc;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.comment-menu-btn:active {
  background-color: #e0e0e0;
  transform: scale(0.95);
}

.comment-menu-btn i {
  font-size: 14px;
  display: block;
}

.comment-menu {
  position: absolute;
  background-color: white;
  min-width: 140px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border-radius: 8px;
  z-index: 1000;
  display: none;
  top: 32px;
  right: 0;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.comment-menu.show {
  display: block;
}

.comment-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  transition: background-color 0.2s ease;
  font-family: 'Poppins', sans-serif;
}

.comment-menu button:hover {
  background: #f5f5f5;
}

.comment-menu button i {
  font-size: 14px;
  width: 16px;
  text-align: center;
}

.comment-menu .edit-comment {
  border-bottom: 1px solid #f0f0f0;
}

.comment-menu .edit-comment {
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  padding: 10px 14px;
}

.comment-menu .delete-comment {
  color: #dc3545;
  border-bottom: 1px solid #f0f0f0;
  padding: 10px 14px;
}

.comment-menu .delete-comment:hover {
  background: #fee;
  color: #c82333;
}

.edit-comment-textarea {
  margin-top: 10px;
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  resize: none;           /* disable manual resize */
  overflow: hidden;       /* hide scrollbar while auto-sizing */
  min-height: 60px;
  max-height: 300px;      /* limit growth so it doesn't overflow the modal */
  box-sizing: border-box; /* ensure padding included in width/height */
  font-family: inherit;
  font-size: inherit;
  line-height: 1.4;
  height: auto;           /* allow JS to adjust */
}

.edit-comment-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.edit-comment-actions button {
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.save-edit {
  background: #960000;
  color: white;
  border: none;
}

.cancel-edit {
  background: #f5f5f5;
  color: #960000;;
  border: 1px solid #ddd;
}

.comment-actions button {
  background: none;
  border: none;
  padding: 0;
  color: #666;
  cursor: pointer;
  font-size: 0.8rem;
}

.add-comment {
  padding: 15px 20px;
  border-top: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  background-color: #fafafa;
}

.add-comment textarea {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 20px;
  resize: none;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  min-height: 40px;
  max-height: 120px;
  overflow-y: auto;
}

.add-comment textarea:focus {
  outline: none;
  border-color: #960000;
}

.post-comment {
  background: none;
  color: #8B0000;
  border: none;
  padding: 0 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 20px;
  transition: all 0.2s;
}

.post-comment:not(:disabled) {
  color: #8B0000;
  cursor: pointer;
}

.post-comment:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}


.like-btn, .comment-btn {
  background: none;
  border: none;
  cursor: pointer;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 5px;
  transition: all 0.2s;
}

.like-btn:hover, .comment-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.like-btn.liked {
  color: #8B0000;
}

.like-counter {
  margin-left: 5px;
}

.comment-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  position: relative;
  min-height: 40px;
}

.comment-username {
  font-weight: bold;
  font-size: 14px;
  margin: 0 0 4px 0;
  color: #333;
}

.comment-info {
  flex: 1;
  min-width: 0;
  background-color: #f0f0f0;
  padding: 8px 12px;
  border-radius: 12px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.comment-info .comment-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #333;
  word-break: break-word;
  overflow-wrap: break-word;
}

.comment-info .comment-text p {
  margin: 0;
  margin-bottom: 4px;
}

.comment-info .comment-text p:last-child {
  margin-bottom: 0;
}

.comment-time {
  margin-top: 4px;
  padding-left: 50px;
  font-size: 12px;
  color: #666;
}

.comment-profile-pic {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.commenter-profile-pic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.post-comment {
  position: relative;
  min-width: 40px;
}

.post-comment i {
  transition: all 0.2s;
}

.commenter-profile-pic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

/* Waste Information Page */

.waste-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}


.waste-table-container {
    overflow-x: auto;
    overflow-y: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 4px 16px rgba(150, 0, 0, 0.08);
    border: 1px solid rgba(150, 0, 0, 0.1);
    position: relative;
}

.waste-table-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #960000, #b30000, #960000);
    border-radius: 20px 20px 0 0;
}

#waste-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

#waste-table td {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(150, 0, 0, 0.1);
    background: white;
    transition: all 0.3s ease;
}

#waste-table tr:last-child td {
    border-bottom: none;
}


#waste-table th, #waste-table td {
  width: 25%; 
  padding: 8px;
}

#waste-table th {
    background: linear-gradient(135deg, #960000, #b30000);
    color: white;
    font-weight: 600;
    padding: 18px 20px;
    text-align: left;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    font-size: 15px;
    position: relative;
}

#waste-table th::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: rgba(255, 255, 255, 0.3);
}

#waste-table th:last-child::after {
    display: none;
}

#waste-table tr:hover td {
    background: rgba(150, 0, 0, 0.02);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(150, 0, 0, 0.1);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

#search-waste {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 1px solid rgba(150, 0, 0, 0.2);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: relative;
}

#search-waste:focus {
    outline: none;
    border-color: #960000;
    box-shadow: 0 0 0 2px rgba(150, 0, 0, 0.1);
}

#category-filter {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 30px;
  font-size: 14px;
  transition: all 0.3s;
  margin-top: 10px;
  background-color: white;
  cursor: pointer;
}

#category-filter:focus {
  outline: none;
  border-color: #960000;
  box-shadow: 0 0 0 2px rgba(150,0,0,0.1);
}

#category-filter option {
  padding: 8px;
  background-color: white;
  color: #333;
}

/* Category header with filter icon */
.category-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.icon-button {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 6px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.icon-button:active {
  transform: scale(0.96);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: #ffffff;
    border: 1px solid rgba(150, 0, 0, 0.1);
    border-radius: 12px;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(150, 0, 0, 0.1);
    min-width: 200px;
    padding: 8px;
    display: none;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.dropdown-menu.show {
    display: block;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
  width: 100%;
  display: block;
  text-align: left;
  background: transparent;
  border: none;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
}

.dropdown-item:hover {
  background: #f5f5f5;
}

/* Remove old clear filters styling if present */
#clear-filters { display: none; }
#clear-filters:hover { display: none; }

.method-item, .eco-item {
  margin-bottom: 8px;
  padding: 8px;
  background-color: #f9f9f9;
  border-radius: 4px;
}

.method-item {
  border-left: 3px solid #e67e22;
}

.eco-item {
  border-left: 3px solid #27ae60;
}

.action-buttons {
  display: flex;
  gap: 8px;
}

.btn-edit-category {
  background-color: #2aadbe;  /* Rich purple - stands out but complements red */
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  margin: 2px;
  transition: background-color 0.3s;
}

.btn-edit-disposal {
  background-color: #d35400;  /* Dark orange - earthy tone that works with red */
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  margin: 2px;
  transition: background-color 0.3s;
}

.btn-edit-eco {
  background-color: #16a085;  /* Teal - provides nice contrast to red */
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  margin: 2px;
  transition: background-color 0.3s;
}

/* Hover effects for better interactivity */
.btn-edit-category:hover {
  background-color: #35d5eb;
}

.btn-edit-disposal:hover {
  background-color: #e67e22;
}

.btn-edit-eco:hover {
  background-color: #1abc9c;
}

.disposal-item-form {
  background-color: #fff8f0;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
}

.disposal-description, .eco-description {
  resize: none;
  overflow-y: hidden; /* Hide scrollbar */
  min-height: 40%; /* Initial height */
  transition: height 0.2s ease;
}

.eco-item-form {
  background-color: #f0fff4;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 5px;
}

.btn-remove {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
  align-items: flex-end;
}

  .feedback-container {
  width: 600px;
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  }
  
  .feedback-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    display: flex;
    gap: 15px;
  }
  
  .feedback-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
  }
  
  .feedback-user img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
  }
  
  .feedback-user .name {
    font-weight: bold;
    text-align: center;
  }
  
  .feedback-content {
    flex: 1;
  }
  
  .feedback-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
  }
  
  .feedback-title {
    font-size: 1.2rem;
    font-weight: bold;
  }
  
  .feedback-time {
    color: #666;
    font-size: 0.9rem;
  }
  
  .feedback-rating {
    color: #960000;
    margin-bottom: 10px;
  }
  
  .feedback-message {
    line-height: 1.5;
  }

.pagination-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pagination-controls button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid #960000;
  border-radius: 4px;
  background-color: white;
  color: #960000;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.pagination-controls button:hover:not(:disabled) {
  background-color: #960000;
  color: white;
  border-color: #960000;
}

.pagination-controls button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: #ccc;
  color: #999;
}

.pagination-controls #page-info {
  font-size: 0.9rem;
  color: #960000;
  font-weight: 500;
  padding: 0.5rem 1rem;
  background-color: #fff8f8;
  border-radius: 4px;
  border: 1px solid #ffebeb;
}

.disclaimer-box {
  background-color: #fff8f8;
  border: 1px solid #ffebeb;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.disclaimer-box h3 {
  color: #960000;
  font-size: 12px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.disclaimer-box h3 i {
  color: #960000;
}

.disclaimer-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.disclaimer-section {
  background-color: white;
  border-radius: 6px;
  padding: 12px;
  border: 1px solid #ffebeb;
  margin-bottom: 15px;
}

.disclaimer-section h4 {
  color: #960000;
  font-size: 12px;
  margin-bottom: 8px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.disclaimer-section h4 i {
  font-size: 12px;
}

/* Category Guidelines */
.category-guidelines {
  border-left: 4px solid #2aadbe;
}

.category-guidelines h4 i {
  color: #2aadbe;
}

/* Disposal Guidelines */
.disposal-guidelines {
  border-left: 4px solid #d35400;
}

.disposal-guidelines h4 i {
  color: #d35400;
}

/* Eco-Friendly Guidelines */
.eco-guidelines {
  border-left: 4px solid #16a085;
}

.eco-guidelines h4 i {
  color: #16a085;
}

.disclaimer-section ul {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}

.disclaimer-section li {
  color: #666;
  font-size: 12px;
  margin-bottom: 6px;
  padding-left: 20px;
  position: relative;
}

.disclaimer-section li:before {
  content: "•";
  position: absolute;
  left: 0;
  font-weight: bold;
}

.category-guidelines li:before {
  color: #2aadbe;
}

.disposal-guidelines li:before {
  color: #d35400;
}

.eco-guidelines li:before {
  color: #16a085;
}

.disclaimer-section li:last-child {
  margin-bottom: 0;
}

#waste-table th select#category-filter {
  display: inline-block;
  margin-left: 8px;
  margin-top: 0;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 12px;
  background-color: #fff;
  color: #333;
}

#waste-table th select#category-filter:focus {
  outline: none;
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.15);
}

/* Reduce width so it doesn't break table header layout */
#waste-table th select#category-filter {
  max-width: 200px;
}

/* USER ANALYTICS PAGE STYLES */

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.page-header h1 {
  margin: 0;
  color: #960000;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: #960000;
  color: white;
}

.btn-primary:hover {
  background: #b30000;
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.analytics-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.analytics-card {
  font-family: "League Gothic", sans-serif;
  background: white;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.analytics-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #960000, #b30000);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
}

.card-content h3 {
  font-size: 28px;
  font-weight: bold;
  color: #960000;
  margin: 0 0 5px 0;
}

.card-content p {
  color: #666;
  font-size: 14px;
  margin: 0;
}

.analytics-section {
  background: white;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.analytics-section h2 {
  color: #960000;
  font-size: 22px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.district-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.district-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  border-left: 4px solid #960000;
}

.district-card h3 {
  color: #960000;
  font-size: 18px;
  margin-bottom: 15px;
  text-align: center;
}

.district-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e0e0e0;
}

.stat-item:last-child {
  border-bottom: none;
}

.stat-label {
  color: #666;
  font-size: 14px;
}

.stat-value {
  color: #960000;
  font-weight: bold;
  font-size: 16px;
}

.charts-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.chart-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.chart-card h3 {
  color: #960000;
  font-size: 16px;
  margin-bottom: 15px;
}

.chart-card canvas {
  max-height: 300px;
}

.barangay-stats-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-height: 300px;
}

.barangay-stats-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.district-section h3 {
  color: #960000;
  font-size: 18px;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0f0f0;
}

.barangay-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.barangay-item {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 3px solid #960000;
  transition: background-color 0.2s ease;
}

.barangay-item:hover {
  background: #e9ecef;
}

.barangay-name {
  font-weight: 500;
  color: #333;
}

.barangay-count {
  background: #960000;
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: bold;
}


/* Mobile / Tablet blocker - show for <= 1024px and hide on larger screens */
#mobile-blocker {
  display: none; /* hidden by default on desktops */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.78);
  z-index: 99999;
  display: flex;
  align-items: center;   /* vertical centering */
  justify-content: center; /* horizontal centering */
  text-align: center;
  padding: 20px;
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  pointer-events: none; /* block only when visible */
  box-sizing: border-box;
}

#mobile-blocker .mobile-blocker-inner {
  width: 100%;
  max-width: 560px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.06);
  pointer-events: auto;
  margin: 0 auto;      /* ensure inner is centered */
  max-height: calc(100vh - 48px);
  overflow-y: auto;    /* allow scrolling inside dialog if content is tall */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Mobile blocker: show only on phones (<=480px). Hide all other page content when visible */
@media (max-width: 480px) {
  /* Force the blocker visible and fully centered */
  #mobile-blocker {
    display: flex !important;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0,0,0,0.86);
    z-index: 99999;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    pointer-events: auto !important;
    box-sizing: border-box;
  }

  #mobile-blocker .mobile-blocker-inner {
    width: 100%;
    max-width: 560px;
    margin: 0 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.06);
    pointer-events: auto;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .mobile-blocker-inner {
    width: 100%;
    max-width: 560px;
    margin: 0 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.06);
    pointer-events: auto;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  /* Hide everything behind the blocker to avoid layout bleed / accidental interaction */
  body > *:not(#mobile-blocker) {
    display: none !important;
  }

  html, body {
    height: 100%;
    overflow: hidden;
  }
}

/* Ensure blocker is hidden on larger devices */
@media (min-width: 481px) {
  #mobile-blocker {
    display: none !important;
    pointer-events: none !important;
  }
}