/*
:root {
  --primary: #1f3a45;
  --primary-light: #2c5261;
  --accent: #7e9f78;
  --accent-hover: #658260;
  --bg-body: #f4f7fa;
  --surface: #ffffff;
  --text-main: #2c3e50;
  --text-muted: #95a5a6;
  --danger: #e74c3c;
  --warning: #f1c40f;
  --success: #2ecc71;
  --sidebar-w: 280px;
  --sidebar-w-collapsed: 80px;
  --radius: 12px;
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.04);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  height: 100vh;
  overflow: hidden;
  display: flex;
  margin: 0;
}

.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #12222a;
  z-index: 9999;
}

.login-card {
  background-color: var(--primary);
  width: 100%;
  max-width: 380px;
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.login-card .form-control:focus {
  box-shadow: none;
  background-color: #ffffff;
}

.login-card a:hover {
  color: #ffffff !important;
}

.sidebar {
  width: var(--sidebar-w);
  background-color: var(--primary);
  color: white;
  transition: var(--transition);
  z-index: 1000;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.sidebar.collapsed {
  width: var(--sidebar-w-collapsed);
}

.sidebar-header {
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  background-color: rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  overflow: hidden;
}

.logo-icon {
  min-width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin-right: 12px;
}

.sidebar.collapsed .logo-text,
.sidebar.collapsed .nav-text,
.sidebar.collapsed .user-info {
  opacity: 0;
  pointer-events: none;
  display: none;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  overflow: hidden;
  border-left: 3px solid transparent;
}

.nav-item:hover {
  background-color: var(--primary-light);
  color: white;
}

.nav-item.active {
  background-color: var(--primary-light);
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 600;
}

.nav-icon {
  min-width: 32px;
  font-size: 1.1rem;
  text-align: center;
}

.sidebar-footer {
  padding: 15px 20px;
  background-color: rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  overflow: hidden;
}

.main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  width: calc(100% - var(--sidebar-w));
  transition: var(--transition);
  background-color: var(--bg-body);
  height: 100vh;
  overflow: hidden;
}

.sidebar.collapsed + .main-content {
  width: calc(100% - var(--sidebar-w-collapsed));
}

.top-navbar {
  height: 60px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  z-index: 10;
}

.btn-copiar-icone {
  background: none;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all 0.2s ease;
  background-color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

.btn-copiar-icone:hover {
  background-color: #f1f5f9;
  color: var(--primary);
  border-color: #94a3b8;
}

.linha-checkbox {
  background-color: rgba(126, 159, 120, 0.05);
  border-left: 3px solid var(--accent) !important;
}

.linha-checkbox td {
  color: #4a6645;
}

.tag-word {
  background-color: #f8fafc;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: monospace;
  color: var(--primary-light);
  border: 1px solid #e2e8f0;
  font-size: 0.8rem;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.toast-progresso {
  position: fixed;
  bottom: 20px;
  left: calc(var(--sidebar-w) + 20px);
  width: 380px;
  background: #ffffff;
  border-radius: 10px;
  border-left: 5px solid var(--accent);
  z-index: 1060;
  padding: 15px 20px;
  transition: var(--transition);
}

.sidebar.collapsed ~ .main-content .toast-progresso {
  left: calc(var(--sidebar-w-collapsed) + 20px);
}
*/

/*VERSÃO 2*/

:root {
  --primary: #1f3a45;
  --primary-light: #2c5261;
  --accent: #7e9f78;
  --accent-hover: #658260;
  --bg-body: #f4f7fa;
  --surface: #ffffff;
  --text-main: #2c3e50;
  --text-muted: #95a5a6;
  --danger: #e74c3c;
  --warning: #f1c40f;
  --success: #2ecc71;
  --sidebar-w: 280px;
  --sidebar-w-collapsed: 80px;
  --radius: 12px;
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.04);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  height: 100vh;
  overflow: hidden;
  display: flex;
  margin: 0;
}

