body {
    background-color: #f8f9fa;
}

.navbar-brand {
    font-weight: bold;
}

.nav-link {
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.375rem;
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 0.375rem;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.section {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn {
    transition: all 0.3s ease;
}

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

.table {
    background-color: white;
}

.table th {
    border-top: none;
    background-color: #f8f9fa;
    font-weight: 600;
}

.badge {
    font-size: 0.75em;
}

.alert {
    border: none;
    border-radius: 0.5rem;
}

.form-control, .form-select {
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    transform: translateY(-1px);
}

.text-success {
    color: #198754 !important;
    font-weight: 600;
}

.text-danger {
    color: #dc3545 !important;
    font-weight: 600;
}

.text-primary {
    color: #0d6efd !important;
    font-weight: 600;
}

.bg-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%) !important;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

.btn-outline-primary:hover,
.btn-outline-danger:hover {
    transform: translateY(-1px);
}

.position-fixed {
    max-width: 300px;
}

/* Estilos para seleção múltipla */
.table-active {
    background-color: #e3f2fd !important;
    border-left: 4px solid #2196f3;
}

.transaction-checkbox {
    transform: scale(1.2);
    cursor: pointer;
}

#bulk-actions {
    border-left: 4px solid #28a745;
    background-color: #f8fff9;
}

#bulk-actions .card-body {
    padding: 0.75rem 1rem;
}

/* Filtros */
.card-header h6 {
    margin: 0;
    color: #495057;
}

/* Animação para ações em lote */
#bulk-actions {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Melhorar visual dos checkboxes */
input[type="checkbox"] {
    accent-color: #0d6efd;
}

/* Destacar linha ao hover */
.table tbody tr:hover {
    background-color: #f5f5f5;
}

.table tbody tr.table-active:hover {
    background-color: #d1ecf1 !important;
}

/* Melhorar espaçamento dos botões de filtro */
.gap-2 {
    gap: 0.5rem !important;
}

/* Destacar botão de aplicar filtros */
.btn-primary {
    font-weight: 600;
}

/* Contador de seleção */
#selected-count {
    font-weight: 600;
    color: #495057;
}

/* Dashboard */
#period-total {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.dashboard-filter-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.25rem;
}

/* Gráfico */
#expenseChart {
    background-color: white;
    border-radius: 0.375rem;
}

.chart-container {
    position: relative;
    background: white;
    border-radius: 0.375rem;
    padding: 1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Resumo financeiro */
.summary-card {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
    color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 0.5rem 1rem rgba(13, 110, 253, 0.3);
}

.summary-card h6 {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.summary-card h4 {
    margin: 0;
    font-weight: 700;
    font-size: 2rem;
}

/* Saldos por banco */
.bank-balance-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bank-balance-item:last-child {
    border-bottom: none;
}

.bank-balance-name {
    font-weight: 500;
    color: #495057;
}

.bank-balance-value {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Filtro de mês desabilitado */
.form-select:disabled {
    background-color: #f8f9fa;
    opacity: 0.6;
    cursor: not-allowed;
}

/* Badge do modo de visualização */
#chart-mode {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

/* Melhorar responsividade dos filtros do dashboard */
@media (max-width: 768px) {
    .dashboard-filters .col-md-2 {
        margin-bottom: 1rem;
    }
    
    #period-total {
        font-size: 1.2rem;
        text-align: center;
        margin-top: 1rem;
    }
}