/* Design System Premium - Portal Corporativo TI */
/* Tema Moderno, Clean e Minimalista */

:root {
  /* Constantes de Tema */
  --primary: #000719; /* Azul Profundo */
  --primary-hover: #001233;
  --primary-glow: transparent;
  --secondary: #D99F00; /* Dourado Safra */
  --secondary-glow: transparent;
  --success: #10b981;
  --success-glow: transparent;
  --danger: #ef4444;
  --danger-glow: transparent;
  --warning: #f59e0b;
  --font-family: 'Outfit', sans-serif;
  --transition-smooth: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius-lg: 12px;
  --border-radius-md: 8px;
  --border-radius-sm: 4px;
  --primary-gradient: linear-gradient(135deg, var(--primary), #001233);

  /* VariÃ¡veis de Tema (Azul Profundo) */
  --bg-gradient-base: #000719;
  --bg-base: #000719; 
  --bg-surface: rgba(234, 234, 234, 0.05); /* Cinza Claro overlay */
  --bg-card: rgba(0, 7, 25, 0.6);
  --bg-sidebar: #000719;
  --border-color: rgba(217, 159, 0, 0.2); /* Borda dourada leve */
  --border-glow: transparent;
  --text-main: #EAEAEA; /* Cinza Claro para texto principal para contrastar com azul profundo */
  --text-muted: #888888;
  --bg-input: rgba(234, 234, 234, 0.03);
  --bg-input-focus: rgba(217, 159, 0, 0.05);
  --bg-item-active: rgba(217, 159, 0, 0.1);
  --bg-panel-header: transparent;
  --bg-panel-body: transparent;
  --bg-modal-overlay: rgba(0, 0, 0, 0.85);
  --shadow-main: none;
  --shadow-modal: 0 20px 40px rgba(0, 0, 0, 0.8);
  --vps-stat-bar: rgba(217, 159, 0, 0.2);
  --bg-button-secondary: #0C0C0C; /* Preto */
  --orb-opacity: 0;
  
  /* VariÃ¡veis TELA LOGIN / MASTER */
  --bg-login-modern: var(--bg-gradient-base);
  --text-login-modern: #EAEAEA;
  --text-login-muted: #888888;
  --border-login-modern: rgba(217, 159, 0, 0.2);
  --border-login-focus: #D99F00; /* Dourado Safra */
  --btn-login-modern: #D99F00; /* Dourado Safra */
  --btn-login-modern-hover: #b88600; 
  --logo-bg-modern: #0C0C0C;
}

body.light-theme {
  /* VariÃ¡veis de Tema (Platinum / Claro) */
  --bg-gradient-base: #f9f9f9;
  --bg-base: #f9f9f9;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-sidebar: #f4f4f4;
  --border-color: #e5e5e5;
  --border-glow: transparent;
  --text-main: #111111;
  --text-muted: #666666;
  --bg-input: transparent;
  --bg-input-focus: transparent;
  --bg-item-active: rgba(0, 0, 0, 0.05);
  --bg-panel-header: transparent;
  --bg-panel-body: transparent;
  --bg-modal-overlay: rgba(255, 255, 255, 0.9);
  --shadow-main: none;
  --shadow-modal: 0 20px 40px rgba(0, 0, 0, 0.1);
  --vps-stat-bar: rgba(0, 0, 0, 0.05);
  --bg-button-secondary: #f4f4f4;
  --orb-opacity: 0;

  --bg-login-modern: var(--bg-gradient-base);
  --text-login-modern: #111111;
  --text-login-muted: #666666;
  --border-login-modern: #cccccc;
  --border-login-focus: #D99F00;
  --btn-login-modern: #D99F00;
  --btn-login-modern-hover: #b3914e;
  --logo-bg-modern: #ffffff;
}

/* Reset Geral */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background: var(--bg-gradient-base);
  color: var(--text-main);
  overflow-x: hidden;
  min-height: 100vh;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* TransiÃ§Ãµes suaves globais estilo Apple */
.sidebar, .main-content, .metric-card, .dashboard-panel, .kb-card, .course-card, .modal-card, .topbar, .data-table, .data-table td, .data-table th, .input-group input, .input-group select, .input-group textarea, .btn-primary, .btn-secondary, .badge, .badge-tag, .filter-btn, .theme-toggle-btn {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrollbar estilizado */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Background com Orbes Flutuantes Animados */
.bg-orbs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  display: none;
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: var(--orb-opacity, 0.25);
  animation: float 25s infinite ease-in-out;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--primary) 0%, rgba(0,0,0,0) 70%);
  top: -10%;
  left: -10%;
  animation-duration: 20s;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--secondary) 0%, rgba(0,0,0,0) 70%);
  bottom: -20%;
  right: -10%;
  animation-duration: 28s;
  animation-delay: -5s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #06b6d4 0%, rgba(0,0,0,0) 70%);
  top: 40%;
  left: 50%;
  animation-duration: 35s;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(50px, -80px) scale(1.15);
  }
  66% {
    transform: translate(-30px, 40px) scale(0.9);
  }
}

/* ==========================================
   TELA DE LOGIN (MODERN LAYOUT)
   ========================================== */
.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  background: var(--bg-login-modern);
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}

/* Subtle ambient glow behind the card */
.login-wrapper::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(217, 159, 0, 0.08) 0%, rgba(0,0,0,0) 70%);
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.login-card {
  background: rgba(18, 18, 18, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  padding: 40px 35px 30px;
  width: 100%;
  max-width: 420px;
  z-index: 1;
  animation: fadeInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

body.light-theme .login-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.login-card::before {
  display: none;
}

.logo-icon-modern {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, rgba(217, 159, 0, 0.15), rgba(217, 159, 0, 0.05));
  border: 1px solid rgba(217, 159, 0, 0.2);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  color: #D99F00;
  margin: 0 auto 20px auto;
  transition: background 0.3s ease, border-color 0.3s ease;
}

body.light-theme .logo-icon-modern {
  background: linear-gradient(135deg, rgba(217, 159, 0, 0.12), rgba(217, 159, 0, 0.04));
  border-color: rgba(217, 159, 0, 0.25);
  color: #b3914e;
}

.title-modern {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-login-modern);
  text-align: center;
  margin-bottom: 35px;
}

/* Inputs Modernos (Material Style) */
.input-modern {
  position: relative;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
}

.input-modern i {
  position: absolute;
  left: 0;
  color: #D99F00;
  font-size: 15px;
  padding-left: 5px;
  z-index: 2;
  pointer-events: none;
}

.input-modern input {
  width: 100%;
  background: transparent !important;
  border: none !important;
  border-bottom: 1.5px solid var(--border-login-modern) !important;
  color: var(--text-login-modern) !important;
  padding: 10px 10px 10px 35px !important;
  font-size: 15px;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

/* Fix for Chrome/Edge autofill changing background and hiding icons */
.input-modern input:-webkit-autofill,
.input-modern input:-webkit-autofill:hover,
.input-modern input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #121212 inset !important;
  -webkit-text-fill-color: var(--text-login-modern) !important;
  border-bottom: 1.5px solid var(--border-login-modern) !important;
  transition: background-color 5000s ease-in-out 0s;
  caret-color: var(--text-login-modern);
}

body.light-theme .input-modern input:-webkit-autofill,
body.light-theme .input-modern input:-webkit-autofill:hover,
body.light-theme .input-modern input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #f5f5f5 inset !important;
  -webkit-text-fill-color: #111111 !important;
}

.input-modern input::placeholder {
  color: var(--text-login-muted);
  font-weight: 300;
}

.input-modern input:focus {
  border-bottom-color: var(--border-login-focus) !important;
  outline: none;
  background: transparent !important;
}

.gen-pass-btn {
  position: absolute;
  right: 0;
  color: #D99F00;
  font-size: 14px;
  padding: 5px;
  z-index: 2;
  transition: transform 0.2s;
}
.gen-pass-btn:hover {
  transform: scale(1.15);
}

.modern-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: -5px;
  margin-bottom: 30px;
}

