:root {
    --bg: #0f172a;
    --card: #1e293b;
    --primary:#6319B4;
    --text: #f8fafc;
    --accent: #334155;
    --header-bg: rgba(15, 23, 42, 0.9);
}


/* Isso força a cor em qualquer parágrafo dentro do post detalhado */
div#blog-post-detalhe .blog-post-full p.post-text-full,
div#blog-post-detalhe p,
div#blog-post-detalhe span {
    color: #444444 !important; /* Cor cinza escura para teste */
    opacity: 1 !important;
    -webkit-text-fill-color: #444444 !important; /* Força em navegadores Safari/Chrome */
}

body.light-mode {
    --bg: #f1f5f9;
    --card: #ffffff;
    --primary: #6319B4;
    --text: #1e293b;
    --accent: #cbd5e1;
    --header-bg: rgba(255, 255, 255, 0.9);
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    margin: 0;
    transition: background 0.3s;
}

header {
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--accent);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo { font-weight: 700; font-size: 1.5rem; letter-spacing: -1px; }
.logo span { color: var(--primary); }

.hidden { display: none; }

/* Grid de Módulos */
.section-title { padding: 40px 5% 0; }
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 30px 5%;
}

.card-modulo {
    background: var(--card);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid var(--accent);
}

.card-modulo:hover { transform: translateY(-5px); border-color: var(--primary); }
.card-modulo img { width: 100%; height: 160px; object-fit: cover; }
.card-modulo h3 { padding: 15px 15px 5px; margin: 0; font-size: 1.1rem; }

/* Barra de Progresso */
.progress-wrapper { flex-grow: 1; max-width: 400px; }
.progress-bar-bg { background: var(--accent); height: 8px; border-radius: 4px; overflow: hidden; }
#progress-fill { background: var(--primary); height: 100%; width: 0%; transition: 0.4s; }

/* Player de Vídeo */
.container-header { display: flex; align-items: center; gap: 20px; padding: 20px 5%; }
.player-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; padding: 0 5% 50px; }

@media (max-width: 900px) { .player-layout { grid-template-columns: 1fr; } }

iframe { width: 100%; aspect-ratio: 16/9; border-radius: 12px; border: none; background: #000; }
.placeholder-player { width: 100%; aspect-ratio: 16/9; background: #000; display: flex; align-items: center; justify-content: center; border-radius: 12px; }

/* Playlist e Aulas */
.playlist-side { background: var(--card); border-radius: 12px; padding: 20px; border: 1px solid var(--accent); }
#lista-aulas { list-style: none; padding: 0; margin-top: 15px; }
#lista-aulas li { 
    padding: 12px; border-radius: 8px; margin-bottom: 8px; 
    display: flex; align-items: center; gap: 10px; cursor: pointer; transition: 0.2s;
}
#lista-aulas li:hover { background: var(--accent); }
.btn-download { display: inline-block; background: var(--primary); color: white; padding: 10px 20px; border-radius: 6px; text-decoration: none; margin: 15px 0; font-weight: 600; }

/* Painel Admin */
#admin-panel { background: var(--card); margin: 20px 5%; padding: 25px; border-radius: 12px; border: 2px dashed var(--primary); }
.admin-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
input, select, textarea { background: var(--bg); color: var(--text); border: 1px solid var(--accent); padding: 10px; border-radius: 6px; flex: 1; min-width: 200px; }
button { background: var(--primary); color: white; border: none; padding: 10px 20px; border-radius: 6px; cursor: pointer; font-weight: 600; }
.btn-secondary { background: var(--accent); }


.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: var(--bg);
}

.auth-container {
    background: var(--card);
    padding: 40px;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border: 1px solid var(--accent);
}

#auth-box input {
    width: 100%;
    margin-bottom: 15px;
    box-sizing: border-box;
}

#auth-box button {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
}

#toggle-link {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--primary);
    cursor: pointer;
    text-decoration: underline;
}



/* Botões de Excluir */
.btn-delete {
    background: #ef4444 !important; /* Vermelho */
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.7rem;
    margin-top: 10px;
    transition: 0.3s;
}

.btn-delete:hover {
    background: #dc2626 !important;
}

.aula-item-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 8px;
    border-bottom: 1px solid var(--accent);
}




.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 5%;
    flex-wrap: wrap;
}

.search-box {
    margin-top: 40px;
    min-width: 300px;
}

.search-box input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 25px;
    border: 1px solid var(--accent);
    background: var(--card);
    color: var(--text);
    outline: none;
    transition: 0.3s;
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}

