/* ==========================================================================
   ESTILO GERAL ENGAJAÊ - VERSÃO RESTAURADA
   ========================================================================== */

:root {
    /* Cores fiéis à imagem de referência */
    --roxo-engajae: #7B3FE4; /* Roxo vibrante da logo */
    --amarelo-engajae: #F9E264; /* Amarelo ouro dos detalhes */
    --turquesa-engajae: #71D9EB; /* Turquesa suave */
    
    /* Cores de suporte */
    --branco: #FFFFFF;
    --cinza-fundo: #F0F2F5; /* Cinza bem clarinho para o fundo */
    --texto-escuro: #2D3436;
    --texto-suave: #636E72;
    --borda: #E2E8F0;
    
    /* Sombras e Bordas */
    --sombras-cards: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-cards: 12px;
}

/* Reset Básico */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif; /* Fonte moderna e limpa */
    background-color: var(--cinza-fundo);
    color: var(--texto-escuro);
    overflow-x: hidden;
}

/* ==========================================================================
   ESTRUTURA DE LAYOUT (CORREÇÃO DE SOBREPOSIÇÃO)
   ========================================================================== */
.wrapper {
    display: flex; /* Cria duas colunas: Sidebar | Conteúdo */
    width: 100%;
}

/* Sidebar Fixa */
.sidebar {
    width: 260px; /* Largura do menu */
    height: 100vh; /* Altura total da tela */
    background-color: var(--roxo-engajae);
    position: fixed; /* Fixa na esquerda */
    left: 0;
    top: 0;
    color: var(--branco);
    padding: 30px 15px;
    z-index: 1000; /* Garante que fique por cima de tudo */
    display: flex;
    flex-direction: column;
}

/* Conteúdo Principal (O conserto está aqui) */
.main-content {
    flex: 1; /* Ocupa o resto do espaço */
    margin-left: 260px; /* ABRE ESPAÇO EXATO PARA A SIDEBAR */
    padding: 40px;
    width: calc(100% - 260px); /* Garante que não estoure */
    min-height: 100vh;
}

/* ==========================================================================
   VISUAL DO MENU (SIDEBAR)
   ========================================================================== */
.sidebar-logo img {
    max-width: 130px;
    margin-bottom: 20px;
}

.sidebar-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--amarelo-engajae);
    opacity: 0.8;
    margin-bottom: 25px;
    text-align: center;
}

.sidebar-menu { list-style: none; }
.sidebar-menu li { margin-bottom: 10px; }

.sidebar-menu a {
    color: var(--branco);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.sidebar-menu a i {
    width: 25px;
    font-size: 1.1rem;
    margin-right: 10px;
    opacity: 0.7;
}

/* Efeito Hover e Ativo - Restaurado da imagem anterior */
.sidebar-menu a:hover,
.sidebar-menu a.active {
    background-color: var(--amarelo-engajae); /* Amarelo no fundo */
    color: var(--roxo-engajae); /* Roxo no texto */
    font-weight: bold;
}

.sidebar-menu a:hover i,
.sidebar-menu a.active i {
    opacity: 1;
}

/* Rodapé do Usuário na Sidebar */
.user-footer {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: auto; /* Empurra para o final */
    font-size: 0.85rem;
}

.logout-link {
    color: var(--amarelo-engajae) !important;
    font-weight: bold;
}

/* ==========================================================================
   CARDS E COMPONENTES (RESTAURADOS)
   ========================================================================== */
.card {
    background: var(--branco);
    border-radius: var(--radius-cards);
    padding: 25px;
    box-shadow: var(--sombras-cards);
    border: 1px solid var(--borda);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-3px);
}

.card h3 {
    font-size: 1rem;
    color: var(--texto-escuro);
    margin-bottom: 10px;
}

.btn-engajae {
    background-color: var(--roxo-engajae);
    color: var(--branco);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.btn-engajae:hover {
    background-color: #622bc7; /* Roxo mais escuro */
}

/* Responsividade Mobile - Opcional, mas recomendado */
@media (max-width: 992px) {
    .wrapper { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: static; padding: 15px; }
    .main-content { margin-left: 0; width: 100%; padding: 20px; }
    .sidebar-logo, .sidebar-label, .user-footer span { display: none; }
    .sidebar-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
}

/* ==========================================================================
   NOVOS ESTILOS PARA O DASHBOARD DO CLIENTE
   ========================================================================== */

/* Grade responsiva para os cards */
.client-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* Estilo Base do Card de Atalho */
.hub-card {
    background: var(--branco);
    border-radius: var(--radius-cards);
    padding: 30px;
    box-shadow: var(--sombras-cards);
    border: 1px solid var(--borda);
    text-align: center;
    text-decoration: none; /* Remove sublinhado do link */
    color: var(--texto-escuro);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Efeito de Hover (Levantar o card) */
.hub-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
    border-color: var(--turquesa-engajae);
}

/* Ícone grande dentro do card */
.hub-card i {
    font-size: 3rem;
    color: var(--roxo-engajae);
    margin-bottom: 20px;
    opacity: 0.9;
}

/* Título do Card */
.hub-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--roxo-engajae);
}

/* Descrição curta do Card */
.hub-card p {
    font-size: 0.9rem;
    color: var(--texto-suave);
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Contador (KPI) no canto do card, se houver (ex: posts pendentes) */
.hub-card .kpi-counter {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--amarelo-engajae);
    color: var(--roxo-engajae);
    font-weight: 800;
    font-size: 1rem;
    padding: 5px 12px;
    border-radius: 20px;
}

/* Barra de Destaque / Alerta */
.alert-bar {
    border-radius: var(--radius-cards);
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    margin-bottom: 10px;
}

.alert-bar.pending {
    background-color: #fffbef; /* Amarelo clarinho */
    border: 1px solid var(--amarelo-engajae);
    color: #744210; /* Texto escuro dourado */
}

.alert-bar.done {
    background-color: #f0fff4; /* Verde clarinho */
    border: 1px solid #c3e6cb;
    color: #155724;
}

/* ==========================================================================
   ESTILO PARA O RECIBO
   ========================================================================== */

.btn-recibo-premium {
    background: #f0fdf4;
    color: #16a34a;
    padding: 6px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.7rem;
    border: 1px solid #bbf7d0;
    transition: 0.3s;
}
.btn-recibo-premium:hover {
    background: #16a34a;
    color: #fff;
}