/**
 * IKAROS Token Presale - إصلاحات خاصة بالقائمة الرئيسية
 * 
 * هذا الملف يحتوي على إصلاحات لأيقونة القائمة المنسدلة ومكونات التنقل
 */

/* أساسيات العرض الصحيح */
.navbar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 80% !important;
    position: relative !important;
}

/* إصلاح nav-floating */
.nav-floating {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 100 !important;
    padding: 1rem !important;
    transition: all 0.3s ease !important;
}

/* إصلاحات أيقونة القائمة المنسدلة */
.navbar-toggler {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 101 !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    padding: 0.5rem !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    width: 44px !important;
    height: 40px !important;
    margin-left: auto !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.navbar-toggler:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.navbar-toggler-icon {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 1.5em !important;
    height: 1.5em !important;
    vertical-align: middle !important;
    background-size: 100% !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* إصلاح رؤية أيقونة القائمة المنسدلة على الأجهزة المحمولة */
@media (max-width: 991.98px) {
    .navbar-toggler {
        display: block !important;
        position: relative;
        z-index: 1000;
        margin-right: 0 !important;
    }
    
    .navbar-nav {
        text-align: center;
        padding: 10px 0;
    }
    
    .navbar-collapse {
        position: absolute;
        top: 70px;
        left: 15px;
        right: 15px;
        background-color: rgba(10, 14, 31, 0.95);
        border-radius: 0 0 10px 10px;
        max-height: 500px;
        overflow-y: auto;
        z-index: 999;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 10px;
    }
    
    .nav-item {
        margin: 5px 0;
    }
    
    /* تحسين مظهر القائمة عند فتحها */
    .navbar-collapse.show {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* تأكيد عرض زر التوغل على جميع أحجام الشاشات الصغيرة */
    .navbar .container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        padding-right: 15px !important;
        padding-left: 15px !important;
    }
}

/* إضافة دعم للشاشات الصغيرة جدًا */
@media (max-width: 576px) {
    .navbar-toggler {
        margin-right: 0 !important;
        width: 40px !important;
        height: 35px !important;
    }
    
    .navbar-collapse {
        left: 10px;
        right: 10px;
    }
}

/* تحسين مظهر القائمة على الأجهزة الكبيرة */
@media (min-width: 992px) {
    .navbar-toggler {
        display: none !important;
    }
    
    .navbar-expand-lg .navbar-nav {
        display: flex !important;
        flex-direction: row !important;
    }
    
    .navbar-collapse {
        display: flex !important;
        flex-basis: auto !important;
    }
    
    .nav-item {
        margin-left: 5px;
        margin-right: 5px;
    }
}

/* تأكيد ظهور زر التوغل دائمًا عند عرض القائمة الصغير */
.navbar > .container {
    position: relative !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
}
