/**
 * Tema NEXOX — base + variáveis
 */
:root {
  --nexox-dark: #2c3e50;
  --nexox-dark-2: #1a252f;
  --nexox-teal: #17a2b8;
  --nexox-teal-dark: #138496;
  --nexox-teal-soft: rgba(23, 162, 184, 0.12);
  --nexox-bg: #eef2f7;
  --nexox-card: #ffffff;
  --nexox-border: #e2e8f0;
  --nexox-text: #1e293b;
  --nexox-muted: #64748b;
  --primary-rgb: 23, 162, 184;
  --secondary-rgb: 44, 62, 80;
  --sidebar-width: 240px;
}

body {
  background: var(--nexox-bg) !important;
  color: var(--nexox-text);
}

.app-header {
  background: var(--nexox-dark) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px rgba(26, 37, 47, 0.15);
}

.app-sidebar {
  background: linear-gradient(180deg, var(--nexox-dark) 0%, var(--nexox-dark-2) 100%) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.app-sidebar .main-menu > .slide > .side-menu__item,
.app-sidebar .side-menu__label,
.app-sidebar .side-menu__angle {
  color: rgba(255, 255, 255, 0.82) !important;
}

.app-sidebar .side-menu__item:hover,
.app-sidebar .side-menu__item.active {
  background: rgba(23, 162, 184, 0.15) !important;
  color: #fff !important;
}

.app-sidebar .side-menu__item.active {
  border-left: 3px solid var(--nexox-teal);
}

.main-content.app-content {
  background: var(--nexox-bg);
}

.card.custom-card,
.card {
  border: 1px solid var(--nexox-border) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 24px rgba(44, 62, 80, 0.06) !important;
}

.card.custom-card .card-body {
  padding: 1.25rem 1.35rem;
}

.btn-primary,
.bg-primary {
  background: linear-gradient(135deg, var(--nexox-teal) 0%, var(--nexox-teal-dark) 100%) !important;
  border-color: var(--nexox-teal-dark) !important;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-success {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
  border: none !important;
}

.page-header-breadcrumb h1,
.page-header-breadcrumb .page-title {
  color: var(--nexox-dark) !important;
  font-weight: 700;
}

.modal-content {
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}

.modal-header {
  background: var(--nexox-dark);
  color: #fff;
  border-bottom: 0;
  padding: 1rem 1.25rem;
}

.modal-header .modal-title {
  font-weight: 600;
}

.modal-header .btn-close {
  filter: invert(1);
}

.modal-body {
  background: #fff;
}

.modal-footer {
  background: #f8fafc;
  border-top: 1px solid var(--nexox-border);
}

.form-control,
.form-select {
  border-radius: 12px;
  border-color: var(--nexox-border);
  min-height: 46px;
}

.form-control:focus {
  border-color: var(--nexox-teal);
  box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.15);
}

.table thead th {
  background: var(--nexox-dark);
  color: #fff;
  border: 0;
}

.badge.bg-success,
.text-success {
  color: var(--nexox-teal) !important;
}

#loader {
  background: var(--nexox-dark);
}