/* Estilo para itens de busca */
.search-item {
    padding: 15px;
    background: var(--card);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    border: 1px solid var(--accent);
    list-style: none;
    display: flex;
    justify-content: space-between;
}

.search-item:hover {
    border-color: var(--primary);
}

.mod-tag {
    font-size: 0.7rem;
    background: var(--accent);
    padding: 3px 8px;
    border-radius: 4px;
    color: var(--primary);
}


#recent-card {
    border: 1px solid var(--primary);
    background: var(--card);
    cursor: pointer;
    transition: 0.3s;
    flex-direction: row !important; /* Força o layout horizontal */
}

#recent-card:hover {
    background: var(--accent);
    transform: scale(1.02);
}


.comments-section { margin-top: 40px; border-top: 1px solid var(--accent); padding-top: 20px; }
.comment-input-group textarea { width: 100%; height: 80px; margin-bottom: 10px; }
.comment-card { background: var(--card); padding: 15px; border-radius: 8px; margin-bottom: 15px; border: 1px solid var(--accent); }
.comment-header { display: flex; justify-content: space-between; font-size: 0.8rem; margin-bottom: 8px; color: var(--primary); }
.comment-actions { display: flex; gap: 15px; margin-top: 10px; font-size: 0.75rem; }
.comment-actions span { cursor: pointer; opacity: 0.7; }
.comment-actions span:hover { opacity: 1; color: var(--primary); }
.reply-container { margin-left: 30px; border-left: 2px solid var(--accent); padding-left: 15px; margin-top: 10px; }
.edit-input { width: 100%; background: var(--bg); color: white; border: 1px solid var(--primary); padding: 5px; }




.carousel {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 0;
}
.carousel-item {
    min-width: 150px;
    height: 100px;
    background: var(--card-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    border: 1px solid var(--primary);
}
.avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid var(--primary);
}



/* Layout do Perfil */
.profile-card {
    max-width: 600px;
    margin: 40px auto;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
}

.profile-header-main {
    text-align: center;
    margin-bottom: 20px;
}

.avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
}

#profile-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.upload-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: var(--primary);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Carrossel */
.carousel {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 0;
    scrollbar-width: thin;
}

.carousel-item {
    min-width: 140px;
    max-width: 140px;
    background: rgba(255,255,255,0.05);
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s;
}

.carousel-item:hover { transform: translateY(-5px); }

.carousel-thumb {
    height: 80px;
    background: var(--primary);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 8px;
}

/* Notificação */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }





header nav {
    display: flex;
    align-items: center; /* Alinha verticalmente ao centro */
    gap: 15px;           /* Espaço entre os botões e a foto */
}

#header-avatar {
    transition: transform 0.2s;
}

#header-avatar:hover {
    transform: scale(1.1); /* Efeito visual ao passar o rato */
}



.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary); /* Usa a cor verde do seu sistema */
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 5px;
    animation: slideInRight 0.5s ease-out;
    max-width: 300px;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}



/* Efeito nos cards de continuar assistindo */
.carousel-item {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 168, 107, 0.2); /* Cor primary com transparência */
}

.carousel-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

/* Melhoria no botão de trocar foto (badge) */
.upload-badge {
    transition: transform 0.2s;
}
.upload-badge:hover {
    transform: scale(1.2);
    background: #008f5a; /* Tom mais escuro da cor primary */
}


/* Estilos para o Blog */

.blog-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.1);
}

.blog-capa {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
}

.blog-content h2 {
    color: var(--primary);
    margin: 10px 0;
}


