/* Detail Page Styles */

/* Header */
.page-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-500);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.back-link:hover {
    color: var(--primary);
}

.order-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin-left: 16px;
    padding-left: 16px;
    border-left: 2px solid var(--gray-200);
}

/* Status Banner */
.status-banner {
    background: white;
    border-radius: 16px;
    padding: 24px 32px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 6px solid var(--gray-300);
}

.status-banner.pending {
    background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
    border-left-color: var(--warning);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
}

.status-banner.pending h2,
.status-banner.pending .status-desc {
    color: #92400e;
}

.status-banner.pending .countdown-val {
    color: #b45309;
}

.status-banner.pending .countdown-label {
    color: #d97706;
}

.status-banner.urgent {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-left-color: var(--danger);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.15);
}

.status-banner.urgent h2,
.status-banner.urgent .status-desc {
    color: #991b1b;
}

.status-banner.urgent .countdown-val {
    color: #b91c1c;
}

.status-banner.urgent .countdown-label {
    color: #dc2626;
}

.status-banner.processing {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left-color: var(--info);
}

.status-banner.processing h2,
.status-banner.processing .status-desc {
    color: #1e40af;
}

.status-banner.processing .countdown-val {
    color: #1d4ed8;
}

.status-banner.processing .countdown-label {
    color: #2563eb;
}

.status-banner.shipped {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-left-color: var(--primary);
}

.status-banner.shipped h2,
.status-banner.shipped .status-desc {
    color: #3730a3;
}

.status-banner.completed,
.status-banner.success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-left-color: var(--success);
}

.status-banner.completed h2,
.status-banner.completed .status-desc,
.status-banner.success h2 {
    color: #065f46;
}

.status-banner.converted {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    border-left-color: #9333ea;
}

.status-banner.converted h2,
.status-banner.converted .status-desc {
    color: #6b21a8;
}

.status-banner.closed {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-left-color: var(--gray-500);
}

.status-banner.closed h2 {
    color: #374151;
}

.status-content h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    margin-bottom: 8px;
}

.status-desc {
    font-size: 14px;
}

.countdown-timer {
    text-align: right;
}

.countdown-val {
    font-size: 28px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Progress Steps */
.progress-card {
    background: white;
    border-radius: 16px;
    padding: 32px 48px;
    margin-bottom: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 30px;
    right: 30px;
    height: 2px;
    background: var(--gray-200);
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: 12px;
    transition: all 0.3s;
}

.step.active .step-circle {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.step.completed .step-circle {
    border-color: var(--success);
    background: var(--success);
    color: white;
}

.step-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.step.active .step-title {
    color: var(--gray-900);
}

.step-time {
    font-size: 12px;
    color: var(--gray-400);
}

/* Action Bar */
.action-bar {
    background: white;
    border-radius: 16px;
    padding: 20px 32px;
    margin-bottom: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.action-label {
    font-weight: 600;
    color: var(--gray-700);
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.info-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    height: 100%;
    margin-bottom: 24px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-100);
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-list {
    margin-bottom: 24px;
}

.info-item {
    display: flex;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.info-item .label {
    width: 100px;
    color: var(--gray-500);
    flex-shrink: 0;
}

.info-item .value {
    color: var(--gray-800);
    font-weight: 500;
}

/* Product Item (Detail) */
.product-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: 12px;
    margin-bottom: 12px;
}

.product-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: white;
    border: 1px solid var(--gray-200);
}

.product-details {
    flex: 1;
}

.product-name {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.product-meta {
    font-size: 13px;
    color: var(--gray-500);
}

.product-tags {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

.tag {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.tag.yellow {
    background: #fef3c7;
    color: #d97706;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 24px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: var(--gray-200);
}

.timeline-item {
    position: relative;
    padding-bottom: 24px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -21px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-300);
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--gray-300);
}

.timeline-item:first-child .timeline-dot {
    background: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-light);
}

.timeline-content {
    font-size: 14px;
}

.timeline-time {
    color: var(--gray-500);
    font-size: 12px;
    margin-bottom: 2px;
}

.timeline-text {
    color: var(--gray-800);
}

/* Images (After Sales) */
.proof-images {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.proof-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--gray-200);
    cursor: pointer;
}

/* Negotiation (After Sales) */
.negotiation-card {
    background: var(--gray-50);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid var(--gray-200);
}

.neg-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--gray-500);
}

.neg-content {
    font-size: 14px;
    color: var(--gray-800);
}

.user-tag {
    background: #e0e7ff;
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 6px;
    font-weight: 600;
}

.merchant-tag {
    background: #fee2e2;
    color: var(--danger);
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 6px;
    font-weight: 600;
}