.remember-me {
  color: var(--text-login-muted);
  font-size: 12px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.remember-me input {
  accent-color: var(--btn-login-modern);
}

.forgot-link, .register-link {
  color: var(--text-login-muted);
  font-size: 12px;
  font-weight: 400;
  text-decoration: none;
  font-style: italic;
  transition: color 0.2s, opacity 0.2s;
}

.register-link {
  font-style: normal;
  letter-spacing: 0.5px;
}

.forgot-link:hover, .register-link:hover {
  opacity: 0.9;
  color: #D99F00;
  text-decoration: underline;
}

.btn-modern {
  width: 100%;
  background: linear-gradient(135deg, #D99F00, #b3914e);
  color: #ffffff;
  border: none;
  padding: 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(217, 159, 0, 0.2);
}

.btn-modern:hover {
  background: linear-gradient(135deg, #b3914e, #a07f3e);
  box-shadow: 0 6px 20px rgba(217, 159, 0, 0.3);
  transform: translateY(-1px);
}

/* Inputs e Grupos */
.input-group {
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.input-group label {
  font-size: 13.5px;
  font-weight: 600;
  color: #d1d5db;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.input-group label i {
  color: var(--secondary);
  font-size: 14px;
}

.input-group input,
.input-group select,
.input-group textarea {
  background: var(--bg-input) !important;
  border: none !important;
  border-bottom: 1.5px solid var(--border-color) !important;
  color: var(--text-main) !important;
  padding: 10px 5px !important;
  border-radius: 0 !important;
  font-family: var(--font-family);
  font-size: 15px;
  transition: all 0.3s ease;
  width: 100%;
  box-shadow: none !important;
}

.input-group select option {
  background-color: var(--bg-base);
  color: var(--text-main);
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  outline: none;
  border-bottom-color: var(--text-main) !important;
  background: var(--bg-input-focus) !important;
  box-shadow: none !important;
  transform: none;
}

.error-msg {
  color: #f87171;
  font-size: 13px;
  margin-bottom: 15px;
  min-height: 18px;
  text-align: center;
}

/* BotÃµes */
.btn-primary {
  background: var(--btn-login-modern);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  transition: background 0.3s ease, transform 0.2s;
  box-shadow: none;
}

.btn-primary:hover {
  background: var(--btn-login-modern-hover);
  transform: translateY(-2px);
  box-shadow: none;
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 11px 19px;
  border-radius: 4px;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: var(--bg-item-active);
  border-color: var(--text-muted);
}

.login-btn {
  width: 100%;
}

/* Social Login & Registration */
.social-login-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border-radius: var(--border-radius-md);
  font-family: var(--font-family);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid var(--border-color);
  background: var(--bg-button-secondary);
  color: var(--text-main);
}

.btn-social i {
  font-size: 16px;
}

.btn-google:hover {
  background: #db4437;
  color: white;
  border-color: #db4437;
}

.btn-microsoft:hover {
  background: #00a4ef;
  color: white;
  border-color: #00a4ef;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 15px 0 20px 0;
  color: var(--text-muted);
  font-size: 12px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.divider span {
  padding: 0 10px;
}

.input-group label span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.input-group label {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.login-footer {
  margin-top: 30px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.login-footer p {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================
   SELEÃ‡ÃƒO DE EMPRESAS (Dashboard Multitenant)
   ========================================== */
.companies-layout {
  min-height: 100vh;
  padding: 50px 20px;
  background: var(--bg-login-modern);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 10;
}

.companies-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 50px;
  background: rgba(18, 18, 18, 0.6);
  backdrop-filter: blur(10px);
  padding: 20px 40px;
  border-radius: 12px;
  border: 1px solid rgba(217, 159, 0, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.companies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  width: 100%;
  max-width: 1200px;
}

.empresa-card {
  background: rgba(18, 18, 18, 0.4);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 25px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.empresa-card:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 159, 0, 0.5);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  background: rgba(18, 18, 18, 0.7);
}

.empresa-card i.main-icon {
  font-size: 24px;
  color: #D99F00;
  margin-bottom: 15px;
  opacity: 0.8;
}

.empresa-card h3 {
  color: var(--text-login-modern);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.empresa-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.2s ease;
}

.empresa-card:hover .empresa-actions {
  opacity: 1;
  transform: translateY(0);
}

.btn-card-action {
  background: transparent;
  border: none;
  color: #888;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
}

.btn-card-action:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #D99F00;
}

.btn-card-action.danger:hover {
  background: rgba(255, 80, 80, 0.1);
  color: #ff5050;
}
  letter-spacing: 1px;
}

/* ==========================================
   LAYOUT GERAL DO APP (Dashboard)
   ========================================== */
.app-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

/* Sidebar lateral */
.sidebar {
  width: 210px;
  background: var(--bg-sidebar);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-color);
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 100;
  transition: var(--transition-smooth);
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 20px;
  padding-left: 8px;
}

.sidebar-brand i {
  color: var(--secondary);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-brand-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: var(--border-radius-md);
  font-size: 12.5px;
  font-weight: 500;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.menu-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-item i {
  font-size: 14px;
  transition: var(--transition-smooth);
  flex-shrink: 0;
  width: 18px;
  text-align: center;
}

.menu-item:hover {
  color: var(--text-main);
  background: var(--bg-item-active);
}

.menu-item.active {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.15), rgba(168, 85, 247, 0.15));
  border-left: 3px solid var(--primary);
  padding-left: 9px; /* Ajuste para compensar a borda (12px - 3px) */
  box-shadow: inset 0 0 15px rgba(88, 101, 242, 0.1);
}

body.dark-theme .menu-item.active {
  color: white;
}

body.light-theme .menu-item.active {
  color: var(--secondary);
  background: rgba(88, 101, 242, 0.08);
}

.menu-item.active i {
  color: var(--secondary);
  transform: scale(1.1);
}

/* Submenu de ConfiguraÃ§Ãµes */
.menu-submenu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  padding: 10px 12px;
  border-radius: var(--border-radius-md);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  user-select: none;
  white-space: nowrap;
}

.menu-submenu-header div {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-submenu-header span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-submenu-header:hover {
  color: var(--text-main);
  background: var(--bg-item-active);
}

.menu-submenu-header i:first-child {
  font-size: 13px;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}


.submenu-title-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.submenu-title-wrapper i {
  font-size: 14px;
  transition: var(--transition-smooth);
  flex-shrink: 0;
  width: 18px;
  text-align: center;
}

.submenu-arrow {
  font-size: 12px;
  transition: transform var(--transition-smooth);
  flex-shrink: 0;
}

.submenu-arrow.rotated {
  transform: rotate(180deg);
}

.submenu-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease-out, margin 0.3s ease-out;
  padding-left: 10px;
  border-left: 1px solid var(--border-color);
  margin-left: 20px;
  margin-top: 0;
  margin-bottom: 0;
}

.submenu-container.expanded {
  margin-top: 5px;
  margin-bottom: 5px;
}

.submenu-container .menu-item {
  padding: 10px 12px;
  font-size: 11.5px;
  gap: 8px;
}

.submenu-container .menu-item i {
  font-size: 11px;
}

.sidebar-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 6px 8px;
  margin: 0 -8px;
  border-radius: var(--border-radius-md);
  transition: var(--transition-smooth);
}

.user-badge:hover {
  background: var(--bg-item-active);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  flex-shrink: 0;
}

.user-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.user-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-break: break-word;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
}

.user-role {
  font-size: 10.5px;
  color: var(--text-muted);
}

.btn-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.15);
  padding: 7px 10px;
  border-radius: var(--border-radius-md);
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 100%;
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.18);
  color: white;
}

/* Ãrea principal de conteÃºdo */
.main-content {
  flex: 1;
  margin-left: 210px; /* Mesma largura da sidebar */
  padding: 30px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  width: calc(100% - 210px);
}

/* Sidebar colapsada */
.app-layout.collapsed-sidebar .sidebar {
  width: 60px;
  padding: 16px 6px;
}

.app-layout.collapsed-sidebar .sidebar .brand-logo,
.app-layout.collapsed-sidebar .sidebar .menu-item span,
.app-layout.collapsed-sidebar .sidebar .menu-submenu-header span,
.app-layout.collapsed-sidebar .sidebar .submenu-arrow,
.app-layout.collapsed-sidebar .sidebar .user-details,
.app-layout.collapsed-sidebar .sidebar .btn-logout span,
.app-layout.collapsed-sidebar .sidebar .sidebar-version {
  display: none;
}

.app-layout.collapsed-sidebar .sidebar .menu-item {
  justify-content: center;
  padding: 8px;
}

.app-layout.collapsed-sidebar .sidebar .menu-submenu-header {
  justify-content: center;
  padding: 8px;
}

.app-layout.collapsed-sidebar .sidebar .submenu-container {
  margin-left: 0;
  padding-left: 0;
  border-left: none;
}

.app-layout.collapsed-sidebar .sidebar .user-badge {
  justify-content: center;
}

.app-layout.collapsed-sidebar .sidebar .btn-logout {
  justify-content: center;
}

.app-layout.collapsed-sidebar .main-content {
  margin-left: 60px;
  width: calc(100% - 60px);
}

/* Responsividade Mobile */
@media (max-width: 1024px) {
  .sidebar {
    left: -210px;
  }
  .sidebar.active {
    left: 0;
  }
  .main-content {
    margin-left: 0;
    width: 100%;
  }
  .btn-mobile-menu {
    display: flex !important;
  }
  .btn-collapse-sidebar {
    display: none;
  }
}

@media (min-width: 1025px) {
  .btn-mobile-menu {
    display: none !important;
  }
  .btn-close-sidebar {
    display: none;
  }
}

/* Topbar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 25px;
}

.page-title h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 5px;
  color: var(--text-main);
}

.page-title p {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 300;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.07);
  padding: 6px 12px;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.status-indicator.offline {
  background: rgba(245, 158, 11, 0.07);
  border-color: rgba(245, 158, 11, 0.15);
}

.status-indicator .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--success);
}

.status-indicator.offline .dot {
  background-color: var(--warning);
}

.status-indicator .text {
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
}

.status-indicator.offline .text {
  color: var(--warning);
}

.date-badge {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: var(--border-radius-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* NotificaÃ§Ãµes Topbar */
.notification-badge {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  width: 32px;
  height: 32px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.notification-badge:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--secondary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.notification-badge:hover i {
  color: var(--primary) !important;
}

.notification-badge .badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger);
  color: white;
  font-size: 9px;
  font-weight: 800;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 6px var(--danger-glow);
  border: 1px solid #111422; /* Outline matched to dark background */
}

