/* --- Importação da Fonte do Google --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400&display=swap');

/* --- Reset e Configurações Globais --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden; /* Garante que a página não role */
    font-family: 'Poppins', sans-serif;
    background-color: #000000;
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
}

/* --- Container Principal --- */
.container-principal {
    position: relative;
    width: 100vw;
    height: 100vh;
}

/* --- Imagem de Fundo com Fade --- */
.imagem-fundo {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%; /* Largura da imagem na tela */
    height: 100%;
    background-image: url('https://wehhbmedici-five.vercel.app/sobre-mim-vgdior.png');
    background-size: cover;
    background-position: center top;
    
    /* A mágica do degradê está aqui */
    -webkit-mask-image: linear-gradient(to left, black 65%, transparent 100%);
    mask-image: linear-gradient(to left, black 65%, transparent 100%);
}

/* --- Menu Principal --- */
.menu-principal {
    position: absolute;
    top: 50%;
    left: 15%; /* Distância da borda esquerda */
    transform: translateY(-50%); /* Centraliza verticalmente */
    z-index: 10;
}

.menu-principal ul {
    list-style: none;
}

.menu-principal li {
    position: relative;
    margin-bottom: 5rem; /* Espaçamento entre os itens */
}

.menu-principal li:last-child {
    margin-bottom: 0;
}

.menu-principal a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 300;
    line-height: 1.4;
    display: inline-block;
    position: relative;
    padding-left: 55px; /* Espaço para a decoração gráfica */
    transition: color 0.3s ease;
}

.menu-principal a:hover {
    color: #cccccc;
    text-decoration: underline;
    text-underline-offset: 8px;
}


/* --- Construção da Decoração Gráfica com Pseudo-elementos --- */

/* 1. A linha vertical longa */
.menu-principal li::before {
    content: '';
    position: absolute;
    left: 12px; /* Alinhado com a parte vertical do "+" */
    top: 0;
    width: 1px;
    height: 100%;
    background-color: #fff;
}

/* 2. A linha horizontal do "+" */
.menu-principal a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.1em; /* Alinhamento vertical com o texto */
    width: 25px;
    height: 1px;
    background-color: #fff;
}

/* 3. A linha vertical do "+" */
.menu-principal a::after {
    content: '';
    position: absolute;
    left: 12px;
    top: 0.65em; /* Ajuste para centralizar com a linha horizontal */
    width: 1px;
    height: 25px;
    background-color: #fff;
}

/* --- Ícones de Redes Sociais --- */
.redes-sociais {
    position: absolute;
    bottom: 40px;
    left: 15%; /* Alinhado com o menu */
    display: flex;
    gap: 1.5rem;
    z-index: 10;
}

.redes-sociais a {
    color: #a0a0a0;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.redes-sociais a:hover {
    color: #ffffff;
    transform: translateY(-3px);
}

/* --- Estilo dos Modais (Adaptado para o novo design) --- */
.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none; justify-content: center; align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.modal.ativo { display: flex; opacity: 1; }

.modal-conteudo {
    background-color: #1a1a1a;
    padding: 2.5rem; border-radius: 4px; width: 90%; max-width: 550px;
    position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid #333;
    transform: scale(0.95); transition: transform 0.4s ease;
}
.modal.ativo .modal-conteudo { transform: scale(1); }

