:root {
  --primary: #1e40af;
  --accent: #3b82f6;
  --success-bg: #dcfce7;
  --success-text: #166534;
  --process-bg: #fef3c7;
  --process-text: #92400e;
  --bg-light: #f8fafc;
  --text-dark: #1e293b;
}

/* FIX: Ensure body allows footer to stay at bottom without overlapping */
body {
  font-family: "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  margin: 0;
  padding: 0; /* Changed from 20px to 0 to prevent header/footer misalignment */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* FIX: Content area grows to push footer down */
.content-area {
  flex: 1 0 auto;
  padding: 20px; /* Moves the 20px padding here instead of body */
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}

/* HEADER SECTION - Specific to the Hospitals page content */
.page-title-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 30px;
  gap: 10px;
  border-bottom: 3px solid var(--primary);
  padding: 30px 20px 20px;
  background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
  border-radius: 12px 12px 0 0;
}

.page-title-section h1 {
  margin: 0;
  font-size: 2.5rem;
  color: var(--text-dark);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.page-title-section p {
  margin: 0;
  font-size: 1.1rem;
  color: #64748b;
  font-weight: 500;
}

.logo-text {
  font-weight: bold;
  font-size: 2rem;
  color: var(--primary);
  letter-spacing: 1px;
  /* text-transform: uppercase; */
}

/* FILTER SECTION */
.filter-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

input,
select {
  width: 100%;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
  height: 48px;
  line-height: 1.5;
  box-sizing: border-box;
  font-family: inherit;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px;
}

/* TABLE STYLES - Data from NABH Projects list [cite: 8, 9, 10, 11, 12] */
.table-wrapper {
  background: white;
  border-radius: 12px;
  overflow-x: auto;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px; /* Added margin to prevent touching the footer */
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}
th {
  background: var(--primary);
  color: white;
  padding: 15px;
  text-align: left;
}
td {
  padding: 15px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
}

/* STATUS TAGS - Based on project status [cite: 8, 9, 10, 11, 12] */
.status-tag {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
}

.Completed {
  background: var(--success-bg);
  color: var(--success-text);
}
.In.Process {
  background: var(--process-bg);
  color: var(--process-text);
}

.stats {
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary);
}

/* FOOTER INJECTION FIX */
#footer {
  flex-shrink: 0;
  width: 100%;
  position: relative; /* Prevents overlap seen in screenshots */
  z-index: 5;
}

/* MOBILE VIEW */
@media (max-width: 768px) {
.page-title-section {
    padding: 20px 15px 15px;
  }

.page-title-section h1 {
    font-size: 1.8rem;
  }

.page-title-section p {
    font-size: 1rem;
  }

.logo-text {
    font-size: 1.5rem;
  }

  th:nth-child(5),
  td:nth-child(5) {
    display: none;
  }
.filter-box {
    grid-template-columns: 1fr;
  }
.container {
    padding: 0 10px;
  }
}