/* Painel de AvaliaÃ§Ãµes Pendentes no Dashboard */
.eval-pending-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 12px 18px;
  margin-bottom: 10px;
  transition: var(--transition-smooth);
}

.eval-pending-item:hover {
  border-color: var(--secondary);
  background: rgba(88, 101, 242, 0.05);
}

.eval-pending-item:last-child {
  margin-bottom: 0;
}

/* Sections DinÃ¢micas */
.app-section {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.app-section.active {
  display: block;
}

/* ==========================================
   METRICAS E DASHBOARD (INÃCIO)
   ========================================== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.metric-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: var(--transition-smooth);
  box-shadow: none;
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.metric-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--border-radius-md);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

.colab-color { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.kb-color { background: rgba(168, 85, 247, 0.1); color: #a855f7; }
.pass-color { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.train-color { background: rgba(16, 185, 129, 0.1); color: #10b981; }

.metric-info h3 {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 5px;
}

.metric-number {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 4px;
}

.metric-desc {
  font-size: 11px;
  color: var(--text-muted);
}

/* PainÃ©is de Dashboard */
.dashboard-layout-grid {
  display: grid;
  grid-template-columns: 1.62fr 1fr;
  gap: 30px;
  align-items: start;
}

.dashboard-layout-grid.no-performance-data {
  grid-template-columns: 1fr;
}

.dashboard-main-col {
  display: flex;
  flex-direction: column;
}

.dashboard-side-col {
  display: flex;
  flex-direction: column;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 30px;
}

.dashboard-panel {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  box-shadow: none;
  margin-bottom: 30px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.panel-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-header h2 i {
  color: var(--secondary);
}

.btn-text {
  color: var(--secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.btn-text:hover {
  color: var(--secondary);
}

/* VPS Status */
.vps-status-card {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

.vps-stat {
  display: grid;
  grid-template-columns: 80px 1fr 60px;
  align-items: center;
  gap: 15px;
}

.vps-stat .label {
  font-size: 13px;
  color: var(--text-muted);
}

.vps-stat .val {
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}

.text-green {
  color: var(--success);
}

.progress-bar-small {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar-small .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 10px;
}

.quick-tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.quick-tool-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 15px;
  border-radius: var(--border-radius-md);
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: var(--transition-smooth);
}

.quick-tool-btn i {
  font-size: 18px;
  color: var(--secondary);
  transition: var(--transition-smooth);
}

.quick-tool-btn:hover {
  background: rgba(88, 101, 242, 0.1);
  border-color: var(--secondary);
  transform: translateY(-2px);
}

.quick-tool-btn:hover i {
  color: var(--secondary);
  transform: scale(1.1);
}

/* ==========================================
   LISTAS E TABELAS (COLABORADORES)
   ========================================== */
.inner-tabs {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}

.inner-tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 600;
  padding: 10px 20px;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
}

.inner-tab-btn:hover {
  color: var(--text-main);
}

.inner-tab-btn.active {
  color: var(--secondary);
}

.inner-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 10px;
}

.table-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  gap: 20px;
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 480px;
}

.search-box i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-box input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 12px 16px 12px 45px;
  border-radius: var(--border-radius-md);
  font-family: var(--font-family);
  font-size: 14px;
  transition: var(--transition-smooth);
}

.search-box input:focus {
  outline: none;
  border-color: var(--secondary);
  background: var(--bg-input-focus);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

/* Tabelas */
.table-container {
  background: var(--bg-card);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-main);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th,
.data-table td {
  padding: 6px 15px;
  font-size: 13.5px;
}

.data-table th {
  background: var(--bg-panel-header);
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.8px;
}

.data-table td {
  border-bottom: 1px solid var(--border-color);
  font-weight: 500;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: var(--bg-item-active);
}

/* Badges de Status e Matriz */
.badge {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-active { background: rgba(16, 185, 129, 0.1); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.2); }
.badge-inactive { background: rgba(239, 68, 68, 0.1); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.2); }
.badge-warning { background: rgba(245, 158, 11, 0.1); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.2); }
.badge-purple { background: rgba(168, 85, 247, 0.1); color: var(--secondary); border: 1px solid rgba(168, 85, 247, 0.2); }
.badge-danger { background: rgba(239, 68, 68, 0.1); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.2); }

.badge-tag {
  background: var(--bg-button-secondary, rgba(255, 255, 255, 0.06));
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 4px 12px;
  border-radius: var(--border-radius-sm);
  font-size: 11px;
}

/* AÃ§Ãµes nas tabelas */
.actions-cell {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-button-secondary, rgba(255, 255, 255, 0.03));
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-smooth);
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.btn-icon-small {
  width: 26px;
  height: 26px;
  font-size: 12px;
}

.btn-icon.edit-btn:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

.btn-icon.delete-btn:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.btn-icon.eval-btn:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

.btn-icon.lock-btn:hover {
  border-color: var(--danger);
  color: var(--danger) !important;
}

.btn-icon.unlock-btn:hover {
  border-color: var(--success);
  color: var(--success) !important;
}

.btn-icon.new-eval-btn:hover {
  border-color: var(--success);
  color: var(--success) !important;
}

/* ==========================================
   QUADRO 9-BOX E AVALIAÃ‡Ã•ES
   ========================================== */
.performance-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 30px;
}

.eval-cards-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-height: 500px;
  overflow-y: auto;
  padding-right: 5px;
}

.eval-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

.eval-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-glow);
}

.eval-info h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 5px;
}

.eval-info p {
  font-size: 12px;
  color: var(--text-muted);
}

.eval-score-badge {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.eval-score-badge .score {
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eval-box-badge {
  background: rgba(168, 85, 247, 0.15);
  color: var(--secondary);
  border: 1px solid rgba(168, 85, 247, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}

/* Estrutura 9-Box */
.matrix-9box-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.nine-box-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 130px);
  gap: 10px;
  margin-bottom: 15px;
}

.box-cell {
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px dashed var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.box-cell:hover {
  background: rgba(255, 255, 255, 0.05);
  border-style: solid;
}

.box-cell.potential-high.performance-high {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.25);
}
.box-cell.potential-high.performance-high:hover {
  border-color: var(--success);
  box-shadow: 0 0 15px var(--success-glow);
}

.box-cell.potential-high.performance-high .box-title { color: var(--success); }

.box-cell.potential-high.performance-medium,
.box-cell.potential-medium.performance-high {
  background: rgba(88, 101, 242, 0.05);
  border-color: rgba(88, 101, 242, 0.25);
}
.box-cell.potential-high.performance-medium:hover,
.box-cell.potential-medium.performance-high:hover {
  border-color: var(--secondary);
}

.box-cell.potential-low.performance-low {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.25);
}
.box-cell.potential-low.performance-low:hover {
  border-color: var(--danger);
  box-shadow: 0 0 15px var(--danger-glow);
}
.box-cell.potential-low.performance-low .box-title { color: var(--danger); }

.box-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.box-users {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  overflow-y: auto;
  flex: 1;
}

.box-user-tag {
  background: rgba(88, 101, 242, 0.08);
  border: 1px solid rgba(88, 101, 242, 0.25);
  color: var(--text-main);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition-smooth);
  margin: 2px;
}

.box-user-tag:hover {
  background: rgba(88, 101, 242, 0.2);
  border-color: var(--secondary);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(88, 101, 242, 0.15);
}

.nine-box-layout {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.y-axis-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 15px;
  width: 30px;
}

.y-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}

.x-axis-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 15px;
  padding-left: 45px; /* Compensa o espaÃ§o ocupado pelo Eixo Y */
  width: 100%;
}

.x-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ==========================================
   BANCO DE CONHECIMENTO
   ========================================== */
.category-filters {
  display: flex;
  gap: 10px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--secondary);
  color: white;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.kb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}

.kb-card {
  background: var(--bg-card);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.kb-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.kb-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.category-badge {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.2);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.kb-card-header .views {
  font-size: 12px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.kb-card h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  color: white;
}

.kb-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 20px;
}

.kb-card-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

.kb-card-footer .author {
  font-weight: 600;
  color: var(--text-main);
}

/* Leitura de Artigo Modal */
.article-meta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 15px;
  font-size: 13px;
  color: var(--text-muted);
}

.article-meta-info strong {
  color: var(--text-main);
}

.article-content-render {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  white-space: pre-line; /* Preserva formataÃ§Ãµes de quebras de linha */
}

/* ==========================================
   GERENCIADOR DE SENHAS
   ========================================== */
.password-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 30px;
}

.passwords-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  align-content: start;
}

.password-card {
  background: var(--bg-card);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.password-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.pass-card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 12px;
}

.pass-card-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: white;
  word-break: break-word;
  overflow-wrap: break-word;
  flex: 1;
  margin-right: 10px;
}

