/* htdocs/css/style.css */
/* --- Reset Básico e Estilos Globais (V7.3 - Botão Login Estilo Class-Link) --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
  font-family: 'Nunito', 'Inter', sans-serif;
}

body {
  /* Fundo escuro (constelação) */
  background-color: #0f172a;
  /* Cor de texto padrão CLARA */
  color: #f1f5f9;
  font-weight: 400; /* Regular */
  line-height: 1.6;
  /* --- Scrollbar Firefox --- */
  scrollbar-width: thin;
  scrollbar-color: #334155 rgba(15, 23, 42, 0.5);
}

/* --- Fundo de Constelação (Fixado) --- */
#fixed-constellation-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
#constellation-canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.7;
}

/* --- Estrutura Principal da Aplicação --- */
#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* * ======================================================
 * --- NOVO ESTILO BASE DE PAINEL (V7 - Gamer Glass) ---
 * Este é o único estilo para todos os painéis.
 * ======================================================
 */
.glass-pane {
    /* CORREÇÃO BLUR (V50.15): Remove z-index para evitar quebra de stacking context */
    background: rgb(255 255 255 / 0%);
    backdrop-filter: blur(6.8px);    
    border-radius: 24px;
    border: 1px solid rgb(255 255 255 / 1%);
    position: relative;
    padding: 1.5rem 2rem;
    color: #f1f5f9;
    /* Adiciona Will-change para otimização de filtro */
    will-change: backdrop-filter;
}
/* Recria a sombra separadamente para tentar evitar conflito */
.glass-pane:not([id*="fixed"]) {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}


/* Efeito de borda brilhante superior (do seu CSS) */
.glass-pane::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}
/* ====================================================== */


/* --- Cabeçalho Superior --- */
.top-header {
  position: sticky; /* Header fixo no topo */
  top: 1rem; /* Deixa um espaço do topo */
  z-index: 100;
  padding: 0 1rem; /* Espaço lateral */
  width: 100%;
  margin-bottom: 1rem;
}

.top-nav-container.glass-pane {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem; /* Padding interno do header */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Texto do cabeçalho claro */
.logo-placeholder {
  font-size: 1.8rem;
  font-weight: 900; /* Black */
  color: #e0e7ff;
}
#loremaster-logo {
    font-weight: 900; /* Black */
    color: #e0e7ff;
    cursor: pointer;
    transition: color 0.2s ease;
    font-size: 1.5rem; /* <-- TAMANHO DA LOGO AUMENTADO */
}
#loremaster-logo:hover {
    color: #ffffff;
}

.top-nav {
  display: flex;
  gap: 0.5rem; /* <-- Reduzido o gap entre os links */
}

.top-nav .nav-link {
  color: #cbd5e1; /* Texto claro secundário */
  font-weight: 700; /* Bold */
  position: relative;
  transition: color 0.2s ease, background-color 0.2s ease; /* <-- Transição adicionada */
  padding: 0.5rem 0.75rem; /* <-- Padding adicionado (forma de pílula) */
  border-radius: 9999px; /* <-- Raio adicionado (forma de pílula) */
}
/* REGRA DA LINHA AZUL REMOVIDA (::after) */

.top-nav .nav-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05); /* <-- EFEITO GLASS HOVER */
}
/* REGRA DA LINHA AZUL REMOVIDA (hover::after) */

/* Estado ativo agora é um "glass pill" */
.top-nav .nav-link.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08); /* Glass background */
}
/* REGRA DA LINHA AZUL REMOVIDA (active::after) */


.user-actions-placeholder {
  font-size: 1.5rem;
  color: #cbd5e1; /* Ícone claro */
}

/* --- Layout Principal (MODIFICADO: 2 COLUNAS - Esquerda Fixa) --- */
.main-layout-wrapper {
  flex-grow: 1;
}

.main-layout-columns {
  display: grid;
  grid-template-columns: 280px 1fr; /* Coluna esquerda fixa, centro flexível */
  gap: 1.5rem;
  max-width: 1280px;
  margin: 1rem auto;
  padding: 0 1rem;
}

/* --- Painéis Laterais e Central --- */
.sidebar-pane {
  align-self: start; /* Mantém no topo */
  position: sticky; /* Faz a sidebar acompanhar a rolagem */
  top: calc(1rem + 68px + 1rem); /* top-header top + header height approx + margin */
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* Espaço entre as seções da sidebar */
}

/* Estilos internos da Sidebar (Dark) */
.sidebar-section {
  background: rgba(0, 0, 0, 0.15); /* Fundo sutil para seções */
  border-radius: 16px;
  padding: 1.25rem;
}
.sidebar-section:last-child {
  margin-bottom: 0;
}

.sidebar-section h3 {
  font-size: 1.1rem;
  font-weight: 700; /* Bold */
  margin-bottom: 1rem;
  color: #ffffff; /* Título claro */
  border-bottom: 1px solid #334155; /* Borda escura sutil */
  padding-bottom: 0.75rem;
}
.sidebar-section h3 i {
    margin-right: 0.5rem;
        color: #ffffff47;
}

/* Navegação Lateral (Dark Mode) */
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.side-nav a {
  color: #cbd5e1; /* Texto claro secundário */
  font-weight: 400; /* Regular */
  padding: 0.6rem 1rem;
  border-radius: 12px;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  border: 1px solid transparent;
}
.side-nav a i {
  width: 1.1em;
  text-align: center;
  color: #94a3b8;
  transition: color 0.2s;
}
.side-nav a:hover {
  background-color: rgba(255, 255, 255, 0.05); /* Fundo sutil */
  color: #ffffff;
}
.side-nav a:hover i {
    color: #ffffff;
}
/* MODIFICADO: Estado ativo "glass" e sem borda */
.side-nav a.active {
    background-color: rgba(255, 255, 255, 0.1); /* White/Glass background */
    color: #ffffff;
    font-weight: 700; /* Bold */
    border-color: transparent; /* White/Glass border */
}
.side-nav a.active i {
    color: #ffffff;
}


/* --- Formulários (Dark Mode) --- */
.input-styled {
  background-color: #ffffff08;
  border: 1px solid #33415500;
  border-radius: 16px;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  transition: all 0.2s ease-in-out;
  width: 100%;
  color: #f1f5f9; /* Texto claro */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-sizing: border-box;
}
.input-styled::placeholder {
  color: #6b7280;
}
/* MODIFICADO: Trocado o brilho azul por um brilho "glass" */
.input-styled:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.2); /* Borda glass sutil */
  background-color: #0f172a; /* Mantém o fundo escuro para contraste */
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1); /* Brilho glass sutil */
}
textarea.input-styled {
    min-height: 100px;
    resize: vertical;
}
select.input-styled {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* --- Botões (Dark Mode) --- */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px; /* Pill */
  font-weight: 700; /* Bold */
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}
.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
.btn-primary:active,
.btn-secondary:active {
    transform: translateY(0px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

/* --- MODIFICADO: Botão Primário "Glass" (Sem Borda) --- */
.btn-primary {
  background-color: rgba(255, 255, 255, 0.1);  /* Fundo glass mais claro */
  color: #ffffff;
  border: 1px solid transparent; /* SEM BORDA */
}
.btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.2); /* Hover mais claro */
  border-color: transparent; /* SEM BORDA */
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1); /* Brilho sutil */
}

/* Botão Glass Secundário - padrão */
.btn-secondary {
      background-color: rgb(255 255 255 / 4%);
  color: #f1f5f9;
}
/* MODIFICADO: Removida borda do hover */
.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: transparent;
}

