.modal {
    display: none; /* Controlado via JS - Garante que começa escondido */
    position: fixed;
    z-index: 1060;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 30px;
    border: none;
    width: 90%;
    max-width: 450px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

/* Formulário no Modal */
#transactionForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 400;
    color: #555;
    font-size: 0.9rem;
}

/* Estilos para o grupo de radio buttons */
.radio-group {
    display: flex;
    gap: 20px; /* Espaço entre as opções */
    margin-top: 5px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px; /* Espaço entre o radio e o texto */
    font-weight: 400;
    color: #555;
    font-size: 0.9rem;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    /* Estilos customizados para radio buttons (opcional) */
    accent-color: #6a1b9a; /* Cor principal da aplicação */
}

/* Estilos para o grupo de checkbox */
.checkbox-group {
    display: flex;
    margin-top: 5px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 5px; /* Espaço entre o checkbox e o texto */
    font-weight: 400;
    color: #555;
    font-size: 0.9rem;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    accent-color: #6a1b9a; /* Cor principal da aplicação */
}

#transactionForm input[type="number"],
#transactionForm input[type="text"],
#transactionForm input[type="date"],
#transactionForm select {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    width: 100%;
    box-sizing: border-box;
    background-color: white;
}

#transactionForm select {
    appearance: none;
    background-color: #fff;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%236a1b9a%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E'); /* Cor da seta ajustada */
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: .65em auto;
    padding-right: 30px;
}

#transactionForm button[type="submit"] {
    padding: 12px 20px;
    background-color: #6a1b9a;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

#transactionForm button[type="submit"]:hover {
    background-color: #4a148c;
}
