/* SEABANT — Tema profissional do GenieACS */

:root {
  --color1: #c7dcef;
  --color2: #8fb7d8;
  --color3: #eaf3fb;
  --color4: #075d9c;
  --color5: #15344a;
  --disabled: #718096;
}

html,
body {
  background: #f2f7fc !important;
}

body,
input,
button,
select,
option,
textarea {
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--color5);
}

/* Fundo geral */

#content-wrapper {
  box-sizing: border-box;
  padding: 14px;
  background:
    radial-gradient(circle at 10% 10%, rgba(30, 117, 181, 0.09), transparent 30%),
    linear-gradient(135deg, #f7fbff 0%, #edf5fc 55%, #f6f9fc 100%);
}

/* Cabeçalho */

#header {
  background: linear-gradient(135deg, #f9fcff, #e2effa) !important;
  border-top: 3px solid #0b5cad;
  border-bottom: 1px solid #b8d2e8 !important;
  box-shadow: 0 3px 12px rgba(15, 70, 110, 0.12);
}

#header > .logo > .version {
  color: #56758d !important;
}

/* Abas superiores */

#header > nav > ul > li {
  background-color: #dbeaf7 !important;
  border-color: #bfd7ea !important;
}

#header > nav > ul > li.active,
#header > nav > ul > li:hover {
  background-color: #ffffff !important;
}

#header > nav > ul > li > a,
#header > nav > ul > li > a:visited,
#header > nav > ul > li > a:hover {
  color: #075d9c !important;
}

/* Conteúdo principal */

#content {
  box-sizing: border-box;
  margin: 4px 8px 18px !important;
  padding: 18px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #d8e7f3;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(31, 84, 123, 0.09);
}

/* Menu lateral */

#side-menu > ul > li > a {
  margin: 6px 0 !important;
  background: #e7f1fa !important;
  border: 1px solid #d2e3f1;
  border-radius: 0 8px 8px 0 !important;
}

#side-menu > ul > li > a:hover {
  color: #ffffff !important;
  background: #0b6dad !important;
}

#side-menu > ul > li.active > a {
  color: #ffffff !important;
  background: linear-gradient(90deg, #075d9c, #1684c5) !important;
  box-shadow: 0 3px 9px rgba(7, 93, 156, 0.20);
}

/* Títulos */

h1 {
  color: #075d9c !important;
}

h2,
h3 {
  color: #153f5c !important;
}

/* Campos */

.CodeMirror,
textarea,
select,
input {
  background-color: #f8fbfe !important;
  border-color: #c7dcef !important;
}

.CodeMirror:focus,
textarea:focus,
select:focus,
input:focus {
  background-color: #ffffff !important;
  border-color: #1684c5 !important;
  box-shadow: 0 0 0 2px rgba(22, 132, 197, 0.12);
}

/* Botões */

input[type="button"].primary,
button.primary {
  background: linear-gradient(135deg, #e6f1fa, #d5e8f7) !important;
  border-color: #b7d2e7 !important;
}

input[type="button"]:hover:enabled,
button:hover:enabled {
  color: #ffffff !important;
  background-color: #0b6dad !important;
}

/* Tabelas */

table.table th {
  color: #075d9c !important;
  border-bottom-color: #1684c5 !important;
}

table.table.highlight > tbody > tr > td {
  border-bottom-color: #d6e5f1 !important;
}

table.table.highlight > tbody > tr:hover {
  background-color: #eaf4fc !important;
}

/* Gráficos */

.overview-chart-group {
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 18px;
}

.pie-chart {
  box-sizing: border-box;
  min-width: 310px;
  margin: 8px !important;
  padding: 16px 18px;
  background: linear-gradient(180deg, #ffffff, #f8fbfe);
  border: 1px solid #d7e6f2;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(26, 81, 120, 0.08);
}

.pie-chart > svg > path {
  stroke: #ffffff !important;
  stroke-width: 2px !important;
}

.pie-chart > .legend > .legend-line > .color {
  border-color: #c5d9e8 !important;
  border-radius: 3px;
}

/* Tags */

span.tag {
  padding: 2px 8px !important;
  color: #075d9c;
  background: #dcecf8 !important;
  background-image: none !important;
  border: 1px solid #b8d5e9;
  border-radius: 999px !important;
}

/* Janelas */

.overlay-wrapper > .overlay {
  border-color: #c7dcef !important;
  border-radius: 12px !important;
  box-shadow: 0 15px 45px rgba(18, 65, 98, 0.20) !important;
}

@media (max-width: 1100px) {
  #content-wrapper {
    padding: 8px;
  }

  #content {
    padding: 12px;
  }

  .pie-chart {
    min-width: 280px;
  }
}

/* SEABANT - Lista de dispositivos identificados */
.seabant-hosts-card {
  max-width: 820px;
  max-height: 480px;
  overflow: auto;
  margin: 18px 0;
  padding: 16px 18px;
  background: #f8fbff;
  border: 1px solid #c9def0;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(18, 73, 120, 0.07);
}

.seabant-hosts-card table {
  width: 100%;
}

.seabant-hosts-card th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fbff;
}


/* SEABANT - Cartões inferiores dos detalhes */
.seabant-detail-card {
  margin: 18px 0;
  padding: 16px 18px;
  background: #f8fbff;
  border: 1px solid #c9def0;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(18, 73, 120, 0.07);
}

.seabant-detail-card h3 {
  margin: 0 0 14px;
  color: #064f84;
}

.seabant-faults-card {
  max-width: 920px;
}

.seabant-faults-card table {
  width: 100%;
}

.seabant-parameters-card {
  max-width: none;
}
