/* ===================================
   GLOBAL – Noto Kufi Arabic + RTL
   =================================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@400;600;700&display=swap');

html { direction: rtl; }
body {
    font-family: 'Noto Kufi Arabic', sans-serif !important;
    background: #f8f9fa;
    color: #212529;
}

/* Links */
a { transition: color .2s; }
a:hover { color: #0d6efd !important; }

/* Cards */
.card {
    border: none;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,.1);
    transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.card-img-top { height: 190px; object-fit: cover; }

/* Buttons */
.btn { border-radius: 10px; font-weight: 600; }

/* ============== NAVBAR - DEEP BLUE + CENTER ICONS + ANIMATION ============== */
.navbar {
    background: #001f3f !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    padding: 0.75rem 1rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-brand img {
    transition: transform 0.3s ease;
    height: 45px;
}
.navbar-brand:hover img {
    transform: scale(1.15);
}

/* الأيقونات في المنتصف */
.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 0.75rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    /* overflow: hidden; REMOVED to fix clipping issue */
}

.nav-link i {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
    transition: all 0.3s ease;
}

.nav-link span {
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* تأثير عند الـ hover */
.nav-link:hover {
    background: rgba(255,255,255,0.15) !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.nav-link:hover i {
    transform: scale(1.2);
    color: #ffd700 !important;
}

/* تأثير عند الضغط */
.nav-link:active {
    transform: translateY(1px) scale(0.95);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* الأيقونة النشطة */
.nav-link.active {
    background: rgba(255,255,255,0.25) !important;
    color: #ffd700 !important;
}
.nav-link.active i {
    color: #ffd700 !important;
}

/* إخفاء النص في الشاشات الصغيرة */
@media (max-width: 992px) {
    .nav-link span {
        display: none;
    }
    .nav-link {
        padding: 0.75rem !important;
    }
}

/* ---------------------------------------------------- */
/* 💡 FIXED GLITCH SLIDER: CAROUSEL, FADE, AND ZOOM */
/* ---------------------------------------------------- */

/* 1. KEYFRAMES for SLOW MOTION ZOOM (20 seconds cycle) */
@keyframes slider-zoom {
    from {
        transform: scale(1.0);
    }
    to {
        transform: scale(1.1); /* Zoom to 110% */
    }
}

.glitch-slider {
    /* الارتفاع الأصلي للمحافظة على الحجم */
    height: 480px; 
    position: relative; 
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
}

/* 2. INDIVIDUAL SLIDES: Stacked and hidden by default */
.glitch-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 🚨 CRITICAL FIX: نستخدم الشفافية والحالة المرئية للحذف والتراكم */
    opacity: 0;
    visibility: hidden; 
    
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out; 
    will-change: opacity, visibility; /* Optimization hint */
    z-index: 1;
    background: #000;
}

/* 3. ACTIVE SLIDE: Makes the current slide visible */
.glitch-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 5;
}

/* 4. SLIDER IMAGE: Apply the zoom animation */
.glitch-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* تطبيق الزووم */
    animation: slider-zoom 20s infinite alternate ease-in-out; 
    will-change: transform; /* Optimization hint */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1; 
    opacity: 0.88; 
}

/* 5. SLIDER TEXT: Ensure the text is on top (CRITICAL) */
.glitch-text {
    /* Retain original positioning properties */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* Ensure text is above all images */
    z-index: 10; 
    pointer-events: none;
    
    /* Add visual styles (from the original file) */
    color: #fff;
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.9);
    text-align: center;
    width: 85%;
    max-width: 900px;
    padding: 15px;
    line-height: 1.4;
    letter-spacing: 1.2px;
}
/* ---------------------------------------------------- */


/* ============== GLITCH TEXT - CENTER + GLITCH ANIMATION ============== */
/* NOTE: Retaining old styles below this line as they are functional */

.glitch-text span {
    display: inline-block;
    animation: glitch 2s infinite;
}

/* Responsive Font Size */
@media (min-width: 1400px) {
    .glitch-text { font-size: 4.2rem; }
}
@media (max-width: 1200px) {
    .glitch-text { font-size: 3.5rem; }
}
@media (max-width: 992px) {
    .glitch-text { font-size: 3rem; }
}
@media (max-width: 768px) {
    .glitch-text { font-size: 2.3rem; }
}
@media (max-width: 576px) {
    .glitch-text { font-size: 1.8rem; padding: 10px; }
}
@media (max-width: 400px) {
    .glitch-text { font-size: 1.5rem; }
}

@keyframes glitch {
    0%,100% { transform: translate(0); }
    10% { transform: translate(-4px, -4px); }
    20% { transform: translate(4px, 4px); }
    30% { transform: translate(-4px, 4px); }
    40% { transform: translate(4px, -4px); }
    50% { transform: translate(-4px, 0); }
    60% { transform: translate(4px, 0); }
    70% { transform: translate(0, 4px); }
    80% { transform: translate(0, -4px); }
    90% { transform: translate(-4px, -4px); }
}

/* Search bar under slider */
.search-under {
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 1.8rem;
    margin-top: -60px;
    position: relative;
    z-index: 10;
    box-shadow: 0 8px 25px rgba(0,0,0,.12);
}
@media (max-width:576px) {
    .search-under { margin-top: -30px; padding:1rem; }
}

/* ============== INPUT GROUP - PERFECT ALIGNMENT ============== */
.input-group {
    height: 100%;
    display: flex;
}

