/* style.css (VERSÃO REFINADA - NEUMÓRFICA) */

/* =============================================== */
/* ===== GERAL, RESET E VARIÁVEIS ( :root ) ====== */
/* =============================================== */

/* Reset Universal (Resolve o espaço no topo e padroniza o box-model) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores */
    --primary-purple-light: #C2B0E7;
    --primary-purple-dark: #6C42F5;
    --secondary-pink: #F5B0F8;

    /* Cores Neumórficas */
    --bg-main: #ebecf0; /* Cor de fundo que você escolheu */
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --text-placeholder: #a0a0a0;
    --border-color: #d1d9e6;

    /* Sombras Neumórficas (a chave do design) */
    --shadow-neumorphic: 8px 8px 16px rgba(163, 177, 198, 0.6), -8px -8px 16px rgba(255, 255, 255, 1);
    --shadow-inset: inset 3px 3px 6px rgba(163, 177, 198, 0.6), inset -3px -3px 6px rgba(255, 255, 255, 1);
    
    /* Fontes */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-main);
    min-height: 100vh;
    padding-bottom: 80px; /* Espaço para a navbar inferior */
    overflow-x: hidden; /* Impede o site de arrastar para o lado */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--primary-purple-dark);
    text-align: center;
    margin-bottom: 20px;
}

h1 { font-size: 1.8rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.3rem; }

.container {
    background-color: var(--bg-main);
    border-radius: 20px;
    box-shadow: var(--shadow-neumorphic);
    padding: 40px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.logo {
    margin-bottom: 10px;
}
.logo img {
    max-width: 180px;
    height: auto;
}

/* =============================================== */
/* =========== HEADER E NAVBAR =================== */
/* =============================================== */

.user-header {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: var(--bg-main);
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: var(--shadow-neumorphic);
    z-index: 101;
}

.credit-display { font-weight: 600; color: var(--primary-purple-dark); }
.credit-display i { margin-right: 5px; color: var(--secondary-pink); }
.logout-link { color: #888; text-decoration: none; font-weight: 600; transition: color 0.3s ease; }
.logout-link:hover { color: #dc3545; }

.bottom-navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 65px;
    z-index: 100;
}
.nav-item { list-style: none; }
.nav-link { display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; color: var(--text-placeholder); font-size: 0.75em; font-weight: 600; padding: 5px 10px; border-radius: 10px; transition: all 0.3s ease; }
.nav-link i { font-size: 1.5em; margin-bottom: 4px; }
.nav-item.active .nav-link { color: var(--primary-purple-dark); transform: translateY(-3px); }
.nav-item:not(.active) .nav-link:hover { color: var(--primary-purple-dark); }

/* =============================================== */
/* =========== FORMULÁRIOS ======================= */
/* =============================================== */

.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; font-weight: 600; margin-bottom: 5px; color: var(--text-dark); }
.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 1em;
    border-radius: 10px;
    border: none; /* Remove a borda padrão */
    background-color: var(--bg-main);
    box-shadow: var(--shadow-inset); /* Efeito "pressionado" */
    color: var(--text-dark);
    transition: all 0.3s ease;
}
.form-control:focus {
    outline: none;
    box-shadow: var(--shadow-inset), 0 0 0 3px var(--primary-purple-light);
}
.error-message { color: #dc3545; font-size: 0.9em; margin-top: 5px; display: block; }
.form-link { margin-top: 20px; font-size: 0.95em; }
.form-link a { color: var(--primary-purple-dark); font-weight: 600; text-decoration: none; transition: color 0.3s ease; }
.form-link a:hover { text-decoration: underline; }

/* =============================================== */
/* =========== BOTÕES ============================ */
/* =============================================== */

.submit-button {
    width: 100%;
    padding: 15px 30px;
    background: var(--primary-purple-dark);
    color: var(--text-light);
    border: none;
    border-radius: 15px;
    font-family: var(--font-heading);
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-neumorphic);
}
.submit-button:hover {
    background: #5a2eed; /* Um pouco mais claro no hover */
}
.submit-button:active {
    box-shadow: var(--shadow-inset); /* Efeito de pressionar o botão */
    transform: translateY(2px);
}

/* =============================================== */
/* =========== PÁGINA DE PLANOS ================== */
/* =============================================== */

.plans-container { display: flex; justify-content: center; align-items: stretch; gap: 30px; flex-wrap: wrap; margin-top: 40px; }
.plan-card {
    background-color: var(--bg-main);
    border-radius: 20px;
    box-shadow: var(--shadow-neumorphic);
    width: 350px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}
.plan-card:hover { transform: translateY(-5px); }
.plan-card.highlighted { transform: scale(1.05); }
.plan-features {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
    flex-grow: 1; /* Faz a lista crescer para alinhar os botões */
}
.plan-features li { margin-bottom: 10px; color: #555; }
.plan-features li i { color: var(--primary-purple-dark); margin-right: 10px; }
.plan-card .submit-button { text-decoration: none; display: inline-block; }
.popular-badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--primary-purple-dark), var(--secondary-pink)); color: var(--text-light); padding: 5px 15px; border-radius: 15px; font-size: 0.8em; font-weight: 700; }
.plan-price { font-size: 2.5em; font-weight: 700; margin-bottom: 20px; }
.plan-price span { font-size: 0.5em; font-weight: 400; color: #888; }

/* =============================================== */
/* =========== RESPONSIVIDADE ==================== */
/* =============================================== */

@media (max-width: 600px) {
    body {
        padding: 10px;
        padding-bottom: 80px; /* Mantém espaço para navbar */
    }

    .container {
        padding: 20px;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }

    .user-header {
        padding: 5px 10px;
        gap: 10px;
    }
    .credit-display {
        font-size: 0.9em;
    }
}

/* Adicionar ao final de style.css */

/* --- Estilos para a Página de Perfil --- */

.profile-section {
    background-color: var(--text-light);
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: var(--shadow-light);
    text-align: left;
    border: 1px solid var(--border-color);
}

.profile-section h3 {
    text-align: left;
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.plan-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-medium);
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
    flex-wrap: wrap; /* Permite que os itens quebrem a linha em telas pequenas */
    gap: 15px; /* Adiciona um espaço entre os itens quando quebram a linha */
}

.profile-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Layout responsivo */
    gap: 15px;
    margin-bottom: 20px;
}

.plan-info p {
    margin: 0;
    font-size: 1.1em;
}

.info-box {
    background-color: var(--bg-medium);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow-inset);
}


.info-box span {
    font-size: 0.9em;
    color: #555;
    display: block;
    margin-bottom: 5px;
}

.info-box strong {
    font-size: 1.2em;
    color: var(--primary-purple-dark);
}

.plan-info strong {
    color: var(--primary-purple-dark);
    font-size: 1.2em;
}

.plan-info .submit-button {
    width: auto; /* Botão não ocupa a largura toda */
    padding: 10px 20px;
    font-size: 0.9em;
    margin-top: 0;
}

/* Estilos para mensagens de feedback (sucesso/erro) */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-weight: 600;
}

.alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}