/* ================================================================================================================================
    1. VARIÁVEIS GLOBAIS (:root)
   ================================================================================================================================ */
:root {
    --branco-leve: #fff7ed;
    --cinza-claro: #d4d4d4;
    --preto-fosco: #404040;
    --bg-color: var(--preto-fosco);

    --color-primary-light: #1976d2;
    --color-cinza-light: #6e6e73;

    --color-ligth-blue: DodgerBlue;
    --color-medium-blue: MediumBlue;
    --color-dark-blue: #3a00f9fc;

    --color-fund-escuro: #1a1a1a;
    --color-fundo-orange: #edc28c;
    --color-ligth-orange: #ff8c00;
    --color-medium-orange: #e9692c;
    --color-dark-orange: #e08413;

    --destaque-amarelo-escuro: #e1712b;
    --destaque-amarelo-claro: #ffb93b;

    --color-fundo-branco: var(--color-fundo-orange);
    --color-fundo-tela-util: var(--color-fundo-orange);

    --color-fundo-01: var(--color-ligth-orange);
    --color-fundo-02: var(--color-medium-orange);
    --color-fundo-03: var(--color-dark-orange);

    --padding-input-crud-android: 3px;

    font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;

    --color-text-white: #f8fafc;
    --color-text-black: #0f0f0f;
    --color-text-light: #ffffff;
    --x1: #061412;
    --x2: #121212;
    --x3: #f3f4f6;

    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;

    --height-container-login: 170px;
    --height-container-tela-util_android: 550px;
    --height-container-tela-util_web: 700px;

    --height-title-bar: 65px; /* Adotado os 65px do arquivo 2 */
    --screen-max-width: 1200px;
}

/* ================================================================================================================================
    2. RESETS E REGRAS GERAIS BASE
   ================================================================================================================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.html_web {
    background-color: var(--preto-fosco);
    width: 100%;
    height: 100%;
}

.html_android {
    background-color: var(--destaque-amarelo-claro);
    width: 100%;
    height: 100%;
}

body {
    color: var(--color-text-black);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

.row {
    display: flex;
    justify-content: center;
}

/* ================================================================================================================================
    3. ELEMENTOS DE TEXTO E LINKS
   ================================================================================================================================ */
h1 {
    font-size: 2.2rem;
    color: var(--color-text-white);
    margin-bottom: 10px;
    text-align: center;
}

p {
    color: var(--color-text-white);
    line-height: 1.6;
    margin-bottom: 15px;
}

span.amarelo {
    color: var(--destaque-amarelo-escuro);
    font-weight: bold;
}

span.preto {
    color: #000000;
    font-weight: bold;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    color: #535bf2;
}

.p-destaque-amarelo {
    color: var(--destaque-amarelo-escuro);
}

.p-destaque-preto {
    color: var(--color-text-black);
}

.p-destaque-branco {
    color: var(--color-text-light);
}

.p-destaque-vermelho {
    color: red;
    font-style: italic;
    font-weight: bold;
}

.fundo-destaque-amarelo {
    color: var(--destaque-amarelo-claro);
}

/* ================================================================================================================================
    4. ENTRADAS E BOTÕES (INPUTS & BUTTONS)
   ================================================================================================================================ */
button {
    all: unset;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.25s ease;
}

button:hover {
    border-color: #396cd8;
}

button:active {
    border-color: #396cd8;
    background-color: #e8e8e8;
}

input {
    border-radius: 8px;
    border: 1px solid transparent;
    padding: 0.6em 1.2em;
    font-size: 1em;
    font-weight: 500;
    font-family: inherit;
    color: #0f0f0f;
    background-color: #ffffff;
    transition: border-color 0.25s;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
    outline: none;
}

/* ================================================================================================================================
    5. ESTRUTURA GLOBAL: HEADER, FOOTER E NAVEGAÇÃO
   ================================================================================================================================ */
main {
    max-width: var(--screen-max-width);
    margin: 0 auto; /* Centraliza os blocos horizontalmente */
}

header {
    background-color: var(--destaque-amarelo-escuro);
    color: var(--color-text-black);
    max-width: var(--screen-max-width);
    width: 100%;
    margin: 0 auto;
    height: var(--height-title-bar);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

footer {
    background-color: var(--destaque-amarelo-escuro);
    color: var(--color-text-black);
    max-width: var(--screen-max-width);
    width: 100%;
    margin: 0 auto;
    height: var(--height-title-bar);
    padding: 20px 20px;
}

.footer_web {
    background-color: var(--color-fund-escuro);
}

.title-bar {
    background-color: var(--color-fundo-03);
    height: var(--height-title-bar);
    padding: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.title-screen_android {
    background-color: var(--color-fundo-01);
    padding-top: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--height-title-bar);
    width: 100%;
}

.title-screen_web {
    background-color: var(--destaque-amarelo-escuro);
    padding-top: 3px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--height-title-bar);
    width: 100%;
}

/* Sistema de alinhamento de blocos do Header */
.space-left,
.space-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.space-left {
    justify-content: flex-start;
}

.space-right {
    justify-content: flex-end;
}

.space-center {
    flex: 2;
    text-align: center;
}

.title-screen_web .space-left img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 24px;
    list-style: none;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
    padding: 8px 0;
}

.logo-web {
    background-color: var(--color-fundo-tela-util);
    width: auto;
}

.logo-abelha {
    background-color: white;
    margin-right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
}

/* ================================================================================================================================
    6. CONTEÚDO PRINCIPAL E GRIDS
   ================================================================================================================================ */
