/* ============================================================================
 * OcoMon 6.8.1 — Tema Institucional UNICEP (Fiel ao LAN Monitor & biblioteca.unicep.edu.br)
 * ============================================================================ */

/* Fonte oficial Montserrat hospedada localmente ('self' — sem bloqueio de CSP) */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/montserrat.woff2') format('woff2');
}

:root {
  --ocomon-1: #1C384A;   /* Azul Institucional UNICEP (Topo / Cabeçalhos) */
  --ocomon-2: #002B49;   /* Azul Profundo UNICEP (Sidebar / Barra de Menu) */
  --ocomon-3: #78BE21;   /* Verde Institucional UNICEP (Destaques / Botões) */
  --ocomon-4: #2B5672;   /* Azul Médio UNICEP (Hover / Elementos Auxiliares) */
  --ocomon-5: #E9F4DC;   /* Verde Suave UNICEP (Fundos claros / Realces) */
}

/* ============================================================================
 * 1. TELA DE LOGIN SPLIT-SCREEN UNICEP (login.php)
 * ============================================================================ */
.wrap-login100 {
  min-height: calc(100vh - 36px) !important;
  padding-bottom: 36px !important;
}

/* Proporção exata do LAN Monitor: 58.33% escuro (7/12) + 41.67% branco (5/12) */
@media (min-width: 992px) {
  .login100-more.login-screen {
    width: 58.3333% !important;
  }
  .login100-form {
    width: 41.6667% !important;
    min-height: calc(100vh - 36px) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 48px clamp(40px, 7vw, 110px) !important;
  }
}

.login100-more.login-screen {
  background:
    linear-gradient(135deg, rgba(8, 22, 31, 0.90) 0%, rgba(15, 36, 48, 0.84) 55%, rgba(28, 56, 74, 0.80) 100%),
    url('../logos/unicep-login-bg.jpg') center center / cover no-repeat !important;
  display: flex !important;
  align-items: stretch !important;
  position: relative !important;
  overflow: hidden !important;
}

.unicep-hero-inner {
  width: 100%;
  padding: 36px 56px 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #FFFFFF;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  z-index: 2;
}

.unicep-hero-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.unicep-hero-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(120, 190, 33, 0.45)) drop-shadow(0 0 22px rgba(56, 189, 248, 0.28));
}

.unicep-hero-brand-text {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 14px;
}

.unicep-hero-brand-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1.1;
  color: #FFFFFF;
}

.unicep-hero-brand-title .accent {
  color: #78BE21;
}

.unicep-hero-brand-sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.9px;
  color: #CBD5E1;
  margin-top: 4px;
}

.unicep-hero-center {
  max-width: 600px;
}

.unicep-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(120, 190, 33, 0.14);
  border: 1px solid rgba(120, 190, 33, 0.35);
  color: #A3E635;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 20px;
}

.unicep-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #78BE21;
  display: inline-block;
  box-shadow: 0 0 8px rgba(120, 190, 33, 0.8);
}

.unicep-hero-h1 {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.2;
  color: #FFFFFF;
  margin: 0 0 16px 0;
  letter-spacing: -0.025em;
}

.unicep-hero-desc {
  font-size: 14px;
  line-height: 1.625;
  color: #CBD5E1;
  margin: 0 0 28px 0;
  max-width: 540px;
}

.unicep-hero-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 480px;
}

.unicep-hero-card {
  background: rgba(15, 32, 44, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  padding: 18px;
  backdrop-filter: blur(8px);
}

.unicep-hero-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.unicep-hero-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.unicep-hero-icon.icon-green {
  background: rgba(120, 190, 33, 0.16);
  color: #8EE02F;
  border: 1px solid rgba(120, 190, 33, 0.3);
}

.unicep-hero-icon.icon-sky {
  background: rgba(56, 189, 248, 0.15);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.unicep-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
}

.unicep-badge.badge-green {
  color: #8EE02F;
  background: rgba(120, 190, 33, 0.14);
}

.unicep-badge.badge-sky {
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.14);
}

