/* ================= STATUS PAGE STYLES ================= */
/* Matches main.css design system */

/* Status Section */
.status-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg), var(--light));
    min-height: calc(100vh - 200px);
}

.status-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeUp 0.8s ease;
}

.status-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.status-header p {
    font-size: 1.2rem;
    color: var(--gray);
    opacity: 0.9;
}

/* Search Container */
.search-container {
    max-width: 650px;
    margin: 0 auto 3rem;
    animation: fadeUp 1s ease;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 0.75rem 1.25rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    gap: 1rem;
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 25px 70px rgba(37,99,235,0.2);
    transform: translateY(-2px);
}

.search-box i {
    font-size: 1.5rem;
    color: var(--primary);
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 0.75rem 0;
    color: var(--text);
    background: transparent;
}

.search-box input::placeholder {
    color: var(--gray);
}

.btn-track {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.35s ease;
    white-space: nowrap;
    box-shadow: 0 10px 30px rgba(124,58,237,0.3);
}

.btn-track:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(124,58,237,0.5);
}

.btn-track:disabled {
    background: var(--gray);
    cursor: not-allowed;
    transform: none;
}

.search-hint {
    margin-top: 1rem;
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    border: 1px solid var(--border);
}

.loading-state i {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.loading-state p {
    color: var(--gray);
    font-size: 1.1rem;
}

/* Error State */
.error-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    border: 1px solid var(--border);
}

.error-state i {
    font-size: 4rem;
    color: #ef4444;
    margin-bottom: 1.5rem;
}

.error-state h3 {
    margin-bottom: 1rem;
    color: var(--text);
}

.error-state p {
    color: var(--gray);
}

/* Order Status Container */
.order-status-container {
    background: var(--card);
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.15);
    padding: 2.5rem;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

/* Order Header */
.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.order-ref-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.ref-label {
    color: var(--gray);
    font-size: 0.95rem;
    font-weight: 500;
}

.ref-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.btn-copy-ref {
    background: rgba(37,99,235,0.1);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.6rem;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--primary);
}

.btn-copy-ref:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.order-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.order-status-badge.status-pending {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

.order-status-badge.status-payment_pending {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
}

.order-status-badge.status-confirmed {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
}

.order-status-badge.status-processing {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    color: #3730a3;
}

.order-status-badge.status-completed {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
}

/* Progress Timeline */
.progress-timeline {
    margin: 3rem 0;
    position: relative;
}

.progress-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 20px;
    bottom: 20px;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--border));
}

.timeline-item {
    display: flex;
    gap: 1.75rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.timeline-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--light);
    border: 3px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--gray);
    flex-shrink: 0;
    z-index: 1;
    transition: all 0.4s ease;
}

.timeline-item.active .timeline-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 0 6px rgba(37,99,235,0.15);
    transform: scale(1.1);
}

.timeline-item.completed .timeline-icon {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-color: #22c55e;
    color: white;
}

.timeline-content {
    flex: 1;
    padding: 0.5rem 0;
}

.timeline-content h4 {
    color: var(--text);
    margin-bottom: 0.35rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.timeline-content p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.timeline-time {
    font-size: 0.85rem;
    color: var(--gray);
    font-style: italic;
    opacity: 0.8;
}

/* Order Details Grid */
.order-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.detail-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent);
    padding: 2rem;
    border-radius: 18px;
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    transition: all 0.35s ease;
}

.detail-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

.detail-card h3 {
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
}

.detail-card h3 i {
    color: var(--primary);
    font-size: 1.4rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--gray);
    font-weight: 500;
    font-size: 0.95rem;
}

.detail-value {
    color: var(--text);
    font-weight: 600;
    text-align: right;
    font-size: 0.95rem;
}

.total-row {
    margin-top: 0.75rem;
    padding-top: 1.25rem;
    border-top: 2px solid var(--primary);
}

.total-row .detail-label,
.total-row .detail-value {
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 800;
}

/* Actions Card */
.actions-card {
    background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(124,58,237,0.08));
}

.actions-card p {
    color: var(--gray);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-action {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.35s ease;
    box-shadow: 0 10px 30px rgba(124,58,237,0.3);
}

.btn-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(124,58,237,0.5);
}

/* Notification */
.notification {
    position: fixed;
    top: 30px;
    right: 30px;
    background: var(--card);
    padding: 1.25rem 1.75rem;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10000;
    transform: translateX(450px);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 1px solid var(--border);
}

.notification.show {
    transform: translateX(0);
}

.notification i {
    font-size: 1.5rem;
}

.notification-success {
    border-left: 4px solid #22c55e;
}

.notification-success i {
    color: #22c55e;
}

.notification-error {
    border-left: 4px solid #ef4444;
}

.notification-error i {
    color: #ef4444;
}

/* Responsive */
@media (max-width: 968px) {
    .status-header h1 {
        font-size: 2.5rem;
    }
    
    .search-box {
        flex-direction: column;
        padding: 1.25rem;
        gap: 0.75rem;
    }
    
    .search-box input {
        width: 100%;
        padding: 0.75rem;
        text-align: center;
    }
    
    .btn-track {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .order-ref-display {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .ref-value {
        font-size: 1.4rem;
    }
    
    .progress-timeline::before {
        left: 16px;
    }
    
    .timeline-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .order-details-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .status-header h1 {
        font-size: 2rem;
    }
    
    .status-header p {
        font-size: 1rem;
    }
    
    .order-status-container {
        padding: 1.5rem;
    }
    
    .detail-card {
        padding: 1.5rem;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .detail-value {
        text-align: left;
    }
    
    .notification {
        left: 20px;
        right: 20px;
        transform: translateY(-150px);
    }
    
    .notification.show {
        transform: translateY(0);
    }
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}