/* ======================================
   Colleges Page – Fully Responsive
   ====================================== */

/* Toolbar */
.view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e8f0ea;
  flex-wrap: wrap;
  background: #fff;
  border-radius: 10px;
}
.view-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.view-toggle .label {
  font-weight: 600;
  color: #194929;
  margin-right: 6px;
  font-size: 0.95rem;
}
.toggle-btn {
  background: #f4f9f6;
  border: 1px solid #dbe9e0;
  color: #194929;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.25s ease;
  font-size: 0.9rem;
}
.toggle-btn.active,
.toggle-btn:hover {
  background: #e9f5ee;
  border-color: #b9d7c5;
}
.view-search {
  min-width: 200px;
  flex: 1;
  display: flex;
  justify-content: flex-end;
}
.search-input {
  width: 100%;
  max-width: 360px;
  padding: 10px 12px;
  border: 1px solid #dbe9e0;
  border-radius: 8px;
  font-size: 0.95rem;
}

/* Table Styles */
.responsive-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}
.responsive-table thead th {
  text-align: left;
  padding: 12px 10px;
  background: #f6faf7;
  border-bottom: 2px solid #e2eee6;
  color: #194929;
  font-weight: 600;
}
.responsive-table tbody td {
  padding: 10px;
  border-bottom: 1px solid #eef5f0;
  color: #333;
}
.responsive-table tbody tr:hover {
  background: #f9fdfb;
}

/* Compact Buttons */
.btn-compact {
  padding: 6px 10px;
  font-size: 0.85rem;
  margin-right: 6px;
  border-radius: 6px;
  background: #e9f5ee;
  border: 1px solid #cde3d3;
  color: #194929;
  transition: 0.25s ease;
}
.btn-compact:hover {
  background: #dff3e7;
}

/* Layout spacing tweaks */
.card {
  padding: 16px;
  background: #fff;
  border: 1px solid #eaf3ed;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.overview-stats .stat-box {
  padding: 10px 12px;
  background: #f8fbf9;
  border-radius: 8px;
  flex: 1;
}
.overview-stats .stat-number {
  font-size: 1.3rem;
  font-weight: 600;
  color: #194929;
}

/* ===============================
   RESPONSIVE BREAKPOINTS
   =============================== */

/* Medium Screens (Tablets) */
@media (max-width: 992px) {
  .view-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .view-search {
    justify-content: flex-start;
    width: 100%;
  }
  .search-input {
    max-width: 100%;
  }
  .features {
    gap: 12px;
  }
}

/* Small Screens (Mobile) */
@media (max-width: 720px) {
  /* Hide table headers and make rows block-based */
  .responsive-table thead {
    display: none;
  }
  .responsive-table,
  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table td {
    display: block;
    width: 100%;
  }
  .responsive-table tr {
    margin-bottom: 12px;
    border: 1px solid #eef5f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  }
  .responsive-table td {
    padding: 8px 12px;
    border: none;
    border-bottom: 1px solid #f1f6f3;
  }
  .responsive-table td:last-child {
    border-bottom: none;
  }
  .responsive-table td::before {
    content: attr(data-label);
    font-weight: 600;
    display: block;
    color: #194929;
    margin-bottom: 4px;
  }

  .view-toolbar {
    padding: 10px;
    gap: 8px;
  }
  .toggle-btn {
    padding: 7px 10px;
    font-size: 0.85rem;
  }
  .card {
    padding: 12px;
  }
  .overview-stats .stat-number {
    font-size: 1.1rem;
  }
}

/* Very Small Screens (under 400px) */
@media (max-width: 400px) {
  .toggle-btn {
    flex: 1;
    text-align: center;
  }
  .view-toggle {
    flex-direction: column;
    align-items: stretch;
  }
  .view-search {
    width: 100%;
  }
}
