/* Timeline Component Styles */
.status-timeline {
    position: relative;
    padding-left: 4rem;
    margin: 1.5rem 0;
}

.status-timeline::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #e5e7eb 0%, #d1d5db 100%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding: 1.25rem 1.25rem 1.25rem 1.75rem;
    background: #ffffff;
    border-radius: 12px;
    border-left: 4px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.timeline-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.25rem;
    top: 1.25rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #10b981;
    border: 4px solid white;
    box-shadow: 0 0 0 4px #10b981, 0 2px 8px rgba(16, 185, 129, 0.3);
    z-index: 2;
    transition: all 0.3s ease;
}

/* Status: Pengaduan Diterima - Hijau */
.timeline-item.diterima {
    background: #f0fdf4;
    border-left-color: #22c55e;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.1);
}

.timeline-item.diterima::before {
    background: #22c55e;
    box-shadow: 0 0 0 4px #22c55e, 0 2px 8px rgba(34, 197, 94, 0.3);
    animation: pulse-green 3s infinite;
}

.timeline-item.diterima .timeline-title {
    color: #166534;
}

/* Status: Sedang Diproses - Biru */
.timeline-item.diproses {
    background: #eff6ff;
    border-left-color: #3b82f6;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
}

.timeline-item.diproses::before {
    background: #3b82f6;
    box-shadow: 0 0 0 4px #3b82f6, 0 2px 12px rgba(59, 130, 246, 0.4);
    animation: pulse-blue 2s infinite;
}

.timeline-item.diproses .timeline-title {
    color: #1e40af;
}

/* Status: Selesai - Hijau Tua */
.timeline-item.selesai {
    background: #ecfdf5;
    border-left-color: #10b981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

.timeline-item.selesai::before {
    background: #10b981;
    box-shadow: 0 0 0 4px #10b981, 0 2px 8px rgba(16, 185, 129, 0.3);
    animation: pulse-emerald 4s infinite;
}

.timeline-item.selesai .timeline-title {
    color: #047857;
}

/* Legacy classes for backward compatibility */
.timeline-item.completed {
    background: #f0fdf4;
    border-left-color: #10b981;
}

.timeline-item.completed::before {
    background: #10b981;
    box-shadow: 0 0 0 4px #10b981, 0 2px 8px rgba(16, 185, 129, 0.3);
}

.timeline-item.current {
    background: #eff6ff;
    border-left-color: #3b82f6;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
}

.timeline-item.current::before {
    background: #3b82f6;
    box-shadow: 0 0 0 4px #3b82f6, 0 2px 12px rgba(59, 130, 246, 0.4);
    animation: pulse-blue 2s infinite;
}

/* Pending status - Abu-abu */
.timeline-item.pending {
    background: #f9fafb;
    border-left-color: #9ca3af;
    opacity: 0.7;
}

.timeline-item.pending::before {
    background: #9ca3af;
    box-shadow: 0 0 0 4px #9ca3af, 0 2px 8px rgba(156, 163, 175, 0.2);
}

/* Rejected status */
.timeline-item.rejected {
    background: #fef2f2;
    border-left-color: #ef4444;
}

.timeline-item.rejected::before {
    background: #ef4444;
    box-shadow: 0 0 0 4px #ef4444, 0 2px 8px rgba(239, 68, 68, 0.3);
}

.timeline-item.rejected .timeline-title {
    color: #dc2626;
}

/* Timeline content */
.timeline-content {
    margin-left: 1rem;
    padding-left: 0.5rem;
}

.timeline-title {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.timeline-title i {
    margin-right: 0.75rem;
    opacity: 0.8;
    width: 1.2rem;
    text-align: center;
}

.timeline-date {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.timeline-description {
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Animations */
@keyframes pulse-blue {
    0%, 100% {
        box-shadow: 0 0 0 4px #3b82f6, 0 2px 12px rgba(59, 130, 246, 0.4);
    }
    50% {
        box-shadow: 0 0 0 6px #3b82f6, 0 2px 16px rgba(59, 130, 246, 0.6);
    }
}

@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 0 0 4px #22c55e, 0 2px 8px rgba(34, 197, 94, 0.3);
    }
    50% {
        box-shadow: 0 0 0 6px #22c55e, 0 2px 12px rgba(34, 197, 94, 0.5);
    }
}

@keyframes pulse-emerald {
    0%, 100% {
        box-shadow: 0 0 0 4px #10b981, 0 2px 8px rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 0 0 6px #10b981, 0 2px 12px rgba(16, 185, 129, 0.5);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .status-timeline {
        padding-left: 3rem;
    }
    
    .status-timeline::before {
        left: 1.25rem;
    }
    
    .timeline-item {
        padding: 1rem;
        margin-bottom: 2rem;
    }
    
    .timeline-item::before {
        left: -1.75rem;
        width: 1.25rem;
        height: 1.25rem;
        top: 1rem;
    }
    
    .timeline-content {
        margin-left: 0.75rem;
        padding-left: 0.25rem;
    }
    
    .timeline-title {
        font-size: 0.9rem;
    }
    
    .timeline-description {
        font-size: 0.8rem;
    }
}

/* Print styles */
@media print {
    .timeline-item {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
    
    .timeline-item::before {
        box-shadow: none;
        border: 2px solid #000;
    }
}