.pass-cat-badge {
  font-size: 10px;
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.pass-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
}

.pass-user {
  font-size: 13px;
  color: var(--text-muted);
  word-break: break-all;
  line-height: 1.4;
}

.pass-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
}

.pass-value-row span {
  font-family: monospace;
  font-size: 13px;
  letter-spacing: 1px;
  word-break: break-all;
  flex: 1;
  min-width: 0;
  margin-right: 8px;
}

.pass-notes {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1.4;
  word-break: break-all;
}

.btn-inline-icon {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 13px;
  transition: var(--transition-smooth);
}

.btn-inline-icon:hover {
  color: white;
}

.pass-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  margin-top: 5px;
}

.pass-actions .url-link {
  font-size: 12px;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.pass-actions .url-link.active {
  color: #10b981; /* Emerald/Success color */
}

.pass-actions .url-link.active:hover {
  color: #34d399;
  text-decoration: underline;
}

.pass-actions .url-link.inactive {
  color: var(--text-muted);
  opacity: 0.5;
  cursor: pointer;
}

.pass-actions .url-link.inactive:hover {
  opacity: 0.95;
}


/* Gerador de Senhas Card */
.password-generator-panel {
  align-self: start;
}

.generator-screen {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 8px;
  margin-bottom: 20px;
}

.generator-screen input {
  flex: 1;
  background: none;
  border: none;
  color: white;
  font-family: monospace;
  font-size: 16px;
  padding-left: 10px;
}

.generator-screen input:focus {
  outline: none;
}

.generator-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.option-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-row label {
  font-size: 13px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}

.option-row input[type="range"] {
  accent-color: var(--secondary);
  height: 6px;
  border-radius: 10px;
  outline: none;
  cursor: pointer;
}

.checkbox-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}

.custom-checkbox input {
  accent-color: var(--secondary);
  width: 16px;
  height: 16px;
}

.w-full {
  width: 100%;
}

.password-input-wrapper {
  display: flex;
  gap: 10px;
}

/* ==========================================
   TREINAMENTOS
   ========================================== */
.training-header-stats {
  background: var(--bg-card);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  margin-bottom: 40px;
}

.training-header-stats .stat-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.progress-info-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.progress-bar-large {
  flex: 1;
  height: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar-large .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--success), var(--secondary));
  border-radius: 10px;
  transition: width 0.5s ease-out;
}

.progress-info-row .value {
  font-size: 20px;
  font-weight: 800;
  color: var(--success);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

.course-card {
  background: var(--bg-card);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.course-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.course-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.course-level-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 30px;
  background: rgba(88, 101, 242, 0.12);
  color: #818cf8;
  border: 1px solid rgba(88, 101, 242, 0.2);
}

.course-duration {
  font-size: 12px;
  color: var(--text-muted);
}

.course-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: white;
}

.course-card p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.course-progress-section {
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
}

.course-progress-section .row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.course-progress-section .row strong {
  color: white;
}

/* Checklist de MÃ³dulos (Modal) */
.course-instructor-info {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.course-desc-text {
  font-size: 14px;
  line-height: 1.6;
}

.modules-checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 5px;
}

.module-check-row {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 12px 16px;
  cursor: pointer;
  transition: var(--transition-smooth);
  gap: 12px;
}

.module-check-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.module-check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--success);
}

.module-check-row span {
  font-size: 14px;
  font-weight: 500;
}

.module-check-row.completed {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.04);
}

.module-check-row.completed span {
  text-decoration: line-through;
  color: var(--text-muted);
}

/* ==========================================
   MODAIS E COMPONENTES DE SOBREPOSIÃ‡ÃƒO
   ========================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-modal-overlay);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-card);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 35px;
  width: 100%;
  max-width: 500px;
  box-shadow: var(--shadow-modal);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-card.modal-large {
  max-width: 1050px;
  width: 95%;
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.modal-header h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.close-modal-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.close-modal-btn:hover {
  color: white;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.modal-footer {
  margin-top: 30px;
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}

.modal-divider {
  border: 0;
  height: 1px;
  background: var(--border-color);
  margin: 20px 0;
}

/* Estilo AvaliaÃ§Ã£o no Modal */
.evaluation-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 25px;
}

.eval-column h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.eval-column h3 i {
  color: var(--secondary);
}

.section-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.rating-item {
  margin-bottom: 18px;
}

.rating-item label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
  display: block;
}

.rating-item input[type="range"] {
  width: 100%;
  accent-color: var(--secondary);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
}

.eval-row-feedback {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.eval-row-feedback textarea {
  height: 100px;
  resize: none;
}

/* Detalhes Ficha de AvaliaÃ§Ã£o */
.ficha-colab-info {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 15px;
  border-radius: var(--border-radius-md);
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}

.ficha-colab-info p {
  font-size: 13px;
}

.ficha-score-summary {
  display: flex;
  justify-content: space-around;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.1), rgba(168, 85, 247, 0.1));
  border: 1px solid rgba(88, 101, 242, 0.2);
  padding: 18px;
  border-radius: var(--border-radius-md);
  margin-bottom: 25px;
}

.ficha-score-item {
  text-align: center;
}

.ficha-score-item span {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}

.ficha-score-item strong {
  font-size: 18px;
  font-weight: 800;
}

.ficha-scores-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 25px;
}

.ficha-scores-list {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 15px;
}

.ficha-scores-list h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 6px;
}

.ficha-score-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.ficha-score-row:last-child {
  border-bottom: none;
}

.ficha-feedback-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 15px;
  margin-bottom: 15px;
}

.ficha-feedback-box h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.ficha-feedback-box p {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================
   ANIMAÃ‡Ã•ES DE ENTRADA
   ========================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Elementos Auxiliares de Responsividade */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(6, 7, 19, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.btn-mobile-menu {
  display: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 42px;
  height: 42px;
  border-radius: var(--border-radius-md);
  justify-content: center;
  align-items: center;
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-mobile-menu:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--secondary);
}

.btn-close-sidebar {
  display: none;
}

.matrix-scroll-wrapper {
  overflow-x: auto;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
}

/* Ficha de histÃ³rico/radar */
.ficha-colab-wrapper {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.ficha-colab-wrapper .ficha-colab-sidebar {
  flex: 1;
  min-width: 280px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.ficha-colab-wrapper .ficha-colab-chart {
  flex: 2;
  min-width: 320px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
}

/* Responsivo Geral */
@media (max-width: 1024px) {
  .btn-mobile-menu {
    display: inline-flex;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -240px;
    width: 240px;
    height: 100vh;
    z-index: 10000;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.6);
    overflow-y: auto;
  }

  .btn-close-sidebar {
    display: flex;
    background: none;
    border: none;
    color: var(--text-muted);
    -webkit-text-fill-color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    transition: var(--transition-smooth);
  }

  .btn-close-sidebar:hover {
    color: white;
    -webkit-text-fill-color: white;
  }

  .sidebar.active {
    left: 0;
  }

  .main-content {
    margin-left: 0;
    padding: 25px 20px;
    width: 100%;
  }

  .dashboard-grid, 
  .dashboard-layout-grid,
  .performance-overview-grid, 
  .password-dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .evaluation-sections,
  .eval-row-feedback,
  .ficha-scores-grid {
    grid-template-columns: 1fr;
  }

  .category-filters {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .main-content {
    padding: 20px 15px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .page-title h1 {
    font-size: 20px;
    letter-spacing: -0.5px;
  }

  .page-title p {
    font-size: 12px;
  }
  
  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .table-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  
  .search-box {
    max-width: 100%;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .matrix-scroll-wrapper .nine-box-layout {
    min-width: 730px;
  }

  .matrix-scroll-wrapper .nine-box-grid {
    min-width: 700px;
  }

  .matrix-scroll-wrapper .x-axis-container {
    min-width: 730px;
  }

  .modal-overlay {
    align-items: flex-start;
    overflow-y: auto;
    padding: 30px 10px;
  }

  .modal-card {
    max-width: calc(100% - 10px);
    width: 100%;
    padding: 25px 15px;
    margin-top: 0;
  }

  .ficha-colab-wrapper {
    flex-direction: column;
  }

  .ficha-colab-wrapper .ficha-colab-sidebar,
  .ficha-colab-wrapper .ficha-colab-chart {
    width: 100% !important;
    min-width: 100% !important;
  }
}

@media (max-width: 576px) {
  .ficha-colab-info {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .ficha-score-summary {
    flex-direction: column !important;
    align-items: center !important;
    gap: 15px !important;
    padding: 15px !important;
  }
}

/* Matriz de PermissÃµes de Perfis */
#permissions-matrix-table td {
  vertical-align: middle;
}

#permissions-matrix-table .checkbox-cell {
  text-align: center;
}

#permissions-matrix-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

#permissions-matrix-table input[type="checkbox"]:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  accent-color: var(--text-muted);
}

/* Toast Notifications Container */
.toast-container {
  position: fixed;
  top: 25px;
  right: 25px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

/* Base Toast Style with Glassmorphism */
.toast {
  pointer-events: auto;
  min-width: 320px;
  max-width: 450px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-md);
  padding: 16px 20px;
  color: var(--text-main);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  animation: toast-slide-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.4s ease;
}

.toast.hide {
  opacity: 0;
  transform: translateX(100px) scale(0.9);
}

/* Toast Color Themes */
.toast.success {
  border-left: 4px solid var(--success);
}
.toast.success i {
  color: var(--success);
  font-size: 18px;
}

.toast.error {
  border-left: 4px solid var(--danger);
}
.toast.error i {
  color: var(--danger);
  font-size: 18px;
}

.toast.info {
  border-left: 4px solid var(--primary);
}
.toast.info i {
  color: var(--secondary);
  font-size: 18px;
}

.toast-message {
  line-height: 1.4;
  flex: 1;
}

/* Animations */
@keyframes toast-slide-in {
  from {
    opacity: 0;
    transform: translateX(100px) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
}

/* Novo Layout de EspaÃ§o de Trabalho de AvaliaÃ§Ã£o */
.eval-workspace {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  margin: 25px 0;
  align-items: start;
}

@media (max-width: 992px) {
  .eval-workspace {
    grid-template-columns: 1fr;
  }
}

.eval-accordion-panel, .eval-live-summary-panel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 20px;
}

.eval-accordion-panel h3, .eval-live-summary-panel h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: white;
}

/* AcordeÃ£o de CompetÃªncias */
.eval-accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.01);
  transition: var(--transition-smooth);
}

