/* Estilos personalizados para o sistema financeiro */

.required:after {
    content: " *";
    color: #dc3545;
}

/* Badges personalizadas */
.badge.bg-warning {
    color: #000;
}

/* Cards com hover */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

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

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

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

/* Sidebar ativa */
.sidebar .nav-link.active {
    background-color: #e9ecef;
    border-radius: 0.375rem;
}

/* Botões com ícones */
.btn i {
    margin-right: 0.25rem;
}

/* Alertas personalizados */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* Formulários */
.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Loading states */
.btn:disabled {
    cursor: not-allowed;
}

/* Responsividade para tabelas */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .btn-group .btn {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Cores específicas para contas a pagar/receber */
.text-pagar {
    color: #dc3545 !important;
}

.text-receber {
    color: #198754 !important;
}

.bg-pagar {
    background-color: #dc3545 !important;
}

.bg-receber {
    background-color: #198754 !important;
}

/* Status badges */
.badge.bg-success {
    background-color: #198754 !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
}

/* Cards de resumo */
.card.bg-danger,
.card.bg-success,
.card.bg-secondary {
    border: none;
}

/* Ícones de valores */
.bi-plus-circle.text-success {
    color: #198754 !important;
}

.bi-dash-circle.text-danger {
    color: #dc3545 !important;
}

/* Custom scrollbar para sidebar */
.sidebar-sticky::-webkit-scrollbar {
    width: 6px;
}

.sidebar-sticky::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sidebar-sticky::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.sidebar-sticky::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Efeitos de sombra */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Input groups com cores */
.input-group-text.bg-danger {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.input-group-text.bg-success {
    background-color: #198754 !important;
    border-color: #198754 !important;
}

/* Tabelas com linhas alternadas */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Badges com ícones */
.badge i {
    margin-right: 0.25rem;
}

/* Texto muted com ícones */
.text-muted i {
    opacity: 0.7;
}

/* Cards sem borda */
.card.border-0 {
    border: none !important;
}

/* Header de cards */
.card-header.bg-white {
    background-color: #fff !important;
    border-bottom: 1px solid #dee2e6;
}

/* ESTILOS PARA O MÓDULO DE APORTE */
.text-aporte {
    color: #6f42c1 !important;
}

.bg-aporte {
    background-color: #6f42c1 !important;
}

.badge.bg-aporte {
    background-color: #6f42c1 !important;
    color: #fff !important;
}

.card-aporte {
    border-left: 4px solid #6f42c1;
}

.card-aporte:hover {
    border-left-color: #5a32a8;
}

/* CORREÇÃO: alterado "aporte" para "aportes" para funcionar com as rotas */
.sidebar .nav-link[href*="aportes"].active {
    background-color: rgba(111, 66, 193, 0.1);
    color: #6f42c1;
    border-left: 3px solid #6f42c1;
}

/* Ícone específico para Aporte */
.bi-graph-up {
    color: #6f42c1;
}

/* Botões específicos para Aporte */
.btn-aporte {
    background-color: #6f42c1;
    border-color: #6f42c1;
    color: white;
}

.btn-aporte:hover {
    background-color: #5a32a8;
    border-color: #5a32a8;
}