/* --- NOVO: Botão de Perigo "Glass" (Sem Borda) --- */
.btn-danger {
    background-color: rgba(220, 38, 38, 0.15); /* Fundo glass vermelho */
    color: #fca5a5; /* Texto vermelho claro */
    border-color: transparent; /* SEM BORDA */
    border-width: 1px;
    border-style: solid;
    transition: all 0.2s ease;
}
.btn-danger:hover {
    background-color: rgba(220, 38, 38, 0.3);
    color: #fecaca;
    border-color: transparent; /* SEM BORDA */
}

.btn-small {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

/* MODIFICADO: Estilo do botão de login (para parecer com class-link) */
.login-placeholder form button[type="submit"] {
  background: rgb(255 255 255 / 4%); /* Mesmo fundo do class-link */
  color: #cbd5e1; /* Mesma cor do class-link */
  border: none; /* Sem borda */
  border-radius: 12px; /* Mesmo raio do class-link */
  padding: 0.5rem 0.75rem; /* Mesmo padding do class-link */
  font-size: 0.9em; /* Mantém o tamanho anterior */
  width: auto; /* <-- ALTERADO (Request 8) */
  text-align: center; /* Garante centralização */
  font-weight: 700; /* Bold (como no class-name dentro do link) */
  transition: all .15s ease; /* Mesma transição */
  box-shadow: none; /* Remove a sombra padrão de botão */
  cursor: pointer;
}
/* --- NOVO (Request 8): Estilo para botão de ícone no login --- */
.login-placeholder form button.btn-icon-login {
    width: auto; /* Largura automática */
    padding: 0.4rem 0.75rem; /* Ajuste de padding para ícone */
    font-size: 0.85rem; /* Ajusta o tamanho do ícone */
    line-height: 1.5; /* Alinha o ícone verticalmente */
}

.login-placeholder form button[type="submit"]:hover {
  background: #334155; /* Mesmo hover do class-link */
  color: #ffffff; /* Mesmo hover do class-link */
  transform: translateY(-1px); /* Efeito hover sutil */
  box-shadow: 0 6px 18px rgba(0,0,0,.1); /* Mesmo hover do class-link */
}
.login-placeholder form button[type="submit"]:active {
    transform: translateY(0px);
    box-shadow: none;
}
/* MODIFICADO: Estilo do link de registro */
.login-placeholder a {
  color: #93c5fd; /* Azul mais claro */
  text-decoration: none; /* Remove sublinhado */
  font-weight: 600; /* Medium */
}
.login-placeholder a:hover {
  color: #ffffff; /* Branco no hover */
  text-decoration: underline;
}

/* --- Placeholder Box --- */
.placeholder-box {
  background-color: rgba(0,0,0,0.2);
  border: 2px dashed #334155;
  padding: 2rem;
  text-align: center;
  color: #94a3b8;
  border-radius: 16px;
}

/* --- Mensagens de Feedback (Dark Mode) --- */
.message-success { background-color: #103020; border-color: #28a745; color: #c8f7d0; }
.message-error { background-color: #301010; border-color: #dc3545; color: #f7c8c8; }
.message-info { background-color: #082c40; border-color: #17a2b8; color: #c0f1f9; }
#feedback-message {
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem 1.5rem !important; /* Força padding */
}
#feedback-message button { float:right; background:none; border:none; font-size: 1.2rem; cursor:pointer; color: inherit; line-height: 1; padding: 0 0.5rem; }


/* --- Conteúdo "Prose" (Texto claro) --- */
.prose {
    line-height: 1.7;
    color: #cbd5e1;
    font-weight: 400; /* Regular */
}
.prose a {
    color: #60a5fa;
    text-decoration: underline;
}
.prose a:hover {
    color: #93c5fd;
}
.prose strong {
    font-weight: 700; /* Bold */
    color: #ffffff;
}
.prose code {
    background-color: #1e293b;
    padding: 0.1em 0.4em;
    border-radius: 0.3em;
    font-size: 0.9em;
}

/* --- Rodapé --- */
footer {
  /* NÃO é mais um glass-pane */
  text-align: center;
  padding: 2rem 1rem;
  color: #94a3b8; /* Cinza claro */
  font-size: 0.85rem;
  margin: 2rem auto 1rem auto;
  max-width: 1280px;
  width: calc(100% - 2rem);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
footer p {
    font-weight: 400; /* Regular */
}


/* --- Animações --- */
.fade-in { animation: fadeIn 0.5s ease-out forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }


/* ====-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */
/* ===- ESTILOS DO CONTEÚDO CENTRAL (Remake V7) -=== */
/* ====-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */

/* --- Lista de Classes --- */
#center-content h1 {
    font-weight: 900; /* Black */
    color: #ffffff;
    margin-bottom: 1rem;
}
#center-content h2 { /* Títulos de seção 'A', 'B', 'C' */
    font-size: 1.5rem;
    font-weight: 900; /* Black */
    color: #ffffff;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #334155;
    padding-bottom: 0.4rem;
}

#center-content .class-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
#center-content .class-link {
  display:flex !important; align-items:center !important; justify-content:space-between !important; gap:.5rem !important;
  padding:.5rem .75rem;
  border-radius: 12px;
  /* border: 1px solid #334155; */
  background: rgb(255 255 255 / 4%);
  transition: all .15s ease;
  white-space:nowrap !important; overflow:hidden !important;
  color: #cbd5e1;
  text-decoration: none;
}
#center-content .class-link:hover {
    box-shadow:0 6px 18px rgba(0,0,0,.1);
    transform:translateY(-1px);
    color: #ffffff;
    border-color: #60a5fa; /* Removido - não queremos borda no hover */
    background: #334155;
}
#center-content .class-name { flex:1 1 auto !important; min-width:0 !important; overflow:hidden !important; text-overflow:ellipsis !important; white-space:nowrap !important; display:block !important; font-weight: 700;} /* Bold */
#center-content .inline-badges { display:inline-flex !important; align-items:center !important; gap:.35rem !important; flex-wrap:nowrap !important; flex-shrink:0 !important; white-space:nowrap !important; }
/* AJUSTE: Badges DENTRO da lista de classes */
#center-content .class-link .inline-badges img {
    /* height: 14px; */ /* REMOVIDO */
    max-height: 20px; /* Define uma altura máxima razoável, ajuste se necessário */
    width: auto; /* Mantém proporção */
    display: inline-block;
    vertical-align: middle;
}

/* Navegação Alfabética */
#center-content .alpha-nav { display:flex; flex-wrap:wrap; gap:.25rem .5rem; margin-top: 1rem; }
#center-content .alpha-nav a {
    font-weight:700; /* Bold */ padding:.2rem .75rem;

    border-radius: 9999px; /* Pill */ background: rgb(255 255 255 / 4%);
    color: #94a3b8; text-decoration: none; transition: background-color 0.2s, color 0.2s;
}
#center-content .alpha-nav a:hover {
    background-color: #334155;
    color: #ffffff;
}

/* AJUSTE: Badge Filter Buttons - Imagem */
/* (Estes estilos podem precisar ser ajustados no class_list.php se estiverem inline) */
#center-content .badge-filter-grid button.badge-filter-link img {
    /* max-height: 24px; */ /* REMOVIDO */
    /* max-width: 32px; */ /* REMOVIDO */
    width: auto; /* Mantém a proporção */
    height: auto; /* Permite altura natural */
    max-height: 100%; /* Limita a altura ao botão */
    max-width: 100%;  /* Limita a largura ao botão */
    vertical-align: middle;
    display: block;
    object-fit: contain; /* Garante que a imagem caiba sem distorcer */
}

