/* --- VARIÁVEIS E TEMAS --- */
:root {
    --accent-color: #00ced1;
    --gradient-accent: linear-gradient(135deg, #00ced1 0%, #1e90ff 100%);
    --bg: #f1f5f9; --sidebar: #ffffff; --card: #ffffff; --text: #1e293b;
    --text-dim: #64748b; --border: #e2e8f0;
}
[data-theme="dark"] {
    --bg: #0f172a; --sidebar: #020617; --card: #1e293b; --text: #f8fafc;
    --text-dim: #94a3b8; --border: #334155;
}

body.theme-green { --gradient-accent: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%); --accent-color: #2ecc71; }
body.theme-red { --gradient-accent: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); --accent-color: #e74c3c; }
body.theme-purple { --gradient-accent: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%); --accent-color: #9b59b6; }
body.theme-orange { --gradient-accent: linear-gradient(135deg, #ff8c00 0%, #ff4500 100%); --accent-color: #ff8c00; }

/* --- RESET E BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background: var(--bg); color: var(--text); overflow: hidden; height: 100vh; }

.app-container { display: grid; grid-template-columns: 280px 1fr; grid-template-rows: 1fr 100px; height: 100vh; }
.sidebar { background: var(--sidebar); padding: 20px; border-right: 1px solid var(--border); display: flex; flex-direction: column; overflow-y: auto; gap: 15px; }
.logo-area { width: 100%; height: 100px; display: flex; align-items: center; justify-content: center; padding: 10px 0; margin-bottom: 10px; }
.logo-area img { max-width: 200px; max-height: 80px; width: auto; height: auto; object-fit: contain; }

.menu { display: flex; flex-direction: column; gap: 4px; }
.menu a { display: flex; align-items: center; gap: 12px; color: var(--text-dim); text-decoration: none; padding: 12px; border-radius: 10px; transition: 0.3s; font-size: 0.9rem; cursor: pointer; }
.menu a.active, .menu a:hover { background: var(--gradient-accent); color: white; }

.side-card { display: flex; align-items: center; gap: 12px; background: var(--gradient-accent); padding: 15px; border-radius: 12px; color: white; margin-top: 5px; }
.side-card img { width: 50px; height: 50px; border-radius: 50%; border: 2px solid white; object-fit: cover; }
.side-card b { font-size: 1rem; display: block; font-weight: 700; }

.controls-box { padding: 15px 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.theme-toggle { width: 40px; height: 40px; border-radius: 50%; background: var(--bg); border: 1px solid var(--border); color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.color-dots { display: flex; gap: 6px; }
.dot { width: 16px; height: 16px; border-radius: 50%; cursor: pointer; border: 1px solid #fff; }

.widget-title, .pix-titulo { margin-bottom: 25px; font-weight: 800; font-size: 16px; text-transform: uppercase; letter-spacing: 1.2px; border-left: 4px solid var(--accent-color); padding-left: 10px; background: var(--gradient-accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: table; text-align: left; }
.pix-sidebar { padding: 15px; border-radius: 12px; position: relative; background: rgba(0, 0, 0, 0.05); text-align: center; width: 100%; border: 2px dashed var(--accent-color); }
.pix-chave { font-size: 0.9rem; font-weight: 600; color: var(--text); word-break: break-all; background: rgba(0,0,0,0.05); padding: 8px; border-radius: 8px; display: block; }
.pix-sidebar img { max-width: 120px; margin-top: 15px; border-radius: 10px; display: block; margin-left: auto; margin-right: auto; }

.stores-sidebar { display: flex; flex-direction: column; gap: 10px; width: 100%; padding: 0 10px; }
.btn-store { display: flex; align-items: center; gap: 8px; background: var(--gradient-accent); color: #fff; text-decoration: none; padding: 8px 12px; border-radius: 10px; transition: transform 0.2s; width: 90%; margin: 0 auto; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.btn-store:hover { transform: scale(1.02); }
.btn-store i { font-size: 1.4rem; width: 25px; }
.store-text { display: flex; flex-direction: column; line-height: 1.1; }
.store-desc { font-size: 0.6rem; opacity: 0.9; }
.store-name { font-size: 0.85rem; font-weight: 700; }

.visitas { background: #000; padding: 8px; border-radius: 6px; text-align: center; font-family: monospace; font-size: 0.8rem; font-weight: bold; background: var(--gradient-accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent; border: 1px solid #111; }

.dev-info { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); margin-top: auto; }
.dev-info img { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--accent-color); }
.dev-text { font-size: 0.65rem; color: var(--text-dim); line-height: 1.2; text-align: left; }
.dev-text b { color: var(--text); font-weight: 700; }

#content-target { padding: 30px; overflow-y: auto; scroll-behavior: smooth; position: relative; }
.main-grid { display: grid; grid-template-columns: 1fr 320px; gap: 30px; }
.widget { background: var(--card); border: 1px solid var(--border); border-radius: 15px; padding: 20px; margin-bottom: 35px; }
.top-item { display: flex; align-items: center; gap: 12px; }

#btnScrollTop { position: fixed; bottom: 120px; right: 30px; width: 45px; height: 45px; border-radius: 50%; background: var(--gradient-accent); color: white; border: none; cursor: pointer; display: none; z-index: 100; }

.player-bar { grid-column: 1 / -1; background: var(--sidebar); border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 40px; }
.play-btn { width: 60px; height: 60px; background: var(--gradient-accent); border: none; border-radius: 50%; color: white; cursor: pointer; font-size: 1.5rem; display: flex; align-items: center; justify-content: center; }

@media (max-width: 992px) {
    body { overflow: auto; height: auto; }
    .app-container { grid-template-columns: 1fr; grid-template-rows: auto auto auto 100px; height: auto; }
    .sidebar { height: auto; border-right: none; }
    .main-grid { grid-template-columns: 1fr; gap: 20px; }
    #content-target { padding: 15px; }
    .player-bar { position: fixed; bottom: 0; left: 0; width: 100%; height: 100px; z-index: 999; }
}

/* --- ESTILO DA BARRA DE ROLAGEM (RESTAURADO) --- */

/* LINHA 105: Configuração Global */
::-webkit-scrollbar {
    width: 6px;  
    height: 6px; 
}

/* LINHA 111: Trilho */
::-webkit-scrollbar-track {
    background: transparent;
}

/* LINHA 116: Pegador (Thumb) Original */
::-webkit-scrollbar-thumb {
    background: rgba(120, 120, 120, 0.2); 
    border-radius: 20px;
    border: 2px solid transparent; 
    background-clip: content-box;
}

/* LINHA 124: Hover Original */
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color, #00ced1); 
    background-clip: content-box;
}

/* --- AJUSTES DE FLUIDEZ --- */
.sidebar {
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(120, 120, 120, 0.3) transparent;
}

#content-target {
    overflow-y: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
}

/* --- ESTILO DO MENU SIDEBAR (RÉPLICA DO ADMIN) --- */

/* Contêiner do Menu */
.sidebar .menu {
    display: flex;
    flex-direction: column;
    padding: 10px 0; /* Espaçamento sutil no topo/base do menu */
}

/* Título da Seção (ex: "CONTEÚDO PRINCIPAL" da imagem) */
.sidebar .menu-title {
    font-size: 0.75rem;          /* Tamanho pequeno */
    font-weight: 800;           /* Bem grosso (negrito forte) */
    text-transform: uppercase;   /* Tudo em maiúsculo */
    color: var(--accent-color); /* Usando a cor de destaque (azul/ciano da imagem) */
    padding: 15px 20px 5px 20px; /* Alinhamento com os itens do menu */
    letter-spacing: 1px;        /* Espaçamento entre as letras */
}

/* Itens do Menu (Link) */
.sidebar .menu a {
    display: flex;
    align-items: center;
    gap: 15px;                  /* Espaço exato entre o ícone e o texto */
    padding: 10px 20px;         /* Espaçamento confortável para o clique */
    text-decoration: none;      /* Remove o sublinhado */
    color: #a1aab3;             /* Cor cinza suave do texto no admin (ajuste se var(--text-dim) for muito diferente) */
    font-weight: normal;        /* REMOVIDO O BOLD - Exatamente como na imagem */
    font-size: 1rem;            /* Tamanho de fonte padrão confortável */
    transition: all 0.2s ease;  /* Transição suave no hover */
    cursor: pointer;
    border-radius: 5px;         /* Leve arredondamento se houver fundo no hover */
    margin: 0 10px;             /* Pequena margem lateral para não encostar na borda da sidebar */
}

/* Ícones do Font Awesome no Menu */
.sidebar .menu a i {
    font-size: 1.15rem;         /* Ícone ligeiramente maior que o texto, mas sem exageros */
    color: #a1aab3;             /* Mesma cor do texto (cinza suave) */
    width: 25px;                /* Largura fixa para alinhar os textos verticalmente */
    text-align: center;         /* Centraliza o ícone na largura fixa */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- EFEITOS DE HOVER E ATIVO --- */

/* Quando o mouse passa por cima (Hover) */
.sidebar .menu a:hover {
    background-color: rgba(255, 255, 255, 0.05); /* Leve fundo branco transparente */
    color: #ffffff;             /* Texto fica branco ao passar o mouse */
}

/* Quando o mouse passa por cima (Ícone também muda) */
.sidebar .menu a:hover i {
    color: #ffffff;             /* Ícone fica branco */
}

/* Item do Menu Ativo (página atual) */
.sidebar .menu a.active {
    background-color: rgba(0, 206, 209, 0.1); /* Fundo sutil com a cor de destaque (ciano transparente) */
    color: #ffffff; /* Texto com a cor de destaque */
    font-weight: 500;           /* Um leve peso para destacar o ativo, mas sem ser bold agressivo */
}

/* Ícone do Item Ativo */
.sidebar .menu a.active i {
    color: #ffffff; /* Ícone com a cor de destaque */
}