.unicep-hero-card-title {
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.unicep-hero-card-sub {
  font-size: 11px;
  color: #94A3B8;
  line-height: 1.4;
}

/* Cabeçalho do formulário à direita */
.login100-form-title {
  text-align: left !important;
  display: block !important;
  padding-bottom: 10px !important;
}

.unicep-form-header {
  text-align: left;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.unicep-auth-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(120, 190, 33, 0.15);
  border: 1px solid rgba(120, 190, 33, 0.3);
  color: #598E16;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.unicep-form-h2 {
  font-size: 30px;
  font-weight: 900;
  color: #0F172A;
  margin: 0 0 8px 0;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.unicep-form-sub {
  font-size: 14px;
  line-height: 1.5;
  color: #475569;
  margin: 0 0 6px 0;
}

.login100-form,
.login100-form input,
.login100-form button,
.login100-form label,
.login100-form a {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* Inputs e botão de login */
.wrap-input100 {
  border-radius: 12px !important;
}

.focus-input100 {
  border-color: #78BE21 !important;
  border-radius: 12px !important;
}

.input-checkbox100:checked + .label-checkbox100::before {
  color: #FFFFFF !important;
  background-color: #78BE21 !important;
  border-color: #78BE21 !important;
}

.footer-login {
  display: none !important;
}

/* Faixa inferior institucional fixa na tela de login */
.unicep-bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36px;
  background: #09151D;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #94A3B8;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  z-index: 9999;
}

.unicep-bottom-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #CBD5E1;
  font-weight: 600;
}

.unicep-bottom-right strong {
  color: #E2E8F0;
}

@media (max-width: 992px) {
  .unicep-bottom-right {
    display: none;
  }
}

/* ============================================================================
 * 2. INTERIOR DO SISTEMA — PADRÃO LAN MONITOR UNICEP
 * ============================================================================ */
body:not(.login-body) {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  background-color: #F8FAFC !important;
  color: #1E293B !important;
}

/* Cabeçalho Superior (Topo) — altura fixa exata (58px + 40px = 98px) */
header,
div.topo,
div.topo-color,
#header_elements {
  background-color: #1C384A !important;
}

#header_elements {
  padding: 0 18px !important;
  height: 58px !important;
  min-height: 58px !important;
  display: flex !important;
  align-items: center !important;
}

/* Barra de Navegação Horizontal (Home | Ocorrências | Inventário | Admin) */
div.barra {
  background-color: #002B49 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-bottom: 2px solid #78BE21 !important;
  height: 40px !important;
  padding: 0 12px !important;
  display: flex !important;
  align-items: center !important;
}

.barra {
  background-color: #002B49 !important;
}

.td-barra {
  padding: 6px 14px !important;
  transition: background-color 0.15s ease !important;
}

.td-barra-right {
  padding: 6px 16px !important;
}

a.barra {
  padding: 4px 6px !important;
  letter-spacing: 0.2px !important;
}

.td-barra:hover,
a.barra:hover {
  background-color: #2B5672 !important;
  color: #FFFFFF !important;
}

a.barra-selected,
.td-barra-selected {
  color: #8EE02F !important;
  font-weight: 700 !important;
}

/* Sidebar Lateral alinhada exatamente abaixo da linha verde (top: 98px) */
.sidebar-wrapper,
.chiller-theme .sidebar-wrapper,
.default-theme .sidebar-wrapper {
  background-color: #1C384A !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  top: 98px !important;
  height: calc(100% - 148px) !important;
}

.sidebar-wrapper-full {
  top: 98px !important;
  height: calc(100% - 103px) !important;
}

.sidebar-wrapper .sidebar-menu ul li a {
  color: #CBD5E1 !important;
  font-weight: 500 !important;
  border-left: 3px solid transparent !important;
  transition: all 0.15s ease !important;
}

