/* Container dos números de views e downloads na página (Dark mode) */
.box-estatisticas-foto {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 5px;
    font-size: 13px;
    color: #bbb;
}

.item-estatistica {
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.item-estatistica:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    color: #fff;
}

/* Janela Flutuante de Usuários (Modal) - Fundo Borrado */
.modal-estatisticas-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.7);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-estatisticas-overlay.ativo {
    display: flex;
    opacity: 1;
}

/* A Caixa do Modal com Degradê Preto */
.modal-estatisticas-box {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    width: 90%;
    max-width: 380px;
    border-radius: 15px;
    padding: 0;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal-estatisticas-overlay.ativo .modal-estatisticas-box {
    transform: scale(1);
}

/* Título do Modal */
.modal-estatisticas-box h3 {
    margin: 0;
    font-size: 18px;
    background: rgba(255,255,255,0.03);
    padding: 20px;
    color: #fff;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    letter-spacing: 1px;
}

/* Botão Fechar (X) */
.fechar-modal-stats {
    position: absolute;
    top: 15px; right: 15px;
    background: rgba(255,255,255,0.1); color: #fff;
    border: none; width: 30px; height: 30px;
    border-radius: 50%; cursor: pointer;
    font-weight: bold; font-size: 12px;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.3s;
    z-index: 10;
}
.fechar-modal-stats:hover { background: #ff4757; }

/* Lista de Usuários - Máximo 5 itens (aprox 205px) */
.lista-usuarios {
    max-height: 205px; 
    overflow-y: auto;
    padding: 10px 0;
}

/* Estilo de cada item da lista (Usuário) */
.lista-usuarios div {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: #eee;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.2s;
}

.lista-usuarios div:last-child {
    border-bottom: none;
}

.lista-usuarios div:hover {
    background: rgba(255,255,255,0.03);
}

/* === ESTILIZAÇÃO DA BARRA DE ROLAGEM LARANJA === */
.lista-usuarios::-webkit-scrollbar {
    width: 8px;
}

.lista-usuarios::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
}

.lista-usuarios::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff9f43, #ff6b6b);
    border-radius: 10px;
}

.lista-usuarios::-webkit-scrollbar-thumb:hover {
    background: #ff9f43;
}

/* === ESTILOS DA FOTO EXPANDIDA (OVERLAY) === */
.overlay-foto-expandida {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99998;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.overlay-foto-expandida.ativo {
    display: flex;
}

.overlay-foto-expandida img {
    max-width: 95%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}

.controles-foto-expandida {
    position: absolute;
    top: 20px;
    right: 30px;
    display: flex;
    gap: 15px;
}

.btn-controle-expandida {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 24px;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
}
.btn-controle-expandida:hover { background: rgba(255,255,255,0.4); }

/* Estilo da foto do usuário na lista (Círculo Perfeito) */
.foto-usuario-stat {
    width: 35px;          /* Largura fixa */
    height: 35px;         /* Altura fixa igual à largura */
    border-radius: 50%;   /* Transforma em círculo */
    object-fit: cover;    /* Garante que a foto preencha o círculo sem distorcer */
    border: 2px solid rgba(255,159,67,0.5); /* Borda laranja sutil */
    background-color: #333; /* Fundo caso a foto demore a carregar */
}