/* AJUSTE: Badge Filter Buttons - Tamanho do Botão (Opcional, se quiser botões maiores) */
#center-content .badge-filter-grid button.badge-filter-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; /* Aumenta um pouco o tamanho */
    height: 44px; /* Aumenta um pouco o tamanho */
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    padding: 0;
}

/* Estilos de Hover/Active para Badge Filters */
/* MODIFICADO: Removida borda do hover */
#center-content .badge-filter-grid button.badge-filter-link:hover { 
    background: rgba(255, 255, 255, 0.1); 
    border-color: transparent; 
    transform: scale(1.05); 
}
/* MODIFICADO: Estado ativo "glass" e sem borda azul */
#center-content .badge-filter-grid button.badge-filter-link.active { 
    background: rgba(255, 255, 255, 0.1); 
    border-color: transparent; 
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.1); 
    transform: scale(1.1);
}
#center-content .badge-filter-grid button.badge-filter-link.active i { opacity: 1 !important; color: #60a5fa; }
#center-content .badge-filter-grid button.badge-filter-link img { transition: transform 0.2s ease; }
#center-content .badge-filter-grid button.badge-filter-link:hover img { transform: scale(1.1); }
#center-content .badge-filter-grid button.badge-filter-link.active img { transform: scale(1.1); }


/* --- Detalhes da Classe --- */
#center-content .back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #cbd5e1;
    font-weight: 700; /* Bold */
    text-decoration: none;
}
#center-content .back-link i { margin-right: 0.35rem; }
#center-content .back-link:hover { color: #60a5fa; }

#center-content .class-title { display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;margin-top: 1rem; }
#center-content .class-title h1 { margin:0; font-size: 2.2rem; font-weight: 900; } /* Black */
#center-content .class-title .inline-badges img { height:32px; vertical-align: middle; }

#center-content .class-top-2col { display:grid;grid-template-columns:minmax(260px,320px) 1fr;gap:1.5rem;align-items:start; margin-bottom: 1.5rem; margin-top: 1.5rem;}

#center-content .hero-visual { position:relative; width:320px; max-width:100%; }
#center-content #hero-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 22px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.15));
  background-color: transparent;
  border: none;
}
/* Controles do Carrossel */
#center-content .hero-visual .control {
  position:absolute; top:50%; transform:translateY(-50%);
  width:44px; height:44px; display:flex; align-items:center; justify-content:center;
  border-radius:9999px; /* Pill */
  background: rgba(15, 23, 42, 0.6); /* Fundo escuro */
  color: #f1f5f9; /* Ícone claro */
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter:saturate(160%) blur(6px);
  -webkit-backdrop-filter: saturate(160%) blur(6px);
  box-shadow:0 8px 20px rgba(0,0,0,.15);
  cursor:pointer;
  transition:all .15s ease;
  font-size:1.05rem;
}
#center-content .hero-visual .control:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(255, 255, 255, 0.4);
  transform:translateY(-50%) scale(1.05);
  box-shadow:0 10px 24px rgba(0,0,0,.2);
}
#center-content .hero-visual .control:active { transform:translateY(-50%) scale(.97); }
#center-content .hero-visual .prev { left:8px; }
#center-content .hero-visual .next { right:8px; }
#center-content .hero-visual .control i { font-size:1.05rem; line-height:1; }

/* Info Box Lateral (Dark) */
#center-content .class-quick-info {

  border-radius: 16px;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.15);
}
#center-content .class-quick-info h3 { margin-top:0; margin-bottom: 1rem; font-size: 1.2rem; font-weight: 700; color: #ffffff;} /* Bold */
#center-content .class-quick-info h3 i { margin-right: 0.5rem; color: #94a3b8; }
#center-content .class-quick-info img { display:none !important; }
#center-content .class-quick-info p { margin:.5rem 0; font-size: 0.95rem; font-weight: 400; color: #cbd5e1;} /* Regular */
#center-content .class-quick-info strong { font-weight: 700; /* Bold */ color: #ffffff; }

/* Botão Toggle (Locais) */
#center-content .toggle-wrap { margin-top:1rem; text-align:center; padding-top: 1rem; border-top: 1px dashed #475569; }
#center-content .toggle-btn {
  display:inline-flex; align-items:center; gap:.4rem;
  padding:.4rem 1rem;
  border: 1px solid #47556900;
      background: #33415524;
  border-radius: 9999px; /* Pill */
  cursor:pointer; font-size:.9rem; color: #f1f5f9; font-weight: 700; /* Bold */
}
#center-content .toggle-btn:hover { background-color: #475569; }
#center-content .toggle-area { display:none; margin-top:.75rem; text-align:left; font-size: 0.9rem; line-height: 1.6; }
#center-content .toggle-area.open { display:block; }
#center-content .toggle-area a { color: #60a5fa; text-decoration: underline; }

/* Seções de Descrição e Efeitos */
#center-content section { margin-bottom: 1.5rem; }
#center-content h2 { /* Títulos de Skill/Descrição */
  font-size: 1.5rem; font-weight: 900; margin-bottom: 0.75rem; border-bottom: 1px solid #334155; padding-bottom: 0.4rem;
}
#center-content section h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; color: #ffffff; } /* Bold */

/* Accordion de Skills (Dark) */
#center-content .skill-accordion,
#center-content .passive-accordion {
  position:relative;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 16px;
  margin: 0 0 0.25rem 0;
  overflow:hidden;
  transition: background-color 0.2s ease;
}
#center-content .skill-accordion:hover,
#center-content .passive-accordion:hover {
  background: rgba(255, 255, 255, 0.03);
}
#center-content h2 + .skill-accordion,
#center-content h2 + .passive-accordion {
    margin-top: 0.75rem;
}
#center-content .skill-accordion > summary,
#center-content .passive-accordion > summary {
  position:relative; display:block; list-style:none;
  padding:.85rem 3rem .6rem 1rem;
  margin:0;
  background: transparent;
  border-bottom: 1px solid transparent;
  cursor: pointer;
}
#center-content details[open] > summary {

	backdrop-filter: blur(6.8px);
}
#center-content .skill-accordion > summary::-webkit-details-marker,
#center-content .passive-accordion > summary::-webkit-details-marker { display:none !important; }
#center-content .skill-accordion > summary::marker,
#center-content .passive-accordion > summary::marker { content:'' !important; display: none !important;}
#center-content .skill-accordion > summary::before,
#center-content .skill-accordion > summary::after,
#center-content .passive-accordion > summary::before,
#center-content .passive-accordion > summary::after { content:none !important; display:none !important; width:0 !important; height:0 !important; margin:0 !important; padding:0 !important; border:0 !important; background:none !important; box-shadow:none !important; }
#center-content .skill-accordion > summary,
#center-content .passive-accordion > summary { list-style:none !important; -webkit-appearance:none !important; appearance:none !important; }
#center-content .skill-accordion > summary .chev,
#center-content .passive-accordion > summary .chev {
     pointer-events:auto;
}

/* Botão Chevron (Dark) */
#center-content .chev {
    position:absolute; right:.75rem; top: 50%; transform: translateY(-50%);
    display:inline-flex; align-items:center; justify-content:center;
    width: 32px; height: 32px;
    border: none;
    border-radius: 9999px; /* Pill */
    background: #1e293b;
    color: #94a3b8;
    font-size:.9rem;
    transition: all 0.2s ease;
}
#center-content details summary:hover .chev {
    background-color: #334155;
}
#center-content details[open] > summary .chev {
    transform: translateY(-50%) rotate(180deg);
    background-color: rgba(60, 131, 246, 0.2);
    color: #60a5fa;
}