.input-group .form-control,
.input-group .form-select,
.input-group .btn,
.input-group .dropdown .btn {
    height: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    border-radius: 0.375rem !important;
}

.input-group .dropdown {
    flex: 1;
    height: 100%;
    position: relative;
}

.input-group .dropdown .dropdown-toggle {
    width: 100%;
    height: 100%;
    padding: 0.375rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    color: #495057;
    font-size: 1rem;
    text-align: right;
}

.input-group .dropdown .dropdown-toggle:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
    z-index: 3;
}

.input-group .dropdown .dropdown-menu {
    width: 100% !important;
    max-height: 280px;
    overflow-y: auto;
    margin-top: 0;
    border-radius: 0 0 0.375rem 0.375rem;
    border: 1px solid #ced4da;
    border-top: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1050;
}

.input-group .dropdown.show .dropdown-toggle {
    border-radius: 0.375rem 0.375rem 0 0;
    border-bottom-color: transparent;
}

/* أيقونة المعاينة */
#cat-icon-preview,
#add-cat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 100%;
}

#cat-icon-preview img,
#cat-icon-preview i,
#add-cat-icon img,
#add-cat-icon i {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* نص الاختيار */
#selected-cat-text,
#add-cat-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 8px;
    text-align: right;
}

/* العناصر داخل القائمة */
.dropdown-item {
    padding: 10px 12px !important;
    font-size: 0.95rem;
    display: flex !important;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #f1f1f1;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item img,
.dropdown-item i {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.dropdown-item span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #0d6efd;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #e2e8f0;
}
footer a { color: #94a3b8; }
footer a:hover { color: #fff; }

/* Responsive */
@media (max-width:768px) {
    .row-cols-md-2 > *, .row-cols-lg-4 > * { flex:0 0 100%; max-width:100%; }
}

/* ============== CONTACT FORM - RESPONSIVE & FIT ============== */
@media (max-width: 992px) {
    .card-header h3 {
        font-size: 1.5rem !important;
    }
    .card-body {
        padding: 1.5rem !important;
    }
    .input-group .form-control,
    .input-group .input-group-text {
        font-size: 0.95rem !important;
        padding: 0.5rem 0.75rem !important;
    }
    .btn {
        font-size: 0.95rem !important;
        padding: 0.5rem 1rem !important;
    }
}

@media (max-width: 768px) {
    .col-lg-7, .col-lg-5 {
        margin-bottom: 2rem;
    }
    .card {
        margin: 0 1rem;
    }
}

/* ضبط حجم الأيقونات */
.input-group-text i {
    font-size: 1rem !important;
}

/* تحسين الـ textarea */
textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* ============== CONTACT PAGE - H3 TEXT CLEAR ============== */
.card-header.bg-gradient-primary h3,
.card-header.bg-gradient-primary .fs-4,
.card-header.bg-gradient-primary .fs-md-3 {
    color: #ffffff !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5) !important;
    font-weight: 700 !important;
}

/* لضمان الوضوح على كل الأجهزة */
@media (max-width: 576px) {
    .card-header h3 {
        font-size: 1.3rem !important;
    }
}

/* ============== ADD-JOB CATEGORY DROPDOWN - PERFECT FIT ============== */
#add-cat-btn {
    height: 100% !important;
    min-height: 38px !important;
    padding: 0.375rem 0.75rem !important;
    border: 1px solid #ced4da !important;
    border-radius: 0.375rem !important;
    background-color: #fff !important;
    color: #495057 !important;
    font-size: 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    text-align: right !important;
    box-shadow: none !important;
}

#add-cat-btn:focus {
    border-color: #80bdff !important;
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25) !important;
}

#add-cat-btn + .dropdown-menu {
    width: 100% !important;
    max-height: 280px !important;
    overflow-y: auto !important;
    margin-top: 0 !important;
    border-radius: 0 0 0.375rem 0.375rem !important;
    border: 1px solid #ced4da !important;
    border-top: none !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    z-index: 1050 !important;
}

#add-cat-btn.show {
    border-radius: 0.375rem 0.375rem 0 0 !important;
    border-bottom-color: transparent !important;
}

/* أيقونة الفئة */
#add-cat-icon {
    width: 38px !important;
    height: 100% !important;
    min-height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #f8f9fa !important;
    border: 1px solid #ced4da !important;
    border-right: none !important;
    border-radius: 0.375rem 0 0 0.375rem !important;
}

#add-cat-icon img,
#add-cat-icon i {
    width: 18px !important;
    height: 18px !important;
    object-fit: contain !important;
}

/* نص الفئة */
#add-cat-text {
    flex: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin-right: 8px !important;
    text-align: right !important;
}

/* العناصر داخل القائمة */
.dropdown-item {
    padding: 0.5rem 1rem !important;
    font-size: 0.95rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.dropdown-item:hover {
    background-color: #f8f9fa !important;
}

/* متجاوب */
@media (max-width: 768px) {
    #add-cat-btn,
    #add-cat-icon,
    .input-group .form-control,
    .input-group .form-select {
        font-size: 0.9rem !important;
        padding: 0.5rem 0.75rem !important;
    }
}

/* ============== ADD-JOB CATEGORY - EXACT SAME AS OTHERS ============== */
#category-select {
    height: 100% !important;
    min-height: 38px !important;
    padding: 0.375rem 0.75rem !important;
    font-size: 1rem !important;
    border-radius: 0 0.375rem 0.375rem 0 !important;
    border-left: none !important;
}