.modal-fechar {
    position: absolute; top: 15px; right: 20px; background: none; border: none;
    font-size: 2rem; color: #777; cursor: pointer; transition: all 0.3s ease;
}
.modal-fechar:hover { color: #fff; transform: rotate(90deg); }

.modal-conteudo h2 { margin-bottom: 1rem; color: #fff; font-weight: 400; }
.modal-conteudo p { margin-bottom: 2rem; line-height: 1.6; color: #ccc; }

/* --- Estilo do Botão WhatsApp no Modal --- */
.btn-whatsapp {
    display: inline-block;
    background-color: #fff;
    color: #000;
    text-decoration: none;
    text-align: center;
    padding: 1rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}

.btn-whatsapp:hover {
    background-color: #ccc;
}


/* --- Responsividade --- */
@media (max-width: 900px) {
    .imagem-fundo {
        width: 80%;
        -webkit-mask-image: linear-gradient(to left, black 40%, transparent 100%);
        mask-image: linear-gradient(to left, black 40%, transparent 100%);
    }
    .menu-principal { left: 10%; }
    .menu-principal a { font-size: 1.3rem; padding-left: 45px; }
    .redes-sociais { left: 10%; }
}

/* --- Responsividade --- */
@media (max-width: 900px) {
    /* (Esta parte continua a mesma) */
    .imagem-fundo {
        width: 80%;
        -webkit-mask-image: linear-gradient(to left, black 40%, transparent 100%);
        mask-image: linear-gradient(to left, black 40%, transparent 100%);
    }
    .menu-principal { left: 10%; }
    .menu-principal a { font-size: 1.3rem; padding-left: 45px; }
    .redes-sociais { left: 10%; }
}

/* 
   SUBSTITUA O BLOCO ANTIGO DE 600px POR ESTE NOVO BLOCO ABAIXO 
*/
@media (max-width: 600px) {
    .container-principal {
        display: flex;
        flex-direction: column;
        justify-content: center; /* Centraliza o conteúdo verticalmente */
        align-items: center;
        gap: 3rem; /* Espaço entre o menu e as redes sociais */
    }

    .imagem-fundo {
        display: none; /* A mágica acontece aqui: a imagem é completamente removida */
    }

    .menu-principal {
        position: relative; /* Remove o posicionamento absoluto */
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        padding: 0 1.5rem;
        text-align: center;
    }

    .menu-principal li {
        display: block; /* Garante que os itens fiquem um abaixo do outro */
        margin: 0 0 2.5rem 0; /* Ajusta a margem para empilhamento vertical */
    }
    
    .menu-principal a { 
        font-size: 1.3rem; 
    }
    
    /* Esta regra continua importante, remove os detalhes gráficos */
    .menu-principal li::before,
    .menu-principal a::before,
    .menu-principal a::after {
        display: none;
    }
    
    /* Esta regra também, remove o espaço extra que era para os gráficos */
    .menu-principal a { 
        padding-left: 0; 
    }
    
    .redes-sociais {
        display: flex; /* Garante que as redes sociais apareçam */
        position: relative; /* Remove o posicionamento absoluto */
        bottom: auto;
        left: auto;
        justify-content: center; /* Centraliza os ícones */
        width: 100%;
    }
}
/* --- Estilos para os Novos Blocos de Informação --- */

.info-bloco {
    margin-top: -0.5rem; /* Ajuste para alinhar com o título */
}

.info-titulo {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.8rem;
}

.info-detalhe {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.info-detalhe i {
    margin-right: 0.75rem;
    width: 20px; /* Garante alinhamento dos ícones */
    text-align: center;
}

.info-vencimento {
    color: #ffc107; /* Amarelo para atenção */
    font-weight: 600;
}

.info-valor {
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.btn-card {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    border: 1px solid #555;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
}

.btn-card:hover {
    background-color: #fff;
    color: #000;
}
/* --- ESTILOS DO DASHBOARD --- */

/* Ajuste no body para permitir rolagem no dashboard */
body.dashboard {
    overflow-y: auto;
    background-color: #0e0e0e; /* Um fundo um pouco mais claro para o painel */
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background-color: #1a1a1a;
    border-bottom: 1px solid #333;
}

.dashboard-header h1 {
    font-weight: 400;
    font-size: 1.5rem;
}

#logout-button {
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.6rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

#logout-button:hover {
    background-color: #444;
}

/* O layout de grade que estava faltando */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.card {
    background-color: #1a1a1a;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #333;
}

.card h2 {
    font-weight: 400;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #444;
    padding-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.card h2 i {
    margin-right: 0.8rem;
    color: #ccc;
    width: 24px; /* Garante alinhamento dos ícones do título */
}

/* Estilos para Links Rápidos (que já estavam no HTML) */
.quick-links {
    list-style: none;
    padding-left: 0;
}
.quick-links li { margin-bottom: 1rem; }
.quick-links li:last-child { margin-bottom: 0; }
.quick-links a {
    color: #fff; text-decoration: none; font-size: 1.1rem;
    transition: color 0.3s ease;
}
.quick-links a:hover { color: #aaa; text-decoration: underline; }

/* --- NOVOS ESTILOS PARA O BLOCO DE REDES SOCIAIS --- */

.social-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.social-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #ccc;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.social-link-item:hover {
    color: #fff;
    background-color: #2c2c2c;
}

.social-link-item i {
    font-size: 2.5rem; /* Ícones grandes e chamativos */
    margin-bottom: 0.5rem;
}

.social-link-item span {
    font-size: 0.8rem;
}

.btn-full-width {
    display: block;
    text-align: center;
    width: 100%;
}
/* --- ESTILOS PARA O BLOCO DE ALIMENTAÇÃO --- */

.ingredient-list {
    list-style: none;
    padding-left: 0;
    margin: 0.5rem 0 1.5rem 0;
    color: #ccc;
}

.ingredient-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.ingredient-list li::before {
    content: '✓'; /* Adiciona um ícone de check */
    color: #28a745; /* Verde */
    position: absolute;
    left: 0;
    font-weight: bold;
}
/* --- ESTILOS DA PÁGINA DE AGENDA --- */

.btn-back {
    background: none;
    border: 1px solid #555;
    color: #fff;
    border-radius: 4px;
    padding: 0.6rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background-color: #fff;
    color: #000;
}

.btn-back i {
    margin-right: 0.5rem;
}

.agenda-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.agenda-container h1 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: #ccc;
}

.agenda-date-header {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #444;
}

.agenda-list {
    list-style: none;
    padding-left: 1.5rem;
    position: relative;
}

/* A linha do tempo vertical */
.agenda-list::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background-color: #333;
}

.agenda-item {
    position: relative;
    padding-bottom: 2rem;
    padding-left: 1.5rem;
}

/* O círculo em cada evento na linha do tempo */
.agenda-item::before {
    content: '';
    position: absolute;
    left: -2.2rem; /* (padding-left da lista + padding-left do item) - (metade da largura do círculo) */
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #333;
}

.event-time {
    font-weight: 600;
    color: #ccc;
    margin-bottom: 0.25rem;
}

.event-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.event-details {
    font-size: 1rem;
    color: #aaa;
}
/* --- ESTILOS PARA FILTROS E RESULTADOS DA AGENDA --- */
.agenda-filters {
    background-color: #1a1a1a;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid #333;
}
#find-time-form {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.filter-group label {
    font-size: 0.9rem;
    color: #ccc;
}
.filter-group select, .filter-group input {
    background-color: #2c2c2c;
    border: 1px solid #444;
    color: #fff;
    padding: 0.6rem;
    border-radius: 4px;
    font-size: 1rem;
}
#find-time-form button {
    background-color: #fff; color: #000; padding: 0.7rem 1.5rem;
    border: none; border-radius: 4px; font-weight: 600; cursor: pointer;
    transition: background-color 0.3s ease; margin-top: 1.5rem;
}
#find-time-form button:hover { background-color: #ccc; }

#results-container h2 { margin-bottom: 1rem; font-weight: 400; }
.results-list { list-style: none; padding: 0; }
.results-list li {
    background-color: #1a1a1a; padding: 1rem; border-radius: 4px;
    margin-bottom: 0.5rem; border-left: 4px solid #28a745; /* Verde para indicar "livre" */
}
.loading-message, .error-message, .no-results-message {
    text-align: center; padding: 2rem; font-size: 1.1rem; color: #ccc;
}
.error-message { color: #ff6b6b; }