.eval-accordion-item.active {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.1);
}

.competency-header {
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  font-size: 14px;
}

.competency-header:hover {
  background: rgba(255, 255, 255, 0.02);
}

.competency-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.competency-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
}

.competency-score-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(168, 85, 247, 0.15);
  color: var(--secondary);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.competency-body {
  display: none;
  padding: 20px;
  border-top: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.1);
}

.eval-accordion-item.active .competency-body {
  display: block;
}

.competency-concept {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 3px solid rgba(255, 255, 255, 0.15);
}

/* Tabela de Pontos Avaliativos */
.point-eval-table {
  width: 100%;
  border-collapse: collapse;
}

.point-eval-table th {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.point-eval-table td {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
  vertical-align: middle;
}

.point-eval-table tr:last-child td {
  border-bottom: none;
}

.point-rating-select {
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.05);
  height: 6px;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  width: 100% !important;
  margin: 8px 0;
  padding: 0;
  border: none;
  transition: background 0.15s ease;
}

/* Chrome, Safari, Edge, Opera */
.point-rating-select::-webkit-slider-runnable-track {
  height: 6px;
  background: transparent;
  border-radius: 3px;
}

.point-rating-select::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #111422; /* Sleek outline to pop from the track */
  cursor: pointer;
  margin-top: -6px; /* (6px - 18px)/2 */
  box-shadow: 0 0 10px var(--primary-glow);
  transition: transform 0.1s ease, background-color 0.1s ease;
}

.point-rating-select:hover::-webkit-slider-thumb {
  transform: scale(1.25);
  background-color: var(--primary-hover);
}

.point-rating-select:active::-webkit-slider-thumb {
  transform: scale(1.15);
}

/* Firefox */
.point-rating-select::-moz-range-track {
  height: 6px;
  background: transparent;
  border-radius: 3px;
}

.point-rating-select::-moz-range-thumb {
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #111422;
  cursor: pointer;
  box-shadow: 0 0 10px var(--primary-glow);
  transition: transform 0.1s ease, background-color 0.1s ease;
}

.point-rating-select:hover::-moz-range-thumb {
  transform: scale(1.25);
  background-color: var(--primary-hover);
}

/* Estilo para desabilitado */
.point-rating-select:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.point-rating-select:disabled::-webkit-slider-thumb {
  background: #4b5563;
  border-color: #1f2937;
  box-shadow: none;
  cursor: not-allowed;
  transform: none !important;
}

.point-rating-select:disabled::-moz-range-thumb {
  background: #4b5563;
  border-color: #1f2937;
  box-shadow: none;
  cursor: not-allowed;
  transform: none !important;
}

.point-rating-select:focus {
  outline: none;
}

/* Painel de Resumo em Tempo Real */
.live-summary-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 20px;
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.live-score-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
}

.live-score-item strong {
  font-size: 16px;
  font-weight: 800;
  color: white;
}

.live-quadrant-box {
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
  text-align: center;
}

.live-summary-tip {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 15px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.live-summary-tip i {
  color: var(--secondary);
  margin-top: 2px;
}

/* Detalhes da AvaliaÃ§Ã£o Ficha Grid */
.ficha-scores-grid.grid-8-comp {
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .ficha-scores-grid.grid-8-comp {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 15px;
  }
  .eval-row-feedback {
    grid-template-columns: 1fr !important;
    gap: 15px;
  }
  .point-eval-table thead {
    display: none;
  }
  .point-eval-table tr {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .point-eval-table td {
    padding: 4px 0 !important;
    border-bottom: none !important;
    width: 100% !important;
    text-align: left !important;
  }
  .point-rating-select {
    width: 100% !important;
    margin-top: 6px;
  }
}

/* Layout de Perfil / Ficha do Colaborador */
.ficha-colab-layout {
  display: grid;
  grid-template-columns: 260px 1fr 1fr;
  gap: 25px;
  align-items: start;
}

.ficha-colab-sidebar {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 20px;
  text-align: center;
}

.ficha-avatar-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: white;
  margin: 0 auto;
  box-shadow: 0 4px 15px var(--primary-glow);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.ficha-info-list {
  text-align: left;
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ficha-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 6px;
}

.ficha-info-item span {
  color: var(--text-muted);
}

.ficha-colab-chart, .ficha-colab-history {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 20px;
  min-height: 420px;
}

@media (max-width: 992px) {
  .ficha-colab-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .ficha-colab-chart, .ficha-colab-history {
    min-height: auto;
  }
}

/* Cards Responsivos de Pontos Avaliativos */
.points-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.eval-point-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: var(--transition-smooth);
}

.eval-point-card:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.02);
}

.eval-point-text {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
}

.eval-point-peso {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.eval-point-sliders {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  border-top: 1px dashed rgba(255, 255, 255, 0.05);
  padding-top: 12px;
}

.eval-slider-group {
  flex: 1;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.eval-slider-group .slider-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.eval-slider-group .slider-control {
  display: flex;
  align-items: center;
  gap: 12px;
}

.eval-slider-group .slider-val {
  font-size: 14px;
  font-weight: 800;
  color: var(--secondary);
  width: 24px;
  text-align: center;
}

.eval-slider-group input[type="range"] {
  flex: 1;
  cursor: pointer;
  accent-color: var(--secondary);
}

/* Responsividade especÃ­fica para Sliders */
@media (max-width: 768px) {
  .eval-point-sliders {
    flex-direction: column;
    gap: 15px;
  }
  .eval-slider-group {
    width: 100% !important;
    min-width: 100% !important;
  }
}

/* ==========================================
   CSS PARA MENU RETRÃTIL (COLLAPSIBLE SIDEBAR)
   ========================================== */

.btn-collapse-sidebar {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.btn-collapse-sidebar:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

/* BotÃ£o do Alternador de Tema */
.theme-toggle-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

body.light-theme .theme-toggle-btn {
  background: rgba(245, 158, 11, 0.09); /* Soft Amber */
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #f59e0b; /* Amber */
}

body.light-theme .theme-toggle-btn:hover {
  background: rgba(245, 158, 11, 0.18);
  border-color: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
  transform: translateY(-1px);
}

body.dark-theme .theme-toggle-btn {
  background: rgba(88, 101, 242, 0.09); /* Soft Indigo */
  border: 1px solid rgba(88, 101, 242, 0.25);
  color: #818cf8; /* Indigo */
}

body.dark-theme .theme-toggle-btn:hover {
  background: rgba(88, 101, 242, 0.18);
  border-color: #818cf8;
  box-shadow: 0 0 12px rgba(88, 101, 242, 0.45);
  transform: translateY(-1px);
}

.theme-toggle-btn i {
  font-size: 16px;
  transition: var(--transition-smooth);
}

/* Sidebar Colapsada */
.app-layout.collapsed-sidebar .sidebar {
  width: 78px;
  padding: 30px 10px;
}

.app-layout.collapsed-sidebar .sidebar-brand {
  padding-left: 0;
  justify-content: center !important;
  margin-bottom: 25px;
}

.app-layout.collapsed-sidebar .brand-logo {
  display: none;
}

.app-layout.collapsed-sidebar .menu-item {
  padding: 14px 0;
  justify-content: center;
  gap: 0;
}

.app-layout.collapsed-sidebar .menu-item span {
  display: none;
}

.app-layout.collapsed-sidebar .user-details {
  display: none;
}

.app-layout.collapsed-sidebar .sidebar-footer {
  padding: 15px 0 0 0;
  align-items: center;
}

.app-layout.collapsed-sidebar .user-badge {
  justify-content: center;
  width: 100%;
}

.app-layout.collapsed-sidebar .btn-logout {
  padding: 12px 0;
  justify-content: center;
  gap: 0;
}

.app-layout.collapsed-sidebar .btn-logout span {
  display: none;
}

.app-layout.collapsed-sidebar .main-content {
  margin-left: 78px;
  width: calc(100% - 78px);
}

/* Esconde o botÃ£o de colapsar no mobile por padrÃ£o */
@media (max-width: 1024px) {
  .btn-collapse-sidebar {
    display: none;
  }
}

/* ==========================================
   ESTILOS PREMIUM PARA CHECKLIST DIÃRIO
   ========================================== */
.checklist-task-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.checklist-task-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: transparent;
  transition: var(--transition-smooth);
}

.checklist-task-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.12);
}

