:root {
  --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

body {
  background: radial-gradient(circle at 10% 20%, rgba(99, 132, 255, 0.08), transparent 30%),
              radial-gradient(circle at 90% 10%, rgba(82, 203, 219, 0.08), transparent 25%),
              #f8f9fb;
  min-height: 100vh;
}

.navbar {
  background: linear-gradient(120deg, #0d6efd, #0bb4d4);
}

.card {
  border: none;
  box-shadow: var(--card-shadow);
}

.badge.bg-secondary {
  background: #e9ecef;
  color: #4a5568;
}

.help-btn {
  padding: 0.2rem 0.5rem;
}

#table-records tbody tr:hover {
  background: #f6f9ff;
}

.offcanvas {
  width: min(900px, 100%);
}

.form-label {
  font-weight: 600;
}

textarea.form-control {
  min-height: 80px;
}

.muted-row {
  color: #6c757d !important;
  background-color: #f1f3f5 !important;
}
.muted-row td {
  color: #6c757d !important;
  background-color: #f8f9fa !important;
}
.muted-row .badge {
  color: #6c757d !important;
  background-color: #e9ecef !important;
  border: 1px solid #dee2e6;
}
.muted-row button {
  opacity: 0.35 !important;
}

.pill-toggle {
  position: relative;
  display: inline-flex;
  background: #f4f6fb;
  padding: 6px;
  border-radius: 999px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
  gap: 6px;
}
.pill-toggle .pill {
  position: relative;
  border: none;
  background: transparent;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  color: #506079;
  transition: color 0.2s ease;
  z-index: 2;
}
.pill-toggle .pill.active {
  color: #0d6efd;
}
.pill-toggle .pill-indicator {
  position: absolute;
  inset: 4px;
  width: 50%;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(13,110,253,0.12), rgba(11,180,212,0.15));
  box-shadow: 0 6px 16px rgba(13,110,253,0.12);
  transform: translateX(0%);
  transition: transform 0.25s ease;
  z-index: 1;
}
.pill-toggle[data-view="archives"] .pill-indicator {
  transform: translateX(100%);
}
.pill-toggle .pill:focus-visible {
  outline: 2px solid #0bb4d4;
  outline-offset: 2px;
}

tr[data-multi="1"][data-first="1"] {
  cursor: pointer;
}

.actions-cell {
  white-space: nowrap;
}
.actions-cell .btn {
  vertical-align: middle;
}

#formModal .card {
  background: #eef2f7;
  border: 1px solid #d9dde3;
  border-radius: 0.6rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.form-check.switch-inline {
  padding-left: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 3.6rem;
}
.form-check.switch-inline .form-check-input {
  width: 3.4rem;
  height: 1.7rem;
  cursor: pointer;
  position: relative;
  z-index: 1;
  margin-left: 0;
}
.form-check.switch-inline .switch-status {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  pointer-events: none;
  font-size: 0.72rem;
  font-weight: 700;
  z-index: 2;
  letter-spacing: 0.02em;
  text-shadow: 0 0 2px rgba(0,0,0,0.35);
}
.form-check.switch-inline .switch-status.on {
  justify-content: flex-start;
  padding-left: 0.55rem;
  color: #fff;
}
.form-check.switch-inline .switch-status.off {
  justify-content: flex-end;
  padding-right: 0.55rem;
  color: #6c757d;
}

#guide-content ul {
  padding-left: 1rem;
}

@media (max-width: 768px) {
  .navbar .btn {
    font-size: 0.85rem;
  }
  .offcanvas {
    width: 100%;
  }
}
