@import url('https://fonts.googleapis.com/css2?family=Segoe+UI:wght@400;600;700&display=swap');

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 20px auto;
    background: #fff;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

h1, h2, h3 {
    color: #1c293a;
    margin-top: 0;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }

form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

input[type="text"], input[type="password"], input[type="number"], textarea {
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
    color: #495057;
}

button, .btn-voltar {
    background-color: #007bff;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.1s;
}

button:hover, .btn-voltar:hover {
    background-color: #0056b3;
}

button:active {
    transform: translateY(1px);
}

.btn-logout {
    background-color: #6c757d;
}
.btn-logout:hover {
    background-color: #5a6268;
}

.btn-voltar {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    background-color: #6c757d;
}


fieldset {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 25px;
    background-color: #f8f9fa;
}

legend {
    color: #0056b3;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 0 10px;
}

.question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}
.question:last-child {
    border-bottom: none;
}
.question span {
    margin-right: 20px;
}

.radio-group {
    display: flex;
    gap: 10px;
}
.radio-group input[type="radio"] {
    display: none;
}
.radio-group label {
    padding: 8px 20px;
    border: 1px solid #ced4da;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: normal;
    margin: 0;
}
.radio-group input[type="radio"]:checked + label {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.hidden {
    display: none;
}
#loading {
    text-align: center;
    color: #007bff;
    font-weight: 600;
    margin-top: 15px;
}

.relatorio-ia {
    white-space: pre-wrap;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    padding: 25px;
    margin-top: 20px;
    border-radius: 8px;
    text-align: left;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
}

.relatorio-ia strong {
    color: #0056b3;
    font-size: 1.1rem;
}

/* NOVAS REGRAS PARA A LISTA DE USUÁRIOS */
.user-list {
    margin-top: 30px;
    padding: 0;
    list-style-type: none;
}

.user-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    font-size: 1rem;
}

.user-list li:nth-child(odd) {
    background-color: #f8f9fa;
}

.btn-delete {
    background-color: #dc3545;
    color: white;
    padding: 5px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: normal; /* Sobrescreve o font-weight de button */
    transition: background-color 0.2s;
}

.btn-delete:hover {
    background-color: #c82333;
}