.blog-content p {
    color: var(--text) !important;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Estilos específicos para comentários do blog */
.blog-comments-container {
    margin-top: 15px;
    padding: 15px;
    background: rgba(72, 13, 235, 0.03);
    border-radius: 8px;
}

.comments-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.blog-comment {
    border-left: 3px solid var(--primary);
    margin-bottom: 10px;
    padding-left: 10px;
    background: transparent;
}

.comment-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-input-group textarea {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    background: var(--bg-color);
    color: rgb(15, 11, 14);
    border: 1px solid rgba(255,255,255,0.2);
}


.blog-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.btn-edit-small, .btn-delete-small {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 5px 8px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}

.btn-edit-small:hover { background: #ffc107; }
.btn-delete-small:hover { background: #ff4444; }

.edit-input {
    background: #1a1a1a;
    color: white;
    border: 1px solid var(--primary);
    padding: 10px;
    border-radius: 5px;
    font-family: inherit;
}

/* Estiliza o conteúdo/corpo do post no blog */


.blog-actions {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    align-items: center;
}

.btn-like {
    background: black;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-like:hover {
    background: rgba(255, 50, 50, 0.1);
    border-color: #ff4444;
}

.btn-like.liked {
    background: #ff4444;
    color: white;
    border-color: #ff4444;
    animation: pulse 0.3s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}


.news-ticker-container {
    display: flex;
    background: #1a1a1a;
    border-bottom: 2px solid var(--primary);
    overflow: hidden;
    height: 40px;
    align-items: center;
}

.ticker-label {
    background: var(--primary);
    color: white;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 2;
}

.ticker-wrap {
    flex: 1;
    overflow: hidden;
}

.ticker {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: ticker-move 25s linear infinite;
}

.ticker span {
    display: inline-block;
    padding-right: 50px;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
}

.ticker span:hover {
    color: var(--primary);
}

@keyframes ticker-move {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}


/* Moldura do Avatar no Cabeçalho */
.avatar-header {
    width: 35px;
    height: 35px;
    border-radius: 50%; /* Faz o círculo perfeito */
    object-fit: cover;   /* Corta a imagem para caber sem distorcer */
    border: 2px solid var(--primary); /* Moldura com a cor do seu sistema */
    display: block;
}

/* Garante que o link não adicione espaços estranhos */
#profile-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}


.blog-capa-detalhe {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 20px;
}

.post-text-full {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e0e0e0;
    white-space: pre-wrap;
    margin: 25px 0;
}

.blog-post-full h1 {
    color: var(--primary);
    font-size: 2.2rem;
    margin: 10px 0;
}



/* Ajuste do Container Principal do Blog */
#app {
    max-width: 1200px; /* Impede que os cards estiquem ao infinito */
    margin: 0 auto;    /* Centraliza o conteúdo na tela */
    padding: 20px;
}

/* Transformar a lista de posts numa Grelha (Grid) */
#blog-grid {
    display: grid !important;
    /* Cria colunas de no mínimo 280px. Se couberem 3, ele põe 3. Se for telemóvel, põe 1. */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 25px; /* Espaço entre as caixinhas */
    padding: 20px 0;
}

/* Ajustar o tamanho fixo das imagens nas caixinhas do blog */
#blog-grid .capa-modulo {
    width: 100%;
    height: 180px; /* Altura fixa para todas as capas serem iguais */
    object-fit: cover; /* Corta a imagem sem distorcer */
    border-radius: 12px 12px 0 0;
}

/* Ajuste do Card para o Blog */
#blog-grid .card-modulo {
    width: 100%; /* Agora ele respeita o tamanho da coluna da grelha */
    max-width: 350px;
    margin: 0; /* Remove margens automáticas que podem centrar o card sozinho */
    background: #fff; /* Cor de fundo branca para o conteúdo */
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
    border: 1px solid rgba(0,0,0,0.1);
}

#blog-grid .card-modulo:hover {
    transform: translateY(-5px);
}


/* Definição da Animação */
@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Classe que aplica a animação */
.fade-in {
    animation: fadeInCard 0.6s ease forwards;
}

/* Ajuste extra para a grelha não esticar */
#blog-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 20px;
    align-items: start; /* Impede que os cards estiquem verticalmente para preencher a linha */
}

.btn-filter {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgb(22, 14, 14);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-filter.active, .btn-filter:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.badge-categoria {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 2;
}

#blog-grid .card-modulo {
    position: relative; /* Necessário para a badge ficar por cima */
}


