* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

img {
    max-width: 100%;
    height: auto;
}



/* Novo Design Moderno com tema de Saúde */
body {
    margin: 0;
    font-family: "Poppins", Arial, sans-serif;
    background: #f1f8f5;
    color: #2e4a3d;
}


/* ===== HEADER MODERNO ===== */

header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: linear-gradient(120deg, #43a047, #66bb6a);
    padding: 18px 30px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;

    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    header::after {
    content: '';
    width: 80%;
    height: 3px;
    margin-top: 5px;
    border-radius: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
}

}

/* Logo */
header .logo {
    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 34px;
    font-weight: 800;
    letter-spacing: 1px;
    color: white;
}

header .logo-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;

    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(6px);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

/* Navegação */
header nav {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    justify-content: center;
}

header nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;

    padding: 8px 16px;
    border-radius: 20px;

    transition: background 0.3s, transform 0.2s;
}

header nav a:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}





nav {
    margin-top: 10px;
}

nav a {
    margin: 0 15px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: opacity .3s;
}

nav a:hover {
    opacity: 0.7;
}




body.dark {
    background: #1e1e1e;
    color: #f1f1f1;
}



/* Botão alternar modo */
.modo-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #43a047;
    color: white;
    padding: 12px 16px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 999;
    transition: background .3s;
}

.modo-btn:hover {
    background: #2e7d32;
}


.modo-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #43a047;
    color: white;
    padding: 12px 16px;
    border-radius: 25px;
    cursor: pointer;
    z-index: 999;
}


.hero {
    text-align: center;
    padding: 60px 20px;
    background: url('https://images.unsplash.com/photo-1530023367847-a683933f4171?auto=format&fit=crop&w=1200&q=60') center/cover;
    color: white;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    padding: 40px;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    width: 260px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform .3s, box-shadow .3s;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.content {
    max-width: 900px;
    margin: auto;
    padding: 20px;
    line-height: 1.7;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

input, textarea {
    padding: 12px;
    border: 1px solid #b7cfc0;
    border-radius: 7px;
    font-size: 16px;
}

button {
    background: #43a047;
    color: white;
    padding: 14px;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    transition: background .3s;
}

button:hover {
    background: #2e7d32;
}

footer {
    text-align: center;
    padding: 25px;
    background: #43a047;
    color: white;
    margin-top: 50px;
}

/* Cards de hábitos */
.cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    margin-bottom: 40px;
}

.habito-card {
    background: white;
    width: 240px;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform .3s, box-shadow .3s;
}

.habito-card:hover {
    transform: scale(1.07);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.habito-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
    border-radius: 50%;
}

/* Responsivo */
@media (max-width: 650px) {
    nav {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .hero {
        padding: 40px 10px;
    }

    .card {
        width: 90%;
    }
}


/* ===== MODO ESCURO ===== */
body.dark {
    background: #1e1e1e;
    color: #f1f1f1;
}

body.dark header {
    background: linear-gradient(120deg, #1b5e20, #2e7d32);
}
body.dark header nav a:hover {
    background: rgba(255,255,255,0.15);
}
body.dark footer {
    background: #2e7d32;
}

body.dark .card,
body.dark .habito-card,
body.dark .content,
body.dark form,
body.dark .feedback-box {
    background: #2c2c2c;
    color: #f1f1f1;
}

body.dark input,
body.dark textarea {
    background: #3a3a3a;
    color: white;
    border: 1px solid #666;
}


/* ===== CORREÇÃO INFO-GRID / INFO-BOX NO MODO ESCURO ===== */

body.dark .info-grid {
    background: transparent;
}

body.dark .info-box {
    background: #2c2c2c;      /* fundo escuro */
    color: #f1f1f1;           /* texto claro */
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

body.dark .info-box h3 {
    color: #a5d6a7;           /* verde suave para títulos */
}

body.dark .info-box p {
    color: #e0e0e0;
}


body.dark .info-section h2 {
    color: #c8e6c9;
}

/* ===== CORREÇÃO HIGHLIGHT-SECTION NO MODO ESCURO ===== */

body.dark .highlight-section {
    background: #1f2a24; /* fundo verde escuro */
}

body.dark .highlight-section h2 {
    color: #c8e6c9;
}

body.dark .highlight-item {
    background: #2c2c2c;
    color: #f1f1f1;
    box-shadow: 0 4px 14px rgba(0,0,0,0.6);
}

body.dark .highlight-item p {
    color: #e0e0e0;
}

body.dark .highlight-item strong {
    color: #a5d6a7;
}

body.dark .highlight-item img {
    filter: brightness(0.85) contrast(1.1);
}

/* ===== MENU MOBILE ===== */

.menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: white;
}

@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }

    header nav {
        display: none;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        background: rgba(0,0,0,0.15);
        padding: 15px;
        border-radius: 15px;
    }

    header nav.ativo {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
}


@media (max-width: 768px) {

    .hero {
        padding: 70px 20px;
        text-align: center;
    }

    .hero h2 {
        font-size: 26px;
    }

    .hero p {
        font-size: 16px;
    }

    .cards,
    .cards-container,
    .info-grid,
    .receita-grid {
        grid-template-columns: 1fr !important;
        display: grid;
    }

    .card,
    .habito-card,
    .info-box,
    .receita-card,
    .highlight-item {
        width: 100%;
    }

    .highlight-item {
        flex-direction: column;
        text-align: center;
    }

    .highlight-item img {
        width: 100%;
        height: auto;
    }
}


@media (max-width: 768px) {
    form {
        padding: 20px;
    }

    input,
    textarea,
    button {
        font-size: 16px;
    }

    textarea {
        min-height: 120px;
    }
}


@media (max-width: 768px) {
    .modo-btn {
        bottom: 15px;
        right: 15px;
        padding: 10px 14px;
        font-size: 13px;
    }
}


@media (max-width: 768px) {
    h1 { font-size: 26px; }
    h2 { font-size: 22px; }
    h3 { font-size: 18px; }
    p  { font-size: 15px; line-height: 1.6; }
}

/* ===== RECEITAS — MODO ESCURO ===== */

body.dark .receita-card {
    background: #2c2c2c;
    color: #f1f1f1;
}

body.dark .receita-card h2 {
    color: #a5d6a7;
}

body.dark .receita-card p {
    color: #e0e0e0;
}

body.dark table {
    background: #1e1e1e;
    color: #f1f1f1;
}

body.dark th {
    background: #2e7d32;
    color: white;
}

body.dark td {
    background: #2c2c2c;
    color: #f1f1f1;
    border-color: #555;
}



