:root {
  color-scheme: dark;
}

body.bg-app {
  background: radial-gradient(circle at 10% 20%, rgba(58, 97, 244, 0.18), transparent 55%),
            radial-gradient(circle at 90% 10%, rgba(7, 112, 179, 0.16), transparent 50%),
            radial-gradient(circle at 30% 80%, rgba(161, 52, 235, 0.12), transparent 60%),
            #0c111a;
  font-feature-settings: "liga" 1;
  color: #f5f7ff;
}

.bg-elevated {
  background: rgba(12, 17, 26, 0.92) !important;
  backdrop-filter: saturate(140%) blur(18px);
}

.navbar-brand {
  letter-spacing: .2px;
}

.glass-panel {
  background: linear-gradient(160deg, rgba(20, 26, 36, 0.9), rgba(12, 15, 24, 0.92));
  border: 1px solid rgba(90, 120, 255, 0.18);
  backdrop-filter: blur(18px);
  color: #f2f4ff;
  box-shadow: 0 1.75rem 3.5rem -1.5rem rgba(4, 11, 28, 0.75);
}

.glass-panel .form-label,
.glass-panel .form-text,
.glass-panel label,
.glass-panel p,
.glass-panel h2,
.glass-panel h3,
.glass-panel h4,
.glass-panel h5 {
  color: inherit;
}

.alert-stack .alert {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.icon-circle {
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.4rem;
  box-shadow: 0 0 0 1px inset rgba(255, 255, 255, 0.1);
}


.list-item-dark {
  background: rgba(15, 22, 33, 0.92);
  color: #f8fbff;
  border: none;
  border-bottom: 1px solid rgba(125, 160, 255, 0.14);
}

.list-item-dark:last-child {
  border-bottom: none;
}

.media-card {
  background: linear-gradient(160deg, rgba(18, 24, 34, 0.96), rgba(12, 16, 24, 0.88));
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  border: 1px solid rgba(90, 120, 255, 0.15);
  color: #f6f8ff;
}

.media-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 1.25rem 2.5rem rgba(14, 23, 45, 0.55);
  border-color: rgba(80, 122, 255, 0.5);
}

.placeholder-figure {
  aspect-ratio: 2/3;
  background: linear-gradient(135deg, rgba(108, 117, 125, 0.25), rgba(108, 117, 125, 0.05));
  color: rgba(255, 255, 255, 0.35);
  font-size: 3rem;
}

.checkbox-overlay {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(15, 18, 23, 0.8);
  border-radius: 0.75rem;
  padding: 0.4rem 0.6rem;
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.4);
}

.checkbox-overlay .form-check-input {
  width: 1.1rem;
  height: 1.1rem;
  cursor: pointer;
}

.checkbox-overlay .form-check-label {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  cursor: pointer;
}

.progress-thin {
  background-color: rgba(255, 255, 255, 0.06);
  height: 0.85rem;
  border-radius: 999px;
}

.stat-tile {
  background: rgba(14, 19, 29, 0.85);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(90, 120, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-tile .label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, 0.55);
}

.stat-tile .value {
  font-size: 1.5rem;
  font-weight: 600;
}

.form-control-contrast,
.form-control.bg-body-tertiary,
.form-select.bg-body-tertiary {
  background-color: rgba(10, 16, 27, 0.85) !important;
  border: 1px solid rgba(90, 120, 255, 0.28) !important;
  color: #f3f6ff !important;
  box-shadow: none;
}

.form-control-contrast::placeholder,
.form-control.bg-body-tertiary::placeholder {
  color: rgba(240, 244, 255, 0.45);
}

.form-control-contrast:focus,
.form-control.bg-body-tertiary:focus,
.form-select.bg-body-tertiary:focus {
  border-color: rgba(94, 156, 255, 0.75) !important;
  box-shadow: 0 0 0 .25rem rgba(94, 156, 255, 0.18) !important;
  background-color: rgba(10, 16, 27, 0.95) !important;
}

.login-panel .form-floating>.form-control-contrast~label,
.login-panel .form-floating>label {
  color: rgba(240, 244, 255, 0.6);
}

.developer-credit a {
  text-decoration: none;
}

.developer-credit a:hover {
  text-decoration: underline;
}

.shadow-xl {
  box-shadow: 0 2.5rem 4.5rem -2rem rgba(8, 14, 32, 0.8) !important;
}

@media (max-width: 575.98px) {
  .icon-circle {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.2rem;
  }

  .checkbox-overlay {
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.35rem 0.5rem;
  }
}