.notification-container { position: relative; }
#btn-notificacao {
    background: none; border: none; font-size: 1.5rem; cursor: pointer; position: relative;
}
#notificacao-badge {
    position: absolute; top: -5px; right: -5px; background: red; color: white;
    font-size: 0.7rem; padding: 2px 6px; border-radius: 50%; font-weight: bold;
}
#modal-notificacoes {
    position: absolute; top: 40px; right: 0; width: 280px; background: #eee9e9;
    border: 1px solid var(--primary); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1000; padding: 10px; max-height: 400px; overflow-y: auto;
}
.notificacao-item {
    padding: 10px; border-bottom: 1px solid #333; cursor: pointer; transition: 0.2s;
    display: flex; flex-direction: column; gap: 3px;
}
.notificacao-item:hover { background: #e9e7e7; }
.notificacao-item small { color: var(--primary); font-size: 0.7rem; font-weight: bold; }




.rank-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.rank-pos { font-weight: bold; width: 30px; color: var(--primary); }
.rank-nome { flex-grow: 1; margin-left: 10px; }
.rank-pontos { font-size: 0.9rem; opacity: 0.8; }
.rank-nivel { 
    background: var(--primary); 
    color: black; 
    padding: 2px 8px; 
    border-radius: 10px; 
    font-size: 0.7rem; 
    margin-left: 10px;
}


.badge-nivel {
    background: linear-gradient(45deg, #ffd700, #ffa500); /* Dourado para destaque */
    color: #000;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
    margin-left: -10px;
    position: relative;
    top: -15px;
    border: 1px solid #000;
}

.btn-delete-small {
    background: #ff4444;
    color: white;
    border: none;
    padding: 5px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-right: 5px;
    transition: 0.3s;
}

.btn-delete-small:hover {
    background: #cc0000;
    transform: scale(1.1);
}

.btn-delete-small {
    background: #441111;
    color: #ff6666;
    border: 1px solid #662222;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: 0.2s;
}

.btn-delete-small:hover {
    background: #ff0000;
    color: #fff;
}


.btn-approve {
    background: #27ae60;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.btn-approve:hover {
    background: #2ecc71;
    transform: scale(1.05);
}

.btn-reject {
    background: transparent;
    color: #e74c3c;
    border: 1px solid #e74c3c;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-reject:hover {
    background: #e74c3c;
    color: white;
}

.custom-player-container {
    position: relative;
    width: 100%;
    background: #000;
}

/* Camada invisível para bloquear o clique direito sobre o iframe */
.video-overlay-controls {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 10;
    display: flex;
    gap: 10px;
    background: rgba(0,0,0,0.6);
    padding: 5px;
    border-radius: 5px;
}

#player {
    width: 100%;
    aspect-ratio: 16 / 9;
}

/* Bloqueia clique direito em cima do container do vídeo */
.custom-player-container {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Container Principal */
.adm-section {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin: 20px;
}

.adm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#total-alunos-badge {
    background: #e3f9ef;
    color: #00a86b;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
}

/* Tabela */
.table-container { overflow-x: auto; }

.adm-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.adm-table th {
    padding: 15px;
    border-bottom: 2px solid #f1f1f1;
    color: #636e72;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.adm-table td {
    padding: 15px;
    border-bottom: 1px solid #f8f8f8;
    color: #2d3436;
    font-size: 0.95rem;
}

.adm-table tr:hover { background: #fcfcfc; }

/* Avatar e Texto */
.user-info-cell { display: flex; align-items: center; gap: 10px; }
.user-avatar {
    width: 35px;
    height: 35px;
    background: #1a1a1a;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
}

.email-cell { color: #0984e3; font-weight: 500; }

.status-active { color: #00a86b; font-size: 0.8rem; font-weight: bold; }

/* Botão de Ação */
.btn-detalhes {
    background: #f1f2f6;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.btn-detalhes:hover { background: #1a1a1a; color: white; }
.table-container {
    max-height: 500px;
    overflow-y: auto;
    border-radius: 8px;
}

/* Scrollbar personalizada para combinar com o sistema */
.table-container::-webkit-scrollbar {
    width: 6px;
}
.table-container::-webkit-scrollbar-thumb {
    background: #dcdde1;
    border-radius: 10px;
}


.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    width: 90%; max-width: 800px;
    max-height: 85vh;
    border-radius: 20px;
    padding: 30px;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid #eee; padding-bottom: 20px; margin-bottom: 20px;
}

.user-profile { display: flex; align-items: center; gap: 15px; }
.user-avatar.big { width: 50px; height: 50px; font-size: 1.2rem; }

.stats-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 25px; }
.stat-box { background: #f8f9fa; padding: 15px; border-radius: 12px; text-align: center; }

.trades-mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; }

.btn-close { background: none; border: none; font-size: 2rem; cursor: pointer; color: #666; }


.btn-close {
    position: relative; /* Garante que ele respeite o z-index */
    z-index: 1010;     /* Fica acima de tudo no modal */
    cursor: pointer !important;
    padding: 10px;      /* Aumenta a área de clique */
    background: transparent;
    border: none;
    font-size: 30px;
    line-height: 1;
}


btn-voltar-blog {
    background: var(--primary);
    color: rgb(216, 38, 38);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 20px;
    display: inline-block;
    transition: 0.3s;
}   

