* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.5;
}

.search-filter-container {
    background-color: white;
    padding: 15px;
    margin: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-filter-box {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 160px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.search-box button:hover {
    transform: translateY(-50%) scale(1.05);
}

.filter-dropdown {
    min-width: 100px;
    position: relative;
}

.filter-button {
    padding: 12px 20px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 100px;
    justify-content: center;
}

.filter-button:hover {
    border-color: #667eea;
    background-color: #f8f9ff;
}

.filter-button.active {
    border-color: #667eea;
    background-color: #f8f9ff;
}

.filter-button i {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.filter-button.active i {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    min-width: 140px;
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
}

.dropdown-item {
    padding: 14px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-item:hover {
    background-color: #f8f9ff;
}

.dropdown-item.active {
    background-color: #f8f9ff;
    color: #667eea;
    font-weight: 500;
}

.dropdown-item.active::before {
    content: '✓';
    color: #667eea;
    font-weight: bold;
}

.order-list {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 15px 20px;
}

.order-card {
    background-color: white;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.order-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fafbff;
}

.order-id {
    font-weight: 600;
    color: #667eea;
    font-size: 16px;
}

.order-type {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.type-dinein-reserve {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.type-dinein-immediate {
    background-color: #e3f2fd;
    color: #1565c0;
}

.type-delivery-immediate {
    background-color: #fff3e0;
    color: #e65100;
}

.type-delivery-reserve {
    background-color: #fce4ec;
    color: #c62828;
}

.order-body {
    padding: 20px;
}

.order-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.order-time {
    color: #6c757d;
}

.order-amount {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.reserve-info {
    background: #f8f9ff;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
}

.reserve-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.reserve-info i {
    color: #667eea;
    font-size: 13px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.reserve-info .reserve-time {
    color: #667eea;
    font-weight: 500;
}

.reserve-info .reserve-label {
    color: #8e8e93;
    font-size: 12px;
}

.reserve-info .reserve-value {
    color: #1d1d1f;
    font-weight: 500;
}

.shipment-preview {
    margin-bottom: 14px;
}

.shipment-preview-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 13px;
    color: #555;
    border-bottom: 1px dashed #f0f0f0;
}

.shipment-preview-item:last-child {
    border-bottom: none;
}

.shipment-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: white;
    flex-shrink: 0;
}

.shipment-icon.catering {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.shipment-icon.ecommerce {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.shipment-store {
    font-weight: 500;
    color: #333;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shipment-status-tag {
    margin-left: auto;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
    flex-shrink: 0;
}

.shipment-status-tag.preparing {
    background-color: #fff3cd;
    color: #856404;
}

.shipment-status-tag.shipping {
    background-color: #d1ecf1;
    color: #0c5460;
}

.shipment-status-tag.delivered {
    background-color: #d4edda;
    color: #155724;
}

.shipment-status-tag.pending {
    background-color: #f8d7da;
    color: #721c24;
}

.shipment-status-tag.dining {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.order-items-text {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 16px;
    line-height: 1.4;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f8f9fa;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 500;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-processing {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-shipping {
    background-color: #cce5ff;
    color: #004085;
}

.status-dining {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status-delivered {
    background-color: #d4edda;
    color: #155724;
}

.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

.status-refunding {
    background-color: #fff3e0;
    color: #e65100;
}

.shipment-status-tag.refunding {
    background-color: #fff3e0;
    color: #e65100;
}

.view-detail {
    color: #667eea;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.view-detail:hover {
    color: #764ba2;
}

.loading, .empty {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty i {
    font-size: 64px;
    margin-bottom: 20px;
    color: #dee2e6;
}

@media (max-width: 480px) {
    .search-filter-container {
        margin: 10px;
        padding: 12px;
    }

    .search-filter-box {
        gap: 8px;
    }

    .search-box input {
        padding: 10px 40px 10px 16px;
    }

    .search-box button {
        width: 32px;
        height: 32px;
        right: 4px;
    }

    .filter-button {
        padding: 10px 16px;
        font-size: 14px;
        min-width: 90px;
    }

    .order-card {
        margin-bottom: 12px;
    }

    .order-header {
        padding: 14px 16px;
    }

    .order-body {
        padding: 16px;
    }
}
