/* ==========================================
   Powered By & Copyright - Mobile Center Style
   تنسيق "powered by" وحقوق الطبع للشاشات الصغيرة
   ========================================== */

/* توسيط footer في الشاشات الصغيرة */
@media (max-width: 767.98px) {
    /* Footer powered by section */
    footer .d-flex.justify-content-between {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 0.5rem !important;
    }
    
    footer .d-flex.justify-content-between > div {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }
    
    footer .text-start,
    footer .text-end,
    footer .text-center {
        text-align: center !important;
    }
    
    /* توسيط جميع النصوص في الفوتر */
    footer small {
        text-align: center !important;
        display: block !important;
        width: 100% !important;
    }
    
    /* إخفاء المسافة الفارغة في الجوال */
    footer .text-start:empty,
    footer .text-start:has(> :empty) {
        display: none !important;
    }
    
    /* تكبير النص قليلاً في الجوال */
    footer small {
        font-size: 0.875rem !important;
        display: block;
        margin: 0.25rem 0;
    }
}

/* تحسين المظهر في الشاشات المتوسطة */
@media (min-width: 768px) and (max-width: 991.98px) {
    footer .d-flex.justify-content-between {
        justify-content: center !important;
        gap: 1rem !important;
    }
}

/* تنسيق إضافي للـ powered by */
.powered-by-text {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.powered-by-text:hover {
    opacity: 0.8 !important;
}

/* تنسيق خاص لصفحات تسجيل الدخول */
.login-page footer .d-flex,
.auth-page footer .d-flex {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

@media (max-width: 767.98px) {
    .login-page footer .d-flex > div,
    .auth-page footer .d-flex > div {
        width: 100% !important;
        text-align: center !important;
    }
}
