/* Vendor Orders Styles - Liquid Glass Design */

/* Loading State */
.orders-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 15px;
}

/* Empty State */
.vendor-orders-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.vendor-orders-empty svg {
    opacity: 0.3;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.vendor-orders-empty h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.vendor-orders-empty p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.vendor-orders-empty-filter {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Filters */
.vendor-orders-filters {
    display: flex;
    gap: 8px;
    padding: 16px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.vendor-filter-btn {
    flex-shrink: 0;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
}

.vendor-filter-btn:active {
    transform: scale(0.96);
}

.vendor-filter-btn.active {
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.2) 0%, rgba(10, 132, 255, 0.1) 100%);
    border-color: rgba(10, 132, 255, 0.3);
    color: var(--accent-primary);
}

/* Orders List */
.vendor-orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 16px 24px 16px;
}

/* Order Card - Liquid Glass Style (Simplified, Clickable) */
.vendor-order-card {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.06) 100%
    );
    backdrop-filter: var(--blur-strong);
    -webkit-backdrop-filter: var(--blur-strong);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    -webkit-tap-highlight-color: transparent;
}

.vendor-order-card:active {
    transform: scale(0.98);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.16) 0%,
        rgba(255, 255, 255, 0.08) 100%
    );
}

/* Order Header */
.vendor-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.vendor-order-number {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

.vendor-order-status {
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    text-transform: capitalize;
}

.vendor-status-pending_payment {
    background: rgba(255, 204, 0, 0.15);
    color: rgba(255, 204, 0, 1);
}

.vendor-status-paid,
.vendor-status-processing {
    background: rgba(10, 132, 255, 0.15);
    color: rgba(10, 132, 255, 1);
}

.vendor-status-shipped {
    background: rgba(52, 199, 89, 0.15);
    color: rgba(52, 199, 89, 1);
}

.vendor-status-delivered {
    background: rgba(52, 199, 89, 0.2);
    color: rgba(52, 199, 89, 1);
}

.vendor-status-cancelled {
    background: rgba(255, 69, 58, 0.15);
    color: rgba(255, 69, 58, 1);
}

/* Order Date */
.vendor-order-date {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* Order Footer */
.vendor-order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.vendor-order-total {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-primary);
    letter-spacing: -0.3px;
}

.vendor-order-chevron {
    opacity: 0.4;
    flex-shrink: 0;
}

/* Small Spinner */
.spinner-small {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ================================================
   ORDER DETAILS BOTTOM SHEET - SIMPLE CLEAN DESIGN
   ================================================ */

/* Header - Single Line */
.order-details-sheet .order-form-header {
    padding: 16px 20px;
}

.order-simple-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.order-simple-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    white-space: nowrap;
}

.order-date-inline {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

.order-status-badge {
    margin-left: auto;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.order-status-badge.status-pending_payment {
    background: rgba(255, 204, 0, 0.15);
    color: rgba(255, 204, 0, 1);
    border: 1px solid rgba(255, 204, 0, 0.2);
}

.order-status-badge.status-paid,
.order-status-badge.status-processing {
    background: rgba(10, 132, 255, 0.15);
    color: rgba(10, 132, 255, 1);
    border: 1px solid rgba(10, 132, 255, 0.2);
}

.order-status-badge.status-shipped {
    background: rgba(52, 199, 89, 0.15);
    color: rgba(52, 199, 89, 1);
    border: 1px solid rgba(52, 199, 89, 0.2);
}

.order-status-badge.status-delivered {
    background: rgba(52, 199, 89, 0.2);
    color: rgba(52, 199, 89, 1);
    border: 1px solid rgba(52, 199, 89, 0.25);
}

.order-status-badge.status-cancelled {
    background: rgba(255, 69, 58, 0.15);
    color: rgba(255, 69, 58, 1);
    border: 1px solid rgba(255, 69, 58, 0.2);
}

/* Simple Sections */
.simple-section {
    margin-bottom: 20px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.04) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

.section-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-primary);
    letter-spacing: -0.3px;
}

/* Products List */
.products-list {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.product-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
}

.product-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

/* Customer Info */
.customer-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.customer-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.customer-detail {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.5;
}

.customer-relay {
    color: var(--accent-primary);
    font-weight: 600;
}

.customer-comment {
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

/* Tracking Code */
.tracking-code {
    padding: 14px 16px;
    margin: 0 12px 12px;
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.15) 0%, rgba(52, 199, 89, 0.08) 100%);
    border: 1px solid rgba(52, 199, 89, 0.25);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    color: rgba(52, 199, 89, 1);
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    letter-spacing: 0.5px;
    text-align: center;
}

/* Action Buttons */
.order-actions {
    padding: 0 4px 4px;
}

.btn-ship {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: linear-gradient(135deg, #0A84FF 0%, #0066CC 100%);
    border: 1px solid rgba(10, 132, 255, 0.3);
    border-radius: 12px;
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 4px 12px rgba(10, 132, 255, 0.3);
}

.btn-ship:active {
    transform: scale(0.96);
    background: linear-gradient(135deg, #0066CC 0%, #0052A3 100%);
}

.btn-ship svg {
    flex-shrink: 0;
}

/* Tracking Form */
.tracking-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tracking-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    transition: all var(--transition-fast);
}

.tracking-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.15);
}

.tracking-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.form-btns {
    display: flex;
    gap: 10px;
}

.btn-cancel {
    flex: 1;
    padding: 13px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
}

.btn-cancel:active {
    transform: scale(0.96);
    background: rgba(255, 255, 255, 0.12);
}

.btn-confirm {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 13px;
    background: linear-gradient(135deg, #0A84FF 0%, #0066CC 100%);
    border: 1px solid rgba(10, 132, 255, 0.3);
    border-radius: 12px;
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 4px 12px rgba(10, 132, 255, 0.3);
}

.btn-confirm:active:not(:disabled) {
    transform: scale(0.96);
    background: linear-gradient(135deg, #0066CC 0%, #0052A3 100%);
}

.btn-confirm:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-confirm svg {
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 380px) {
    .order-simple-header {
        gap: 8px;
    }

    .order-simple-header h3 {
        font-size: 16px;
    }

    .order-date-inline {
        font-size: 12px;
    }

    .vendor-order-total {
        font-size: 18px;
    }

    .info-key {
        min-width: 70px;
        font-size: 12px;
    }

    .info-val {
        font-size: 13px;
    }
}