body.light-theme .checklist-task-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.12);
}

.checklist-task-card.completed {
  border-color: rgba(16, 185, 129, 0.25);
  box-shadow: 0 5px 15px rgba(16, 185, 129, 0.05);
}

.checklist-task-card.completed::before {
  background: var(--success);
}

.checklist-task-header {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.checklist-check-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.checklist-check-btn:hover {
  transform: scale(1.15);
  color: var(--secondary);
}

.checklist-task-card.completed .checklist-check-btn {
  color: var(--success);
}

.checklist-task-info {
  flex: 1;
}

.checklist-task-info h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
  transition: var(--transition-smooth);
}

.checklist-task-card.completed .checklist-task-info h4 {
  text-decoration: line-through;
  opacity: 0.65;
  color: var(--text-muted);
}

.checklist-task-info p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.checklist-task-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.checklist-obs-section {
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 15px;
  margin-top: 5px;
}

body.light-theme .checklist-obs-section {
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.checklist-obs-input {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-main);
  padding: 8px 12px;
  font-size: 13px;
  font-family: var(--font-family);
  flex: 1;
  transition: var(--transition-smooth);
}

.checklist-obs-input:focus {
  border-color: var(--secondary);
  background: var(--bg-input-focus);
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.btn-save-obs {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--border-radius-sm);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-save-obs:hover {
  background: var(--primary);
  color: white;
  border-color: var(--secondary);
}

/* ConfiguraÃ§Ã£o de AvaliaÃ§Ã£o (Inputs e Textarea personalizados) */
#config-avaliacao-container input[type="text"],
#config-avaliacao-container input[type="number"],
#config-avaliacao-container textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-family);
  transition: var(--transition-smooth);
}

#config-avaliacao-container input[type="text"]:focus,
#config-avaliacao-container input[type="number"]:focus,
#config-avaliacao-container textarea:focus {
  outline: none;
  border-color: var(--secondary);
  background: var(--bg-input-focus);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Container de AlternÃ¢ncia de VisualizaÃ§Ã£o */
.view-toggle-container {
  display: flex;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 2px;
  gap: 2px;
}

.btn-toggle {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 6px 12px;
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 600;
  border-radius: calc(var(--border-radius-md) - 2px);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.btn-toggle:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
}

body.light-theme .btn-toggle:hover {
  background: rgba(0, 0, 0, 0.02);
}

.btn-toggle.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ==========================================
   TELA DE GLOSSÃRIO COMPLETO
   ========================================== */
.glossary-layout {
  display: flex;
  gap: 25px;
  align-items: flex-start;
}

.glossary-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 220px;
  flex-shrink: 0;
  border-right: 1px solid var(--border-color);
  padding-right: 15px;
}

.glossary-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 12px 16px;
  border-radius: var(--border-radius-md);
  font-family: var(--font-family);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  transition: all var(--transition-smooth);
}

.glossary-tab i {
  font-size: 16px;
  width: 20px;
  text-align: center;
  transition: transform var(--transition-smooth);
}

.glossary-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
}

body.light-theme .glossary-tab:hover {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.03);
}

.glossary-tab.active {
  background: var(--primary-glow);
  color: var(--secondary);
  border-color: rgba(88, 101, 242, 0.2);
  font-weight: 600;
  box-shadow: 0 0 10px rgba(88, 101, 242, 0.05);
}

.glossary-tab.active i {
  transform: scale(1.15);
}

.glossary-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.glossary-category-content {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

.glossary-category-content.active {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.glossary-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 20px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.glossary-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body.light-theme .glossary-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .glossary-card:hover {
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.glossary-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

body.light-theme .glossary-card h3 {
  color: var(--text-main);
}

.glossary-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.formula-block {
  background: rgba(0, 0, 0, 0.3) !important;
  border-radius: var(--border-radius-sm);
  padding: 15px;
  margin: 15px 0 10px 0;
  border-left: 4px solid var(--primary);
  font-family: 'Fira Code', 'Courier New', Courier, monospace;
  font-size: 13px;
  color: #a855f7;
  overflow-x: auto;
  white-space: nowrap;
}

body.light-theme .formula-block {
  background: #f3f4f6 !important;
  color: #7c3aed;
}

.glossary-search-wrapper input {
  transition: all var(--transition-smooth);
}

.glossary-search-wrapper input:focus {
  outline: none;
  border-color: var(--secondary);
  background: rgba(0, 0, 0, 0.3) !important;
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Responsividade do GlossÃ¡rio */
@media (max-width: 768px) {
  .glossary-layout {
    flex-direction: column;
    gap: 20px;
  }
  
  .glossary-tabs {
    flex-direction: row;
    width: 100%;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-right: 0;
    padding-bottom: 12px;
    gap: 10px;
  }
  
  .glossary-tab {
    padding: 8px 14px;
    font-size: 13px;
    white-space: nowrap;
  }
}

/* ==========================================
   AMBIENTE AVA (LMS) E CONSTRUTOR DE CURSOS
   ========================================== */

/* Construtor de Cursos (LMS Builder) */
.builder-module-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 20px;
  margin-bottom: 15px;
  transition: var(--transition-smooth);
}

.builder-module-card:hover {
  border-color: rgba(129, 140, 248, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.builder-module-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  gap: 15px;
}

.builder-lessons-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
  padding-left: 20px;
  border-left: 2px dashed rgba(255, 255, 255, 0.05);
}

.builder-lesson-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-sm);
  padding: 15px;
  position: relative;
  transition: var(--transition-smooth);
}

.builder-lesson-card:hover {
  border-color: rgba(129, 140, 248, 0.2);
}

.builder-lesson-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

/* Custom File Upload Styling */
.upload-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 10px;
}

.upload-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.file-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-file-select {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: white;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.btn-file-select:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--secondary);
}

.file-input-hidden {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-status {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

/* Player AVA Layout */
.ava-layout-container {
  height: 100%;
}

.ava-sidebar {
  display: flex;
  flex-direction: column;
}

.ava-sidebar-header {
  background: rgba(10, 11, 18, 0.4);
}

.ava-sidebar-content::-webkit-scrollbar {
  width: 5px;
}

.ava-sidebar-content::-webkit-scrollbar-track {
  background: transparent;
}

.ava-sidebar-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.ava-sidebar-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* AVA Accordion / Modules list */
.ava-module-accordion {
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
}

.ava-module-trigger {
  width: 100%;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.02);
  border: none;
  color: white;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.ava-module-trigger:hover {
  background: rgba(255, 255, 255, 0.04);
}

.ava-module-trigger .chevron {
  transition: transform var(--transition-smooth);
  color: var(--text-muted);
  font-size: 10px;
}

.ava-module-accordion.active .ava-module-trigger .chevron {
  transform: rotate(180deg);
}

.ava-lessons-list {
  display: none;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.ava-module-accordion.active .ava-lessons-list {
  display: flex;
}

.ava-lesson-item {
  padding: 10px 15px 10px 25px;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.01);
  transition: var(--transition-smooth);
}

.ava-lesson-item:hover {
  color: white;
  background: rgba(255, 255, 255, 0.02);
}

.ava-lesson-item.active {
  color: white;
  font-weight: 600;
  background: rgba(129, 140, 248, 0.08);
  border-left: 3px solid var(--primary);
  padding-left: 22px;
}

.ava-lesson-item i {
  font-size: 13px;
  transition: var(--transition-smooth);
}

.ava-lesson-item i.fa-circle-check {
  color: var(--success);
}

.ava-lesson-item i.fa-circle {
  color: rgba(255, 255, 255, 0.15);
}

/* Custom Video Container styling */
#ava-video-player {
  background: black;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.attachment-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 10px 16px;
  font-size: 12px;
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.attachment-btn:hover {
  background: rgba(129, 140, 248, 0.08);
  border-color: var(--secondary);
  transform: translateY(-2px);
}

/* Ficha Treinamento Colaborador */
.course-details-table-wrapper.collapsed {
  display: none !important;
}
.course-ficha-card:hover {
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Ficha Cadastral do FuncionÃ¡rio & Print stylesheet */
.ficha-documento {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-main);
  border-radius: var(--border-radius-lg);
  padding: 30px;
}

@media (max-width: 768px) {
  .ficha-doc-main-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .ficha-doc-col-right {
    border-left: none !important;
    padding-left: 0 !important;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
  }
}

@media print {
  /* Ocultar elementos de navegaÃ§Ã£o e controles */
  body * {
    visibility: hidden;
  }
  
  .sidebar, .topbar, .no-print, #btn-ficha-cadastral-imprimir, .panel-header button {
    display: none !important;
  }
  
  /* Exibir apenas a ficha cadastral do funcionÃ¡rio */
  #section-ficha-cadastral-colaborador, 
  #section-ficha-cadastral-colaborador * {
    visibility: visible;
  }
  
  #section-ficha-cadastral-colaborador {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    background: white !important;
    color: black !important;
  }
  
  .ficha-documento {
    border: none !important;
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: 100% !important;
  }
  
  .ficha-doc-corp-header {
    border-bottom: 2px solid #000 !important;
  }
  
  .ficha-doc-corp-header span,
  .ficha-doc-corp-header strong,
  .ficha-doc-col-left h4,
  .ficha-info-table-grid span,
  .ficha-info-table-grid strong,
  .ficha-doc-col-right span,
  .ficha-doc-col-right strong,
  .ficha-documento h2,
  #ficha-cadastral-doc-subtitle {
    color: black !important;
  }
  
  #ficha-cadastral-doc-subtitle {
    border: 1px solid #000 !important;
    background: #f0f0f0 !important;
  }
  
  .ficha-doc-photo-container div {
    border: 1px solid #000 !important;
    box-shadow: none !important;
    background-color: #fafafa !important;
    color: #333 !important;
  }
  
  .ficha-doc-col-right {
    border-left: 1px solid #000 !important;
  }
}