/* Conteúdo do Header da Skill (Dark) */
#center-content .skill-header { display:flex; flex-direction:row; align-items:center; gap:.75rem; pointer-events: none; }
#center-content .skill-icon-lg { width:58px; height:58px; object-fit:contain; border-radius: 12px; box-shadow:0 1px 0 rgba(0,0,0,.04); }
#center-content .skill-text { display:flex; flex-direction:column; justify-content:center; min-height:58px; }
#center-content .skill-title { font-size:1.1rem; font-weight:700; margin:0; line-height:1.2; white-space:normal; color: #ffffff; } /* Bold */
#center-content .chip-row { display:flex; gap:.35rem; flex-wrap:wrap; justify-content:flex-start; margin-top:.3rem; }
/* Chip (Dark) */
#center-content .chip {
  font-size:.8rem; padding:.25rem .75rem;
  border: 1px solid #0000000a;
  border-radius: 9999px; /* Pill */
  background: rgba(0, 0, 0, 0.15);
  white-space:nowrap; color: #cbd5e1;
  font-weight: 400; /* Regular */
}
#center-content .chip b { font-weight:700; /* Bold */ color: #ffffff; }

/* Corpo da Skill (Dark) */
#center-content .skill-body {
  padding: 1rem 1.25rem 1.25rem;

}
#center-content .skill-body .skill-desc { margin-bottom: 0.75rem; font-weight: 400; } /* Regular */
#center-content .skill-body .skill-notes { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px dashed #475569; }
#center-content .skill-body .skill-notes strong { font-weight: 700; /* Bold */ display: block; margin-bottom: 0.5rem; font-size: 0.95rem; color: #ffffff;}
#center-content .skill-body .note { margin-top: 0.5rem; font-size: 0.9em; line-height: 1.6; }

#center-content section .note {
        background: #00000036;
    padding: 0.75rem 1rem;
        border-left: 3px solid #ededed1a;
    margin-bottom: 0.75rem;
    font-size: 0.9em;
    line-height: 1.6;
    border-radius: 0 8px 8px 0;
}

/* --- Estilos do Formulário de Edição (Dark) --- */
.edit-form { padding: 0; }
#center-content .edit-form h1 { font-size: 2.2rem; font-weight: 900; margin-bottom: 1rem; color: #ffffff; } /* Black */
#center-content .edit-form .form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
#center-content .edit-form .form-section { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
#center-content .edit-form .form-section.full-width { grid-column: 1 / -1; }
#center-content .edit-form .form-group { margin-bottom: 0.5rem; }
#center-content .edit-form .form-group label { display: block; font-weight: 700; margin-bottom: 0.5rem; font-size: 0.9rem; color: #f1f5f9; } /* Bold */
#center-content .edit-form .form-group small { font-size: 0.8rem; color: #94a3b8; font-weight: 400;} /* Regular */
#center-content .edit-form h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; color: #ffffff; } /* Bold */
#center-content .edit-form .badge-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0.75rem; background: #1e293b; padding: 1rem; border-radius: 16px; border: 1px solid #334155; }
#center-content .edit-form .badge-grid label { display: flex; align-items: center; gap: 0.5rem; font-weight: 400; /* Regular */ font-size: 0.9rem; cursor: pointer; }
#center-content .edit-form .badge-grid input { margin-right: 0.25rem; }
#center-content .edit-form .skills-editor h2 { font-size: 1.8rem; font-weight: 900; margin-top: 2rem; margin-bottom: 1.5rem; border-bottom: 1px solid #334155; padding-bottom: 0.5rem; color: #ffffff;} /* Black */
#center-content .edit-form .skill-entry { background: #0f172a; border: 1px solid #334155; border-radius: 16px; padding: 1.5rem; margin-bottom: 1.5rem; }
#center-content .edit-form .skill-entry h3 { margin-top: 0; margin-bottom: 1.5rem; font-size: 1.2rem; font-weight: 700; color: #ffffff;} /* Bold */
#center-content .edit-form .skill-entry .form-grid { gap: 1rem; }

.input-group {
    display: flex;
    gap: 0.5rem;
}
.input-group .input-styled {
    flex-grow: 1;
}
.input-group .btn-secondary {
    flex-shrink: 0;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* --- V8.6 - Estilos do Formulário de Edição de Perfil --- */
/* (Estilos movidos de profile_edit_form.php para cá) */
.edit-profile-form .form-section {
    margin-bottom: 2rem;
    border-bottom: 1px solid #334155;
    padding-bottom: 1.5rem;
}
.edit-profile-form .form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.edit-profile-form .form-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed #475569;
}
.edit-profile-form .form-group {
    margin-bottom: 1.25rem;
}
.edit-profile-form .form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #f1f5f9;
}
.edit-profile-form .form-group small {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 0.35rem;
    display: block;
}
.edit-profile-form .form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.edit-profile-form .form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}
#profile-edit-status {
    font-size: 0.9rem;
    color: #ef4444; /* Vermelho para erros */
    font-weight: 700;
}
/* --- Fim dos estilos do Profile Edit --- */


/* --- Estilos de Notícias (Dark) --- */
#center-content .welcome-box {
  text-align: center;
  padding: 2.5rem 2rem;
  background-color: transparent;
  border: none;
  border-radius: 0;
  margin-bottom: 2rem; /* Espaço entre o header e o botão */
}
#center-content .welcome-box h1 { font-size: 2.2rem; font-weight: 900; /* Black */ color: #60a5fa; margin-top: 0; margin-bottom: 1rem; }
#center-content .welcome-box p { font-size: 1.1rem; color: #cbd5e1; line-height: 1.7; max-width: 800px; margin: 0 auto 1rem auto; font-weight: 400; } /* Regular */

#center-content .news-feed { display: flex; flex-direction: column; gap: 2rem; }
#center-content .news-article {
	    background: rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    padding: 1.25rem;
}
    /* background: #1e293b; */
   /* border: 1px solid #334155; *
   /
    border-radius: -6px;
    box-shadow: 0 2px 10px rgb(57 21 21 / 5%);
    overflow: hidden;
}
#center-content .news-header /*{ padding: 1.5rem 2rem; border-bottom: 1px solid #334155; }/*
#center-content .news-header h2 { font-size: 1.8rem; font-weight: 900; /* Black */ margin: 0 0 0.5rem 0; }
#center-content .news-header h2 a { text-decoration: none; color: #f1f5f9; }
#center-content .news-header h2 a:hover { color: #60a5fa; }
#center-content .news-meta { font-size: 0.9rem; color: #94a3b8; }
#center-content .news-meta .author { font-weight: 700; /* Bold */ color: #cbd5e1; }
#center-content .news-meta .category { font-weight: 700; /* Bold */ color: #60a5fa; }

#center-content .news-content { padding: 1.5rem 2rem 1.5rem 2rem; line-height: 1.7; color: #cbd5e1; }
#center-content .news-content p { margin-bottom: 1rem; }
#center-content .news-content p:last-child { margin-bottom: 0; }

#center-content .news-footer { padding: 1rem 2rem;  display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; }
#center-content .news-tags a { text-decoration: none; background: #334155; color: #94a3b8; padding: 0.2rem 0.75rem; border-radius: 9999px; /* Pill */ font-size: 0.8rem; font-weight: 700; /* Bold */ margin-right: 0.5rem; }
#center-content .news-tags a:hover { background: #475569; }
#center-content .news-share a { margin-left: 0.75rem; color: #94a3b8; text-decoration: none; font-size: 1.1rem; }
#center-content .news-share a:hover { color: #60a5fa; }

