/* Estilos personalizados para o simulador de cronograma */

:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
}

body {
    background-color: var(--light-bg);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: white;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background-color: #f0f9ff;
}

.upload-area.dragover {
    border-color: var(--primary-color);
    background-color: #e0f2fe;
    transform: scale(1.02);
}

/* Task Categories */
.task-category {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    height: 100%;
}

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

.task-category.pricing .card-header {
    background-color: #fef3c7;
    border-bottom: 2px solid #f59e0b;
}

.task-category.coupons .card-header {
    background-color: #dbeafe;
    border-bottom: 2px solid #2563eb;
}

.task-category.ppc .card-header {
    background-color: #dcfce7;
    border-bottom: 2px solid #10b981;
}

.task-category.content .card-header {
    background-color: #f3e8ff;
    border-bottom: 2px solid #8b5cf6;
}

.task-list {
    min-height: 100px;
    padding: 10px;
}

.task-item {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
    cursor: move;
    transition: all 0.3s ease;
    position: relative;
}

.task-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateX(2px);
}

.task-item.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.task-item .task-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: #1e293b;
}

.task-item .task-meta {
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.task-item .task-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.task-item:hover .task-actions {
    opacity: 1;
}

.badge.priority-high {
    background-color: var(--danger-color);
}

.badge.priority-medium {
    background-color: var(--warning-color);
}

.badge.priority-low {
    background-color: var(--secondary-color);
}

/* Timeline */
.timeline-container {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    display: flex;
    margin-bottom: 20px;
    position: relative;
}

.timeline-date {
    min-width: 120px;
    padding-right: 20px;
    text-align: right;
    font-weight: 600;
    color: var(--secondary-color);
}

.timeline-content {
    flex: 1;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    margin-left: 20px;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid var(--border-color);
}

.timeline-content::after {
    content: '';
    position: absolute;
    left: -8px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid white;
}

.timeline-line {
    position: absolute;
    left: 120px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-dot {
    position: absolute;
    left: 113px;
    top: 25px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* User-specific styles */
.user-admin { border-left: 4px solid #dc3545; }
.user-marketing { border-left: 4px solid #007bff; }
.user-consultoria { border-left: 4px solid #28a745; }

/* Responsive */
@media (max-width: 768px) {
    .timeline-date {
        min-width: 80px;
        font-size: 0.9rem;
    }
    
    .timeline-line {
        left: 80px;
    }
    
    .timeline-dot {
        left: 73px;
    }
    
    .task-category {
        margin-bottom: 1rem;
    }
}

/* Progress indicators */
.progress-step {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    margin-right: 10px;
}

.step-circle.completed {
    background-color: var(--success-color);
}

.step-circle.active {
    background-color: var(--primary-color);
}

.step-line {
    flex: 1;
    height: 2px;
    background-color: var(--border-color);
    margin: 0 10px;
}

.step-line.completed {
    background-color: var(--success-color);
}