/* Order Pages CSS */

/* Checkout Page */
.checkout-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.checkout-header {
    text-align: center;
    margin-bottom: 2rem;
}

.checkout-header h1 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.order-id-badge {
    display: inline-block;
    font-family: monospace;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--primary-rgb), 0.05));
    padding: 1rem 2rem;
    border-radius: 12px;
    border: 2px dashed var(--primary-color);
    margin: 1rem 0;
}

.order-id-badge i {
    margin-right: 0.5rem;
}

.copy-order-id {
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    margin-top: 0.5rem;
}

.copy-order-id:hover {
    color: var(--primary-color);
}

/* Countdown Timer */
.countdown-wrapper {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 2rem;
}

.countdown-wrapper.expired {
    background: #6c757d;
}

.countdown-title {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.countdown-number {
    font-size: 2rem;
    font-weight: bold;
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    min-width: 50px;
}

.countdown-label {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    opacity: 0.8;
}

/* Order Card */
.order-card {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.order-card-header {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), transparent);
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.order-card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.order-card-header i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.order-card-body {
    padding: 1.5rem;
}

/* Order Summary */
.order-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.order-summary-item:last-child {
    border-bottom: none;
}

.order-summary-item .label {
    color: var(--text-secondary);
}

.order-summary-item .value {
    font-weight: 500;
    color: var(--text-primary);
}

.order-summary-item.total {
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
}

.order-summary-item.total .label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.order-summary-item.total .value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.flash-sale-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.discount-text {
    color: #27ae60;
    font-weight: 500;
}

.original-price {
    text-decoration: line-through;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

/* Payment Methods */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.payment-method {
    position: relative;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method:hover {
    border-color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.05);
}

.payment-method.selected {
    border-color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.1);
}

.payment-method input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.payment-method-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.payment-method-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.payment-method-check {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.payment-method.selected .payment-method-check {
    display: flex;
}

/* Payment Details */
.payment-details {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--background);
    border-radius: 12px;
    display: none;
}

.payment-details.active {
    display: block;
}

.payment-details h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.qris-container {
    text-align: center;
}

.qris-placeholder {
    width: 200px;
    height: 200px;
    background: white;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--text-secondary);
}

.bank-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bank-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.bank-logo {
    width: 60px;
    height: 40px;
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
}

.bank-info {
    flex: 1;
}

.bank-name {
    font-weight: 500;
    color: var(--text-primary);
}

.bank-account {
    font-family: monospace;
    font-size: 1.1rem;
    margin-top: 0.25rem;
}

.copy-btn {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
}

.copy-btn:hover {
    opacity: 0.9;
}

/* Confirm Button */
.confirm-payment-btn {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}

.confirm-payment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3);
}

.confirm-payment-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* Status Page */
.status-container {
    max-width: 700px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.status-header {
    text-align: center;
    margin-bottom: 2rem;
}

.status-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 3rem;
}

.status-icon.pending {
    background: linear-gradient(135deg, #fff3cd, #ffeeba);
    color: #856404;
}

.status-icon.paid {
    background: linear-gradient(135deg, #cce5ff, #b8daff);
    color: #004085;
}

.status-icon.processing {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.status-icon.completed {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.status-icon.failed,
.status-icon.expired {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

.status-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.status-subtitle {
    color: var(--text-secondary);
}

/* Timeline */
.order-timeline {
    position: relative;
    padding-left: 2rem;
    margin: 2rem 0;
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
    padding-left: 1.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    bottom: 0;
    width: 3px;
    background: var(--border-color);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-dot {
    position: absolute;
    left: -2.5rem;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--border-color);
    border: 3px solid var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-item.completed .timeline-dot {
    background: #28a745;
}

.timeline-item.completed::before {
    background: #28a745;
}

.timeline-item.active .timeline-dot {
    background: var(--primary-color);
    animation: pulse 2s infinite;
}

.timeline-dot i {
    color: white;
    font-size: 0.6rem;
}

.timeline-content {
    background: var(--card-bg);
    padding: 1rem 1.25rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.timeline-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.timeline-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(var(--primary-rgb), 0);
    }
}

/* Track Page */
.track-container {
    max-width: 500px;
    margin: 4rem auto;
    padding: 0 1rem;
}

.track-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.track-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.track-title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.track-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.track-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.track-input {
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1.1rem;
    text-align: center;
    font-family: monospace;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: var(--background);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.track-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}

.track-input::placeholder {
    letter-spacing: normal;
    text-transform: none;
}

.track-btn {
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.track-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3);
}

.track-help {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.track-help h4 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.track-help p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Alert Messages */
.order-alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.order-alert i {
    font-size: 1.25rem;
    margin-top: 0.15rem;
}

.order-alert.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.order-alert.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.order-alert.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.order-alert.info {
    background: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
}

/* Responsive */
@media (max-width: 640px) {
    .checkout-container,
    .status-container {
        padding: 0 0.75rem;
    }
    
    .order-id-badge {
        font-size: 1.1rem;
        padding: 0.75rem 1.25rem;
    }
    
    .countdown-number {
        font-size: 1.5rem;
        min-width: 40px;
        padding: 0.35rem 0.75rem;
    }
    
    .countdown-timer {
        gap: 0.5rem;
    }
    
    .payment-methods {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .order-card-body {
        padding: 1rem;
    }
    
    .track-card {
        padding: 2rem 1.5rem;
    }
}