#center-content .news-content > a.btn-secondary {
    margin-top: 1rem;
    display: inline-block;
}

/* --- Estilos do Navegador de Imagens (Modal) --- */
/* (Modal é sempre claro para legibilidade) */
.image-browser-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}
.image-browser-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    max-width: 1000px;
    border-radius: 24px; /* Arredondado */
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
}
.image-browser-header {
    padding: 1rem 1.5rem;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.image-browser-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700; /* Bold */
    color: #1f2937;
}
.image-browser-header .close-btn {
    color: #aaa;
    font-size: 1.75rem;
    font-weight: bold;
    cursor: pointer;
}
.image-browser-header .close-btn:hover { color: #333; }
.image-browser-nav {
    padding: 0.75rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.browser-back-btn {
    font-size: 0.9rem;
    padding: 0.25rem 0.75rem;
}
#browser-current-path {
    font-size: 0.9rem;
    font-weight: 700; /* Bold */
    color: #475569;
    background: #f8fafc;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.image-browser-body {
    padding: 1.5rem;
    height: 60vh;
    overflow-y: auto;
    background: #f8fafc;
    color: #1f2937;
}
.image-browser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}
.browser-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px; /* Arredondado */
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.browser-item:hover {    
    box-shadow: 0 4px 10px rgba(59,130,246,0.15);
    transform: translateY(-2px);
}
.browser-item.folder .thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    background: #f1f5f9;
}
.browser-item.folder i {
    font-size: 3rem;
    color: #94a3b8;
}
.browser-item.file .thumbnail {
    height: 120px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #fff;
}
.browser-item .item-name {
    font-size: 0.8rem;
    font-weight: 700; /* Bold */
    padding: 0.5rem;
    border-top: 1px solid #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #334152;
}

/* --- NOVO: Estilos da Barra de Rolagem (WebKit) --- */
::-webkit-scrollbar {
  width: 10px;  /* Largura da barra */
  height: 10px; /* Altura (para barras horizontais) */
}
::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5); /* Fundo escuro sutil (cor do body) */
}
::-webkit-scrollbar-thumb {
  background-color: #334155; /* Cinza-azulado (hover do class-link) */
  border-radius: 10px;
  border: 2px solid transparent; /* Cria um padding visual */
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
  background-color: #60a5fa; /* Azul "neon" */
}

/* --- NOVOS OVERRIDES (V7.5 - Remoção total de bordas) --- */

/* Remove borda da linha de PM (htdocs/api/views/pm_inbox.php) */
.pm-row {
    border: none !important;
}
/* Adiciona um separador mais sutil para compensar */
.pm-row + .pm-row {
    border-top: 1px solid rgba(51, 65, 85, 0.5) !important;
}

/* Remove borda da seção de perfil (htdocs/api/views/profile_view.php) */
.profile-section {
    border: none !important;
}

/* Padroniza botão de filtro de letra ativo (htdocs/api/views/class_list.php) */
#center-content button.alpha-filter-link.active {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border: 1px solid transparent !important; /* REMOVIDA BORDA */
}

/* Padroniza paginação ativa (htdocs/api/views/forum_view.php & thread_view.php) */
.pagination span.current {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border: 1px solid transparent !important; /* REMOVIDA BORDA */
}

/* Botões de filtro de badge (hover e active) */
#center-content .badge-filter-grid button.badge-filter-link:hover {
    border-color: transparent !important;
}
#center-content .badge-filter-grid button.badge-filter-link.active { 
    border-color: transparent !important; 
}

/* Remove borda do formulário de edição de perfil (htdocs/api/views/profile_edit_form.php) */
.edit-profile-form {
    border: none !important;
    padding: 0 !important; /* Remove o padding extra se a borda sumir */
}

/* Remove borda da caixa de skills (htdocs/api/views/class_edit_form.php) */
#center-content .edit-form .skill-entry {
    border: none !important;
}

/* Remove borda da grade de badges (htdocs/api/views/class_edit_form.php) */
#center-content .edit-form .badge-grid {
    border: none !important;
}


/* --- NOVOS OVERRIDES (V7.6 - Remoção de Bordas do Fórum) --- */

/* htdocs/api/views/forum_index.php */
.forum-category-header,
.forum-row {
    border: none !important;
}
/* Adiciona um separador sutil de volta, como fizemos com as PMs */
.forum-row + .forum-row {
    border-top: 1px solid rgba(51, 65, 85, 0.5) !important;
}
.forum-cell.last-post {
    border-top: none !important; /* Remove a linha tracejada no mobile */
}

/* htdocs/api/views/forum_view.php */
.thread-row {
    border: none !important;
}
.thread-row + .thread-row {
     border-top: 1px solid rgba(51, 65, 85, 0.5) !important;
}

/* htdocs/api/views/thread_view.php */
.thread-post,
.post-user-info,
.post-header,
.post-footer,
.reply-form {
    border: none !important;
}
.post-body blockquote {
    border-left: none !important;
    padding-left: 1.25rem; /* Mantém recuo */
}
.thread-header h1 {
    border: none !important; /* Remove borda do título do tópico, se houver */
}
/* .forum-breadcrumb { (REMOVIDO - V9.0) */
    /* border: none !important; */ /* Remove borda do breadcrumb */
/* } */

/* htdocs/api/views/forum_manage_page.php */
.manage-header,
.manage-category-item,
.category-header,
.manage-forum-item {
    border: none !important;
}
/* Adiciona separadores sutis de volta para a página de gerenciamento */
.manage-category-item + .manage-category-item {
    border-top: 1px solid rgba(51, 65, 85, 0.5) !important;
}
.manage-forum-item + .manage-forum-item {
     border-top: 1px solid rgba(51, 65, 85, 0.5) !important;
}

/* --- V7.7 - Otimizações de Login (Topo) --- */
.top-nav-container .login-placeholder {
    display: flex;
    /* flex-direction: column; */ /* Alterado */
    flex-direction: row; /* Alterado */
    align-items: center; /* Alterado */
    gap: 0.5rem;
}
.top-nav-container .login-placeholder form {
    gap: 0.5rem;
    align-items: center;
}
/* Reduz o tamanho dos inputs e botões APENAS no header */
.top-nav-container .input-styled {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 12px;
    width: 120px; /* Mantém a largura fixa */
    background-color: rgba(255, 255, 255, 0.04); /* Fundo glass mais sutil */
}
.top-nav-container .btn-primary {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 12px;
    white-space: nowrap;
}
/* Alinha o link "Registre-se" */
.top-nav-container .login-placeholder div[style*="text-align: center"] {
    text-align: right !important;
    margin-top: 0 !important;
    white-space: nowrap; /* Impede que quebre a linha */
}
/* --- V7.8 - Estilos do Dropdown da Sidebar --- */
.side-nav .nav-dropdown {
    display: block; /* Garante que a tag <details> ocupe a largura total */
}
.side-nav .nav-dropdown summary.nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Empurra o ícone da seta para a direita */
    width: 100%;
    cursor: pointer;
    padding: 0.6rem 1rem; /* Aplica o mesmo padding dos outros links */
    border-radius: 12px; /* Aplica o mesmo raio dos outros links */
    transition: background-color 0.2s, color 0.2s;
}
.side-nav .nav-dropdown summary.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.05); /* Efeito hover */
    color: #ffffff;
}
.side-nav .nav-dropdown summary.nav-link::-webkit-details-marker {
    display: none; /* Remove o marcador padrão (Chrome) */
}
.side-nav .nav-dropdown summary.nav-link {
    list-style: none; /* Remove o marcador padrão (Firefox) */
}
/* Estiliza os ícones dentro do <summary> */
.side-nav .nav-dropdown summary.nav-link > i:first-child {
    width: 1.1em;
} /* <-- *** ERRO CORRIGIDO: Adicionado '}' que faltava AQUI *** */

