/* إزالة الخلفية البرتقالية من اللوجو */
.brand-logo,
.top-bar .brand-logo,
.header .brand-logo {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.brand-logo::before,
.brand-logo::after {
    display: none !important;
}

/* التأكد من أن اللوجو نفسه لا يحتوي على خلفية */
.logo-image {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* إزالة أي تأثيرات hover للخلفية */
.brand-logo:hover,
.top-bar .brand-logo:hover {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

/* التأكد من عدم وجود خلفية في جميع الحالات */
.brand-logo,
.brand-logo * {
    background: transparent !important;
}

/* إزالة أي padding أو margin إضافي */
.brand-logo {
    padding: 0 !important;
    margin: 0 !important;
}

/* التأكد من أن اللوجو يظهر بشكل طبيعي مع حجم أكبر وحركة */
.logo-image {
    display: block !important;
    width: 70px !important;
    height: 70px !important;
    max-width: 70px !important;
    max-height: 70px !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    transform-origin: center !important;
    animation: logoFloat 3s ease-in-out infinite !important;
}

/* حركة التمرير للوجو */
.logo-image:hover {
    transform: scale(1.15) rotate(5deg) !important;
    filter: drop-shadow(0 8px 25px rgba(59, 130, 246, 0.4)) !important;
    animation-play-state: paused !important;
}

/* حركة الطفو المستمرة */
@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-3px) rotate(1deg);
    }
    50% {
        transform: translateY(-6px) rotate(0deg);
    }
    75% {
        transform: translateY(-3px) rotate(-1deg);
    }
}

/* حركة النبض عند التحميل */
@keyframes logoPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* تطبيق حركة النبض عند التحميل */
.logo-image.loading {
    animation: logoPulse 1.5s ease-in-out 3, logoFloat 3s ease-in-out infinite 1.5s !important;
}

/* تحسين الأداء */
.logo-image {
    will-change: transform, filter !important;
    backface-visibility: hidden !important;
}

/* تكييف الحجم للشاشات المختلفة */
@media (max-width: 768px) {
    .logo-image {
        width: 60px !important;
        height: 60px !important;
        max-width: 60px !important;
        max-height: 60px !important;
    }
}

@media (max-width: 480px) {
    .logo-image {
        width: 50px !important;
        height: 50px !important;
        max-width: 50px !important;
        max-height: 50px !important;
    }
    
    /* تقليل الحركة على الشاشات الصغيرة */
    @keyframes logoFloat {
        0%, 100% {
            transform: translateY(0px);
        }
        50% {
            transform: translateY(-2px);
        }
    }
}

/* احترام تفضيلات المستخدم لتقليل الحركة */
@media (prefers-reduced-motion: reduce) {
    .logo-image {
        animation: none !important;
    }
    
    .logo-image:hover {
        transform: scale(1.1) !important;
        animation: none !important;
    }
}

/* تأكيد الأولوية للحجم الجديد */
.brand-logo .logo-image,
.top-bar .brand-logo .logo-image,
.header .brand-logo .logo-image {
    width: 70px !important;
    height: 70px !important;
    min-width: 70px !important;
    min-height: 70px !important;
}

/* إزالة أي حركات قديمة قد تتضارب */
.logo-image {
    animation-name: logoFloat !important;
    animation-duration: 3s !important;
    animation-timing-function: ease-in-out !important;
    animation-iteration-count: infinite !important;
}