/* ============================================================
   Naja Hub | Central de Clientes
   Arquivo: assets/css/style.css
   Versao: 2.0-ajustada
   Objetivo:
   - Identidade visual Naja Hub
   - Fonte Lato
   - Laranja #f58221 como cor principal
   - Azul #1446a0 como cor secundaria
   - Login no padrão visual aprovado
   - Dashboard principal
   - Rodapé lateral com autoria da ferramenta
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&display=swap');

:root {
  --naja-orange: #f58221;
  --naja-blue: #1446a0;

  --white: #ffffff;
  --black: #000000;

  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-900: #0f172a;

  --danger-bg: #fde8ec;
  --danger-text: #d7263d;
  --success-bg: #e8f7ee;
  --success-text: #16803c;

  --shadow-soft: 0 20px 45px rgba(20, 70, 160, 0.12);

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
}

body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Lato', Arial, sans-serif;
  color: var(--gray-900);
  background: var(--gray-50);
}

/* ============================================================
   LOGIN
   ============================================================ */

.login-body {
  min-height: 100vh;
  background: linear-gradient(135deg, #eef4ff 0%, #ffffff 100%);
}

.login-layout {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 58%) minmax(420px, 42%);
}

.login-visual {
  min-height: 100vh;
  background: var(--naja-blue);
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.login-visual-img {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.login-area {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px;
  background: linear-gradient(135deg, #eef4ff 0%, #ffffff 100%);
}

.login-box {
  width: 100%;
  max-width: 430px;
}

.login-logo-box {
  width: 100%;
  text-align: center;
  margin-bottom: 22px;
}

.login-logo {
  max-width: 230px;
  width: 68%;
  height: auto;
  display: inline-block;
}

.login-card {
  width: 100%;
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius-lg);
  border-top: 5px solid var(--naja-orange);
  box-shadow: var(--shadow-soft);
}

.login-subtitle {
  margin: 0 0 26px;
  color: var(--gray-600);
  font-size: 16px;
}

.login-actions {
  text-align: right;
  margin-bottom: 24px;
}

.login-footer {
  margin-top: 18px;
  text-align: center;
  color: var(--gray-500);
}

/* ============================================================
   FORMULARIOS
   ============================================================ */

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--gray-700);
  font-weight: 700;
}

.form-group input,
.input-search {
  width: 100%;
  height: 42px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 14px;
  outline: none;
  background: var(--white);
}

.form-group input:focus,
.input-search:focus {
  border-color: var(--naja-orange);
  box-shadow: 0 0 0 3px rgba(245, 130, 33, 0.16);
}

/* ============================================================
   BOTÕES E MENSAGENS
   ============================================================ */

.btn {
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 18px;
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  color: var(--white);
  background: var(--naja-orange);
}

.btn-primary:hover {
  filter: brightness(0.95);
}

.btn-secondary {
  color: var(--white);
  background: var(--naja-blue);
}

.btn-secondary:hover {
  filter: brightness(0.95);
}

.btn-outline {
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-logout {
  color: var(--naja-orange);
  background: var(--white);
  border: 1px solid var(--white);
}

.btn-logout:hover {
  background: rgba(255, 255, 255, 0.92);
  color: var(--naja-orange);
}

.btn-link {
  border: none;
  background: transparent;
  color: var(--naja-blue);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  font-family: 'Lato', Arial, sans-serif;
}

.btn-link:hover {
  color: var(--naja-orange);
  text-decoration: underline;
}

.message-box {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.message-error {
  background: var(--danger-bg);
  color: var(--danger-text);
}

.message-success {
  background: var(--success-bg);
  color: var(--success-text);
}

/* ============================================================
   DASHBOARD
   Mantido em base funcional, usando o laranja como principal.
   ============================================================ */

.app-body {
  min-height: 100vh;
  display: flex;
  background: var(--gray-100);
}

.sidebar {
  width: 260px;
  min-height: 100vh;
  background: var(--naja-orange);
  color: var(--white);
  display: flex;
  flex-direction: column;
  padding: 24px 18px 18px;
  position: fixed;
  left: 0;
  top: 0;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.brand-symbol {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--white);
  color: var(--naja-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 20px;
}

.sidebar-symbol-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
}

.sidebar-brand h1 {
  margin: 0;
  font-size: 25px;
  font-weight: 900;
  color: var(--white);
}

.sidebar-brand p {
  margin: 4px 0 0;
  font-size: 14px;
  opacity: 0.95;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 28px;
}

.nav-item {
  display: block;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.nav-item:hover,
.nav-item.active {
  color: var(--naja-orange);
  background: var(--white);
}

.sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.sidebar-footer .btn-logout {
  width: auto;
  min-width: 62px;
}

.developer-credit {
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 700;
}

.developer-credit span {
  display: block;
}

.main-content {
  margin-left: 260px;
  width: calc(100% - 260px);
  min-height: 100vh;
  padding: 32px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.topbar h2 {
  margin: 0 0 8px;
  color: var(--gray-900);
  font-size: 28px;
  font-weight: 900;
}

.topbar h2::after {
  content: '';
  display: block;
  width: 54px;
  height: 4px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--naja-orange);
}

.topbar p {
  margin: 0;
  color: var(--gray-500);
}

.user-info {
  color: var(--gray-700);
  font-weight: 700;
  white-space: nowrap;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.info-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  border: 1px solid var(--gray-200);
  border-top: 4px solid var(--naja-orange);
}

.card-label {
  display: block;
  color: var(--gray-500);
  font-weight: 700;
  margin-bottom: 8px;
}

.info-card strong {
  display: block;
  color: var(--naja-orange);
  font-size: 30px;
  font-weight: 900;
}

.panel {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--gray-200);
}

.panel-header h3 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 900;
  color: var(--gray-900);
}

.panel-header p {
  margin: 0;
  color: var(--gray-500);
}

.table-actions {
  display: flex;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--gray-200);
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.data-table thead {
  background: var(--naja-orange);
  color: var(--white);
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
  font-size: 14px;
}

.data-table th {
  font-weight: 900;
}

.data-table tbody tr:hover {
  background: var(--gray-50);
}

/* ============================================================
   RESPONSIVO
   ============================================================ */

@media (max-width: 980px) {
  .login-layout {
    display: block;
  }

  .login-visual {
    display: none;
  }

  .login-area {
    min-height: 100vh;
    min-width: 0;
    padding: 28px;
  }

  .app-body {
    display: block;
  }

  .sidebar {
    position: relative;
    width: 100%;
    min-height: auto;
  }

  .sidebar-footer {
    margin-top: 28px;
  }

  .main-content {
    margin-left: 0;
    width: 100%;
    padding: 24px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .topbar,
  .panel-header,
  .table-actions {
    flex-direction: column;
  }
}