/* ============ إعادة الألوان السماوية لـ Select2 ============ */

/* تخصيص Select2 للعربية مع الألوان السماوية */
.select2-container--default .select2-selection--single {
    height: 56px !important;
    padding: 12px !important;
    border: 2px solid #94a3b8 !important;
    border-radius: 12px !important;
    text-align: right !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
}

.select2-container--default .select2-selection--single:hover {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #0f172a !important;
    line-height: 32px !important;
    padding-right: 20px !important;
    text-align: right !important;
    font-size: 16px !important;
    font-weight: 500;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 56px !important;
    left: 10px !important;
    right: auto !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #38bdf8 transparent transparent transparent !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #38bdf8 transparent !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 2px solid #38bdf8 !important;
    border-radius: 8px !important;
    text-align: right !important;
    padding: 8px !important;
}

.select2-container--default .select2-results__option {
    text-align: right !important;
    padding: 10px 20px !important;
    direction: rtl !important;
    color: #334155 !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #f0f9ff !important;
    color: #0369a1 !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #0ea5e9 !important;
    color: white !important;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #0ea5e9 !important;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1) !important;
}

/* تخصيص Select2 للفلاتر مع الألوان السماوية */
.select2-filter.select2-container--default .select2-selection--single {
    height: 52px !important;
    padding: 10px !important;
    border: 2px solid #cbd5e1 !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
}

.select2-filter.select2-container--default .select2-selection--single:hover {
    border-color: #38bdf8 !important;
}

.select2-filter.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #0ea5e9 !important;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1) !important;
}

/* تنسيق الـ dropdown مع الألوان السماوية */
.select2-dropdown {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.1) !important;
    overflow: hidden !important;
    margin-top: 5px !important;
    font-size: 1.1rem !important;
}

.select2-search--dropdown .select2-search__field {
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 10px 15px !important;
    font-size: 16px !important;
    margin-bottom: 10px !important;
}

.select2-search--dropdown .select2-search__field:focus {
    border-color: #38bdf8 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1) !important;
}

/* زر المسح مع الألوان السماوية */
.select2-container--default .select2-selection--single .select2-selection__clear {
    float: left !important;
    margin-left: 10px !important;
    margin-right: auto !important;
    font-size: 22px !important;
    color: #64748b !important;
    font-weight: normal !important;
    line-height: 1 !important;
    opacity: 0.7 !important;
    transition: all 0.3s ease !important;
    position: absolute !important;
    left: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear:hover {
    color: #0ea5e9 !important;
    opacity: 1 !important;
    background: #f0f9ff !important;
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 3px 8px rgba(14, 165, 233, 0.2) !important;
}

/* Select2 بكامل العرض مع الألوان السماوية */
.select2-company-search-analysis.w-full {
    width: 100% !important;
    height: 64px !important;
    padding: 1rem 3.5rem 1rem 1.5rem !important;
    font-size: 1.25rem !important;
    border-width: 2px !important;
    border-radius: 16px !important;
    border-color: #cbd5e1 !important;
}

.select2-company-search-analysis.w-full:focus {
    border-color: #0ea5e9 !important;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1) !important;
}

/* تحسينات للعناوين الأخرى ذات الألوان السماوية */
.text-gradient {
    background: linear-gradient(to right, #0ea5e9, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.counter {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(to right, #0ea5e9, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.submit-btn {
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 18px;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
}

.submit-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.4);
}

.quick-search-floating-btn {
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    /* باقي الخصائص تبقى كما هي */
}

.quick-search-floating-btn:hover {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    /* باقي الخصائص تبقى كما هي */
}

.modern-section-card {
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.08);
    /* باقي الخصائص تبقى كما هي */
}

.modern-section-card:hover {
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.12);
}

/* زر التحليل السماوي */
.analysis-btn {
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    /* باقي الخصائص تبقى كما هي */
}

.analysis-btn:hover {
    background: linear-gradient(135deg, #38bdf8, #7dd3fc);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.25);
}

/* تعديل الألوان للبطاقات السماوية */
.card-primary .adv-card-icon { 
    background: linear-gradient(135deg, #0ea5e9, #38bdf8); 
}

/* الألوان السماوية للنجوم في hover */
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #fbbf24; /* اللون الأصفر يبقى للنجوم */
    transform: scale(1.2) rotate(5deg);
    animation: starPulse 0.6s ease;
}

/* الحفاظ على اللون الأخضر للنجاح فقط */
.badge-success {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
}

/* مودال الموافقة القانونية يبقى باللون السماوي */
.legal-modal-header {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    /* باقي الخصائص تبقى كما هي */
}

.accept-btn {
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
    /* باقي الخصائص تبقى كما هي */
}

.accept-btn:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.3);
}

.accept-btn.pulse {
    animation: pulseAccept 2s infinite;
}

@keyframes pulseAccept {
    0% { box-shadow: 0 0 0 0 rgba(65, 195, 255, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(14, 165, 233, 0); }
    100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
}