/* ── Color theme ───────────────────────────────────────────────────────────── */
:root {
  --svwt-primary:      #1e3a5f;
  --svwt-primary-dark: #152840;
  --svwt-primary-rgb:  30, 58, 95;
}

.svwt-navbar,
.bg-primary        { background-color: var(--svwt-primary) !important; }
.text-primary      { color: var(--svwt-primary) !important; }
.border-primary    { border-color: var(--svwt-primary) !important; }

.btn-primary {
  background-color: var(--svwt-primary);
  border-color: var(--svwt-primary);
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--svwt-primary-dark);
  border-color: var(--svwt-primary-dark);
}
.btn-outline-primary {
  color: var(--svwt-primary);
  border-color: var(--svwt-primary);
}
.btn-outline-primary:hover {
  background-color: var(--svwt-primary);
  border-color: var(--svwt-primary);
}
.alert-primary {
  background-color: rgba(var(--svwt-primary-rgb), 0.08);
  border-color: rgba(var(--svwt-primary-rgb), 0.25);
  color: var(--svwt-primary-dark);
}
.badge.bg-primary  { background-color: var(--svwt-primary) !important; }

/* ── Navbar ────────────────────────────────────────────────────────────────── */
.svwt-navbar {
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.svwt-navbar .nav-link {
  font-size: .92rem;
  padding: .5rem .75rem;
  border-radius: .375rem;
  transition: background .15s;
}
.svwt-navbar .nav-link:hover {
  background: rgba(255,255,255,.1);
}
.svwt-navbar .nav-link.active {
  background: rgba(255,255,255,.15);
  font-weight: 600;
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  background-image: url('../images/hero-banner.png');
  background-size: cover;
  background-position: center center;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 20, 60, 0.88) 0%,
    rgba(10, 20, 60, 0.60) 60%,
    rgba(10, 20, 60, 0.25) 100%
  );
}
.hero-section .container {
  position: relative;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ── Page header ────────────────────────────────────────────────────────────── */
.page-header {
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,.03) 0px,
    rgba(255,255,255,.03) 1px,
    transparent 1px,
    transparent 40px
  );
}

/* ── Cards ─────────────────────────────────────────────────────────────────── */
.hover-card {
  transition: transform .2s ease, box-shadow .2s ease;
}
.hover-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12) !important;
}

/* ── Icon circle ───────────────────────────────────────────────────────────── */
.icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Section title underline ───────────────────────────────────────────────── */
.section-title {
  position: relative;
  padding-bottom: 1rem;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--svwt-primary);
  border-radius: 2px;
}

/* ── Admin sidebar ─────────────────────────────────────────────────────────── */
.admin-sidebar {
  background: #f8f9fa;
  border-right: 1px solid #dee2e6;
  min-height: calc(100vh - 60px);
}
@media (min-width: 768px) {
  .admin-sidebar { display: block !important; }
}
.admin-sidebar .nav-link {
  color: #495057;
  padding: .55rem .9rem;
  border-radius: .4rem;
  font-size: .92rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  transition: background .15s, color .15s;
}
.admin-sidebar .nav-link:hover {
  background: rgba(var(--svwt-primary-rgb), .08);
  color: var(--svwt-primary);
}
.admin-sidebar .nav-link.active {
  background: var(--svwt-primary);
  color: #fff;
  font-weight: 600;
}

/* ── Misc ──────────────────────────────────────────────────────────────────── */
body {
  font-size: .95rem;
  color: #2d3748;
}
.letter-spacing { letter-spacing: .1em; }

.table-hover tbody tr:hover {
  background-color: rgba(var(--svwt-primary-rgb), .04);
}

/* Low-stock highlight */
.text-warning { color: #b7791f !important; }