/* --- V7.9 - Estilos do Novo Profile Card (Sidebar) --- */
.profile-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.profile-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ================================================= */
/* --- ATUALIZAÇÃO AVATAR (REQUEST DO USUÁRIO) --- */
/* ================================================= */
.profile-avatar-link {
    position: relative;
    flex-shrink: 0;
    display: block;
    width: 150px; /* <-- ATUALIZADO (MAIOR) */
    height: 150px; /* <-- ATUALIZADO (QUADRADO) */
    border-radius: 50%; /* <-- ATUALIZADO (REDONDO) */
    overflow: hidden; 
    border: 3px solid rgba(255, 255, 255, 0.1);
    background-color: #0f172a;
    transition: border-color 0.2s ease;
}
.profile-avatar-link:hover {
    border-color: rgba(255, 255, 255, 0.4);
}
.profile-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.2s ease;
}
.profile-avatar-link:hover .profile-avatar {
    transform: scale(1.05); 
}
/* ================================================= */
/* --- FIM DA ATUALIZAÇÃO AVATAR --- */
/* ================================================= */

.profile-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid #1e293b; /* Cor de fundo da sidebar-section */
}
.profile-status.online {
    background-color: #22c55e; /* Verde vivo */
}
.profile-status.offline {
    background-color: #94a3b8; /* Cinza */
}
.profile-status.invisible {
    background-color: #f59e0b; /* Âmbar */
}
.profile-card-info {
    flex-grow: 1;
    min-width: 0; /* Permite que o nome quebre a linha se for muito longo */
}
.profile-name {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.profile-name:hover {
    color: #60a5fa;
}
.profile-group {
    font-size: 0.9rem;
    font-weight: 400;
    /* A cor é definida inline pelo PHP */
}
.profile-card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    background-color: rgba(0, 0, 0, 0.15);
    padding: 0.75rem 1rem;
    border-radius: 12px;
}
.stat-item {
    text-align: center;
}
.stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}
.stat-value-flag {
    display: block;
    height: 24px; /* Altura do 'stat-value' */
    line-height: 24px;
    font-size: 1.25rem; /* Tamanho da bandeira */
}
.stat-label {
    display: block;
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.profile-card-nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
}
/* Estilo para botões de ícone */
.profile-card-nav .btn-secondary {
    padding: 0.5rem 0.8rem; /* Quadrado/pequeno */
    font-size: 0.9rem;
    flex-grow: 0;
    flex-shrink: 0;
    border-radius: 12px; /* Menos redondo que pill */
}
/* Botão de notificação */
.notification-btn {
    position: relative;
}
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ef4444; /* Vermelho */
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 1px solid #0f172a;
}
/* --- V7.9 - Estilos do Novo Profile Card (Sidebar) --- */
/* ESTE BLOCO ERA DUPLICADO E FOI REMOVIDO */


/* --- V7.10 - Ajustes Finais (Login Icon e Perfil Sidebar) --- */
.top-nav-container .btn-primary.btn-icon-login {
    width: auto;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
    font-size: 1rem;
}

#sidebar-profile-status .profile-card {
    text-align: center;
}
#sidebar-profile-status .profile-card-header {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
/* ATUALIZADO (V9.0): Define o tamanho do avatar da sidebar */
#sidebar-profile-status .profile-avatar-link {
    /* ATUALIZADO (REQ USUÁRIO): De 130x220 para 150x150 redondo */
    width: 150px;
    height: 150px;
    border-radius: 50%;
}
#sidebar-profile-status .profile-group {
    display: block;
    margin-top: 0;
}
#sidebar-profile-status .profile-name {
    display: block;
    font-size: 1.25rem;
}
#sidebar-profile-status .profile-card-stats {
    grid-template-columns: 1fr; /* Coluna única para Posts */
}
#sidebar-profile-status .profile-card-footer {
    margin-top: 0.5rem;
}
#sidebar-profile-status .profile-card-footer .btn-secondary {
    width: 100%;
    text-align: center;
}

/* ================================================= */
/* --- ATUALIZAÇÃO AVATAR FORUM (REQ USUÁRIO) --- */
/* ================================================= */
.user-avatar {
    width: 150px; /* <-- ATUALIZADO (MAIOR) */
    height: 150px; /* <-- ATUALIZADO (QUADRADO) */
    border-radius: 50%; /* <-- ATUALIZADO (REDONDO) */
    border: 3px solid #334155;
    background-color: #0f172a;
    margin: 0 auto 1rem auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante preenchimento */
}
.user-avatar .fa-user {
    font-size: 5rem; /* <-- ATUALIZADO (Um pouco menor para caber no círculo) */
    color: #475569;
}
@media (max-width: 768px) {
    .user-avatar {
        /* ATUALIZADO (REQ USUÁRIO): De 100x169 para 100x100 redondo */
        width: 100px;
        height: 100px;
        border-radius: 50%; /* Garante que fique redondo */
        margin: 0;
        flex-shrink: 0;
    }
    .user-avatar .fa-user { font-size: 3rem; }
}

/* ========================================== */
/* --- NOVO ESTILO BREADCRUMB (V9.0) --- */
/* ========================================== */
.forum-breadcrumb {
    font-size: 0.9rem;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    border: none !important; /* Override local styles */
    padding: 0; /* Override local styles */
}
.forum-breadcrumb a,
.forum-breadcrumb span {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s ease;
}
.forum-breadcrumb a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}
.forum-breadcrumb span:not(.breadcrumb-separator) {
    background: transparent;
    color: #f1f5f9;
    font-weight: 700;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
.forum-breadcrumb .breadcrumb-separator {
    font-size: 0.8rem;
    color: #475569;
    background: transparent;
    padding: 0;
}
/* ====================================================== */
/* --- ESTILOS DE ENHANCEMENTS (REFORMA VISUAL V4) --- */
/* ====================================================== */

/* --- Página de Lista de Categorias (enhancements_category_list.php) --- */
.enh-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.enh-cat-card {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    border: 1px solid rgba(51, 65, 85, 0.5);
    text-decoration: none;
    transition: all 0.2s ease;
    overflow: hidden; /* Para o header */
}
.enh-cat-card:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: #3b82f6;
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.enh-cat-card-header {
    padding: 1rem 1.25rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}
.enh-cat-card-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #ffffff;
    font-weight: 700;
}
.enh-cat-card-header h3 i {
    margin-right: 0.5rem;
    color: #94a3b8;
}

.enh-cat-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex-grow: 1;
}

.enh-cat-section {
    font-size: 0.9rem;
    color: #cbd5e1;
}
.enh-cat-section strong {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #f1f5f9;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.enh-cat-section strong i {
    color: #94a3b8;
}
.enh-cat-content {
    color: #cbd5e1;
    line-height: 1.6;
}
.enh-cat-content p {
    margin: 0;
}
.enh-cat-content ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.enh-cat-content ul li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.25rem;
}
.enh-cat-content ul li::before {
    content: '\f105'; /* fa-chevron-right */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #60a5fa;
    font-size: 0.8rem;
}

