#modal {
  position: fixed;
  z-index: 2;
  left: 25%;
  top: 10%;
  width: 400px;
  word-break: break-word;
  border-radius: 6px;
  background: #bad5ff;
  border: 5px solid #272835;
}

/* hide the container when it has no content */
#modal:empty {
  display: none;
}

/* once #modal has content, paint a full-screen blur behind it */
#modal:not(:empty)::before {
  content: "";
  position: fixed;
  inset: 0;
  /* top/right/bottom/left: 0 */
  backdrop-filter: blur(2px);
  /* the blur */
  -webkit-backdrop-filter: blur(2px);
  background: rgba(255, 255, 255, 0.2);
  /* optional tint */
  z-index: 1;
  /* sits under your modal’s box */
}

/* keep your actual modal content above that backdrop */
#modal>* {
  position: relative;
  z-index: 2;
}


/* General Styles */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #f9fafb;
  color: #333;
  font-size: 0.9rem;
  /* Reduced font size */
}

.container {
  border-radius: 8px;
  padding: 15px;
}

/* Increase container width */
@media (min-width: 1200px) {
  .container {
    max-width: 1400px !important;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .container {
    max-width: 1020px !important;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .container {
    max-width: 820px !important;
  }
}
/* Navbar Styling */
.navbar {
  background-color: #3f51b5 !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.navbar-brand,
.navbar-nav .nav-link {
  color: #ffffff !important;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
  margin-right: 1rem;
}

.navbar-nav .nav-link:hover {
  color: #e0e7ff !important;
}

/* Make active link more noticeable */
.navbar-nav .nav-link.active {
  color: #ffffff !important;
  background-color: #1a237e !important;
  /* Darker shade for active state */
  font-weight: 600 !important;
  /* Make active item bold */
}

.navbar-nav .nav-link.active:hover {
  color: #ffffff !important;
  /* Keep white text on hover */
  background-color: #303f9f !important;
  /* Slightly lighter shade on hover */
}
/* Card Styling */
.card {
  background-color: white;
  border: none;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  padding: 15px;
  margin-bottom: 15px;
}

/* Table Styling */
.table {
  font-size: 0.85rem;
  /* Reduced table font size */
  border-collapse: separate;
  border-spacing: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  background-color: white;
}

.table th {
  background-color: #3f51b5 !important;
  color: #ffffff !important;
  font-weight: 600;
  padding: 10px !important;
  border: none !important;
}

.table td,
.table th {
  padding: 10px;
  vertical-align: middle;
  border-bottom: 1px solid #eceff1;
}

.table tbody tr:hover {
  background-color: #f1f4ff;
}

/* Form Styling */
.form-control {
  font-size: 0.9rem;
  /* Smaller font for form inputs */
  border-radius: 6px;
  padding: 8px;
  border: 1px solid #ddd;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-control:focus {
  border-color: #5c6bc0;
  box-shadow: 0 0 4px rgba(92, 107, 192, 0.2);
}

/* Button Styling */
.btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.85rem;
  /* Reduced button font size */
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #5c6bc0 !important;
  border: none !important;
  color: white !important;
}

.btn-primary:hover {
  background-color: #3f51b5 !important;
}

.btn-danger {
  background-color: #e57373 !important;
  color: white !important;
  border: none !important;
}

.btn-danger:hover {
  background-color: #d32f2f !important;
}

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

.btn-secondary:hover {
  background-color: #eceff1 !important;
}

/* Badge and Alert Styling */
.alert {
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.alert-primary {
  background-color: #e8eaf6;
  color: #3f51b5;
}

.alert-success {
  background-color: #e8f5e9;
  color: #388e3c;
}

/* Sidebar and Button Groups */
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.button-group .btn {
  flex: 1 1 28%;
  min-width: 110px;
  margin: 3px;
}

/* Footer Styling */
footer {
  background-color: #3f51b5;
  color: white;
  padding: 15px;
  text-align: center;
  font-size: 0.85rem;
  /* Reduced footer font size */
}

footer a {
  color: #b3c1f7;
  text-decoration: none;
}

footer a:hover {
  color: #ffffff;
}

/* Header or Title Styling */
h1,
h2,
h3 {
  color: #3f51b5;
  font-weight: 700;
}

h1 {
  font-size: 2.2rem;
  /* Reduced heading sizes */
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

/* Additional Layout Spacing */
.mt-3 {
  margin-top: 0.8rem !important;
}

.mb-3 {
  margin-bottom: 0.8rem !important;
}

.pt-3 {
  padding-top: 0.8rem !important;
}

.pb-3 {
  padding-bottom: 0.8rem !important;
}


table.table-striped .not-striped tbody tr:nth-child(odd) {
  background-color: transparent !important;
}

table.table-striped .not-striped tbody tr:nth-child(even) {
  background-color: transparent !important;
}