.input-group .input-group-text {
    width: 38px !important;
    height: 100% !important;
    min-height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #f8f9fa !important;
    border: 1px solid #ced4da !important;
    border-right: none !important;
    border-radius: 0.375rem 0 0 0.375rem !important;
    padding: 0 !important;
}

#cat-icon-span img,
#cat-icon-span i {
    width: 18px !important;
    height: 18px !important;
    object-fit: contain !important;
}

.input-group .form-select:focus {
    border-color: #80bdff !important;
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25) !important;
    z-index: 3 !important;
}
/* ============== ADD-JOB - CATEGORY SELECT EXACT MATCH ============== */
#category-select {
    height: 38px !important;
    padding: 0.375rem 0.75rem !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    border-radius: 0 0.375rem 0.375rem 0 !important;
    border-left: none !important;
}

.input-group .input-group-text {
    height: 38px !important;
    width: 38px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #f8f9fa !important;
    border: 1px solid #ced4da !important;
    border-right: none !important;
    border-radius: 0.375rem 0 0 0.375rem !important;
}

#cat-icon-live {
    width: 18px !important;
    height: 18px !important;
    object-fit: contain !important;
}

.input-group .form-select:focus {
    border-color: #80bdff !important;
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25) !important;
    z-index: 3 !important;
}

/* إزالة أي تأثير إضافي */
.input-group {
    height: 38px !important;
}

/* ============== ADD-JOB CATEGORY - ICONS + NO ARROW ============== */
#category-select {
    height: 38px !important;
    padding: 0.375rem 0.75rem !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    border-radius: 0 0.375rem 0.375rem 0 !important;
    border-left: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: none !important;
}

.no-arrow {
    background-image: none !important;
}

/* إخفاء السهم تمامًا */
.form-select.no-arrow::-ms-expand {
    display: none;
}

.input-group .input-group-text {
    height: 38px !important;
    width: 38px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #f8f9fa !important;
    border: 1px solid #ced4da !important;
    border-right: none !important;
    border-radius: 0.375rem 0 0 0.375rem !important;
}

#cat-icon-live {
    width: 18px !important;
    height: 18px !important;
    object-fit: contain !important;
}

.input-group .form-select:focus {
    border-color: #80bdff !important;
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25) !important;
    z-index: 3 !important;
}

.input-group {
    height: 38px !important;
}

/* ============== ADD-JOB CATEGORY - ICONS INSIDE BOX + WORKING ============== */
.category-with-icon {
    display: none !important;
}

.dropdown .dropdown-toggle.form-select {
    height: 38px !important;
    padding: 0.375rem 0.75rem !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    border: 1px solid #ced4da !important;
    border-radius: 0.375rem !important;
    background-color: #fff !important;
    color: #495057 !important;
    text-align: right !important;
}

.dropdown .dropdown-menu {
    width: 100% !important;
    max-height: 280px !important;
    overflow-y: auto !important;
    margin-top: 0 !important;
    border-radius: 0 0 0.375rem 0.375rem !important;
    border: 1px solid #ced4da !important;
    border-top: none !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.dropdown.show .dropdown-toggle.form-select {
    border-radius: 0.375rem 0.375rem 0 0 !important;
    border-bottom-color: transparent !important;
}

.dropdown-item {
    padding: 0.5rem 1rem !important;
    font-size: 0.95rem !important;
}

.dropdown-item img,
.dropdown-item i {
    width: 20px !important;
    height: 20px !important;
    object-fit: contain !important;
}

/* ============== ADD-JOB CATEGORY - NO ARROW + CLEAR TEXT ============== */
.no-arrow {
    background-image: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

.no-arrow::after {
    display: none !important;
}

#category-btn {
    height: 38px !important;
    padding: 0.375rem 0.75rem !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    border: 1px solid #ced4da !important;
    border-radius: 0.375rem !important;
    background-color: #fff !important;
    color: #495057 !important;
    text-align: right !important;
}

#category-btn:focus {
    border-color: #80bdff !important;
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25) !important;
}

#category-btn + .dropdown-menu {
    width: 100% !important;
    max-height: 280px !important;
    overflow-y: auto !important;
    margin-top: 0 !important;
    border-radius: 0 0 0.375rem 0.375rem !important;
    border: 1px solid #ced4da !important;
    border-top: none !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

#category-btn.show {
    border-radius: 0.375rem 0.375rem 0 0 !important;
    border-bottom-color: transparent !important;
}

.dropdown-item {
    padding: 0.5rem 1rem !important;
    font-size: 0.95rem !important;
}

.dropdown-item img,
.dropdown-item i {
    width: 20px !important;
    height: 20px !important;
    object-fit: contain !important;
}


/* ============== NAVBAR - CENTERED + RESPONSIVE LOGO ============== */
.navbar {
    padding: 0.5rem 1rem !important;
}

