:root {
  /* 60% — Dominante: Clareza e Respiro */
  --bg-color: #F8F9FA; /* Off-White */
  --surface-color: #FFFFFF; /* Branco */
  
  /* 30% — Secundária: Credibilidade e Estrutura */
  --primary-color: #137DC5; /* Azul Seguro */
  --primary-hover: #0d6199;
  --text-dark: #112D4E; /* Azul Escuro */
  --text-color: #137DC5; /* Textos primários/secundários */
  --text-muted: #6B7280;

  /* 10% — Destaque: Ação e Urgência */
  --accent-color: #FF9900; /* Laranja Vibrante */
  --accent-hover: #e68a00;

  /* Sistema */
  --error-color: #EF4444;
  --soft-shadow: 0 4px 20px -2px rgba(17, 45, 78, 0.05);

  /* 🏗️ Layout Tokens (2026) */
  --sidebar-width: 260px;
  --header-height: 70px;
  --touch-target: 48px;
  --container-max-width: 1200px;
  --transition-speed: 0.3s;
}

/* 📱 Tipografia Fluida */
html {
  font-size: 16px;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); }
p, span, div { font-size: clamp(0.9rem, 1.5vw, 1rem); }

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

 /* ==========================================================================
   ESTILOS GERAIS DE TABELA E FORM
   ========================================================================== */

/* 📋 Tabelas Padronizadas */
.table-container {
    background: var(--surface-color);
    border-radius: 12px;
    box-shadow: var(--soft-shadow);
    overflow-x: auto;
    margin-bottom: 20px;
    border: 1px solid #f3f4f6;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: var(--bg-color);
    color: var(--text-muted);
    font-weight: 600;
    text-align: left;
    padding: 16px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e5e7eb;
}

td {
    padding: 16px;
    color: var(--text-dark);
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

tr:hover td {
    background-color: #f9fafb;
}

/* 🔍 Formulários e Inputs Modernos */
.toolbar {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    background: var(--surface-color);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--soft-shadow);
    align-items: center;
}

.input-search, select, input[type="text"], input[type="number"], input[type="password"], textarea {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    background-color: var(--surface-color);
    transition: all 0.2s;
}

.input-search:focus, select:focus, input[type="text"]:focus, input[type="number"]:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(19, 125, 197, 0.1);
}

/* ==========================================================================
   BOTÕES E CHAMADAS PARA AÇÃO (CTA)
   ========================================================================== */

/* 📭 Empty States */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    background: var(--surface-color);
    border-radius: 12px;
    border: 1px dashed #d1d5db;
}

.empty-state p {
    font-size: 1.1rem;
    margin-top: 10px;
}

.empty-state .icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* 🚀 Botões Padronizados - Base Judith AI */
.btn-primary, .btn-secondary, .btn-danger, .btn-outline, .btn-cancelar {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 4px 6px rgba(255, 153, 0, 0.2);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(255, 153, 0, 0.3);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #106bae; /* Tom levemente mais escuro */
}

.btn-outline, .btn-cancelar {
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border) !important;
}

.btn-outline:hover, .btn-cancelar:hover {
    background-color: #f3f4f6;
    border-color: #d1d5db;
}

.btn-danger {
    background-color: var(--error-color);
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
    transform: translateY(-1px);
}

/* Modal e UI Geral */
.modal-content {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.modal-content h3 {
    color: var(--text-dark);
    font-size: 1.25rem;
    margin-top: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}
body {
  background-color: var(--bg-color);
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

footer {
  text-align: center;
  padding: 20px;
  color: #6B7280;
  font-size: 0.875rem;
  margin-top: auto;
}

button {
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border-radius: 8px; /* Cantos arredondados (radius: 8px) para transmitir amigabilidade. */
}

/* ==========================================================================
   TUTORIAL - BOTÃO E MODAL
   ========================================================================== */
.btn-tutorial {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.btn-tutorial:hover {
    background-color: var(--primary-color);
    color: white;
}

.modal-tutorial {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-tutorial.show {
    display: flex;
    opacity: 1;
}

.modal-tutorial-content {
    background: var(--surface-color);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 800px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-tutorial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 10px;
}

.modal-tutorial-header h3 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.2rem;
}

.modal-tutorial-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

.modal-tutorial-close:hover {
    color: var(--error-color);
}

.modal-tutorial-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.modal-tutorial-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
