* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 1. O body agora só define a fonte e o fundo base (que será coberto) */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ebebeb; /* Cor de fundo do conteúdo principal */
    min-height: 100vh;
    /* As propriedades de centralização (display:flex, padding, etc.) foram removidas */
}

/* 2. O container agora ocupa a tela toda, sem parecer um cartão */
.dashboard-container {
    background: #ebebeb;
    width: 100%;
    /* Removido max-width, border-radius e box-shadow para o efeito fullscreen */
    max-width: none;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #002d72 0%, #002d72 100%);
    color: #ebebeb;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 600;
}

.logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.menu-btn {
    background: none;
    border: none;
    color: #ebebeb;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

.content {
    padding: 40px 30px;
    /* Para centralizar o conteúdo dentro da página fullscreen, se necessário */
    max-width: 800px;
    margin: 0 auto;
}

.site-title {
    font-size: 36px;
    font-weight: 700;
    color: #122344;
    margin-bottom: 40px;
    text-align: center;
}

.site-description {
    font-size: 16px;
    color: #4a5568;
    margin-bottom: 30px;
    text-align: center;
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.input-card {
    background: #ebebeb;
    border-radius: 15px;
    padding: 25px 20px;
    border: 2px solid #ebebeb;
    transition: all 0.3s ease;
    position: relative;
}

.input-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #002d72;
}

.input-label {
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    display: block;
}

.input-description {
    display: block;
    font-size: 12px;
    color: #718096;
    margin-bottom: 12px;
    font-style: italic;
}

.input-field {
    width: 100%;
    font-size: 24px;
    font-weight: 600;
    color: #122344;
    background: transparent;
    border: none;
    outline: none;
    padding: 10px 0;
    border-bottom: 2px solid #ebebeb;
    transition: border-color 0.3s ease;
}

.input-field:focus {
    border-bottom-color: #002d72;
}

.input-unit {
    position: absolute;
    right: 20px;
    bottom: 20px;
    font-size: 14px;
    color: #718096;
}

.input-field-with-buttons {
    width: 100%;
    margin-bottom: 15px;
}

.unit-buttons-container {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 10px;
}

.unit-button {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: normal;
    min-width: 60px;
}

.unit-button:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    transform: translateY(-1px);
}

.unit-button.active {
    background: #3ca95e;
    color: white;
    border-color: #3ca95e;
    box-shadow: 0 4px 12px rgba(60, 169, 94, 0.3);
}

.unit-button.active:hover {
    background: #38a169;
    border-color: #38a169;
}

.result-section {
    margin-bottom: 40px;
}

.result-title {
    font-size: 24px;
    font-weight: 600;
    color: #122344;
    margin-bottom: 15px;
}

.result-card {
    background: #ebebeb;
    border-radius: 15px;
    padding: 25px 20px;
    border: 2px solid #ebebeb;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-content {
    font-size: 18px;
    color: #4a5568;
    text-align: center;
}

.action-button {
    background: linear-gradient(135deg, #3ca95e 0%, #3ca95e 100%);
    color: #ebebeb;
    border: none;
    border-radius: 15px;
    padding: 20px 40px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(72, 187, 120, 0.3);
}

.action-button:active {
    transform: translateY(0);
}

.action-button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

@media (max-width: 768px) {
    /* 3. Nos estilos de celular, removemos a margem do container */
    .dashboard-container {
        margin: 0;
        border-radius: 0;
    }

    .header {
        padding: 20px 25px;
    }

    .logo {
        font-size: 20px;
    }

    .logo-img {
        height: 32px;
    }

    .content {
        padding: 30px 25px;
    }

    .site-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .input-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .input-card {
        padding: 20px 15px;
    }

    .input-field {
        font-size: 20px;
    }

    .input-field-with-buttons {
        width: 100%;
    }

    .unit-buttons-container {
        gap: 6px;
    }

    .unit-button {
        font-size: 11px;
        padding: 6px 12px;
        min-width: 50px;
    }

    .action-button {
        padding: 18px 30px;
        font-size: 16px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-card {
    animation: fadeIn 0.6s ease forwards;
}

.input-card:nth-child(1) { animation-delay: 0.1s; }
.input-card:nth-child(2) { animation-delay: 0.2s; }
.input-card:nth-child(3) { animation-delay: 0.3s; }

/* Estilos da Tela de Splash Personalizada */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #002d72; /* Azul escuro do cabeçalho */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Garante que fique por cima de tudo */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.splash-logo {
    width: 80%;
    max-width: 250px;
}

/* Classe que vamos adicionar com JavaScript para esconder a splash screen */
.splash-screen.hidden {
    opacity: 0;
    transform: translateY(-100%); /* Animação de subir */
}