/* الشعار متجاوب */
.logo-responsive {
    max-height: 50px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

@media (max-width: 992px) {
    .logo-responsive {
        max-height: 40px !important;
    }
}

@media (max-width: 576px) {
    .logo-responsive {
        max-height: 35px !important;
    }
}

/* النافبار في المنتصف */
.navbar-nav {
    gap: 0.5rem !important;
}

.nav-link {
    padding: 0.75rem 1rem !important;
    border-radius: 12px !important;
    min-width: 70px !important;
    text-align: center !important;
}

.nav-link i {
    font-size: 1.4rem !important;
    margin-bottom: 0.3rem !important;
}

@media (max-width: 992px) {
    .nav-link span {
        display: none !important;
    }
    .nav-link {
        padding: 0.75rem !important;
        min-width: 50px !important;
    }
}
/* ============== ADMIN NAVBAR - CENTERED + RESPONSIVE ============== */
.logo-responsive {
    max-height: 50px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

@media (max-width: 992px) {
    .logo-responsive {
        max-height: 40px !important;
    }
}

.navbar-nav {
    gap: 1rem !important;
}

.nav-link {
    padding: 0.75rem 1rem !important;
    border-radius: 10px !important;
    min-width: 70px !important;
    text-align: center !important;
    font-size: 0.9rem !important;
}

.nav-link i {
    font-size: 1.3rem !important;
    display: block !important;
    margin-bottom: 0.2rem !important;
}

@media (max-width: 992px) {
    .nav-link span {
        display: none !important;
    }
    .nav-link {
        padding: 0.75rem !important;
        min-width: 60px !important;
    }
}

/* ============== SEARCH BAR - FULL ICONS + ANIMATED ============== */
.search-under {
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 1.8rem;
    margin-top: -60px;
    position: relative;
    z-index: 10;
    box-shadow: 0 8px 25px rgba(0,0,0,.12);
}

@media (max-width:576px) {
    .search-under { margin-top: -30px; padding:1rem; }
}

/* الأيقونات كاملة الحجم + متحركة */
.search-icon-animated,
.search-btn-animated {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

.search-icon-animated i,
.search-btn-animated i {
    font-size: 1.4rem !important;
    transition: transform 0.3s ease !important;
}

.search-icon-animated:hover i,
.search-btn-animated:hover i {
    transform: scale(1.2) rotate(15deg) !important;
    color: #0d6efd !important;
}

/* زر البحث */
.search-btn-animated {
    background: linear-gradient(135deg, #0d6efd, #0a58ca) !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
}

.search-btn-animated:hover {
    background: linear-gradient(135deg, #0a58ca, #0d6efd) !important;
    box-shadow: 0 4px 15px rgba(13,110,253,.4) !important;
}

/* الحقول */
.input-group .form-control,
.input-group .form-select,
.input-group .btn {
    height: 50px !important;
    font-size: 1rem !important;
    border-radius: 12px !important;
}

.input-group .input-group-text {
    height: 50px !important;
    width: 50px !important;
    padding: 0 !important;
    background-color: #f8f9fa !important;
    border: 1px solid #ced4da !important;
    border-right: none !important;
    border-radius: 12px 0 0 12px !important;
}

.input-group .form-control,
.input-group .form-select {
    border-left: none !important;
    border-radius: 0 12px 12px 0 !important;
}

/* خط واحد + متجاوب */
@media (max-width: 768px) {
    .row.g-3 > div {
        margin-bottom: 0.5rem !important;
    }
}
/* ============== SEARCH BAR - UNIFORM ICONS + ANIMATED + CLEAN ============== */
.search-under {
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 1.8rem;
    margin-top: -60px;
    position: relative;
    z-index: 10;
    box-shadow: 0 8px 25px rgba(0,0,0,.12);
}

@media (max-width:576px) {
    .search-under { margin-top: -30px; padding:1rem; }
}

/* الأيقونات موحدة + متحركة */
.icon-uniform {
    width: 24px !important;
    height: 24px !important;
    font-size: 1.4rem !important;
    object-fit: contain !important;
    transition: transform 0.3s ease, color 0.3s ease !important;
}

.search-icon-box,
.search-btn-animated {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.search-icon-box:hover .icon-uniform,
.search-btn-animated:hover .icon-uniform {
    transform: scale(1.2) rotate(15deg) !important;
    color: #0d6efd !important;
}

/* زر البحث */
.search-btn-animated {
    height: 50px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    background: linear-gradient(135deg, #0d6efd, #0a58ca) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(13,110,253,.4) !important;
}

.search-btn-animated:hover {
    background: linear-gradient(135deg, #0a58ca, #0d6efd) !important;
    box-shadow: 0 8px 20px rgba(13,110,253,.4) !important;
}

/* الحقول */
.input-group {
    height: 50px !important;
}

.input-group .form-control,
.input-group .form-select,
.input-group .btn,
.input-group .dropdown-toggle {
    height: 50px !important;
    font-size: 1rem !important;
    border-radius: 12px !important;
}

.input-group .input-group-text,
.input-group .search-icon-box {
    width: 50px !important;
    height: 50px !important;
    padding: 0 !important;
    background-color: #f8f9fa !important;
    border: 1px solid #ced4da !important;
    border-right: none !important;
    border-radius: 12px 0 0 12px !important;
}

.input-group .form-control,
.input-group .form-select,
.input-group .dropdown-toggle {
    border-left: none !important;
    border-radius: 0 12px 12px 0 !important;
}

/* القائمة المنسدلة */
.dropdown-toggle::after {
    display: none !important;
}

#category-btn {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

#category-text {
    padding: 0 0.75rem !important;
}

/* متجاوب */
@media (max-width: 768px) {
    .row.g-3 > div {
        margin-bottom: 0.5rem !important;
    }
}
/* ============== SEARCH BAR - ANIMATED PROFESSIONAL ICONS + CATEGORY ICONS INSIDE ============== */
.search-under {
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 1.8rem;
    margin-top: -60px;
    position: relative;
    z-index: 10;
    box-shadow: 0 8px 25px rgba(0,0,0,.12);
}

@media (max-width:576px) {
    .search-under { margin-top: -30px; padding:1rem; }
}

/* الأيقونات متحركة + احترافية */
.icon-animated {
    width: 20px !important;
    height: 20px !important;
    font-size: 1.2rem !important;
    object-fit: contain !important;
    transition: transform 0.3s ease, color 0.3s ease !important;
}

.icon-box-animated,
.search-btn-animated {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.icon-box-animated:hover .icon-animated,
.search-btn-animated:hover .icon-animated {
    transform: rotate(360deg) scale(1.2) !important;
    color: #0d6efd !important;
}

/* زر البحث */
.search-btn-animated {
    height: 50px !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    background: linear-gradient(135deg, #0d6efd, #0a58ca) !important;
    border: none !important;
}

.search-btn-animated:hover {
    background: linear-gradient(135deg, #0a58ca, #0d6efd) !important;
    box-shadow: 0 4px 15px rgba(13,110,253,.4) !important;
}

/* الحقول */
.input-group {
    height: 50px !important;
}

.input-group .form-control,
.input-group .form-select,
.input-group .btn,
.input-group .dropdown-toggle {
    height: 50px !important;
    font-size: 1rem !important;
    border-radius: 12px !important;
    padding: 0.375rem 0.75rem !important;
}

.input-group .input-group-text,
.input-group .icon-box-animated {
    width: 50px !important;
    height: 50px !important;
    padding: 0 !important;
    background-color: #f8f9fa !important;
    border: 1px solid #ced4da !important;
    border-right: none !important;
    border-radius: 12px 0 0 12px !important;
}

.input-group .form-control,
.input-group .form-select,
.input-group .dropdown-toggle {
    border-left: none !important;
    border-radius: 0 12px 12px 0 !important;
}

/* القائمة المنسدلة */
.dropdown-toggle::after {
    display: none !important;
}

#category-btn {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

#category-text {
    padding: 0 0.75rem !important;
}

/* متجاوب */
@media (max-width: 768px) {
    .row.g-3 > div {
        margin-bottom: 0.5rem !important;
    }
}

/* ============== CATEGORY BTN - SAME SIZE AS PROVINCE ============== */
#category-btn {
    height: 50px !important;
    padding: 0 !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    border: 1px solid #ced4da !important;
    border-left: none !important;
    border-radius: 0 12px 12px 0 !important;
    background-color: #fff !important;
    color: #495057 !important;
    text-align: right !important;
}

#category-btn:focus {
    border-color: #80bdff !important;
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25) !important;
    z-index: 3 !important;
}

#category-text {
    padding: 0 0.75rem !important;
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

/* إخفاء السهم */
.dropdown-toggle::after {
    display: none !important;
}

/* القائمة المنسدلة */
#category-btn + .dropdown-menu {
    width: 100% !important;
    max-height: 280px !important;
    overflow-y: auto !important;
    margin-top: 0 !important;
    border-radius: 0 0 12px 12px !important;
    border: 1px solid #ced4da !important;
    border-top: none !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

#category-btn.show {
    border-radius: 0 12px 0 0 !important;
    border-bottom-color: transparent !important;
}
/* ============== SEARCH BAR - FULL WIDTH + RESPONSIVE ============== */
.search-under {
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 1.8rem;
    margin-top: -60px;
    position: relative;
    z-index: 10;
    box-shadow: 0 8px 25px rgba(0,0,0,.12);
    width: 100% !important;
    max-width: none !important;
}

@media (max-width: 768px) {
    .search-under {
        margin-top: -40px;
        padding: 1rem;
    }
}

/* الأيقونات متحركة */
.icon-animated {
    width: 20px !important;
    height: 20px !important;
    font-size: 1.2rem !important;
    object-fit: contain !important;
    transition: transform 0.3s ease !important;
}

.icon-box-animated:hover .icon-animated,
.search-btn-animated:hover .icon-animated {
    transform: rotate(360deg) scale(1.2) !important;
    color: #0d6efd !important;
}

/* زر البحث */
.search-btn-animated {
    height: 50px !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    background: linear-gradient(135deg, #0d6efd, #0a58ca) !important;
    border: none !important;
}

.search-btn-animated:hover {
    background: linear-gradient(135deg, #0a58ca, #0d6efd) !important;
    box-shadow: 0 4px 15px rgba(13,110,253,.4) !important;
}

/* الحقول */
.input-group {
    height: 50px !important;
}

.input-group .form-control,
.input-group .form-select,
.input-group .btn,
.input-group .dropdown-toggle {
    height: 50px !important;
    font-size: 1rem !important;
    border-radius: 12px !important;
}

.input-group .input-group-text,
.input-group .icon-box-animated {
    width: 50px !important;
    height: 50px !important;
    padding: 0 !important;
    background-color: #f8f9fa !important;
    border: 1px solid #ced4da !important;
    border-right: none !important;
    border-radius: 12px 0 0 12px !important;
}

.input-group .form-control,
.input-group .form-select,
.input-group .dropdown-toggle {
    border-left: none !important;
    border-radius: 0 12px 12px 0 !important;
}

/* القائمة المنسدلة */
.dropdown-toggle::after {
    display: none !important;
}

#category-btn {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

#category-text {
    padding: 0 0.75rem !important;
}

/* متجاوب */
@media (max-width: 768px) {
    .row.g-3 > div {
        margin-bottom: 0.5rem !important;
    }
}




/* ============== SEARCH BAR - COOL BORDERS + ANIMATED ============== */
.search-field-cool {
    height: 50px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    transition: all 0.3s ease !important;
    border: 2px solid #0d6efd !important;
    background: #fff;
}

.search-field-cool:focus-within {
    box-shadow: 0 0 0 4px rgba(13,110,253,.25) !important;
    transform: translateY(-2px) !important;
}

/* الأيقونات داخل دائرة + متحركة */
.icon-cool {
    width: 20px !important;
    height: 20px !important;
    font-size: 1.2rem !important;
    object-fit: contain !important;
    transition: transform 0.3s ease, color 0.3s ease !important;
}

.icon-box-cool {
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
    border: 2px solid #dee2e6 !important;
    border-right: none !important;
    border-radius: 12px 0 0 12px !important;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1) !important;
}

.icon-box-cool:hover .icon-cool,
.search-btn-cool:hover .icon-cool {
    transform: scale(1.2) rotate(15deg) !important;
    color: #0d6efd !important;
}

/* زر البحث */
.search-btn-cool {
    height: 50px !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    background: linear-gradient(135deg, #0d6efd, #0a58ca) !important;
    border: 2px solid #0d6efd !important;
    box-shadow: 0 4px 10px rgba(13,110,253,.3) !important;
}

.search-btn-cool:hover {
    background: linear-gradient(135deg, #0a58ca, #0d6efd) !important;
    box-shadow: 0 6px 15px rgba(13,110,253,.5) !important;
    transform: translateY(-2px) !important;
}

/* النصوص */
.input-group .form-control,
.input-group .form-select,
.input-group .dropdown-toggle {
    height: 50px !important;
    font-size: 1rem !important;
    border: 2px solid #dee2e6 !important;
    border-left: none !important;
    border-radius: 0 12px 12px 0 !important;
    background-color: #fff !important;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05) !important;
}

.input-group .form-control:focus,
.input-group .form-select:focus,
#category-btn:focus {
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 4px rgba(13,110,253,.25) !important;
}

/* القائمة المنسدلة */
.dropdown-toggle::after {
    display: none !important;
}

#category-btn {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

#category-text {
    padding: 0 0.75rem !important;
}

/* متجاوب */
@media (max-width: 768px) {
    .row.g-3 > div {
        margin-bottom: 0.5rem !important;
    }
}

/* ===== SEARCH BAR - CATEGORY FIX ===== */
#category-btn {
    height: 50px !important;
    padding: 0 !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    border: 2px solid #dee2e6 !important;
    border-left: none !important;
    border-radius: 0 12px 12px 0 !important;
    background-color: #fff !important;
    color: #495057 !important;
    text-align: right !important;
}

#category-btn:focus {
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 4px rgba(13,110,253,.25) !important;
    z-index: 3 !important;
}

#category-text {
    padding: 0 0.75rem !important;
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

/* إخفاء السهم */
.dropdown-toggle::after {
    display: none !important;
}

/* القائمة المنسدلة */
#category-btn + .dropdown-menu {
    width: 100% !important;
    max-height: 280px !important;
    overflow-y: auto !important;
    margin-top: 0 !important;
    border-radius: 0 0 12px 12px !important;
    border: 1px solid #ced4da !important;
    border-top: none !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

#category-btn.show {
    border-radius: 0 12px 0 0 !important;
    border-bottom-color: transparent !important;
}
/* ============== CATEGORY SELECT - SAME AS PROVINCE ============== */
#category-select {
    height: 50px !important;
    font-size: 1rem !important;
    border-radius: 0 12px 12px 0 !important;
    border-left: none !important;
}

.icon-box-cool {
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
    border: 2px solid #dee2e6 !important;
    border-right: none !important;
    border-radius: 12px 0 0 12px !important;
}

#category-icon {
    width: 20px !important;
    height: 20px !important;
    object-fit: contain !important;
}

