/* estilos para a página de servidores */
.servidores-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.servidores-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.servidores-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-right: 20px;
}

.btn-novo {
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-novo:hover {
    background-color: #45a049;
}

.filtros-container {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filtros-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.filtro-group {
    flex: 1;
    min-width: 200px;
}

.filtro-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.filtro-input,
.filtro-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.botoes-filtro {
    grid-column: 1 / -1;
    display: flex;
    gap: 12px;
    margin-top: 10px;
    justify-content: flex-start;
}

.btn-filtrar,
.btn-limpar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #2196F3;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    box-sizing: border-box;
}

.btn-filtrar {
    background-color: #2196F3;
}
.btn-filtrar:hover {
    background-color: #0b7dda;
}

.btn-limpar {
    background-color: #f44336;
}
.btn-limpar:hover {
    background-color: #d32f2f;
}

.servidores-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.servidores-table thead {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.servidores-table th,
.servidores-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.servidores-table th {
    font-weight: bold;
}

.servidores-table tr:hover {
    background-color: #f5f5f5;
}

.table-actions {
    display: flex;
    gap: 10px;
}

.btn-editar,
.btn-excluir {
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
}

.btn-editar {
    background-color: #2196F3;
    color: white;
}

.btn-excluir {
    background-color: #f44336;
    color: white;
}

.btn-editar:hover {
    background-color: #0b7dda;
}

.btn-excluir:hover {
    background-color: #d32f2f;
}

.sem-registros {
    text-align: center;
    padding: 20px;
    color: #777;
    font-style: italic;
}

.status-ativo {
    color: #4CAF50;
    font-weight: bold;
}

.status-inativo {
    color: #f44336;
    font-weight: bold;
}

.resultados-info {
    margin-bottom: 15px;
    font-style: italic;
    color: #666;
}

@media (max-width: 768px) {
    .servidores-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .servidores-title {
        margin-bottom: 15px;
    }

    .filtros-form {
        flex-direction: column;
    }

    .filtro-group {
        width: 100%;
    }
}

/* estilos para a página de cadastro */
.cadastro-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.cadastro-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cadastro-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.btn-voltar {
    background-color: #6c757d;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-voltar:hover {
    background-color: #5a6268;
}

.form-container {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #2196F3;
    outline: none;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

.form-required::after {
    content: " *";
    color: #f44336;
}

.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn-submit {
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.btn-submit:hover {
    background-color: #45a049;
}

.btn-cancel {
    background-color: #f44336;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
    display: inline-block;
    text-align: center;
}

.btn-cancel:hover {
    background-color: #d32f2f;
}

.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.help-text {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

.row {
    display: flex;
    gap: 15px;
}

.col {
    flex: 1;
}

@media (max-width: 768px) {
    .row {
        flex-direction: column;
        gap: 0;
    }

    .form-buttons {
        flex-direction: column;
    }
}

/* estilos para a página de edição */
.editar-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.editar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.editar-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}