/* Estilos específicos para o sistema de tarefas */

.dashboard-container {
    padding: 20px;
    background: #f8f9fa;
    min-height: 100vh;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.2s ease;
}

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

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 5px;
}

.stat-label {
    color: #6c757d;
    font-size: 0.9em;
}

.kanban-board {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
}

.kanban-column {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.kanban-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dee2e6;
}

.kanban-title {
    font-weight: 600;
    font-size: 1.1em;
    color: #495057;
}

.kanban-count {
    background: #6c757d;
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.8em;
}

.task-card {
    background: white;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 4px solid #dee2e6;
    position: relative;
}

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

.task-card.prioridade-alta {
    border-left-color: #dc3545;
}

.task-card.prioridade-media {
    border-left-color: #ffc107;
}

.task-card.prioridade-baixa {
    border-left-color: #28a745;
}

.task-card.atrasada {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.task-title {
    font-weight: 600;
    color: #212529;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.task-meta {
    font-size: 0.8em;
    color: #6c757d;
    margin-bottom: 5px;
}

.assignment-badge {
    background: #e9ecef;
    color: #495057;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7em;
    margin-right: 5px;
    display: inline-block;
}

.assignment-badge.department {
    background: #d1ecf1;
    color: #0c5460;
}

.empty-column {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 40px 20px;
}

.filters-bar {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-filter {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-right: 10px;
    display: inline-block;
}

.btn-filter:hover {
    background: #e9ecef;
    color: #212529;
    text-decoration: none;
}

.btn-filter.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Responsividade */
@media (max-width: 768px) {
    .kanban-board {
        flex-direction: column;
    }
    
    .kanban-column {
        min-width: auto;
    }
    
    .stats-cards {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .filters-bar .d-flex {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-filter {
        margin-right: 0;
        margin-bottom: 5px;
        text-align: center;
    }
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.task-card {
    animation: fadeIn 0.3s ease;
}

.stat-card {
    animation: fadeIn 0.3s ease;
}

/* Melhorias visuais */
.task-card .task-meta i {
    margin-right: 5px;
    width: 12px;
}

.kanban-column {
    border: 1px solid #e9ecef;
}

.kanban-column:hover {
    border-color: #007bff;
}

/* Status badges */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 500;
    text-transform: uppercase;
}

.status-pendente {
    background: #fff3cd;
    color: #856404;
}

.status-em-andamento {
    background: #d1ecf1;
    color: #0c5460;
}

.status-concluida {
    background: #d4edda;
    color: #155724;
}

/* Prioridade indicators */
.priority-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.priority-indicator.baixa {
    background: #28a745;
}

.priority-indicator.media {
    background: #ffc107;
}

.priority-indicator.alta {
    background: #dc3545;
}

/* Garantir que todas as colunas tenham o mesmo tamanho */
.kanban-content {
    min-height: 200px;
    overflow-y: auto;
    max-height: 600px;
}

/* Forçar largura igual para todas as colunas */
.kanban-board .kanban-column {
    flex-basis: 0;
    flex-grow: 1;
    flex-shrink: 1;
}
