/* Intern 3.0 – klubbens eget lag oven på skabelonen.
   Accentfarven er taget direkte fra LB MTB-logoet (#00a1fe). */

:root {
  --lb-brand: #00a1fe;
  --lb-brand-dark: #0b84cc;
  --lb-brand-soft: rgba(0, 161, 254, .12);
}

/* ---- topbar ---- */
.topbar-heading h6 { line-height: 1.15; }

.user-initials {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: .85rem;
  color: #fff;
  background: linear-gradient(135deg, var(--lb-brand), var(--lb-brand-dark));
}

.dark-mode-toggle i { vertical-align: middle; }

/* ---- sidebar ---- */
.sidebar-header .logo-img { max-height: 34px; width: auto; }
.sidebar-header .logo-name small { font-size: .7rem; letter-spacing: .04em; }

.sidebar-nav .metismenu a.menu-pending {
  opacity: .55;
  cursor: default;
}
.sidebar-nav .metismenu a.menu-pending:hover { background: transparent; }
.sidebar-nav .metismenu a.menu-pending .badge { font-size: .6rem; font-weight: 600; }

/* ---- KPI-kort ---- */
.stat-card { border: 0; }

.stat-card .stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.stat-card .stat-icon i { font-size: 24px; }

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.stat-label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.trend-up   { color: #16a34a; }
.trend-down { color: #dc2626; }
.trend-flat { color: #6b7280; }

/* ---- lister med timer ---- */
.hours-list .hours-row {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--bs-border-color);
}
.hours-list .hours-row:last-child { border-bottom: 0; }

.hours-list .rank {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  background: var(--lb-brand-soft);
  color: var(--lb-brand-dark);
}

.hours-list .avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bs-secondary-bg);
}

.hours-list .person { min-width: 0; }
.hours-list .person .name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hours-list .person .sub { font-size: .78rem; }

.hours-list .totals { text-align: right; white-space: nowrap; }
.hours-list .totals .lifetime { font-weight: 700; }
.hours-list .totals .year { font-size: .75rem; }

/* ---- diagrammer ---- */
.chart-box { min-height: 320px; }
.chart-box-sm { min-height: 240px; }

/* ---- småting ---- */
.card { border-radius: 1rem; }
.section-hint { font-size: .8rem; }

@media (max-width: 575.98px) {
  .stat-value { font-size: 1.45rem; }
}

/* ---- spor status ---- */
.status-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-block;
  border: 2px solid var(--bs-border-color);
}
.status-row-active { background: var(--lb-brand-soft); }

/* ---- kort over loopet ---- */
.loop-map {
  width: 100%;
  height: 520px;
  border-radius: .75rem;
  overflow: hidden;
}
@media (max-width: 767.98px) {
  .loop-map { height: 340px; }
}

/* ---- korte beskeder fra JavaScript ---- */
.lb-toast-holder {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  max-width: min(360px, calc(100vw - 2rem));
}

/* ---- billedgalleri ---- */
.photo-card .photo-thumb,
.photo-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--bs-secondary-bg);
}
.photo-card .photo-thumb {
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

/* ---- billedrækken på en nyhed ---- */
.news-image-row {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--bs-border-color);
}

/* Knapperne står under mærkatet, så rækken ikke bliver presset
   når kortet står i en smal kolonne. */
.news-image-body {
  flex: 1 1 auto;
  min-width: 0;
}
.news-image-body .btn { padding: .15rem .4rem; }
.news-image-row:last-child { border-bottom: 0; }

.news-image-thumb {
  width: 64px;
  height: 48px;
  flex: 0 0 64px;
  object-fit: cover;
  border-radius: .5rem;
  background: var(--bs-secondary-bg);
}

.min-w-0 { min-width: 0; }
