/* ============================================================
   App Navbar
   ============================================================ */

.app-navbar {
  background: #0f172a;
  border-bottom: 1px solid rgba(59,130,246,0.12);
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.app-navbar .navbar-brand {
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  color: #f1f5f9 !important;
}

.app-navbar .navbar-brand .bi {
  font-size: 1.15rem;
  color: #3b82f6;
}

.app-navbar .nav-link {
  color: #94a3b8 !important;
  font-size: 0.82rem;
  padding: 0.4rem 0.65rem !important;
  border-radius: 5px;
  transition: color 0.15s, background 0.15s;
}

.app-navbar .nav-link:hover {
  color: #e2e8f0 !important;
  background: rgba(255,255,255,0.07);
}

.app-navbar .nav-link.active {
  color: #60a5fa !important;
  background: rgba(59,130,246,0.1);
}

.app-navbar .nav-signout {
  color: #64748b !important;
  font-size: 0.8rem;
}

.app-navbar .nav-signout:hover {
  color: #cbd5e1 !important;
}

/* ============================================================
   Project-wide utilities
   ============================================================ */

.alert-debug {
  color: black;
  background-color: white;
  border-color: #d6e9c6;
}

.alert-error {
  color: #b94a48;
  background-color: #f2dede;
  border-color: #eed3d7;
}

/* ============================================================
   Home Page
   ============================================================ */

.home-hero {
  min-height: calc(100vh - 56px);
  background: #f8fafc;
}

.home-hero-icon {
  font-size: 4rem;
  color: #3b82f6;
}

.home-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #1a3558 100%);
  border-bottom: 1px solid #1e3a5f;
}

/* ============================================================
   Inventory Section
   ============================================================ */

/* Inventory page wrapper — soft background below the dark header */
.inv-page {
  background: #f1f5f9;
  min-height: calc(100vh - 50px);
}

/* Dark header strip at the top of inventory pages */
.inv-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #1a3558 100%);
  border-bottom: 1px solid #1e3a5f;
}

/* Filter pill tabs inside the header */
.inv-filter-pills .nav-link {
  color: #94a3b8;
  border-radius: 0;
  border-bottom: 3px solid transparent;
  padding: 0.6rem 1rem 0.5rem;
  font-size: 0.85rem;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.inv-filter-pills .nav-link:hover {
  color: #e2e8f0;
  background: rgba(255,255,255,0.06);
  border-bottom-color: #475569;
}
.inv-filter-pills .nav-link.active {
  color: #ffffff;
  background: rgba(255,255,255,0.08);
  border-bottom-color: #3b82f6;
  font-weight: 600;
}

/* Breadcrumb inside dark header */
.inv-breadcrumb {
  color: #94a3b8;
  font-size: 0.8rem;
}
.inv-breadcrumb a {
  color: #7ab3e8;
  text-decoration: none;
}
.inv-breadcrumb a:hover {
  color: #93c5fd;
}

/* ---- Metric cards ---- */
.metric-card {
  border: none;
  border-left: 4px solid #64748b;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
  transition: box-shadow 0.15s, transform 0.15s;
}
.metric-card:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.13);
  transform: translateY(-2px);
}
.metric-card.metric-ok     { border-left-color: #22c55e; }
.metric-card.metric-warn   { border-left-color: #f59e0b; }
.metric-card.metric-danger { border-left-color: #ef4444; }
.metric-card.metric-info   { border-left-color: #3b82f6; }

/* ---- Server table ---- */
.table-inventory thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #1e293b;
  color: #e2e8f0;
  border-color: #334155;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.7rem 0.75rem;
}

.table-inventory tbody td {
  vertical-align: middle;
  padding: 0.55rem 0.75rem;
}

.table-inventory tbody tr:hover td {
  background: rgba(59,130,246,0.04);
}

/* Row status colouring */
tr.status-critical td { background: rgba(239,68,68,0.07); }
tr.status-warning  td { background: rgba(245,158,11,0.07); }
tr.status-critical:hover td { background: rgba(239,68,68,0.12) !important; }
tr.status-warning:hover  td { background: rgba(245,158,11,0.12) !important; }

/* ---- Progress bars ---- */
.progress.progress-sm {
  height: 6px;
  border-radius: 3px;
  background-color: #e2e8f0;
}

/* ---- Server hostname link ---- */
.server-link {
  color: #1d4ed8;
}
.server-link:hover {
  color: #1e40af;
  text-decoration: underline !important;
}

/* ---- Monospace for technical values ---- */
.text-mono {
  font-family: 'SF Mono', 'Fira Code', ui-monospace, 'Courier New', monospace;
  font-size: 0.825em;
}

/* ---- Table column minimum widths ---- */
.col-eol { min-width: 130px; }
.col-disk,
.col-mem { min-width: 140px; }
.col-load { min-width: 180px; }

/* ---- Inline stat label width ---- */
.stat-label { min-width: 3rem; }

/* ---- Chart height cap ---- */
.chart-300 { max-height: 300px; }

/* ---- Home page ---- */
.hero-desc { max-width: 420px; }
.home-content {
  background: #f1f5f9;
  min-height: calc(100vh - 110px);
}
