/*
  IT Inventar Theme
  - orientiert sich an der Login-Optik (dunkler Gradient + weiche Karten)
  - stabiler Layout-Wrapper (keine Grid-Zufallsfehler)
*/

:root{
  --itv-bg-0:#0b1220;
  --itv-bg-1:#0f172a;
  --itv-panel:#0f172a;
  --itv-panel-2:#101a33;
  --itv-border: rgba(148,163,184,.18);
  --itv-text: rgba(255,255,255,.92);
  --itv-muted: rgba(255,255,255,.65);
  --itv-accent: #6366f1;  /* indigo */
  --itv-accent-2:#22c55e; /* green */
  --itv-card:#ffffff;
  --itv-card-border: rgba(15,23,42,.08);
  --itv-page: #f6f7fb;
}

html, body{ height:100%; }
body{ background: var(--itv-page); }

/* Topbar */
.itv-topbar{
  background:
    radial-gradient(900px 380px at 10% 10%, rgba(99,102,241,.26), transparent 60%),
    radial-gradient(900px 380px at 80% 10%, rgba(34,197,94,.18), transparent 55%),
    linear-gradient(180deg, var(--itv-bg-0), var(--itv-bg-1));
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.itv-brand-dot{
  width:10px; height:10px; border-radius:50%;
  background: var(--itv-accent-2);
  box-shadow: 0 0 0 4px rgba(34,197,94,.18);
}

.itv-badge{
  background: rgba(255,255,255,.10) !important;
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.92);
}

/* App Layout: Sidebar + Content */
.itv-app{
  display:flex;
  min-height: calc(100vh - 56px);
}

/* Sidebar */
.itv-sidebar{
  width: 290px;
  background:
    radial-gradient(900px 520px at 15% 10%, rgba(99,102,241,.18), transparent 55%),
    radial-gradient(900px 520px at 85% 20%, rgba(16,185,129,.14), transparent 55%),
    linear-gradient(180deg, var(--itv-bg-0), var(--itv-bg-1));
  color: var(--itv-text);
  border-right: 1px solid rgba(255,255,255,.08);
}

.itv-sidebar-header{
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.itv-sidebar-body{
  padding: 14px 12px;
}

/* Desktop: sticky sidebar */
@media (min-width: 992px){
  .itv-sidebar.offcanvas-lg{
    position: sticky;
    top: 56px;
    height: calc(100vh - 56px);
  }
}

/* Mobile: offcanvas */
@media (max-width: 991.98px){
  .itv-app{ display:block; }
  .itv-content{ padding: 14px 14px 56px; }
}

/* Nav */
.itv-nav{ display:flex; flex-direction:column; gap:8px; }

.itv-caption{
  padding: 8px 10px 0;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  font-weight: 800;
}

.itv-link{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  color: rgba(255,255,255,.88);
  text-decoration:none;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(6px);
}

.itv-link:hover{
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.95);
  border-color: rgba(255,255,255,.16);
}

.itv-link.active{
  background: rgba(99,102,241,.22);
  border-color: rgba(99,102,241,.35);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  font-weight: 900;
}

.itv-link.active-parent{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
  font-weight: 850;
}

.itv-danger{ color: rgba(255,255,255,.88); }
.itv-danger:hover{ background: rgba(239,68,68,.18); border-color: rgba(239,68,68,.22); }

.itv-ico{
  width: 30px;
  height: 30px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.10);
}

.itv-arrow{
  margin-left:auto;
  opacity:.70;
  transition: transform .18s ease;
}

.itv-parent[aria-expanded="true"] .itv-arrow{
  transform: rotate(90deg);
}

.itv-sep{
  height: 1px;
  background: rgba(255,255,255,.10);
  margin: 6px 10px;
}

.itv-sub{
  margin: 6px 0 2px 42px;
  padding-left: 10px;
  border-left: 1px dashed rgba(255,255,255,.18);
  display:flex;
  flex-direction:column;
  gap: 6px;
}

.itv-sublink{
  display:block;
  padding: 8px 10px;
  border-radius: 12px;
  text-decoration:none;
  color: rgba(255,255,255,.82);
  border: 1px solid transparent;
}

.itv-sublink:hover{
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.94);
}

.itv-sublink.active{
  background: rgba(99,102,241,.20);
  border-color: rgba(99,102,241,.30);
  font-weight: 850;
}

/* Content */
.itv-content{
  flex: 1 1 auto;
  min-width: 0;
  padding: 18px 22px 56px;
  background:
    radial-gradient(1200px 520px at 15% 10%, rgba(99,102,241,.08), transparent 60%),
    radial-gradient(900px 480px at 85% 20%, rgba(16,185,129,.06), transparent 55%),
    radial-gradient(900px 520px at 50% 90%, rgba(245,158,11,.05), transparent 60%),
    var(--itv-page);
}

.itv-alert{
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(15,23,42,.06);
}

/* Karten / Tabellen ein bisschen "Premium" machen, ohne deine Views anzufassen */
.card{
  border-radius: 16px;
  border: 1px solid var(--itv-card-border);
  box-shadow: 0 10px 30px rgba(15,23,42,.06);
}

.table{
  --bs-table-bg: transparent;
}

/* Thumbs */
.img-thumb{ width: 120px; height: 90px; object-fit: cover; border-radius: 12px; }

/* Footer */
.itv-footer{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 32px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: linear-gradient(180deg, #0b1220, #0f172a);
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.72);
  z-index: 1030;
  font-size: 12px;
}

.itv-footer a{
  color: rgba(255,255,255,.92);
  text-decoration: none;
  font-weight: 650;
}

.itv-footer a:hover{ text-decoration: underline; }

.navbar .navbar-brand {
  color: #a7f3d0 !important;  /* Beispiel: mintig */
  font-weight: 800;
}

.itv-sidebar.offcanvas-lg .offcanvas-body { display: contents; }