/* --- REFORMULATED COLLABORATOR FORM STYLES --- */
.form-row .full-width {
  grid-column: span 2;
}

.status-btn-group {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
  flex-wrap: wrap;
}

.status-btn {
  flex: 1;
  min-width: 100px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1.5px solid var(--border-color);
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  text-align: center;
  font-size: 14px;
}

.status-btn:hover {
  border-color: var(--secondary);
  color: var(--text-main);
  background: rgba(88, 101, 242, 0.05);
}

.status-btn.active[data-status="Ativo"] {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.status-btn.active[data-status="Desligado"] {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.status-btn.active[data-status="Ferias"] {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.status-btn.active[data-status="Afastado"] {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Collapsible Section for Nasajon fields */
.collapsible-section {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin: 15px 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.01);
  transition: border-color 0.3s ease;
}

.collapsible-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-main);
  border-bottom: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.collapsible-header:hover {
  background: rgba(255, 255, 255, 0.04);
}

.collapsible-header i {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-muted);
}

.collapsible-section.open {
  border-color: rgba(88, 101, 242, 0.4);
}

.collapsible-section.open .collapsible-header {
  border-bottom-color: var(--border-color);
  background: rgba(88, 101, 242, 0.05);
}

.collapsible-section.open .collapsible-header i {
  transform: rotate(180deg);
  color: var(--secondary);
}

.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  padding: 0 16px;
}

.collapsible-section.open .collapsible-content {
  max-height: 1000px;
  padding: 16px;
}








/* Print Rules for Relatorio Ocorrencia */
@media print {
    body * {
      visibility: hidden;
    }
    #section-relatorio-ocorrencia, #section-relatorio-ocorrencia * {
      visibility: visible;
    }
    #section-relatorio-ocorrencia {
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      margin: 0;
      padding: 0;
    }
    .no-print {
      display: none !important;
    }
    .relatorio-print {
      max-width: 100% !important;
      padding: 0 !important;
      box-shadow: none !important;
      border: none !important;
    }
    #relatorio-fotos-grid img {
      max-height: 400px;
      object-fit: contain;
    }
}

/* ==========================================
   GAUGE DASHBOARD CARDS (VelocÃ­metro)
   ========================================== */
.gauge-dashboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gauge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px 12px 14px !important;
  min-height: 180px;
}

.gauge-card canvas {
  margin: 8px auto;
  transition: filter 0.3s ease;
}

@keyframes gaugeRev {
  0% { filter: drop-shadow(0 0 0px var(--primary)); }
  20% { filter: drop-shadow(0 0 20px var(--primary)); }
  40% { filter: drop-shadow(0 0 5px var(--primary)); }
  60% { filter: drop-shadow(0 0 25px var(--primary)); }
  100% { filter: drop-shadow(0 0 0px var(--primary)); }
}

.gauge-startup {
  animation: gaugeRev 1.5s ease-out;
}

.gauge-card-header {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.gauge-card-header i {
  font-size: 13px;
  color: var(--secondary);
}

.gauge-card-desc {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
}

.gauge-card-desc i {
  font-size: 10px;
}

@media (max-width: 900px) {
  .gauge-dashboard {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .gauge-dashboard {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   TOGGLE SWITCH (Config Gerais)
   ========================================== */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255,255,255,0.1);
  transition: 0.3s;
  border: 1px solid var(--border-color);
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: var(--text-muted);
  transition: 0.3s;
}

input:checked + .slider {
  background-color: var(--success);
  border-color: var(--success);
}

input:checked + .slider:before {
  transform: translateX(24px);
  background-color: white;
}

.slider.round {
  border-radius: 26px;
}

.slider.round:before {
  border-radius: 50%;
}





@keyframes pulse-glow {
  0% { text-shadow: 0 0 2px rgba(16, 185, 129, 0.4); }
  50% { text-shadow: 0 0 10px rgba(16, 185, 129, 1), 0 0 15px rgba(16, 185, 129, 0.6); }
  100% { text-shadow: 0 0 2px rgba(16, 185, 129, 0.4); }
}
.pulse-active {
  animation: pulse-glow 2s infinite ease-in-out;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  background-color: var(--success);
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.status-dot.pulsing {
  animation: pulse-dot 1.5s infinite;
}

/* ==========================================
   SAAS UI REFRESH — 2026
   Camada visual não invasiva sobre o portal.
   ========================================== */
:root {
  --primary: #111827;
  --primary-hover: #1f2937;
  --secondary: #f4b740;
  --bg-gradient-base: #0b1020;
  --bg-base: #0b1020;
  --bg-surface: #12192b;
  --bg-card: rgba(19, 27, 46, 0.88);
  --bg-sidebar: #0b1020;
  --border-color: rgba(148, 163, 184, 0.14);
  --text-main: #f3f6fb;
  --text-muted: #8f9bb3;
  --bg-input: rgba(255, 255, 255, 0.035);
  --bg-input-focus: rgba(244, 183, 64, 0.055);
  --bg-item-active: rgba(244, 183, 64, 0.1);
  --shadow-main: 0 18px 45px rgba(3, 7, 18, 0.18);
  --border-radius-lg: 16px;
  --border-radius-md: 10px;
}

body.light-theme {
  --bg-gradient-base: #f4f6fa;
  --bg-base: #f4f6fa;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.94);
  --bg-sidebar: #111827;
  --border-color: #e5e9f0;
  --text-main: #1b2233;
  --text-muted: #778196;
  --bg-input: #f8fafc;
  --bg-input-focus: #fffdf8;
  --bg-item-active: rgba(244, 183, 64, 0.12);
  --shadow-main: 0 12px 36px rgba(15, 23, 42, 0.06);
}

body {
  letter-spacing: -0.005em;
}

.login-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(420px, 0.88fr);
  gap: clamp(35px, 6vw, 100px);
  min-height: 100vh;
  padding: clamp(28px, 5vw, 72px);
  background:
    radial-gradient(circle at 12% 12%, rgba(50, 73, 132, 0.3), transparent 32rem),
    linear-gradient(135deg, #0b1020 0%, #10182b 55%, #0b1020 100%);
}

.login-wrapper::before {
  width: 40rem;
  height: 40rem;
  top: auto;
  right: -18rem;
  bottom: -24rem;
  left: auto;
  transform: none;
  background: radial-gradient(circle, rgba(244, 183, 64, 0.13), transparent 68%);
}

.login-showcase {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: 680px;
  min-height: 620px;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 0;
}

.showcase-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.showcase-logo {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--secondary);
}

.showcase-copy {
  padding: 50px 0;
}

.showcase-eyebrow {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 7px 11px;
  border: 1px solid rgba(244, 183, 64, 0.22);
  border-radius: 999px;
  background: rgba(244, 183, 64, 0.07);
  color: #f7c966;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.showcase-copy h1 {
  max-width: 650px;
  color: #fff;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.showcase-copy > p {
  max-width: 560px;
  margin-top: 24px;
  color: #9da8bd;
  font-size: 17px;
  line-height: 1.7;
}

.showcase-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.showcase-features span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: #c3cada;
  font-size: 12px;
  font-weight: 500;
}

.showcase-features i {
  color: var(--secondary);
}

.showcase-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #7e8aa1;
  font-size: 12px;
  font-weight: 500;
}

.showcase-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.1);
}

.login-card {
  align-self: center;
  max-width: 450px;
  padding: 46px 42px 34px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  background: rgba(17, 24, 39, 0.72);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(28px);
}

.login-card .logo-icon-modern {
  width: 58px;
  height: 58px;
  margin-bottom: 24px;
  border-radius: 16px;
  font-size: 21px;
}

.login-card .title-modern {
  margin-bottom: 30px;
  color: #f8fafc;
  font-size: 18px;
  letter-spacing: 0.08em;
}