/* LOGIN OVERLAY REFINADO (DARK MODE) */
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #12222a;
  z-index: 9999;
}

.login-card {
  background-color: var(--primary);
  width: 100%;
  max-width: 380px;
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.login-card .form-control:focus {
  box-shadow: none;
  background-color: #ffffff;
}

.login-card a:hover {
  color: #ffffff !important;
}

/* SIDEBAR - VISUAL PILL (ARREDONDADO COM MARGENS) */
.sidebar {
  width: var(--sidebar-w);
  background-color: var(--primary);
  color: white;
  transition: var(--transition);
  z-index: 1000;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.sidebar.collapsed {
  width: var(--sidebar-w-collapsed);
}

.sidebar-header {
  height: 70px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  background-color: transparent;
  white-space: nowrap;
  overflow: hidden;
}

.logo-icon {
  min-width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin-right: 12px;
}

.sidebar.collapsed .logo-text,
.sidebar.collapsed .nav-text,
.sidebar.collapsed .user-info {
  opacity: 0;
  pointer-events: none;
  display: none;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  margin: 4px 16px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  overflow: hidden;
}

.nav-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: white;
}

.nav-item.active {
  background-color: var(--accent);
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sidebar.collapsed .nav-item {
  margin: 4px 12px;
  padding: 12px;
  justify-content: center;
}

.sidebar.collapsed .nav-item .nav-icon {
  margin: 0 !important;
}

.nav-icon {
  min-width: 32px;
  font-size: 1.1rem;
  text-align: center;
}

.sidebar-footer {
  padding: 15px 20px;
  background-color: rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* MAIN CONTENT */
.main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  width: calc(100% - var(--sidebar-w));
  transition: var(--transition);
  background-color: var(--bg-body);
  height: 100vh;
  overflow: hidden;
}

.sidebar.collapsed + .main-content {
  width: calc(100% - var(--sidebar-w-collapsed));
}

/* NAVBAR SUPERIOR MINIMALISTA FLUTUANTE */
.top-navbar {
  height: 70px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  box-shadow: none;
  z-index: 10;
}

.top-navbar h5 {
  color: var(--primary) !important;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* CARDS E TABELAS CLEAN */
.card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/* Espaçamento reduzido das linhas da tabela para visual minimalista */
.table > :not(caption) > * > * {
  padding: 0.6rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  background-color: transparent !important;
}

/* Força o cabeçalho a acompanhar o visual mais enxuto */
.table thead th {
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #94a3b8 !important;
  border-bottom: 2px solid rgba(0, 0, 0, 0.04) !important;
  background-color: #ffffff !important;
}

.table tbody td {
  font-size: 0.85rem;
  color: #475569;
  vertical-align: middle;
}

/* TABELAS ESPECÍFICAS COLETUM */
.btn-copiar-icone {
  background: none;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all 0.2s ease;
  background-color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

.btn-copiar-icone:hover {
  background-color: #f1f5f9;
  color: var(--primary);
  border-color: #94a3b8;
}

.linha-checkbox {
  background-color: rgba(126, 159, 120, 0.05);
}

.linha-checkbox td:first-child {
  border-left: 3px solid var(--accent) !important;
}

.linha-checkbox td {
  color: #4a6645;
}

.tag-word {
  background-color: #f8fafc;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: monospace;
  color: var(--primary-light);
  border: 1px solid #e2e8f0;
  font-size: 0.8rem;
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* PROGRESS TOAST FLUTUANTE */
.toast-progresso {
  position: fixed;
  bottom: 20px;
  left: calc(var(--sidebar-w) + 20px);
  width: 380px;
  background: #ffffff;
  border-radius: 10px;
  border-left: 5px solid var(--accent);
  z-index: 1060;
  padding: 15px 20px;
  transition: var(--transition);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.sidebar.collapsed ~ .main-content .toast-progresso {
  left: calc(var(--sidebar-w-collapsed) + 20px);
}
