/* WCSuporte — tema escuro profissional */
:root {
  --primary: #1C437E;
  --primary-dark: #14325f;
  --primary-soft: #e8eef7;
  --sidebar-bg: #1C437E;
  --sidebar-hover: #14325f;
  --accent: #1C437E;
  --body-bg: #f1f5f9;
}

body {
  min-height: 100vh;
  background: var(--body-bg);
  overflow: hidden;
}

.sidebar {
  width: 260px;
  height: 100vh;
  flex: 0 0 260px;
  background: var(--sidebar-bg);
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar a {
  color: #cbd5e1;
  text-decoration: none;
  display: block;
  padding: 0.65rem 1rem;
  border-radius: 0.375rem;
}

.sidebar a:hover,
.sidebar a.active {
  background: var(--sidebar-hover);
  color: #fff;
}

.sidebar .brand {
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 1.25rem 1rem;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.sidebar .brand img {
  max-height: 44px;
  max-width: 100%;
  object-fit: contain;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
}

.sidebar-footer-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  line-height: 1.35;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.85rem 0.5rem 0;
}

.main-content {
  flex: 1;
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.card-metric {
  border: 0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.badge-priority-critica { background: #7f1d1d; }
.badge-priority-alta { background: #ea580c; }
.badge-priority-media { background: #ca8a04; }
.badge-priority-baixa { background: #15803d; }

.btn-primary {
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary-dark);
  --bs-btn-hover-border-color: var(--primary-dark);
  --bs-btn-active-bg: var(--primary-dark);
  --bs-btn-active-border-color: var(--primary-dark);
}

.btn-outline-primary {
  --bs-btn-color: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary);
  --bs-btn-hover-border-color: var(--primary);
}

.text-primary {
  color: var(--primary) !important;
}

.bg-primary {
  background-color: var(--primary) !important;
}

.link-primary {
  color: var(--primary) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(28, 67, 126, 0.18);
}
