/* Reset e estrutura geral */
body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to right, #fdfbfb, #ebedee);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Container padrão */
.container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    text-align: center;
}

/* Cabeçalho e títulos */
h1 {
    color: #ff6ec4;
    font-size: 26px;
    margin-bottom: 20px;
}

/* Mensagens de erro */
.erro {
    color: red;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Área de botões agrupados */
.botoes {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

/* Botões padrão (infantis e coloridos) */
.botao,
button,
input[type="submit"],
input[type="button"] {
    background: linear-gradient(to right, #ff6ec4, #7873f5);
    color: white;
    padding: 12px 20px;
    font-weight: bold;
    font-size: 16px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    display: block;
}

/* Efeito hover */
.botao:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background: linear-gradient(to right, #7873f5, #ff6ec4);
    transform: scale(1.05);
}

/* Formulários */
form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 12px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

/* Página de login específica */
body.tela-login {
    background: linear-gradient(to right, #ffe8ec, #d7e8ff);
}

.tela-login h1 {
    color: #ff6ec4;
}
.mensagem-sucesso {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 12px;
    border-radius: 8px;
    color: #155724;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
}
.mensagem-erro {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 12px;
    border-radius: 8px;
    color: #721c24;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
}
.lista-tipos {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.item-tipo {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.item-tipo input[type="text"] {
    flex: 1;
    padding: 10px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    min-width: 200px;
}

.form-editar {
    display: flex;
    gap: 10px;
    flex: 1;
}

.botao.pequeno {
    padding: 8px 12px;
    font-size: 14px;
}
/* Responsivo mobile */
@media (max-width: 480px) {
    .container {
        width: 90%;
        padding: 20px;
    }

    h1 {
        font-size: 22px;
    }

    .botao,
    button,
    input[type="submit"],
    input[type="button"] {
        font-size: 15px;
        padding: 10px;
    }

    form {
        gap: 10px;
    }
}
