:root {
  --app-bg: #f3f6fb;
  --app-surface: #ffffff;
  --app-sidebar: #0f172a;
  --app-sidebar-soft: #1e293b;
  --app-primary: #2563eb;
  --app-primary-dark: #1d4ed8;
  --app-text: #0f172a;
  --app-muted: #64748b;
  --app-border: #e2e8f0;
  --app-success: #16a34a;
  --app-danger: #dc2626;
}

html {
  font-size: 15px;
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--app-text);
  background:
    radial-gradient(circle at 20% -10%, rgba(37, 99, 235, 0.08), transparent 35%),
    radial-gradient(circle at 90% 0%, rgba(14, 116, 144, 0.07), transparent 30%),
    var(--app-bg);
}

.app-shell {
  min-height: 100vh;
}

.app-sidebar {
  width: 280px;
  background: linear-gradient(180deg, var(--app-sidebar), #111827);
  border-right: 1px solid rgba(148, 163, 184, 0.15);
  position: sticky;
  top: 0;
  align-self: flex-start;
  min-height: 100vh;
}

.app-brand {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.app-brand-logo {
  width: 2.6rem;
  height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--app-primary), #06b6d4);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.45);
}

.app-brand-title {
  color: #fff;
  font-weight: 700;
}

.app-brand-subtitle {
  color: #94a3b8;
  font-size: 0.82rem;
}

.app-sidebar .nav-link {
  color: #cbd5e1;
  border-radius: 0.7rem;
  padding: 0.65rem 0.8rem;
  font-weight: 500;
  transition: 0.2s ease;
}

.app-sidebar .nav-link:hover {
  color: #fff;
  background: rgba(148, 163, 184, 0.16);
}

.app-sidebar .nav-link.active {
  color: #fff;
  background: linear-gradient(90deg, var(--app-primary), #0284c7);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.35);
}

.app-topbar {
  background: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid var(--app-border);
  backdrop-filter: blur(8px);
}

.app-topbar-text {
  font-size: 0.95rem;
  color: #334155;
  font-weight: 500;
}

.card {
  border: 1px solid var(--app-border);
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.btn {
  border-radius: 0.7rem;
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(135deg, var(--app-primary), var(--app-primary-dark));
  border: none;
}

.btn-outline-primary {
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.btn-outline-primary:hover {
  background: #dbeafe;
  color: #1e3a8a;
  border-color: #93c5fd;
}

.table {
  --bs-table-bg: transparent;
}

.table thead th {
  background: #f8fafc;
  color: #334155;
  border-bottom: 1px solid var(--app-border);
  font-weight: 700;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.table tbody td {
  border-color: #eef2f7;
  vertical-align: middle;
}

.table-hover tbody tr:hover {
  background-color: #f8fbff;
}

.form-control,
.form-select {
  border-radius: 0.65rem;
  border-color: #dbe3ee;
  min-height: 2.6rem;
}

.form-control:focus,
.form-select:focus,
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-check-input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

.badge {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.42rem 0.62rem;
}

.notification-modal .modal-content {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 1rem 2.5rem rgba(30, 41, 59, 0.2);
}

.notification-modal .modal-header,
.notification-modal .modal-footer {
  background: transparent;
}

.notification-modal .notification-icon-wrap {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
}

.notification-modal .notification-message {
  color: #334155;
  line-height: 1.5;
}

.notification-modal.is-success .notification-icon-wrap {
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

.notification-modal.is-error .notification-icon-wrap {
  background: linear-gradient(135deg, #dc2626, #f87171);
}

@media (max-width: 992px) {
  .app-shell {
    display: block !important;
  }

  .app-sidebar {
    width: 100%;
    min-height: auto;
    position: static;
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  }
}