body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #eef2ff;
  color: #1f2937;
}

.login-page {
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.35), transparent 28%),
    radial-gradient(circle at bottom right, rgba(236, 72, 153, 0.28), transparent 24%),
    linear-gradient(135deg, #f8fbff 0%, #eef4ff 45%, #fdf2f8 100%);
}

.login-shell {
  padding: 1.5rem;
}

.login-panel {
  width: min(460px, 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.login-brand {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 45%, #ec4899 100%);
  position: relative;
  overflow: hidden;
}

.login-brand::after {
  content: '';
  position: absolute;
  inset: auto -20px -30px auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
}

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(255,255,255,.18);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.login-form .form-control,
.login-form .input-group .btn {
  border-radius: 0.85rem;
}

.login-form .form-control {
  border: 1px solid #dbe7ff;
  padding: 0.8rem 0.95rem;
  box-shadow: none;
}

.login-form .form-control:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.15);
}

.login-form .btn-primary {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border: none;
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.24);
}

.login-form .btn-primary:hover {
  transform: translateY(-1px);
}

.login-helper {
  color: #64748b;
  font-size: 0.9rem;
}

.card,
.sidebar-card {
  border-radius: 1rem;
}

.navbar-brand {
  font-weight: 600;
}

#lookup-results {
  position: relative;
  z-index: 50;
}

.list-group {
  max-height: 320px;
  overflow: auto;
}

.list-group-item {
  cursor: pointer;
}

.container h3 {
  margin-bottom: 1rem;
}

.dashboard-page {
  background: #f3f5f9;
}

.dashboard-layout {
  min-height: 100vh;
}

.dashboard-sidebar {
  width: 280px;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  background: #0b2f6b;
}

.dashboard-sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 58, 138, 0.95), rgba(15, 23, 42, 1));
  opacity: 0.97;
}

.dashboard-sidebar > * {
  position: relative;
  z-index: 1;
}

.sidebar-brand,
.sidebar-user,
.dashboard-sidebar .nav,
.dashboard-sidebar .mt-auto {
  background: transparent;
}

.sidebar-brand {
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.sidebar-user {
  margin: 0.5rem 1rem 1.5rem;
}

.sidebar-user p,
.sidebar-user .badge {
  color: #fff;
}

.dashboard-sidebar .nav-link {
  color: rgba(255,255,255,0.9);
  padding: 0.85rem 1.15rem;
  margin-bottom: 0.25rem;
  border-radius: 0.9rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}

.dashboard-sidebar .nav-link:hover,
.dashboard-sidebar .nav-link.active {
  background: linear-gradient(90deg, rgba(255,255,255,0.18), rgba(255,255,255,0.1));
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}

.dashboard-sidebar .nav-link.active {
  font-weight: 600;
}

.dashboard-sidebar .nav-icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.12);
  color: #dce8ff;
  flex-shrink: 0;
}

.dashboard-sidebar .nav-link:hover .nav-icon,
.dashboard-sidebar .nav-link.active .nav-icon {
  background: rgba(255,255,255,0.2);
  color: #ffffff;
}

.dashboard-sidebar .btn-outline-light {
  border-color: rgba(255,255,255,0.55);
}

.dashboard-sidebar .btn-outline-light:hover {
  background: rgba(255,255,255,0.12);
}

.dashboard-content {
  margin-left: 280px;
  padding: 3rem 2rem;
}

.card {
  border-radius: 1rem;
}

.btn-outline-primary {
  border-color: #0d6efd;
}

.btn-outline-primary:hover {
  background: #0d6efd;
  color: #fff;
}

@media (max-width: 991px) {
  .dashboard-sidebar {
    position: relative;
    width: 100%;
  }
  .dashboard-content {
    margin-left: 0;
    padding: 2rem 1rem;
  }
}
