/* Customizações CSS para Django Jazzmin - SistemaGrid */

/* Melhorar aparência geral */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Personalizar cabeçalho */
.main-header .navbar-brand {
    font-weight: 600;
    font-size: 1.2rem;
}

/* Melhorar cards do dashboard */
.card {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Melhorar tabelas */
.table th {
    background-color: #f8f9fa;
    border-top: none;
    font-weight: 600;
    color: #495057;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 123, 255, 0.05);
}

/* Melhorar formulários */
.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Estilizar fieldsets */
fieldset {
    margin-bottom: 25px;
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background-color: #ffffff;
}

fieldset legend {
    width: auto;
    padding: 0 10px;
    margin-bottom: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    border: none;
}

/* Melhorar botões */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Estilizar inline forms */
.inline-group {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #dee2e6;
}

/* Melhorar sidebar */
.main-sidebar {
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
}

.nav-sidebar .nav-link {
    border-radius: 6px;
    margin: 2px 8px;
    transition: all 0.2s ease-in-out;
}

.nav-sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

/* Personalizar mensagens */
.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Melhorar paginação */
.pagination .page-link {
    border-radius: 6px;
    margin: 0 2px;
    border: 1px solid #dee2e6;
    color: #007bff;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

/* Responsividade */
@media (max-width: 768px) {
    .card {
        margin-bottom: 15px;
    }
    
    fieldset {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .inline-group {
        padding: 15px;
        margin: 15px 0;
    }
}

/* Melhorar aparência dos filtros */
.filters {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Personalizar search box */
.search-form .form-control {
    border-radius: 6px 0 0 6px;
}

.search-form .btn {
    border-radius: 0 6px 6px 0;
}

/* Melhorar aparência dos readonly fields */
.readonly {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 8px 12px;
}

/* Animações suaves */
* {
    transition: all 0.2s ease-in-out;
}

/* Remove transitions on elements that shouldn't have them */
input, textarea, select {
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}