.container-tela-util_site {
    flex: 1;
    /*max-width: var(--screen-max-width);*/
    width: var(--screen-max-width);
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
}

.container-tela-util_web {
    background-color: var(--destaque-amarelo-claro);
    padding: 3px;
    border: 2px solid black;
    height: var(--height-container-tela-util_web);
    width: var(--screen-max-width);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.container-tela-util_android {
    background-color: var(--destaque-amarelo-claro);
    padding: 3px;
    border: 2px solid black;
    height: var(--height-container-tela-util_android);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-section {
    display: none;
}

.page-section.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-screen_web {
    text-align: center;
    padding: 2rem;
    margin: 0 auto;
}

.text-screen_web h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    align-items: stretch;
}

/* Cards de Funcionalidade e Preço */
.feat-card {
    background-color: var(--destaque-amarelo-claro);
    padding: 2rem;
    border-radius: 5px;
    border: 1px solid var(--border);
}

.feat-card i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 1rem;
}

.feat-card h3 {
    margin-bottom: 0.5rem;
}

.feat-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.price-card {
    background-color: var(--destaque-amarelo-claro);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

.features-list {
    list-style: none;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.features-list li {
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.features-list li::before {
    content: "✓ ";
    color: var(--accent);
    font-weight: bold;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 1.5rem 0;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: normal;
}

.price-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.15);
}

.button-voltar-web {
    background-color: var(--destaque-amarelo-claro);
    /*color: var(--destaque-amarelo-escuro);*/
    color: var(--color-text-black);
    margin: 8px;
    width: 60px;
}

/* ================================================================================================================================
    8. TELAS DE LOGIN
   ================================================================================================================================ */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 50px;
    width: 95%;
    max-width: 400px;
}

.login-container-input-email-and-senha {
    background-color: var(--color-fundo-02);
    color: white;
    padding: 10px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    width: 100%;
    height: var(--height-container-login);
}

.login-container-input-email-and-senha-web {
    background-color: var(--color-fundo-02);
    color: white;
    padding: 10px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    width: 100%;
    height: 210px;
}

.login-container-input-email-and-senha input {
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    width: 320px;
}

.login-container-buttons {
    background-color: var(--color-fundo-02);
    color: white;
    margin-top: 10px;
    padding: 10px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: var(--height-container-login);
}

.login-container-buttons button {
    background-color: var(--color-fundo-01);
    margin: 8px;
}

.button-login-web {
    background-color: var(--destaque-amarelo-claro);
    color: var(--color-text-black);
    padding-top: 5px;
    margin: 8px;
    width: 135px;
}

.signup-container-input-data {
    background-color: var(--color-fundo-02);
    color: white;
    padding: 10px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    max-width: 400px;
    width: 100%;
}

.signup-container-input-data input {
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 320px;
}

/* ================================================================================================================================
    9. TELA DE MENSAGENS E ERROS (ANDROID)
   ================================================================================================================================ */
.title-screen-msg-erro-android {
    background-color: var(--color-fundo-01);
    color: red;
    display: flex;
    justify-content: center;
    align-items: center;
    height: var(--height-title-bar);
    width: 100%;
}

.title-screen-msg-info-android {
    background-color: var(--color-fundo-01);
    color: blue;
    display: flex;
    justify-content: center;
    align-items: center;
    height: var(--height-title-bar);
    width: 100%;
}

.container-msg-erro-android,
.container-msg-info-android {
    background-color: var(--color-fundo-tela-util);
    padding: 3px;
    border: 2px solid black;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: var(--height-container-tela-util_android);
}

.container-msg-erro-android-data {
    background-color: var(--color-fundo-02);
    color: white;
    padding: 10px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    max-width: 400px;
    width: 100%;
    height: 350px;
}

.container-msg-erro-android-buttons {
    background-color: var(--color-fundo-02);
    color: white;
    margin-top: 10px;
    padding: 10px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 80px;
}

.container-msg-erro-android-buttons button {
    background-color: var(--color-fundo-01);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ================================================================================================================================
    10. COMPONENTES DE LISTAS (RECYCLER VIEW / TABELAS)
   ================================================================================================================================ */
.container-recycler-consumer-android {
    background-color: var(--color-fundo-02);
    text-align: left;
    max-width: 600px;
    width: 100%;
    max-height: 500px;
    height: calc(var(--height-container-tela-util_android) - 50px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.container-recycler-consumer-android table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #eaeaea;
    padding: 5px;
    text-align: left;
}

td {
    padding: 5px;
    border-bottom: 1px solid #ddd;
}

/* ================================================================================================================================
    11. RESPONSIVIDADE (MEDIA QUERIES)
   ================================================================================================================================ */

/* --- Mobile / Telas pequenas (Até 768px) --- */
@media (max-width: 768px) {
    .header-container {
        height: auto;
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }

    .nav-menu {
        width: 100%;
        justify-content: center;
        gap: 20px;
    }

    .btn-login {
        width: 100%;
        text-align: center;
    }

    h1 {
        font-size: 1.8rem;
    }
}

/* --- Tablets (Mínimo de 600px) --- */
@media (min-width: 600px) {
    .container-email-login,
    .login-container-buttons {
        width: 50%;
        max-width: 500px;
    }
}

/* --- Desktops (Mínimo de 900px) --- */
@media (min-width: 900px) {
    .container-email-login,
    .login-container-buttons {
        width: 30%;
        max-width: 800px;
    }
}
