@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #2257ea);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #f0f0f0;
    min-height: 100vh;
}

h1 {
    font-size: 3rem;
    text-align: center;
    margin: 30px 0 10px;
    background: linear-gradient(90deg, #ffffff, #bbbbbb, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
    text-transform: uppercase;
}

@keyframes shine {
    0% { background-position: -200px; }
    100% { background-position: 200px; }
}

/* Formulário de Edição */
.edit-form-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 700px;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.5s ease;
}

.edit-form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.edit-form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
}

.edit-form-group input,
.edit-form-group textarea,
.edit-form-group select {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    color: #0d1e40;
    outline: none;
    transition: 0.3s;
}

.edit-form-group input:focus,
.edit-form-group textarea:focus,
.edit-form-group select:focus {
    border-color: #007bff;
    box-shadow: 0 0 6px #007bff88;
}

/* Botões */
.edit-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.edit-actions button {
    background-color: #db0000;
    color: white;
    padding: 12px 30px;
    font-size: 1.1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.edit-actions button:hover {
    background-color: #0077cc;
    transform: scale(1.05);
}

/* Botão Voltar */
.botao-voltar {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #406697;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    z-index: 9999;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.botao-voltar:hover {
    background-color: #003080;
}

/* Mensagens */
.success-message,
.error-message {
    text-align: center;
    padding: 12px 20px;
    border-radius: 10px;
    margin-top: 20px;
    font-weight: bold;
    max-width: 600px;
}

.success-message {
    background-color: #28a745aa;
    color: white;
}

.error-message {
    background-color: #dc3545aa;
    color: white;
}

/* Animação */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsivo */
@media (max-width: 768px) {
    .edit-actions {
        flex-direction: column;
        align-items: center;
    }

    .edit-actions button {
        width: 100%;
        max-width: 300px;
    }
}