/* ============== CATEGORY - ICON INSIDE BOX + WORKING ============== */
#category-btn {
    height: 50px !important;
    padding: 0 !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    border: 2px solid #dee2e6 !important;
    border-left: none !important;
    border-radius: 0 12px 12px 0 !important;
    background-color: #fff !important;
    color: #495057 !important;
    text-align: right !important;
}

#category-btn:focus {
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 4px rgba(13,110,253,.25) !important;
}

#category-text {
    padding: 0 0.75rem !important;
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

.dropdown-toggle::after {
    display: none !important;
}

.icon-cool {
    width: 20px !important;
    height: 20px !important;
    font-size: 1.2rem !important;
    object-fit: contain !important;
}

/* ============== CATEGORY - 100% WORKING + ICON INSIDE ============== */
#category-btn {
    height: 50px !important;
    padding: 0 !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    border: 2px solid #dee2e6 !important;
    border-left: none !important;
    border-radius: 0 12px 12px 0 !important;
    background-color: #fff !important;
    color: #495057 !important;
}

#category-btn:focus {
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 4px rgba(13,110,253,.25) !important;
}

#category-text {
    padding: 0 0.75rem !important;
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

.dropdown-toggle::after {
    display: none !important;
}

.icon-cool {
    width: 20px !important;
    height: 20px !important;
    font-size: 1.2rem !important;
    object-fit: contain !important;
}

