﻿body { font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; background: #e7eef4; }
.table thead th { white-space: nowrap; }
.card-metric { min-height: 110px; }

.app-layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 260px;
  background: linear-gradient(180deg, #0b1f3a 0%, #0a1a33 100%);
  color: #fff;
  padding: 18px 14px;
  box-shadow: inset -1px 0 0 rgba(255,255,255,0.05);
}

.sidebar-header {
  display: grid;
  grid-template-columns: 36px 1fr;
  grid-template-rows: auto auto;
  gap: 6px 10px;
  align-items: center;
  margin-bottom: 12px;
}

.brand-badge {
  grid-row: span 2;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0dd3b8, #4fb3ff);
  display: grid;
  place-items: center;
  color: #0b1f3a;
  font-weight: 700;
  font-size: 12px;
}

.sidebar .brand {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  display: block;
}

.brand-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}

.sidebar-nav { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }

.sidebar .nav-link {
  color: rgba(255,255,255,0.85);
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar .nav-link:hover { background: rgba(255,255,255,0.12); color: #fff; }
.sidebar .nav-link.active {
  background: linear-gradient(90deg, rgba(13,211,184,0.25), rgba(79,179,255,0.2));
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}

.nav-divider {
  height: 1px;
  margin: 10px 12px 6px 12px;
  background: linear-gradient(90deg, rgba(255,255,255,0.15), rgba(255,255,255,0.02));
}

.nav-icon {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 22px;
  background-size: 14px 14px;
  background-position: center;
  background-repeat: no-repeat;
}

.nav-icon.c1 { background-color: #5eead4; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1f3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='7' height='7'/><rect x='14' y='3' width='7' height='7'/><rect x='3' y='14' width='7' height='7'/><rect x='14' y='14' width='7' height='7'/></svg>"); }
.nav-icon.c2 { background-color: #93c5fd; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1f3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='16' rx='2'/><path d='M7 4v16'/><path d='M12 4v16'/><path d='M17 4v16'/></svg>"); }
.nav-icon.c3 { background-color: #fcd34d; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1f3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='7' r='3'/><circle cx='17' cy='7' r='3'/><path d='M2 20c0-3 3-5 7-5'/><path d='M13 15c4 0 7 2 7 5'/></svg>"); }
.nav-icon.c4 { background-color: #fca5a5; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1f3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 4h10l4 4v12H4z'/><path d='M14 4v4h4'/><path d='M7 12h8'/><path d='M7 16h8'/></svg>"); }
.nav-icon.c5 { background-color: #a7f3d0; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1f3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3v12'/><path d='M8 7l4-4 4 4'/><rect x='4' y='13' width='16' height='8' rx='2'/></svg>"); }
.nav-icon.c6 { background-color: #bfdbfe; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1f3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M8 6h8'/><path d='M8 10h8'/><path d='M8 14h6'/><rect x='4' y='3' width='16' height='18' rx='2'/></svg>"); }
.nav-icon.c7 { background-color: #fde68a; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1f3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M8 3v3'/><path d='M16 3v3'/><rect x='4' y='6' width='16' height='14' rx='2'/><path d='M8 10h8'/><path d='M8 14h6'/></svg>"); }
.nav-icon.c8 { background-color: #fecaca; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1f3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 12h18'/><path d='M7 12v7'/><path d='M12 12v7'/><path d='M17 12v7'/><path d='M5 6h14'/></svg>"); }
.nav-icon.c9 { background-color: #99f6e4; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1f3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='8' r='3'/><path d='M4 20c0-4 4-6 8-6s8 2 8 6'/></svg>"); }
.nav-icon.c10 { background-color: #c7d2fe; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1f3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14'/><path d='M13 5l7 7-7 7'/></svg>"); }
.nav-icon.c11 { background-color: #fde047; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1f3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6l-11 11-5-5'/></svg>"); }
.nav-icon.c12 { background-color: #fda4af; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1f3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='3' width='16' height='18' rx='2'/><path d='M8 7h8'/><path d='M8 11h8'/><path d='M8 15h6'/></svg>"); }
.nav-icon.c13 { background-color: #86efac; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1f3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 3v18h18'/><path d='M7 15l3-4 3 2 4-6'/></svg>"); }
.nav-icon.c14 { background-color: #f9a8d4; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1f3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M12 7v5l3 3'/></svg>"); }

.sidebar-footer {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.main-content { flex: 1; background: #eef3f7; }

.topbar {
  background: #ffffff;
  border-bottom: 1px solid #e3e8ee;
  padding: 10px 16px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}
.live-clock {
  margin-right: auto;
  padding: 6px 12px;
  border: 1px solid #d7e3ee;
  border-radius: 10px;
  background: #f7fbff;
  color: #0b1f3a;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  min-width: 110px;
  text-align: center;
}

.dash-hero { border-radius: 14px; }
.dash-hero .card-body { padding: 18px 20px; }

.metric-card {
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #1c3f66 0%, #163657 100%);
  color: #fff;
  box-shadow: 0 10px 20px rgba(11,31,58,0.15);
}

.metric-card.light { background: #ffffff; color: #0b1f3a; border: 1px solid #e2e8f0; }

.metric-top { padding: 16px 16px 10px 16px; }
.metric-value { font-size: 24px; font-weight: 700; }
.metric-label { font-size: 11px; letter-spacing: 0.08em; color: rgba(255,255,255,0.7); }
.metric-card.light .metric-label { color: rgba(11,31,58,0.6); }
.metric-foot { background: rgba(0,0,0,0.25); padding: 10px 16px; font-size: 13px; }
.metric-card.light .metric-foot { background: #f5f7fb; color: #0b1f3a; }

.panel-card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 20px rgba(11,31,58,0.08);
  overflow: hidden;
}

.panel-header {
  padding: 12px 16px;
  background: linear-gradient(90deg, #197a8a, #22a39f);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

.panel-body {
  padding: 14px 16px;
}

.kv {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed #e6eef4;
  font-size: 14px;
}
.kv:last-child { border-bottom: 0; }

.bar-row {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
}
.bar-track {
  height: 8px;
  background: #e8f1f5;
  border-radius: 999px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #1b6f8e, #20a39e);
}
.bar-value { font-weight: 600; }

.hero-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 10px 20px rgba(11,31,58,0.08);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-kicker { font-size: 12px; color: #1b6f8e; font-weight: 600; }
.hero-title { font-size: 22px; font-weight: 700; color: #0b1f3a; }
.hero-sub { color: #6b7a8c; font-size: 13px; }

.hero-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-pill {
  border: 1px solid #dbe6ee;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f8fbfd;
  font-size: 12px;
}

.metric-neo {
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #1c3f66 0%, #163657 100%);
  color: #fff;
  box-shadow: 0 10px 20px rgba(11,31,58,0.15);
}
.metric-neo.light {
  background: #ffffff;
  color: #0b1f3a;
  border: 1px solid #e2e8f0;
}
.metric-neo-top { padding: 16px; }
.metric-neo-value { font-size: 26px; font-weight: 700; }
.metric-neo-label { font-size: 11px; letter-spacing: 0.08em; color: rgba(255,255,255,0.7); }
.metric-neo.light .metric-neo-label { color: rgba(11,31,58,0.6); }
.metric-neo-foot { background: rgba(0,0,0,0.25); padding: 10px 16px; font-size: 13px; }
.metric-neo.light .metric-neo-foot { background: #f5f7fb; color: #0b1f3a; }

.icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  display: inline-grid;
  place-items: center;
  margin-left: 6px;
  cursor: pointer;
}

.icon-btn .icon {
  width: 14px;
  height: 14px;
  display: block;
  background-size: 14px 14px;
  background-position: center;
  background-repeat: no-repeat;
}

.icon-detail { color: #1d4ed8; }
.icon-edit { color: #10b981; }
.icon-delete { color: #ef4444; }
.icon-btn:hover { background: rgba(255,255,255,0.18); transform: translateY(-1px); }
.icon-btn { transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.icon-detail:hover { box-shadow: 0 6px 14px rgba(29,78,216,0.15); }
.icon-edit:hover { box-shadow: 0 6px 14px rgba(16,185,129,0.15); }
.icon-delete:hover { box-shadow: 0 6px 14px rgba(239,68,68,0.18); }

.i-eye { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12z'/><circle cx='12' cy='12' r='3'/></svg>"); }
.i-edit { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 20h9'/><path d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4 12.5-12.5z'/></svg>"); }
.i-trash { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 6 5 6 21 6'/><path d='M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6'/><path d='M10 11v6'/><path d='M14 11v6'/><path d='M9 6V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2'/></svg>"); }

@media (max-width: 992px) {
  .app-layout { flex-direction: column; }
  .sidebar {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 1000;
  }
  body.sidebar-open .sidebar { transform: translateX(0); }
  body.sidebar-open .main-content { filter: blur(2px); }
}
