.modern-navbar {
  background: linear-gradient(90deg,#0a2d73 0%, #2d275c 50%, #5b256b 100%) !important;
  padding: 0.75rem 1.5rem;
  transition: background 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25); /* softer shadow */
}

.modern-navbar .navbar-brand {
  font-size: 1.3rem;
  font-weight: 600;
  color: #ffffff !important;
  letter-spacing: -0.3px;
}

.modern-navbar .nav-link {
  color: #ffffff !important;
  font-weight: 500;
  margin-left: 1.25rem;
  position: relative;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}

.modern-navbar .nav-link:hover {
  color: #b1d6ff !important;
}

.modern-navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: #b1d6ff;
  transition: width 0.3s ease;
}

.modern-navbar .nav-link:hover::after {
  width: 100%;
}

.navbar-nav.navbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.navbar-toggler {
  border: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255,255,255,0.85%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

// ===== Variables =====
$primary: #4f46e5;   // Indigo
$secondary: #64748b; // Slate gray
$light: #f8fafc;     // Near white
$dark: #1e293b;      // Deep slate
$body-font: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

$border-radius: 0.75rem;
$transition: all 0.2s ease-in-out;

body {
  font-family: $body-font;
  background-color: $light;
  color: $dark;
  line-height: 1.6;
}

a {
  color: $primary;
  text-decoration: none;
  transition: $transition;

  &:hover {
    color: darken($primary, 10%);
    text-decoration: none;
  }
}

.body-content {
  padding: 2rem 0;

  hr {
    margin: 2rem 0;
    border-top: 1px solid lighten($secondary, 30%);
  }
}

footer {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: lighten($dark, 25%);
  border-top: 1px solid lighten($secondary, 40%);
}

.btn-modern {
  display: inline-block;
  font-weight: 500;
  font-size: 0.95rem;
  margin-top: 1rem;
  padding: 0.6rem 1.25rem;
  border-radius: 0.75rem;
  border: none;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #4338ca); // Indigo gradient
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
  transition: all 0.2s ease-in-out;
  cursor: pointer;

  &:hover {
    background: linear-gradient(135deg, darken(#4f46e5, 5%), darken(#4338ca, 5%));
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
  }

  &:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  }

  &:disabled {
    background: #cbd5e1; // grayish
    color: #475569;
    cursor: not-allowed;
    box-shadow: none;
  }
}

.btn-modern-danger {
  display: inline-block;
  font-weight: 500;
  font-size: 0.95rem;
  margin-top: 1rem;
  padding: 0.6rem 1.25rem;
  border-radius: 0.75rem;
  border: none;
  color: #fff;
  background: #fd3030;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
  transition: all 0.2s ease-in-out;
  cursor: pointer;

  &:hover {
    background: #ff5454;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
  }

  &:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  }

  &:disabled {
    background: #cbd5e1; // grayish
    color: #475569;
    cursor: not-allowed;
    box-shadow: none;
  }
}

.btn-modern-outline {
  display: inline-block;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.6rem 1.25rem;
  margin-top: 1rem;
  border-radius: 0.75rem;
  border: 2px solid #4f46e5;
  background: transparent;
  color: #4f46e5;
  transition: all 0.2s ease-in-out;
  cursor: pointer;

  &:hover {
    background: #4f46e5;
    color: #fff;
  }
}

table {
  width: 100%;
  border-collapse: separate; // allows rounded corners
  border-spacing: 0;

th {
  background: #ffffff;
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  border: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  white-space: nowrap;
  border-bottom: 2px solid rgba(255,255,255,0.15);

  &:first-child {
    border-top-left-radius: 0.75rem;
  }
  &:last-child {
    border-top-right-radius: 0.75rem;
  }
}

  tr th {
    border-bottom: 2px solid rgba(255,255,255,0.15);
  }

  td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
  }
}

.nav-label {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: block;
  color: #1e293b;
}