/* ============== SEARCH BAR - COOL STYLE + ICON INSIDE ============== */
.search-bar-cool {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(240,248,255,0.95));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2rem;
    margin-top: -70px;
    position: relative;
    z-index: 10;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 1px solid rgba(13,110,253,0.2);
    transition: all 0.3s ease;
}

.search-bar-cool:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

@media (max-width:576px) {
    .search-bar-cool { margin-top: -40px; padding:1.5rem; }
}

/* الحقول */
.search-input-cool {
    height: 55px !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.search-input-cool:focus-within {
    box-shadow: 0 0 0 4px rgba(13,110,253,0.25);
    transform: scale(1.02);
}

/* الأيقونات */
.icon-cool {
    width: 22px !important;
    height: 22px !important;
    font-size: 1.3rem !important;
    object-fit: contain !important;
    transition: all 0.3s ease;
}

.search-icon-cool {
    width: 55px !important;
    height: 55px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid #dee2e6;
    border-right: none;
    border-radius: 15px 0 0 15px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

.search-icon-cool:hover .icon-cool {
    transform: scale(1.3) rotate(20deg);
    color: #0d6efd;
}

/* زر البحث */
.search-btn-cool {
    height: 55px !important;
    border-radius: 27.5px !important;
    font-weight: 700;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    border: none;
    box-shadow: 0 6px 15px rgba(13,110,253,0.4);
    transition: all 0.3s ease;
}

.search-btn-cool:hover {
    background: linear-gradient(135deg, #0a58ca, #0d6efd);
    box-shadow: 0 8px 20px rgba(13,110,253,0.6);
    transform: translateY(-3px);
}

/* النصوص */
.input-group .form-control,
.input-group .form-select,
.input-group .dropdown-toggle {
    height: 55px !important;
    font-size: 1.05rem !important;
    border: 2px solid #dee2e6;
    border-left: none;
    border-radius: 0 15px 15px 0;
    background-color: #fff;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.input-group .form-control:focus,
.input-group .form-select:focus,
#category-btn:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13,110,253,0.25);
}

/* القائمة المنسدلة */
.dropdown-toggle::after {
    display: none !important;
}

#category-btn {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

#category-text {
    padding: 0 0.75rem !important;
}

/* متجاوب */
@media (max-width: 768px) {
    .row.g-3 > div {
        margin-bottom: 0.75rem !important;
    }
}

/* ============== SEARCH BAR - ROUNDED BORDERS FOR TEXT + ICONS ============== */
.search-field-cool {
    height: 55px !important;
    border-radius: 30px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid #0d6efd !important;
    background: #fff;
}

.search-field-cool:focus-within {
    box-shadow: 0 0 0 4px rgba(13,110,253,0.25);
    transform: scale(1.02);
}

/* الأيقونات داخل دوائر */
.icon-box-bordered {
    width: 55px !important;
    height: 55px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #0d6efd !important;
    color: #fff !important;
    border-radius: 50% !important;
    margin: 0 10px 0 5px !important;
    box-shadow: 0 3px 8px rgba(13,110,253,0.3);
    transition: all 0.3s ease;
}

.icon-box-bordered:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 12px rgba(13,110,253,0.5);
}

.icon-cool {
    width: 24px !important;
    height: 24px !important;
    font-size: 1.3rem !important;
    object-fit: contain !important;
    transition: all 0.3s ease;
}

.icon-box-bordered:hover .icon-cool {
    transform: rotate(360deg);
}

/* النصوص */
.input-group .form-control,
.input-group .form-select,
.input-group .dropdown-toggle {
    height: 55px !important;
    font-size: 1.05rem !important;
    border: none !important;
    border-radius: 30px !important;
    background-color: #fff !important;
    padding: 0.375rem 1rem !important;
    color: #000 !important;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}

.input-group .form-control::placeholder {
    color: rgba(0,0,0,0.5) !important;
}

/* زر البحث */
.search-btn-cool {
    height: 55px !important;
    border-radius: 30px !important;
    font-weight: 700;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    border: 2px solid #0d6efd;
    box-shadow: 0 6px 15px rgba(13,110,253,0.4);
    transition: all 0.3s ease;
}

.search-btn-cool:hover {
    background: linear-gradient(135deg, #0a58ca, #0d6efd);
    box-shadow: 0 8px 20px rgba(13,110,253,0.6);
    transform: translateY(-3px);
}

/* القائمة المنسدلة */
.dropdown-toggle::after {
    display: none !important;
}

#category-btn {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

#category-text {
    padding: 0 1rem !important;
}

/* متجاوب */
@media (max-width: 768px) {
    .row.g-3 > div {
        margin-bottom: 1rem !important;
    }
}

/* ============== SEARCH BAR - FULL ROUNDED ICON SPANS + CATEGORY FIELD ============== */
.search-field-cool {
    height: 55px !important;
    border-radius: 30px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid #0d6efd !important;
    background: #fff;
}

.search-field-cool:focus-within {
    box-shadow: 0 0 0 4px rgba(13,110,253,0.25);
    transform: scale(1.02);
}

/* الأيقونات داخل دوائر كاملة */
.input-group-text {
    width: 55px !important;
    height: 55px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #0d6efd !important;
    color: #001f3f !important;
    border-radius: 50% !important;
    margin: 0 8px !important;
    box-shadow: 0 3px 8px rgba(13,110,253,0.3);
    transition: all 0.3s ease;
    border: none !important;
    padding: 0 !important;
}

.input-group-text:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 12px rgba(13,110,253,0.5);
}

.icon-cool {
    width: 24px !important;
    height: 24px !important;
    font-size: 1.3rem !important;
    object-fit: contain !important;
    transition: all 0.3s ease;
}

.input-group-text:hover .icon-cool {
    transform: rotate(360deg);
}

/* النصوص داخل مستطيل مدور */
.input-group .form-control,
.input-group .form-select,
.input-group .dropdown-toggle {
    height: 55px !important;
    font-size: 1.05rem !important;
    border: none !important;
    border-radius: 30px !important;
    background-color: #fff !important;
    padding: 0.375rem 1rem !important;
    color: #000 !important;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
    flex: 1;
}

.input-group .form-control::placeholder {
    color: rgba(0,0,0,0.5) !important;
}

/* زر البحث */
.search-btn-cool {
    height: 55px !important;
    border-radius: 30px !important;
    font-weight: 700;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    border: 2px solid #0d6efd;
    box-shadow: 0 6px 15px rgba(13,110,253,0.4);
    transition: all 0.3s ease;
}

.search-btn-cool:hover {
    background: linear-gradient(135deg, #0a58ca, #0d6efd);
    box-shadow: 0 8px 20px rgba(13,110,253,0.6);
    transform: translateY(-3px);
}

/* القائمة المنسدلة */
.dropdown-toggle::after {
    display: none !important;
}

#category-btn {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

#category-text {
    padding: 0 1rem !important;
}

/* متجاوب */
@media (max-width: 768px) {
    .row.g-3 > div {
        margin-bottom: 1rem !important;
    }
}

/* ============== SEARCH BAR - DEEP BLUE ICONS (SAME AS TOP BANNER) ============== */
.icon-cool {
    width: 24px !important;
    height: 24px !important;
    font-size: 1.3rem !important;
    object-fit: contain !important;
    color: #0d6efd !important; /* نفس لون البانر العلوي */
    transition: all 0.3s ease;
}

/* عند الـ hover */
.input-group-text:hover .icon-cool,
.search-btn-cool:hover .icon-cool {
    color: #0a58ca !important; /* أغمق قليلاً */
    transform: scale(1.2) rotate(15deg);
}

/* الأيقونات داخل دوائر */
.input-group-text {
    width: 55px !important;
    height: 55px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff !important;
    border: 2px solid #0d6efd !important;
    border-radius: 50% !important;
    margin: 0 8px !important;
    box-shadow: 0 3px 8px rgba(13,110,253,0.3);
    transition: all 0.3s ease;
}

.input-group-text:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 12px rgba(13,110,253,0.5);
}