/* Card Raro */
.enh-cat-card.rare-card {
    background: rgba(16, 82, 45, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    position: relative;
}
.enh-cat-card.rare-card:hover {
    background: rgba(16, 82, 45, 0.3);
    border-color: #22c55e;
}
.enh-cat-card.rare-card .enh-cat-card-header h3 {
    color: #4ade80;
}
.enh-cat-card.rare-card .enh-cat-card-header h3 i {
    color: #4ade80;
}
.enh-cat-rare-image {
    display: block;
    max-width: 120px;
    opacity: 0.5;
    margin-top: 1rem;
    align-self: flex-end;
}

/* --- Página de Lista de Itens (enhancements_list.php) --- */
.enh-item-list-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.enh-section-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #ffffff;
    margin: 1.5rem 0 0.5rem 0;
    border-bottom: 1px solid #334155;
    padding-bottom: 0.75rem;
}

.enh-item-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    border: 1px solid rgba(51, 65, 85, 0.5);
    overflow: hidden;
}

.enh-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}
.enh-item-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 700;
}
.enh-item-header .enh-level-tag {
    color: #60a5fa;
    font-weight: 700;
}
.enh-item-header .enh-type-badge {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    background: #334155;
    color: #cbd5e1;
    white-space: nowrap;
    flex-shrink: 0;
}

.enh-item-body-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 1.25rem;
}

@media (max-width: 768px) {
    .enh-item-body-grid {
        grid-template-columns: 1fr; /* Coluna única no mobile */
    }
}

.enh-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.95rem;
}
.enh-item-info .info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(51, 65, 85, 0.4);
}
.enh-item-info .info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.enh-item-info .info-label {
    font-weight: 700;
    color: #94a3b8;
    white-space: nowrap;
}
.enh-item-info .info-label i {
    margin-right: 0.35rem;
    width: 1.1em;
    text-align: center;
}
.enh-item-info .info-value {
    color: #f1f5f9;
    text-align: right;
    font-weight: 500;
}
.enh-item-info .info-value .req-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

.enh-item-stats {
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 1rem;
}

/* Bloco de Stats Compacto (reutilizado de .enh-stat-block) */
.enh-compact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
}
.enh-compact-stats .stat-item {
    background: rgba(0,0,0,0.2);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.enh-compact-stats .stat-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #94a3b8;
}
.enh-compact-stats .stat-pos,
.enh-compact-stats .stat-neg {
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}
.stat-pos { color: #22c55e; }
.stat-neg { color: #ef4444; }
.stat-null { color: #475569; }

.enh-compact-stats-placeholder {
    font-size: 0.9rem;
    color: #94a3b8;
    text-align: center;
    padding: 1rem;
    font-style: italic;
}


/* Footer do Card (para Locais, Notas, Galeria) */
.enh-item-footer {
    padding: 1.25rem;
    border-top: 1px solid rgba(51, 65, 85, 0.5);
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.enh-footer-section strong {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #f1f5f9;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.enh-footer-section strong i {
    color: #94a3b8;
}
.enh-footer-content {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.6;
}
.enh-footer-content p {
    margin: 0 0 0.5rem 0;
}
.enh-footer-content p:last-child { margin-bottom: 0; }
.enh-footer-content ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.enh-footer-content ul li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.25rem;
}
.enh-footer-content ul li::before {
    content: '\f105'; /* fa-chevron-right */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #60a5fa;
    font-size: 0.8rem;
}

/* Galeria (reutilizada) */
.enh-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.gallery-thumb {
    display: block;
    transition: transform 0.2s ease;
}
.gallery-thumb img {
    width: auto;
    height: auto;
    max-width: 100%; 
    max-height: 100px; /* Limita altura na galeria */
    display: block;
}
.gallery-thumb:hover {
    transform: scale(1.05);
}

/* Info Box da Categoria (reutilizado) */
.category-info-box {
    background: rgba(0,0,0,0.1);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
}
.category-info-box h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #f1f5f9;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #334155;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.category-info-box h3 i {
    color: #94a3b8;
}
.category-info-box ul {
    list-style: none;
    padding-left: 0;
}
.category-info-box ul li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.25rem;
}
.category-info-box ul li::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #60a5fa;
    font-size: 0.8rem;
}
.category-info-box p:last-child,
.category-info-box ul:last-child {
    margin-bottom: 0;
}

/* --- ESTILOS DE ENHANCEMENTS (REFORMA VISUAL V5) --- */

/* --- Página de Lista de Itens (enhancements_list.php - V5 HÍBRIDO) --- */
.enhancements-list-v5 {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Espaço entre acordeões */
}

/*
======================================================
=== INÍCIO: REFORMA VISUAL ENHANCEMENTS (V50.19) =====
======================================================
*/

/* --- O Acordeão (o "botão colapsável" feio) --- */
.enh-accordion {
    background: rgba(0, 0, 0, 0.15); /* Fundo sutil */
    border-radius: 16px;
    border: 1px solid rgba(51, 65, 85, 0.5); /* Borda sutil */
    overflow: hidden; /* Garante que o raio seja aplicado */
    margin-bottom: 1rem; /* Espaço entre acordeões */
    transition: all 0.2s ease;
}
.enh-accordion:hover {
    background: rgba(0, 0, 0, 0.25); /* Leve hover */
}
/* Quando o acordeão está aberto */
.enh-accordion[open] {
    border-color: #334155; /* Borda mais forte quando aberto */
    background: rgba(0, 0, 0, 0.2);
}

/* --- O Header do Acordeão (Sumário) --- */
.enh-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    list-style: none; /* Remove o marcador padrão */
    transition: background-color 0.2s ease;
}
.enh-summary::-webkit-details-marker {
    display: none; /* Remove o marcador (Chrome) */
}
.enh-accordion:hover .enh-summary {
     /* Não precisa de hover separado, o acordeão já faz */
}
.enh-accordion[open] .enh-summary {
    background: rgba(0, 0, 0, 0.2); /* Fundo mais escuro no header quando aberto */
    border-bottom: 1px solid #334155;
}

/* Título dentro do sumário */
.enh-summary h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #f1f5f9;
}

/* O ícone de Chevron (seta) */
.enh-chevron {
    color: #94a3b8;
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}
.enh-accordion[open] .enh-chevron {
    transform: rotate(180deg);
}

/* --- O Conteúdo do Acordeão (Tabela) --- */
.enh-details {
    padding: 0; /* O wrapper da tabela cuidará do padding */
}

/* Meta informação (descrições de Awe/Item) */
.enh-meta {
    padding: 1rem 1.25rem 0.5rem 1.25rem;
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.6;
    border-bottom: 1px dashed #334155;
}
.enh-meta p {
    margin: 0;
}
.enh-meta strong {
    color: #f1f5f9;
}


/* --- A Tabela de Enhancements (Baseada em .boost-table) --- */
.enh-table-wrapper {
    overflow-x: auto;
    /* Adiciona padding aqui em vez de no .enh-details */
    padding: 1.25rem;
}
/* Se houver .enh-meta, reduz o padding superior do wrapper */
.enh-meta + .enh-table-wrapper {
    padding-top: 1rem;
}

.enh-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.2); /* Fundo da tabela (igual ao boost) */
    border-radius: 8px; /* Raio (igual ao boost) */
    overflow: hidden; /* Garante raio (igual ao boost) */
    font-family: 'Inter', sans-serif;
}
.enh-table th, 
.enh-table td {
    padding: .75rem .5rem;
    text-align: left;
    border-bottom: 1px solid #334155; /* Divisor (igual ao boost) */
    white-space: nowrap;
}
/* Última linha sem borda */
.enh-table tr:last-child td {
    border-bottom: none;
}

