/* تنسيق البحث في جدول الطلبات */
.search-controls-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-orders-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-orders-input {
    padding: 8px 12px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
    width: 0;
    opacity: 0;
    background: var(--card-bg);
    color: var(--text-primary);
}

.search-orders-input.active {
    width: 200px;
    opacity: 1;
    animation: slideIn 0.3s ease;
}

.search-orders-input:focus {
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.2);
}

#sellerOrderSearchBtn {
    transition: transform 0.3s ease;
}

#sellerOrderSearchBtn:hover {
    transform: scale(1.1);
}

#sellerOrderSearchBtn.active {
    background: var(--primary-color);
    color: white;
    animation: pulse 0.5s ease;
}

@keyframes slideIn {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 200px;
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

/* Utility class for hidden elements */
.hidden {
    display: none;
}

/* تحسينات للموبايل */
@media (max-width: 768px) {
    .search-orders-input.active {
        width: 150px;
    }

    @keyframes slideIn {
        from {
            width: 0;
            opacity: 0;
        }

        to {
            width: 150px;
            opacity: 1;
        }
    }
}

@media (max-width: 480px) {
    .search-orders-container {
        flex-direction: column-reverse;
        align-items: flex-end;
    }

    .search-orders-input.active {
        width: 100%;
        max-width: 200px;
    }

    @keyframes slideIn {
        from {
            width: 0;
            opacity: 0;
        }

        to {
            width: 100%;
            opacity: 1;
        }
    }
}