/* 🔹 Reset básico para manter o layout limpo */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 🔹 Corpo com fundo sofisticado inspirado no iOS/macOS */
body {
    background-color: #f2f2f7; /* Cinza claro elegante */
    color: #1C1C1E;
    text-align: center;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* 🔹 Container principal com sombra suave */
.container {
    width: 100%;
    max-width: 720px;
    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 estilizado */
h1 {
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 🔹 Inputs arredondados no estilo iOS */
input {
    width: 100%;
    max-width: 450px;
    font-size: 18px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid #d1d1d6;
    background-color: #ececec;
    text-align: center;
    transition: all 0.3s ease-in-out;
    outline: none;
}

/* 🔹 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);
}

/* Reduzir o espaçamento do "Limpar Valores" */
.clear-link {
    color: #0A84FF;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    margin-top: 5px; /* Reduzindo espaçamento acima */
    transition: color 0.2s ease-in-out;
}
.clear-link:hover {
    color: #0077E5;
}

/* 🔹 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;
    }
}

/* 🔹 Rodapé com assinatura */
.footer {
    margin-top: 30px;
    font-size: 16px;
    color: #555;
}
/* 🔹 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 texto dentro da dívida */
.debt-text {
    flex-grow: 1; /* Faz o texto ocupar o máximo possível do espaço disponível */
    font-size: 16px;
}

/* 🔹 Ajuste do botão de remover */
.remove-button {
    color: red;
    cursor: pointer;
    font-size: 20px;
    margin-left: 12px; /* Garante espaço entre o texto e o ❌ */
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Força o "X" a ficar no canto direito */
}
/* 🔹 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 */
}

@media screen and (max-width: 480px) {
    .footer, .developed-by {
        font-size: 14px; /* Reduz o tamanho da fonte */
    }
}