/**
 * AR Tarefas - Front-end Styles
 */

.art-portal {
    background: #fff;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
}

.art-portal-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #0073aa;
    margin-bottom: 30px;
}

.art-portal-header h1 {
    margin: 0 0 10px;
    color: #0073aa;
}

.art-portal-header p {
    color: #666;
    margin: 0;
}

/* Tabs */
.art-portal-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    border-bottom: 2px solid #eee;
}

.art-tab {
    padding: 12px 20px;
    text-decoration: none;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

.art-tab:hover {
    color: #0073aa;
    background: #f9f9f9;
}

.art-tab.active {
    color: #0073aa;
    border-bottom-color: #0073aa;
    background: #f9f9f9;
}

/* Content */
.art-portal-content {
    animation: fadeIn 0.3s ease;
}

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

/* Tasks Table */
.art-tasks-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.art-tasks-table thead {
    background: #f5f5f5;
}

.art-tasks-table th {
    padding: 12px;
    text-align: left;
    font-weight: bold;
    border-bottom: 2px solid #ddd;
}

.art-tasks-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.art-tasks-table tbody tr:hover {
    background: #f9f9f9;
}

/* Badges */
.art-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.85em;
    font-weight: bold;
}

.art-badge-backlog { background: #e9ecef; color: #495057; }
.art-badge-triagem { background: #cfe2ff; color: #084298; }
.art-badge-aguardando_conteudo { background: #fff3cd; color: #664d03; }
.art-badge-em_producao { background: #e7d4f5; color: #5a2d82; }
.art-badge-revisao_interna { background: #ffe5cc; color: #99400d; }
.art-badge-aprovacao_cliente { background: #f8d7da; color: #842029; }
.art-badge-ajustes_solicitados { background: #f5c6cb; color: #72343a; }
.art-badge-aprovado { background: #d1e7dd; color: #0f5132; }
.art-badge-concluido { background: #d1e7dd; color: #0f5132; font-weight: bold; }
.art-badge-pausado { background: #d1d5db; color: #374151; }
.art-badge-cancelado { background: #fee; color: #c00; }

/* Approval Items */
.art-approval-item,
.art-file-item {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.art-approval-item:hover,
.art-file-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.art-approval-item h3 {
    margin: 0 0 10px;
    color: #333;
}

.art-approval-item p {
    margin: 5px 0;
    color: #666;
}

.art-approval-item .button {
    margin-top: 10px;
}

/* Files List */
.art-files-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.art-file-item h3 {
    margin: 0 0 5px;
    font-size: 1em;
}

.art-file-item p {
    margin: 0 0 10px;
    color: #999;
    font-size: 0.9em;
}

/* Button Styles */
.button {
    display: inline-block;
    padding: 8px 12px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.button:hover {
    background: #005a87;
}

.button-small {
    padding: 6px 10px;
    font-size: 0.9em;
}

/* Responsive */
@media (max-width: 768px) {
    .art-portal {
        padding: 15px;
    }
    
    .art-portal-tabs {
        flex-direction: column;
    }
    
    .art-tab {
        padding: 10px;
    }
    
    .art-tasks-table {
        font-size: 0.9em;
    }
    
    .art-tasks-table th,
    .art-tasks-table td {
        padding: 8px;
    }
    
    .art-files-list {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Dashboard de Tarefas - Front-end
   ======================================== */

.art-front-dashboard {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.art-front-dashboard h1 {
    margin-bottom: 30px;
    color: #333;
}

/* Estatísticas */
.art-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.art-stat-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}

.art-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.art-stat-card.art-stat-production {
    border-color: #2196F3;
}

.art-stat-card.art-stat-review {
    border-color: #FF9800;
}

.art-stat-card.art-stat-approval {
    border-color: #9C27B0;
}

.art-stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.art-stat-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Filtros */
.art-filters {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.art-filters form {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.art-filters select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
}

.art-clear-filters {
    color: #dc3232;
    text-decoration: none;
    font-size: 14px;
}

.art-clear-filters:hover {
    text-decoration: underline;
}

/* Lista de Tarefas */
.art-tasks-list {
    display: grid;
    gap: 20px;
}

.art-task-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s;
}

.art-task-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.art-task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.art-task-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    flex: 1;
}

.art-priority {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
}

.art-priority-baixa {
    background: #E8F5E9;
    color: #2E7D32;
}

.art-priority-normal {
    background: #E3F2FD;
    color: #1565C0;
}

.art-priority-alta {
    background: #FFF3E0;
    color: #E65100;
}

.art-priority-urgente {
    background: #FFEBEE;
    color: #C62828;
}

.art-task-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
    flex-wrap: wrap;
}

.art-meta-item strong {
    color: #333;
}

.art-task-description {
    margin: 15px 0;
    padding: 12px;
    background: #f9f9f9;
    border-left: 3px solid #2196F3;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* Workflow Stages */
.art-workflow-stages {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.art-stages-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    position: relative;
}

.art-stages-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #ddd;
    z-index: 0;
}

.art-stage-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}

.art-stage-dot.completed {
    background: #4CAF50;
    color: #fff;
    border: 2px solid #4CAF50;
}

.art-stage-dot.current {
    background: #2196F3;
    color: #fff;
    border: 2px solid #2196F3;
    animation: pulse 2s infinite;
}

.art-stage-dot.pending {
    background: #fff;
    color: #999;
    border: 2px solid #ddd;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.art-stage-dot .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Informações de etapas anteriores/próximas */
.art-stages-info {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
}

.art-previous-stage,
.art-next-stage {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 4px;
    background: #fff;
    border: 1px solid #e0e0e0;
}

.art-previous-stage {
    color: #666;
}

.art-previous-stage .art-stage-label {
    color: #999;
    font-weight: 500;
}

.art-next-stage {
    color: #0073aa;
}

.art-next-stage .art-stage-label {
    color: #0073aa;
    font-weight: 500;
}

.art-current-stage-highlight {
    text-align: center;
    font-size: 15px;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.art-current-stage-highlight strong {
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    opacity: 0.9;
}

.art-stage-current {
    font-size: 16px;
    font-weight: 700;
    display: block;
}

.art-current-stage {
    text-align: center;
    font-size: 14px;
    color: #555;
}

.art-current-stage strong {
    color: #333;
}

/* Task Status Badge */
.art-task-status {
    margin: 15px 0;
}

/* Ações */
.art-task-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.art-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.art-btn-primary {
    background: #2196F3;
    color: #fff;
}

.art-btn-primary:hover {
    background: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.3);
}

.art-btn-success {
    background: #4CAF50;
    color: #fff;
}

.art-btn-success:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.art-btn-secondary {
    background: #9E9E9E;
    color: #fff;
}

.art-btn-secondary:hover {
    background: #757575;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(158, 158, 158, 0.3);
}
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.art-no-tasks {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.art-no-tasks p {
    color: #999;
    font-size: 16px;
}

/* Responsividade */
@media (max-width: 768px) {
    .art-task-header {
        flex-direction: column;
    }
    
    .art-task-actions {
        flex-direction: column;
    }
    
    .art-task-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .art-stages-progress {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .art-stage-dot {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

/* Task Details (expandível) */
.art-task-details {
    margin-top: 15px;
    padding-top: 15px;
}

.art-task-full-description p {
    margin: 5px 0;
    line-height: 1.6;
    color: #555;
}

.art-task-dates {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.art-task-artifacts ul {
    list-style-type: disc;
}

.art-task-artifacts a {
    color: #2196F3;
    text-decoration: none;
}

.art-task-artifacts a:hover {
    text-decoration: underline;
}

/* Alert Dashboard Widget */
.art-dashboard-widget.art-alert {
    border-left: 4px solid #dc3545;
}

.art-alert-count {
    font-size: 1.5em;
    font-weight: bold;
    color: #dc3545;
}
