/**
 * تصميم مخصص لزر طلب عرض السعر
 * Quote Request Button Styles
 */

/* تصميم الزر الأساسي */
.quote-request-btn {
    position: relative;
    background: transparent;
    border: none;
    color: #333;
    font-size: 1.1rem;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer !important;
}

.quote-request-btn:hover {
    background-color: rgba(0, 123, 255, 0.1);
    color: #007bff;
    transform: translateY(-1px);
}

.quote-request-btn:active {
    transform: translateY(0);
}

/* شارة العدد */
.quote-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
}

/* القائمة المنسدلة */
.quote-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 300px;
    z-index: 9999;
    display: none !important;
    overflow: hidden;
}

/* عرض القائمة */
.quote-dropdown-menu.show {
    display: block !important;
    animation: fadeInDown 0.3s ease;
}

/* حاوي القائمة المنسدلة */
.quote-dropdown-container {
    position: relative;
}

/* الحاوي الرئيسي للزر */
.quote-dropdown-container .quote-request-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* تأثير الظهور */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تأثير الاختفاء */
@keyframes fadeOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* تصميم المحتوى داخل القائمة */
.quote-dropdown-header {
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.quote-dropdown-header h6 {
    margin: 0;
    color: #333;
    font-weight: 600;
}

/* تصميم عناصر القائمة */
.quote-dropdown-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.quote-dropdown-item:hover {
    background: #f8f9fa;
}

.quote-dropdown-item:last-child {
    border-bottom: none;
}

/* أزرار القائمة */
.quote-dropdown-footer {
    padding: 12px 16px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    text-align: center;
}

.quote-dropdown-footer .btn {
    margin: 0 4px;
}

/* تصميم متجاوب */
@media (max-width: 768px) {
    .quote-dropdown-menu {
        min-width: 280px;
        right: -20px;
    }
    
    .quote-request-btn {
        padding: 6px 10px;
        font-size: 1rem;
    }
}

/* تصميم RTL */
[dir="rtl"] .quote-dropdown-menu {
    right: auto;
    left: 0;
}

[dir="rtl"] .quote-count {
    right: auto;
    left: -2px;
}

/* تأكد من أن الزر يظهر بشكل صحيح */
.quote-request-btn {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* تأكد من أن القائمة تظهر فوق العناصر الأخرى */
.quote-dropdown-menu {
    position: absolute !important;
    z-index: 9999 !important;
}
