/* Base layout */
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(to bottom right, #e6eef8, #d1e2f3);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navbar */
.sbs-navbar {
  background-color: #1f57a4;
  padding: 1rem 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  position: relative;
  border-radius: 0 0 1rem 1rem;
  margin-bottom: 2rem;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  color: white;
  font-size: 1.25rem;
  font-weight: bold;
}

.navbar-links a {
  position: relative;
  color: white;
  text-decoration: none;
  margin-left: 1.5rem;
  transition: color 0.3s ease;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: white;
  transition: width 0.3s ease;
}

.navbar-links a:hover {
  color: #d1e1ff;
}

.navbar-links a:hover::after {
  width: 100%;
}

.navbar-links a.active {
  font-weight: bold;
  border-bottom: 2px solid white;
  padding-bottom: 2px;
}

/* Content Wrapper */
.content-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 1rem;
}

/* Card */
.card {
  background-color: white;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 1100px;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.card h2 {
  margin-top: 0;
  color: #1f57a4;
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Table Styling */
.table-responsive {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background-color: #1f57a4;
  color: white;
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

td {
  color: #222;
  font-size: 0.95rem;
}

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

/* Search bar */
.search-bar {
  margin: 1.25rem 0;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #ccc;
  width: 100%;
  font-size: 1rem;
  box-sizing: border-box;
}

/* Footer */
.sbs-footer {
  background-color: #1f57a4;
  color: white;
  text-align: center;
  padding: 1rem 2rem;
  font-size: 0.95rem;
  border-radius: 1rem 1rem 0 0;
  margin-top: 3rem;
  position: relative;
}

/* Footer hover link effects (if any links added inside) */
.sbs-footer a {
  position: relative;
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.sbs-footer a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background-color: white;
  transition: width 0.3s ease;
}

.sbs-footer a:hover {
  color: #d1e1ff;
}

.sbs-footer a:hover::after {
  width: 100%;
}

/* ✅ DASHBOARD SERVICE CARDS */
.service-card .card {
  border: 1px solid #e1e8f0;
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.service-card .card:hover {
  transform: translateY(-4px);
}

.service-card .card-header {
  background-color: #1f57a4 !important;
  color: white;
  border-radius: 1rem 1rem 0 0;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 1.1rem;
}

.service-card .badge {
  font-size: 0.75rem;
  padding: 0.4em 0.6em;
  border-radius: 0.5rem;
}

/* Badge colour improvements */
.badge.bg-success {
  background-color: #28a745 !important;
}

.badge.bg-warning {
  background-color: #ffc107 !important;
  color: #333 !important;
}

.badge.bg-danger {
  background-color: #dc3545 !important;
}

/* Dashboard Card Content */
.service-card .card-body p {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.service-card .card-footer {
  border-top: 1px solid #eee;
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 0 0 1rem 1rem;
}

/* Action buttons inside card footer */
.service-actions a.btn {
  min-width: 140px;
  text-align: center;
}

/* Accordion styling */
.accordion-button {
  background-color: #f0f4f9 !important;
  font-size: 0.9rem;
}

.accordion-body {
  font-size: 0.9rem;
}

/* Filter buttons */
.filter-toggle .btn {
  font-size: 0.85rem;
  padding: 0.45rem 0.75rem;
}