/* زر البحث */
.search-btn-cool {
    height: 55px !important;
    border-radius: 30px !important;
    font-weight: 700;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    border: 2px solid #0d6efd;
    box-shadow: 0 6px 15px rgba(13,110,253,0.4);
    transition: all 0.3s ease;
}

.search-btn-cool:hover {
    background: linear-gradient(135deg, #0a58ca, #0d6efd);
    box-shadow: 0 8px 20px rgba(13,110,253,0.6);
    transform: translateY(-3px);
}

/* الحقول */
.input-group .form-control,
.input-group .form-select,
.input-group .dropdown-toggle {
    height: 55px !important;
    font-size: 1.05rem !important;
    border: none !important;
    border-radius: 30px !important;
    background-color: #fff !important;
    padding: 0.375rem 1rem !important;
    color: #000 !important;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}

.input-group .form-control::placeholder {
    color: rgba(0,0,0,0.5) !important;
}

/* القائمة المنسدلة */
.dropdown-toggle::after {
    display: none !important;
}

#category-btn {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

#category-text {
    padding: 0 1rem !important;
}

/* متجاوب */
@media (max-width: 768px) {
    .row.g-3 > div {
        margin-bottom: 1rem !important;
    }
}


/* ============== CATEGORY BOX - FULL ROUNDED LIKE OTHERS ============== */
#category-btn {
    height: 55px !important;
    border-radius: 10px !important;
    border: 1px solid #0d6efd;
    background-color: #fff !important;
    color: #000 !important;
    padding: 0.375rem 0.75rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    font-size: 0.55 !important;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    width: 100% !important;
}

#category-btn:focus {
    box-shadow: 0 0 0 4px rgba(13,110,253,0.25) !important;
}

/* القائمة المنسدلة - مدورة من الأسفل */
#category-btn + .dropdown-menu {
    width: 100% !important;
    border-radius: 0 0 15px 15px !important;
    border: 2px solid #0d6efd !important;
    border-top: none !important;
    margin-top: -1px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 280px;
    overflow-y: auto;
}

#category-btn.show {
    border-radius: 15px 15px 0 0 !important;
    border-bottom: none !important;
}

/* النص داخل الحقل */
#category-text {
    padding: 0 0.75rem !important;
    flex-grow: 1 !important;
    text-align: left !important;
}

/* إخفاء السهم */
.dropdown-toggle::after {
    display: none !important;
}

/* متجاوب */
@media (max-width: 768px) {
    #category-btn,
    #category-btn + .dropdown-menu {
        border-radius: 15px !important;
    }
}

/* Final Sticky Footer Rules */
#content-wrap {
    /* Critical: Ensures the content area takes up all available vertical space. */
    flex-grow: 1;

    /* Spacing: Ensures content starts below the fixed navbar. 
       Adjust 70px if your navbar height is different. */
    padding-top: 70px; 
}

}


