/* =====================================================
   PASAR SMART - Resolusi CSS
   Halaman: resolusi.php (Timeline Status Laporan)
   ===================================================== */

/* --- Container --- */
.resolusi-container {
    max-width: 650px;
    margin: 0 auto;
    padding: 1.5rem;
}

.resolusi-header {
    text-align: center;
    margin-bottom: 2rem;
}

.resolusi-header h1 {
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.resolusi-header .laporan-id {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    color: var(--bs-primary);
    background: #e8f4fd;
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 20px;
}

/* --- Timeline --- */
.timeline {
    position: relative;
    padding-left: 2.5rem;
    margin: 0;
    list-style: none;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #28a745, #ffc107, #dc3545, #6c757d);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item .timeline-dot {
    position: absolute;
    left: -2.5rem;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px currentColor;
    z-index: 2;
}

.timeline-item.status-diterima .timeline-dot {
    background: #28a745;
    color: #28a745;
}

.timeline-item.status-diproses .timeline-dot {
    background: #ffc107;
    color: #ffc107;
}

.timeline-item.status-escalated .timeline-dot {
    background: #fd7e14;
    color: #fd7e14;
}

.timeline-item.status-selesai .timeline-dot {
    background: var(--bs-primary);
    color: var(--bs-primary);
}

.timeline-item.status-ditolak .timeline-dot {
    background: #dc3545;
    color: #dc3545;
}

.timeline-item .timeline-content {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    transition: all 0.3s ease;
}

.timeline-item .timeline-content:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.timeline-item .timeline-status {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.timeline-item.status-diterima .timeline-status { color: #28a745; }
.timeline-item.status-diproses .timeline-status { color: #e6a800; }
.timeline-item.status-escalated .timeline-status { color: #fd7e14; }
.timeline-item.status-selesai .timeline-status { color: var(--bs-primary); }
.timeline-item.status-ditolak .timeline-status { color: #dc3545; }

.timeline-item .timeline-date {
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.timeline-item .timeline-desc {
    font-size: 0.85rem;
    color: #495057;
    line-height: 1.5;
}

.timeline-item .timeline-catatan {
    background: #f8f9fa;
    border-left: 3px solid #dee2e6;
    padding: 0.5rem 0.75rem;
    margin-top: 0.5rem;
    border-radius: 0 6px 6px 0;
    font-size: 0.8rem;
    font-style: italic;
    color: #6c757d;
}

/* --- Status Sekarang --- */
.status-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.status-card.status-active {
    border-color: #ffc107;
    background: #fffdf5;
}

.status-card.status-resolved {
    border-color: #28a745;
    background: #f5fff8;
}

.status-card .status-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.status-card .status-label {
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Form Update (Admin) --- */
.resolusi-update-form {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid #dee2e6;
}

.resolusi-update-form h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #495057;
}

/* --- Responsive --- */
@media (max-width: 576px) {
    .resolusi-container {
        padding: 1rem;
    }
    
    .timeline {
        padding-left: 2rem;
    }
    
    .timeline::before {
        left: 13px;
    }
    
    .timeline-item .timeline-dot {
        left: -2rem;
        width: 13px;
        height: 13px;
    }
    
    .timeline-item .timeline-content {
        padding: 0.75rem 1rem;
    }
}