/* Dashboard de Processos - Estilos Específicos */

/* Cards de resumo */
.card.border-primary .card-body {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05) 0%, rgba(0, 123, 255, 0.1) 100%);
}

.card.border-success .card-body {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05) 0%, rgba(40, 167, 69, 0.1) 100%);
}

.card.border-warning .card-body {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.05) 0%, rgba(255, 193, 7, 0.1) 100%);
}

.card.border-danger .card-body {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.05) 0%, rgba(220, 53, 69, 0.1) 100%);
}

/* Gráficos */
.card canvas {
    max-height: 400px;
}

/* Toggle switch personalizado */
.form-check-input:checked {
    background-color: #dc3545;
    border-color: #dc3545;
}

.form-check-input:focus {
    border-color: #dc3545;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

/* Label do toggle */
#labelToggle {
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 80px;
    text-align: center;
}

/* Badges no toggle */
.badge.bg-warning {
    background-color: #fd7e14 !important;
}

/* Tabelas */
.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* Filtros */
.card .form-select:focus,
.card .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

/* Responsividade para gráficos */
@media (max-width: 768px) {
    .card canvas {
        max-height: 300px;
    }
    
    .card-header h5 {
        font-size: 1rem;
    }
    
    .h4 {
        font-size: 1.25rem;
    }
}

/* Animações suaves */
.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.1);
}

/* Loading states */
.chart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: #6c757d;
}

.chart-loading i {
    margin-right: 0.5rem;
}

/* Status badges */
.status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.status-concluida {
    background-color: #28a745;
    color: white;
}

.status-pendente {
    background-color: #ffc107;
    color: #212529;
}

.status-incompleta {
    background-color: #fd7e14;
    color: white;
}

.status-vencida {
    background-color: #dc3545;
    color: white;
}

/* Melhorias na tabela */
.table th {
    border-top: none;
    font-weight: 600;
    color: #495057;
    font-size: 0.875rem;
}

.table td {
    font-size: 0.875rem;
    vertical-align: middle;
}

/* Scrollbar personalizada para tabelas */
.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

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

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Melhorias nos botões de filtro */
.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.btn-outline-secondary {
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
}

/* Indicadores visuais para os cards */
.card-body .fa-2x {
    opacity: 0.8;
}

.text-muted.small {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Melhorias no layout mobile */
@media (max-width: 576px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        font-size: 0.875rem;
    }
    
    .form-select,
    .form-control {
        font-size: 0.875rem;
    }
}