.sidebar-wrapper .sidebar-menu ul li:hover > a,
.sidebar-wrapper .sidebar-menu ul li.active > a,
.sidebar-wrapper .sidebar-menu .sidebar-dropdown.active > a {
  background-color: #2B5672 !important;
  color: #FFFFFF !important;
  border-left: 3px solid #78BE21 !important;
}

.sidebar-wrapper .sidebar-menu ul li:hover > a i,
.sidebar-wrapper .sidebar-menu ul li.active > a i,
.sidebar-wrapper .sidebar-menu .sidebar-dropdown.active > a i {
  color: #78BE21 !important;
}

.sidebar-wrapper .sidebar-menu .sidebar-dropdown .sidebar-submenu {
  background-color: #132836 !important;
}

/* Cards, Acordeões e Modais Modernos */
.card,
.modal-content {
  border-radius: 14px !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06) !important;
  overflow: hidden;
}

.modal-header {
  background-color: #1C384A !important;
  color: #FFFFFF !important;
  border-bottom: 2px solid #78BE21 !important;
}

.modal-header .close {
  color: #FFFFFF !important;
  opacity: 0.85;
}

/* Tabelas DataTables */
table.dataTable thead th,
.table thead th,
.bg-oc-blue {
  background-color: #1C384A !important;
  color: #FFFFFF !important;
  border-bottom: 2px solid #78BE21 !important;
  font-weight: 700 !important;
  font-size: 11.5px !important;
  letter-spacing: 0.02em !important;
}

table.dataTable tbody tr:hover,
.table-hover tbody tr:hover {
  background-color: #F1F5F9 !important;
}

/* Paginação DataTables no Verde UNICEP */
.page-item.active .page-link,
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background-color: #78BE21 !important;
  border-color: #78BE21 !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
}

.page-link {
  color: #1C384A !important;
  border-radius: 8px !important;
  margin: 0 2px !important;
}

/* Botões Primários & Secundários UNICEP */
.btn {
  border-radius: 10px !important;
  font-weight: 600 !important;
}

.btn-primary,
.login100-form-btn {
  background-color: #78BE21 !important;
  border-color: #78BE21 !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  text-transform: none !important;
  letter-spacing: 0.2px !important;
  transition: background-color 0.2s ease, box-shadow 0.2s ease !important;
}

.btn-primary:hover,
.btn-primary:focus,
.login100-form-btn:hover {
  background-color: #68A61C !important;
  border-color: #68A61C !important;
  box-shadow: 0 6px 16px rgba(120, 190, 33, 0.35) !important;
}

.btn-secondary,
.btn-oc-primary,
.btn-info {
  background-color: #1C384A !important;
  border-color: #1C384A !important;
  color: #FFFFFF !important;
}

.btn-secondary:hover,
.btn-oc-primary:hover,
.btn-info:hover {
  background-color: #2B5672 !important;
  border-color: #2B5672 !important;
}

/* Campos de formulário e selects */
.form-control,
.custom-select,
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  border-radius: 10px !important;
  border: 1px solid #CBD5E1 !important;
}

.form-control:focus,
.custom-select:focus,
.dataTables_wrapper .dataTables_filter input:focus {
  border-color: #78BE21 !important;
  box-shadow: 0 0 0 0.2rem rgba(120, 190, 33, 0.22) !important;
  outline: none !important;
}

/* Logo customizada no cabeçalho interno */
.unicep-top-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 4px 10px;
  text-decoration: none !important;
}

.unicep-top-brand img {
  height: 34px;
  width: auto;
  filter: drop-shadow(0 0 6px rgba(120, 190, 33, 0.4));
}

.unicep-top-brand-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.1;
  letter-spacing: 0.4px;
}

.unicep-top-brand-title span {
  color: #78BE21;
}

.unicep-top-brand-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 600;
  color: #94A3B8;
  letter-spacing: 0.9px;
  margin-top: 2px;
}