.input-modern {
  min-height: 52px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.btn-modern {
  min-height: 50px;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(244, 183, 64, 0.16);
  letter-spacing: 0.08em;
}

.app-layout {
  background:
    radial-gradient(circle at 90% 0%, rgba(244, 183, 64, 0.045), transparent 28rem),
    var(--bg-base);
}

.sidebar {
  width: 272px;
  padding: 0 12px;
  border-right: 1px solid var(--border-color);
  background: rgba(11, 16, 32, 0.96);
  box-shadow: 18px 0 60px rgba(3, 7, 18, 0.08);
  backdrop-filter: blur(18px);
}

.sidebar-brand {
  min-height: 82px;
  padding: 18px 12px;
}

.brand-logo {
  gap: 11px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.brand-logo i {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  background: rgba(244, 183, 64, 0.1);
  color: var(--secondary);
}

.sidebar-menu {
  gap: 3px;
  padding: 10px 0 18px;
}

.menu-item,
.menu-submenu-header {
  min-height: 43px;
  margin: 0;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #8e9ab0;
  font-size: 13px;
}

.menu-item:hover,
.menu-submenu-header:hover {
  border-color: rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.035);
  color: #eef2f8;
}

.menu-item.active {
  border-color: rgba(244, 183, 64, 0.16);
  background: linear-gradient(90deg, rgba(244, 183, 64, 0.13), rgba(244, 183, 64, 0.04));
  color: #f6c85f;
  box-shadow: none;
}

.submenu-container {
  margin: 3px 0 8px 17px;
  padding-left: 8px;
  border-left: 1px solid rgba(148, 163, 184, 0.12);
}

.sidebar-footer {
  margin: 0 -12px;
  padding: 16px 20px 18px;
  border-top: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.015);
}

.main-content {
  margin-left: 272px;
}

.topbar {
  min-height: 82px;
  padding: 0 30px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(11, 16, 32, 0.72);
  backdrop-filter: blur(20px);
}

body.light-theme .topbar {
  background: rgba(255, 255, 255, 0.82);
}

.page-title h1 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.page-title p {
  margin-top: 3px;
  font-size: 12px;
}

.content-body {
  width: min(100%, 1560px);
  margin: 0 auto;
  padding: 30px;
}

.metric-card,
.dashboard-panel,
.data-table,
.kb-card,
.course-card {
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  box-shadow: var(--shadow-main);
}

.metric-card {
  min-height: 210px;
  border-radius: 16px;
}

.metric-card:hover {
  border-color: rgba(244, 183, 64, 0.25);
  transform: translateY(-3px);
}

.dashboard-panel {
  border-radius: 16px;
  overflow: hidden;
}

.panel-header {
  min-height: 64px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--border-color);
}

.panel-header h2 {
  font-size: 14px;
  letter-spacing: -0.01em;
}

.panel-body {
  padding: 20px;
}

.data-table {
  overflow: hidden;
  border-radius: 13px;
}

.data-table th {
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.data-table td {
  border-color: var(--border-color);
}

.data-table tr:hover td {
  background: rgba(244, 183, 64, 0.025);
}

.btn-primary,
.btn-secondary,
.quick-tool-btn,
.filter-btn {
  border-radius: 9px;
}

.btn-primary {
  border-color: #e1a52d;
  background: linear-gradient(135deg, #f4b740, #d99f00);
  color: #17120a;
  box-shadow: 0 9px 24px rgba(217, 159, 0, 0.16);
}

.input-group input,
.input-group select,
.input-group textarea,
.search-box,
.table-actions input,
.table-actions select {
  border-radius: 10px;
  background: var(--bg-input);
}

.modal-card {
  border: 1px solid var(--border-color);
  border-radius: 18px;
  background: var(--bg-surface);
}

@media (max-width: 1024px) {
  .login-wrapper {
    grid-template-columns: 1fr;
  }

  .login-showcase {
    display: none;
  }

  .login-card {
    justify-self: center;
  }

  .sidebar {
    transform: translateX(-105%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }
}

@media (max-width: 600px) {
  .login-wrapper {
    padding: 18px;
  }

  .login-card {
    padding: 36px 24px 28px;
    border-radius: 18px;
  }

  .topbar {
    min-height: 70px;
    padding: 0 16px;
  }

  .content-body {
    padding: 20px 14px;
  }
}

/* ==========================================
   VISÃO DO COLABORADOR
   ========================================== */
body.role-colaborador #dashboard-layout-grid {
  display: block;
}

body.role-colaborador #dashboard-layout-grid .dashboard-side-col {
  width: min(100%, 920px);
  margin: 0 auto;
}

body.role-colaborador #dashboard-eval-panel {
  min-height: 260px;
}

body.role-colaborador #dashboard-eval-panel .panel-body {
  padding: clamp(22px, 4vw, 38px);
}

.collaborator-empty-state {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-input);
  color: var(--text-main);
}

.collaborator-empty-state > i {
  margin-top: 2px;
  color: var(--secondary);
  font-size: 22px;
}

.collaborator-empty-state p {
  margin: 7px 0 0;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================
   PALETAS FINAIS — ESCURO E CLARO
   Regras explícitas para evitar mistura entre temas.
   ========================================== */
body.dark-theme {
  --bg-gradient-base: #0b1020;
  --bg-base: #0b1020;
  --bg-surface: #12192b;
  --bg-card: rgba(19, 27, 46, 0.9);
  --border-color: rgba(148, 163, 184, 0.16);
  --text-main: #f3f6fb;
  --text-muted: #9aa6bb;
  --text-login-modern: #f3f6fb;
  --text-login-muted: #a5afc0;
  --border-login-modern: rgba(148, 163, 184, 0.25);
  color: var(--text-main);
}

body.dark-theme .login-wrapper {
  background:
    radial-gradient(circle at 12% 12%, rgba(50, 73, 132, 0.3), transparent 32rem),
    linear-gradient(135deg, #0b1020 0%, #10182b 55%, #0b1020 100%);
}

body.dark-theme .login-card {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(17, 24, 39, 0.82);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.34);
}

body.dark-theme .login-card .title-modern {
  color: #f8fafc;
}

body.dark-theme .input-modern {
  background: rgba(255, 255, 255, 0.035);
}

body.light-theme {
  --bg-gradient-base: #f3f5f9;
  --bg-base: #f3f5f9;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --border-color: #dfe4ec;
  --text-main: #1b2435;
  --text-muted: #667085;
  --bg-input: #f7f8fb;
  --bg-input-focus: #ffffff;
  --text-login-modern: #1b2435;
  --text-login-muted: #667085;
  --border-login-modern: #d7dce5;
  color: var(--text-main);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.light-theme .login-wrapper {
  background:
    radial-gradient(circle at 10% 12%, rgba(244, 183, 64, 0.13), transparent 28rem),
    linear-gradient(135deg, #f8f9fc 0%, #eef2f7 55%, #f5f7fa 100%);
}

body.light-theme .login-wrapper::before {
  background: radial-gradient(circle, rgba(39, 55, 86, 0.08), transparent 68%);
}

body.light-theme .showcase-brand,
body.light-theme .showcase-copy h1 {
  color: #172033;
}

body.light-theme .showcase-logo {
  border-color: #dce2eb;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

body.light-theme .showcase-eyebrow {
  border-color: rgba(180, 126, 0, 0.25);
  background: rgba(217, 159, 0, 0.09);
  color: #9a6f00;
}

body.light-theme .showcase-copy > p,
body.light-theme .showcase-foot {
  color: #667085;
}

body.light-theme .showcase-features span {
  border-color: #dfe4ec;
  background: rgba(255, 255, 255, 0.72);
  color: #344054;
}

body.light-theme .login-card {
  border-color: #e0e5ec;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.13);
}

body.light-theme .login-card .title-modern {
  color: #1b2435;
}

body.light-theme .input-modern {
  background: #f7f8fb;
}

body.light-theme .input-modern input:-webkit-autofill,
body.light-theme .input-modern input:-webkit-autofill:hover,
body.light-theme .input-modern input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #f7f8fb inset !important;
  -webkit-text-fill-color: #1b2435 !important;
}

body.light-theme .main-content,
body.light-theme .content-body,
body.light-theme .app-section,
body.light-theme .dashboard-panel,
body.light-theme .metric-card,
body.light-theme .modal-card,
body.light-theme .data-table {
  color: var(--text-main);
}

body.light-theme .page-title h1,
body.light-theme .panel-header h2,
body.light-theme .gauge-card-header,
body.light-theme .metric-number,
body.light-theme .ficha-colab-sidebar h3,
body.light-theme .collaborator-empty-state strong {
  color: #1b2435;
}

body.light-theme .data-table th {
  background: #f7f8fb;
  color: #536075;
  font-weight: 700;
}

body.light-theme .data-table td {
  color: #273246;
}

body.light-theme input,
body.light-theme select,
body.light-theme textarea {
  color: #1b2435;
}

body.light-theme input::placeholder,
body.light-theme textarea::placeholder {
  color: #7b8495;
  opacity: 1;
}

body.light-theme #hist-avaliacoes-container {
  background: #f8fafc !important;
}
