:root {
  --lumaria-bg: #030507;
  --lumaria-bg-alt: #0e1116;
  --lumaria-text: #f8fafc;
  --lumaria-accent: #f4a948;
  --lumaria-link: #6ecbff;
}

body {
  background: var(--lumaria-bg) !important;
  color: var(--lumaria-text);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
}

a {
  color: var(--lumaria-link);
  text-decoration: underline;
}

a:hover {
  color: #9ad9ff;
}

.navbar {
  background: var(--lumaria-bg-alt) !important;
}

.lumaria-brand {
  display: flex;
  align-items: flex-end;
}

.navbar .lumaria-brand-logo {
  display: block;
  height: 40px !important;
  max-height: 40px;
  width: auto !important;
}

@media (max-width: 576px) {
  .navbar .lumaria-brand-logo {
    height: 34px !important;
    max-height: 34px;
  }
}

.text-orange {
  color: var(--lumaria-accent);
}

.text-secondary {
  color: #c2cad4 !important;
}

.btn-warning,
.btn-outline-warning {
  border-color: var(--lumaria-accent);
  color: var(--lumaria-accent);
}

.btn-warning {
  background: var(--lumaria-accent);
  color: #1b1300;
}

.btn-warning:hover,
.btn-outline-warning:hover {
  background: #f7b765;
  color: #1b1300;
}

.login-link {
  opacity: 0.6;
}

.table {
  --bs-table-bg: transparent;
  color: var(--lumaria-text);
}

.device-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.device-cell__image {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  border: 1px solid #2b3547;
  background: #1d222b;
  object-fit: cover;
}

.device-cell__thumb {
  width: 140px;
  height: 140px;
  border-radius: 0.5rem;
  border: 1px solid #2b3547;
  background: #11161c;
  object-fit: cover;
  cursor: pointer;
}

.lumaria-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 7, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1055;
  padding: 2rem 1rem;
}

.lumaria-modal.is-open {
  display: flex;
}

.lumaria-modal__content {
  position: relative;
  max-width: min(1100px, 90vw);
  width: 100%;
  background: #0f141b;
  border: 1px solid #2b3547;
  border-radius: 1rem;
  padding: 1.5rem;
}

.lumaria-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: transparent;
  border: none;
  color: #f8fafc;
  font-size: 1.25rem;
}

.lumaria-modal__image {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 0.75rem;
}

.lumaria-modal__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.media-card__image {
  width: 100%;
  height: 380px;
  border-radius: 0.75rem;
  object-fit: cover;
  background: #11161c;
  border: 1px solid #2b3547;
}

.media-card__video {
  width: 100%;
  height: 320px;
  border-radius: 0.75rem;
  background: #11161c;
  border: 1px solid #2b3547;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: #11161c;
  border: 1px solid #2b3547;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
}

.stat-card__label {
  color: #9aa4b2;
  font-size: 0.85rem;
}

.stat-card__value {
  color: var(--lumaria-text);
  font-size: 1.35rem;
  font-weight: 600;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.chart-card {
  background: #0f141b;
  border: 1px solid #2b3547;
  border-radius: 0.75rem;
  padding: 1rem;
}

.chart-card__canvas {
  width: 100%;
  height: 260px;
  cursor: pointer;
}

.chart-modal__canvas {
  width: 100%;
  height: 60vh;
}

.card {
  background: var(--lumaria-bg-alt);
}

.form-control,
.form-select,
.form-check-input {
  background-color: #1d222b;
  border-color: #2f3948;
  color: var(--lumaria-text);
}

.form-label-light {
  color: #c9ced8;
}

.form-control::placeholder,
.form-select::placeholder,
textarea.form-control::placeholder {
  color: #c1c7d1;
  opacity: 1;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: var(--lumaria-link);
  box-shadow: 0 0 0 0.2rem rgba(110, 203, 255, 0.25);
}

.table thead th {
  color: var(--lumaria-text);
}

.table tbody td,
.table tbody th {
  color: var(--lumaria-text);
}

.devices-table tbody td,
.devices-table tbody th {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

footer {
  background: var(--lumaria-bg-alt);
}
