/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilo global */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    text-align: center;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #F2F2F7; /* Fundo sofisticado como o iOS */
    color: #1C1C1E;
}

/* Container principal */
.container {
    width: 100%;
    max-width: 900px; /* Aumentando a largura para a versão web */
    min-height: 100vh;
    background: white;
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto;
    transition: all 0.3s ease-in-out;
}
/* Título principal */
h1, .report-title {
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Inputs */
.input-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px; /* Adicionamos um espaçamento extra */
}


input {
    width: 100%;
    max-width: 450px;
    font-size: 18px;
    padding: 14px;
    border-radius: 16px;
    border: none;
    background-color: #ECECEC;
    text-align: center;
    transition: 0.3s ease-in-out;
    outline: none;
    font-weight: 500;
}

/* 🔹 Efeito ao focar nos inputs */
input:focus {
    border-color: #007AFF; /* Azul Apple */
    background-color: white;
    box-shadow: 0px 0px 10px rgba(10, 132, 255, 0.4);
    transition: all 0.3s ease-in-out;
}


/* Botões padrão */
button {
    background-color: #007AFF;
    color: white;
    padding: 14px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-size: 18px;
    width: 100%;
    max-width: 450px;
    transition: all 0.2s ease-in-out;
    font-weight: bold;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ajuste do botão "Gerar Plano" */
button.primary-action {
    margin-top: 25px; /* Ajuste para espaçamento maior */
}

button:hover {
    background-color: #0077E5;
    transform: translateY(-2px);
}
/* 🔹 Força a cor correta para o botão "Gerar Parecer" */
.generate-button {
    background-color: #007aff !important;
}

.generate-button:hover {
    background-color: #005bb5 !important;
}
/* 🔹 Seletor global para forçar o azul */
a.clear-link, span.clear-link, button.clear-link {
    color: #007AFF !important;
    font-size: 16px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    text-decoration: none !important;
    display: inline-block !important;
    margin-top: 5px !important;
}

/* 🔹 Efeito hover */
a.clear-link:hover, span.clear-link:hover, button.clear-link:hover {
    color: #005BB5 !important;
    text-decoration: underline !important;
}


/* Estilização das dívidas adicionadas */
.debt-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background-color: #ECECEC;
    padding: 12px;
    border-radius: 12px;
    margin-top: 8px;
    border: none;
    font-weight: 500;
}

/* Ajuste do botão de remover */
.remove-button {
    color: #FF453A;
    cursor: pointer;
    font-size: 20px;
    margin-left: 12px;
    display: flex;
    align-items: center;
    transition: transform 0.2s;
}

.remove-button:hover {
    transform: scale(1.1);
}

/* Relatório - Centralização */
.report-container {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.section {
    background: white;
    padding: 20px;
    border-radius: 16px;
    margin: 10px 0;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.08);
    text-align: center;
    font-weight: 500;
}

/* Centralizando o título do plano */
.report-title {
    font-size: 26px;
    font-weight: bold;
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 🔹 Ajuste da tela de login */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: #F2F2F7;
}

/* 🔹 Estilização do título e texto da tela de login */
.login-container h2 {
    font-size: 2rem;
    font-weight: bold;
}

.login-container p {
    font-size: 1.2rem;
    color: #8E8E93;
    margin-bottom: 20px;
}

/* 🔹 Container de Login corrigido */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: #F2F2F7;
    color: #1C1C1E;
    text-align: center;
    width: 100%;
    max-width: 400px; /* Ajusta largura para manter o layout adequado */
    margin: 0 auto; /* Centraliza na tela */
    padding: 20px; /* Evita que os elementos fiquem colados nas bordas */
}

/* 🔹 Correção no texto da mensagem de login */
.login-container p {
    font-size: 1rem;
    color: #8E8E93;
    white-space: nowrap; /* Impede quebra de linha */
    overflow: hidden; /* Evita ultrapassar os limites */
    text-align: center;
    width: 100%; /* Ocupa toda a largura disponível */
    max-width: 400px; /* Define um limite de largura */
    margin: 0 auto 20px auto; /* Mantém centralizado */
    line-height: 1.5; /* Melhora a legibilidade */
}


/* 🔹 Botão de login com animação */
.login-container button {
    width: 320px;
    padding: 12px;
    font-size: 1rem;
    background-color: #007AFF;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.login-container button:hover {
    background-color: #0077E5;
    transform: scale(1.02);
}
/* 🔹 Efeito ao focar nos inputs da tela de login */
.login-container input:focus {
    border-color: #007AFF; /* Azul Apple */
    background-color: white;
    box-shadow: 0px 0px 10px rgba(10, 132, 255, 0.4);
    transition: all 0.3s ease-in-out;
}

/* 🔹 Estilização do relatório */
.report-container {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 🔹 Ajuste do espaçamento do relatório */
.report-title {
    font-size: 26px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

/* 🔹 Cartões dentro do relatório */
.section {
    background: white;
    padding: 20px;
    border-radius: 16px;
    margin: 10px 0;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.08);
    text-align: center;
    font-weight: 500;
}

/* 🔹 Responsividade (ajustes para telas menores) */
@media screen and (max-width: 768px) {
    .container {
        max-width: 90%;
        padding: 30px;
    }

    h1 {
        font-size: 24px;
    }

    input, button {
        font-size: 16px;
        padding: 12px;
    }
}

@media screen and (min-width: 1024px) {
    .container {
        max-width: 720px;
        padding: 50px;
    }

    input, button {
        max-width: 600px;
    }
}

/* 🔹 Centralizar mensagem de alerta */
.alert-message {
    display: flex;
    align-items: center; /* Alinha verticalmente */
    justify-content: center; /* Alinha horizontalmente */
    text-align: center; /* Centraliza o texto */
    gap: 8px; /* Espaço entre o ícone e o texto */
    font-size: 18px; /* Tamanho adequado para leitura */
    font-weight: bold;
    max-width: 80%; /* Para evitar que o texto fique muito largo */
    margin: 0 auto; /* Centraliza o bloco */
}

/* Ajustar espaçamento do "Desenvolvido por MF Advogados" */
.footer {
    margin-top: 30px; /* Aumentando espaço acima */
    font-size: 16px;
    color: #555;
}

.center-title {
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px; /* Ajuste para posicionamento correto */
}
/* 🔹 Ajuste de espaçamento entre inputs */
input {
    margin-bottom: 12px; /* Adiciona espaçamento entre os inputs */
}

/* 🔹 Ajuste de espaçamento para o botão */
button {
    margin-top: 4px; /* Cria um espaço maior entre o último input e o botão */
}
/* Aplicação de cor condicional ao percentual */
.percent-text {
    font-size: 28px; /* Antes: 32px */
    font-weight: bold;
}

.percent-green {
    color: #155724;
}

.percent-yellow {
    color: #856404;
}

.percent-red {
    color: #721c24;
}
.export-button {
    background-color: #007AFF !important; /* Cor azul original */
    color: white !important;
    font-weight: bold;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.export-button:hover {
    background-color: #005BB5 !important;
}

/* Garante que ele não mude de cor após a exportação */
.export-button:focus, .export-button:active {
    background-color: #007AFF !important;
}
@media screen and (max-width: 480px) {
    .footer, .developed-by {
        font-size: 14px; /* Reduz o tamanho da fonte */
    }
}