:root {
  color-scheme: light;
  --brand-primary: #0f7bff;
  --brand-secondary: #00c9a7;
  --brand-dark: #0b1f33;
  --brand-light: #f5f9ff;
  --brand-border: rgba(15, 123, 255, 0.1);
  --brand-muted: #6c7a8c;
  --brand-danger: #ff5c5c;
  --brand-warning: #f9a826;
  --card-bg: #ffffff;
  --shadow-lg: 0 20px 60px rgba(11, 31, 51, 0.15);
  --shadow-md: 0 15px 30px rgba(11, 31, 51, 0.1);
}

body {
  font-family: "Segoe UI", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(15, 123, 255, 0.18), transparent 55%),
              radial-gradient(circle at bottom right, rgba(0, 201, 167, 0.22), transparent 40%),
              var(--brand-light);
  color: var(--brand-dark);
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.app-sidebar {
  width: 260px;
  background: linear-gradient(165deg, #0b1f33 10%, #09294a 40%, #074a6f 100%);
  color: #fff;
  padding: 2.5rem 1.75rem;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  height: 100vh;
}

.app-sidebar .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  letter-spacing: 0.04em;
}

.app-sidebar .logo-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 1.1rem;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.2s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a:focus {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateX(6px);
}

.sidebar-nav a.active {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: 0 10px 20px rgba(15, 123, 255, 0.25);
}

.app-content {
  flex: 1;
  padding: 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gradient-card {
  background: linear-gradient(145deg, rgba(15, 123, 255, 0.18), rgba(0, 201, 167, 0.18));
  border-radius: 22px;
  padding: 1.75rem;
  border: 1px solid var(--brand-border);
  box-shadow: var(--shadow-lg);
}

.glass-card {
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.stats-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.stat-tile {
  border-radius: 18px;
  padding: 1.5rem;
  color: var(--brand-dark);
  display: grid;
  gap: 0.35rem;
  position: relative;
  overflow: hidden;
}

.stat-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.stat-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
}

.stat-value {
  font-size: 2.25rem;
  font-weight: 700;
}

.stat-tile .btn {
  justify-self: flex-start;
  margin-top: 0.75rem;
  border-radius: 999px;
  padding-inline: 1.25rem;
}

.btn-pill {
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-weight: 600;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-pill-primary {
  background: linear-gradient(135deg, var(--brand-primary), #0057d9);
  color: #fff;
  box-shadow: 0 12px 25px rgba(15, 123, 255, 0.32);
}

.btn-pill-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(15, 123, 255, 0.45);
  color: #fff;
}

.btn-pill-outline {
  background: transparent;
  color: var(--brand-dark);
  border: 1px solid rgba(15, 123, 255, 0.35);
  box-shadow: none;
}

.btn-pill-outline:hover,
.btn-pill-outline:focus {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.app-sidebar .btn-pill-outline {
  color: #041632;
  background: linear-gradient(135deg, #ffffff, #d7e4ff);
  border: none;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(4, 22, 50, 0.25);
}

.app-sidebar .btn-pill-outline:hover,
.app-sidebar .btn-pill-outline:focus {
  background: linear-gradient(135deg, #ffe27c, #ffd166);
  color: #041632;
  box-shadow: 0 14px 30px rgba(255, 210, 102, 0.35);
}

.table {
  margin-bottom: 0;
  border: none;
}

.table thead {
  background: rgba(15, 123, 255, 0.08);
  border-bottom: 1px solid var(--brand-border);
}

.table thead th {
  border: none;
  padding: 1rem;
  font-weight: 600;
  color: var(--brand-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.75rem;
}

.table tbody td {
  padding: 1rem;
  border-bottom: 1px solid rgba(15, 123, 255, 0.08);
  vertical-align: middle;
}

.badge {
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
}

.badge-pending {
  background: rgba(249, 168, 38, 0.14);
  color: var(--brand-warning);
}

.badge-confirmed {
  background: rgba(0, 201, 167, 0.16);
  color: var(--brand-secondary);
}

.badge-rejected {
  background: rgba(255, 92, 92, 0.14);
  color: var(--brand-danger);
}

.form-card {
  max-width: 720px;
  padding: 2rem;
}

.form-floating > label {
  color: var(--brand-muted);
  letter-spacing: 0.03em;
}

.form-control,
.form-select {
  border-radius: 14px;
  border: 1px solid rgba(15, 123, 255, 0.15);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  background-color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(15, 123, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(15, 123, 255, 0.12);
}

.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--brand-muted);
}

.empty-state-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(15, 123, 255, 0.1);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem auto;
  color: var(--brand-primary);
}

@media (max-width: 991px) {
  .app-shell {
    flex-direction: column;
  }

  .app-sidebar {
    width: auto;
    height: auto;
    position: static;
    border-radius: 0 0 24px 24px;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
  }

  .sidebar-nav {
    display: flex;
    flex-wrap: wrap;
  }

  .sidebar-nav a {
    border-radius: 999px;
    padding-inline: 1.25rem;
  }
}
