/* Add to styles.css */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  flex: 1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #EAF2F8;
  height: 100vh;
  overflow: hidden;
}

.container {
  display: flex;
  height: 100vh;
}

/* Left Sidebar Navigation (Default - 2 Column Layout) */
.sidebar {
  width: 300px;
  background-color: #154360;
  color: white;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.sidebar-header {
  padding: 30px 20px;
  text-align: center;
  border-bottom: 1px solid #1A5276;
  background-color: #0F2B3C;
}

.sidebar-header h1 {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.3;
  color: white;
}

.nav-menu {
  flex: 1;
  padding: 20px 0;
}

.nav-item {
  display: block;
  padding: 15px 25px;
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.nav-item:hover {
  background-color: #1A5276;
  border-left-color: #5DADE2;
  padding-left: 30px;
}

.nav-item.active {
  background-color: #1A5276;
  border-left-color: #5DADE2;
}

/* Horizontal Layout for Index Page */
.horizontal-layout .container {
  flex-direction: column;
}

.horizontal-layout .sidebar {
  width: 100%;
  height: auto;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.horizontal-layout .sidebar-header {
  padding: 20px 30px;
  border-bottom: none;
  border-right: 1px solid #1A5276;
  background-color: #154360;
  flex-shrink: 0;
}

.horizontal-layout .sidebar-header h1 {
  font-size: 16px;
  margin: 0;
}

.horizontal-layout .nav-menu {
  display: flex;
  flex: 1;
  padding: 0;
  justify-content: left;
  align-items: center;
}

.horizontal-layout .nav-item {
  padding: 20px 25px;
  border-left: none;
  border-bottom: 4px solid transparent;
  text-align: center;
  white-space: nowrap;
}

.horizontal-layout .nav-item:hover {
  background-color: #1A5276;
  border-bottom-color: #5DADE2;
  border-left-color: transparent;
  padding-left: 25px;
}

.horizontal-layout .nav-item.active {
  background-color: #1A5276;
  border-bottom-color: #5DADE2;
  border-left-color: transparent;
}

/* Main Content Area */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: auto;
}

.content-header {
  background-color: white;
  padding: 25px 30px;
  border-bottom: 2px solid #D5DBDB;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.content-header h2 {
  font-size: 28px;
  color: #154360;
  font-weight: 700;
}

.content-body {
  flex: 1;
  padding: 0px;
  background-color: #EAF2F8;
}

/* Homepage Styles */
.welcome-content {
  background-color: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-align: center;
}

.welcome-content h3 {
  color: #154360;
  font-size: 24px;
  margin-bottom: 20px;
}

.welcome-content p {
  color: #566573;
  font-size: 16px;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.stat-card {
  background-color: #154360;
  color: white;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
}

.stat-card h4 {
  font-size: 32px;
  margin-bottom: 10px;
}

.stat-card p {
  font-size: 14px;
  opacity: 0.9;
}

/* Table Styles for Residents Page */
.table-container {
  background-color: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  overflow-x: auto;
}

.residents-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.residents-table th,
.residents-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #D5DBDB;
}

.residents-table th {
  background-color: #F8F9FA;
  font-weight: bold;
  color: #154360;
}

.residents-table tr:hover {
  background-color: #F8F9FA;
}

/* General Section Content */
.section-content {
  background-color: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  margin-bottom: 10px;
}

.section-content h3 {
  color: #154360;
  font-size: 20px;
  margin-bottom: 15px;
}

.section-content p {
  color: #566573;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Add or update these styles */
footer {
  width: 100%;
  background: #f5f5f5;
  color: #222;
  padding: 5px 2px;
  font-size: 1rem;
  position: bottom; /* or fixed/bottom if you want sticky footer */
  z-index: 10;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    height: auto;
  }
  
  .sidebar-header h1 {
    font-size: 16px;
  }
  
  .nav-menu {
    display: flex;
    overflow-x: auto;
    padding: 10px 0;
  }
  
  .nav-item {
    white-space: nowrap;
    min-width: 150px;
    text-align: center;
  }
  
  .main-content {
    height: calc(100vh - 200px);
  }

  /* Mobile responsive for horizontal layout */
  .horizontal-layout .sidebar {
    flex-direction: column;
  }

  .horizontal-layout .sidebar-header {
    border-right: none;
    border-bottom: 1px solid #1A5276;
    padding: 15px 20px;
  }

  .horizontal-layout .sidebar-header h1 {
    font-size: 14px;
  }

  .horizontal-layout .nav-menu {
    overflow-x: auto;
    padding: 10px 0;
    justify-content: flex-start;
  }

  .horizontal-layout .nav-item {
    min-width: 120px;
    padding: 15px 20px;
    font-size: 14px;
  }

  .horizontal-layout .main-content {
    height: calc(100vh - 150px);
  }
}


.announcement {
  display: flex;
  align-items: center;
  background: #fffbe6;
  border: 1px solid #ffe58f;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 1.1rem;
  margin:20px;
}

.announcement-text {
  color: deepskyblue
}

.bullhorn {
  font-size: 1.5rem;
  margin-right: 10px;
}