/* Cabeçalho (TH) */
.enh-table th {
    font-size: .75rem;
    color: #94a3b8; /* (igual ao boost) */
    text-transform: uppercase;
    font-weight: 700;
}

/* Células (TD) */
.enh-table td {
    font-size: .9rem;
    color: #cbd5e1; /* (igual ao boost) */
    font-weight: 500;
}

/* Colunas de Stats (centralizadas) */
.enh-table th.stat-col, 
.enh-table td.stat-col {
    text-align: center;
    width: 60px; /* (igual ao boost) */
}

/* Coluna de Custo */
.enh-table td.cost-col {
    font-weight: 600;
    color: #94a3b8;
    font-size: 0.85rem;
}

/* Valores de Stats (Positivo, Negativo, Nulo) */
.enh-table td .stat-pos,
.enh-table td .stat-neg {
    font-weight: 800;
    text-shadow: 0 0 3px rgba(0,0,0,.3);
}
.enh-table td .stat-pos { color: #22c55e; } /* Verde */
.enh-table td .stat-neg { color: #ef4444; } /* Vermelho */
.enh-table td .stat-null {
    color: #475569; /* (igual ao boost) */
    font-weight: 400;
}

/* Links de Ordenação (Header) */
.enh-table th a.sort-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: inherit;
    text-decoration: none;
    transition: filter .2s;
}
.enh-table th a.sort-link:hover, 
.enh-table th a.sort-link.active {
    filter: brightness(1.2); /* (igual ao boost) */
    color: #ffffff; /* Garante que fique branco */
}

/* Badge (Legend) */
.badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.badge-legend {
    background-color: rgba(234, 179, 8, 0.15);
    color: #facc15;
}

/*
======================================================
=== FIM: REFORMA VISUAL ENHANCEMENTS (V50.19) ========
======================================================
*/


/* --- ESTILOS PARA CÉLULAS DE BOOST (V50.13 - COR NO TEXTO) --- */
.boost-table td .stat-pos {
    /* O estilo de cor é aplicado INLINE via PHP */
    font-weight: 800;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.3); /* Adiciona sombra sutil ao texto para destaque */
    transition: color 0.3s ease;
}
.boost-table td .stat-null {
    color: #475569; /* Cor neutra para 0% */
    font-weight: 400;
}
/* --- FIM (V50.13) - ESTILOS PARA CÉLULAS DE BOOST --- */
/*
=====================================================
=== INÍCIO DAS ADIÇÕES DA ETAPA 3 ===================
=====================================================

/* === ESTILOS PARA PM (CHAT / THREAD) === */

/* Wrapper da bolha de mensagem (para alinhamento) */
.msg-bubble-wrapper {
    display: flex;
    width: 100%;
}
.wrapper-sent {
    justify-content: flex-end;
}
.wrapper-received {
    justify-content: flex-start;
}

/* A bolha de mensagem */
.msg-bubble {
    padding: .6rem .9rem;
    border-radius: 1.25rem;
    max-width: 80%; /* Não deixa ocupar a tela toda */
    display: flex;
    flex-direction: column;
    gap: .25rem;
    word-break: break-word; /* Quebra palavras longas */
}

/* Bolha ENVIADA (direita) */
.msg-bubble-sent {
    background: #1d4ed8; /* Azul (Primário) */
    color: #e2e8f0;
    border-bottom-right-radius: 0.5rem;
}

/* Bolha RECEBIDA (esquerda) */
.msg-bubble-received {
    background: #1e293b; /* Cinza-azulado (Fundo escuro) */
    color: #cbd5e1;
    border: 1px solid #334155;
    border-bottom-left-radius: 0.5rem;
}

/* Corpo da mensagem (links) */
.msg-body a {
    color: #a7f3d0; /* Verde-claro (para links) */
    text-decoration: underline;
    font-weight: 600;
}
.msg-bubble-sent .msg-body a {
    color: #f1f5f9; /* Branco (contraste melhor no azul) */
}

/* Hora da mensagem */
.msg-time {
    font-size: 0.75rem;
    color: #94a3b8; /* Cinza (Tom baixo) */
    text-align: right;
}
.msg-bubble-sent .msg-time {
    color: #c7d2fe; /* Azul-claro */
}


/* === ESTILOS PARA ENHANCEMENTS (VISUAL QUEBRADO) === */
/* (Estes estilos .enh-group-* estão obsoletos pela V50.19, mas mantidos por segurança) */
/* Wrapper principal (para tabelas de Forge, Awe, etc.) */
.enh-group-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
/* Grupo (ex: "Weapon", "Helmet" ou "Awe Blast") */
.enh-group {
    padding: 1.25rem 1.5rem;
    background: rgba(2,6,23,.45);
    border: 1px solid #334155;
    border-radius: .75rem;
}
.enh-group-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #c4b5fd; /* Roxo claro */
    margin: 0 0 .5rem 0;
    padding-bottom: .75rem;
    border-bottom: 1px solid #334155;
}
.enh-group-desc {
    font-size: 0.95rem;
    color: #cbd5e1;
    margin: 0 0 1.25rem 0;
    max-width: 80ch; /* Limita largura do texto */
}

/* Tabela de Stats (obsoleto pela V50.19) */
.enh-stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.enh-stats-table thead th {
    background: rgba(2,6,23,.65);
    border-bottom: 2px solid #5eead4; /* Verde-água (destaque) */
    padding: .75rem .5rem;
    color: #f1f5f9;
    text-align: left;
}
.enh-stats-table th, 
.enh-stats-table td {
    padding: .6rem .5rem;
    border-bottom: 1px solid #334155;
    text-align: left;
    color: #cbd5e1;
}

/* Alinha colunas de stats à direita */
.enh-stats-table th.stat,
.enh-stats-table td.stat {
    text-align: center;
    min-width: 45px;
    font-weight: 600;
}
/* Coluna de Nível (Level) */
.enh-stats-table th.level,
.enh-stats-table td.level {
    text-align: center;
    color: #f1f5f9;
    font-weight: 700;
    width: 60px;
}
/* Coluna de Descrição/Efeito */
.enh-stats-table td.desc {
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Destaque em valores positivos */
.enh-stats-table td.stat-pos {
    color: #a7f3d0; /* Verde claro */
}
/* Destaque em valores negativos */
.enh-stats-table td.stat-neg {
    color: #fda4af; /* Vermelho claro */
}

/* Zebrado (alterna cor de fundo) */
.enh-stats-table tbody tr:nth-child(even) {
    background: rgba(30, 41, 59, 0.3); /* Fundo sutil */
}
.enh-stats-table tbody tr:hover {
    background: rgba(51, 65, 85, 0.5); /* Hover */
}


/* === ESTILOS PARA LISTA DE BASE ENHANCEMENTS (enhancements_base_list.php) === */
.enh-base-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    padding: 1rem 1.25rem;
}
.enh-base-item a {
    display: block;
    padding: 1.5rem 1.25rem;
    background: rgba(2,6,23,.45);
    border: 1px solid #334155;
    border-radius: .75rem;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #c4b5fd; /* Roxo claro */
    transition: all 0.2s ease-in-out;
}
.enh-base-item a:hover {
    background: rgba(30, 41, 59, 0.7);
    border-color: #c4b5fd;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(196, 181, 253, 0.1);
}

/*
=====================================================
=== FIM DAS ADIÇÕES DA ETAPA 3 ======================
=====================================================
*/