/* 
===============================================
تنسيق الأيقونات بنمط Apple iOS
للمشروع الكامل - لوحة تحكم المشرف
محدث ومكتمل لجميع الصفحات
===============================================
*/

/* الأزرار الأساسية */
.ios-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    min-height: 44px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    text-decoration: none;
    cursor: pointer;
    gap: 8px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.ios-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ios-btn:hover::before {
    opacity: 1;
}

.ios-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.ios-btn:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

.ios-btn:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* أيقونات الإجراءات المصغرة */
.ios-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    cursor: pointer;
    margin: 0 3px;
}

.ios-icon-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ios-icon-btn:hover::before {
    opacity: 1;
}

.ios-icon-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.ios-icon-btn:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* ألوان iOS الأساسية */

/* أزرق iOS */
.ios-blue {
    background: linear-gradient(135deg, #007AFF 0%, #0056D6 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

.ios-blue:hover {
    background: linear-gradient(135deg, #0056D6 0%, #003F99 100%);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
    color: white;
}

/* أحمر iOS */
.ios-red {
    background: linear-gradient(135deg, #FF3B30 0%, #DC3545 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 59, 48, 0.3);
}

.ios-red:hover {
    background: linear-gradient(135deg, #DC3545 0%, #C82333 100%);
    box-shadow: 0 6px 20px rgba(255, 59, 48, 0.4);
    color: white;
}

/* أخضر iOS */
.ios-green {
    background: linear-gradient(135deg, #34C759 0%, #28A745 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 199, 89, 0.3);
}

.ios-green:hover {
    background: linear-gradient(135deg, #28A745 0%, #1E7E34 100%);
    box-shadow: 0 6px 20px rgba(52, 199, 89, 0.4);
    color: white;
}

/* برتقالي iOS */
.ios-orange {
    background: linear-gradient(135deg, #FF9500 0%, #FF8C00 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 149, 0, 0.3);
}

.ios-orange:hover {
    background: linear-gradient(135deg, #FF8C00 0%, #E67E00 100%);
    box-shadow: 0 6px 20px rgba(255, 149, 0, 0.4);
    color: white;
}

/* أصفر iOS */
.ios-yellow {
    background: linear-gradient(135deg, #FFCC00 0%, #FFB800 100%);
    color: #1D1D1F;
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.3);
}

.ios-yellow:hover {
    background: linear-gradient(135deg, #FFB800 0%, #FFA500 100%);
    box-shadow: 0 6px 20px rgba(255, 204, 0, 0.4);
    color: #1D1D1F;
}

/* بنفسجي iOS */
.ios-purple {
    background: linear-gradient(135deg, #AF52DE 0%, #8E44AD 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(175, 82, 222, 0.3);
}

.ios-purple:hover {
    background: linear-gradient(135deg, #8E44AD 0%, #7D3C98 100%);
    box-shadow: 0 6px 20px rgba(175, 82, 222, 0.4);
    color: white;
}

/* رمادي iOS */
.ios-gray {
    background: linear-gradient(135deg, #8E8E93 0%, #6D6D70 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(142, 142, 147, 0.3);
}

.ios-gray:hover {
    background: linear-gradient(135deg, #6D6D70 0%, #48484A 100%);
    box-shadow: 0 6px 20px rgba(142, 142, 147, 0.4);
    color: white;
}

/* أسود iOS */
.ios-black {
    background: linear-gradient(135deg, #1C1C1E 0%, #000000 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(28, 28, 30, 0.3);
}

.ios-black:hover {
    background: linear-gradient(135deg, #000000 0%, #1C1C1E 100%);
    box-shadow: 0 6px 20px rgba(28, 28, 30, 0.4);
    color: white;
}

/* أبيض iOS */
.ios-white {
    background: linear-gradient(135deg, #FFFFFF 0%, #F2F2F7 100%);
    color: #1D1D1F;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 0.5px solid rgba(0, 0, 0, 0.1);
}

.ios-white:hover {
    background: linear-gradient(135deg, #F2F2F7 0%, #E5E5EA 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    color: #1D1D1F;
}

/* تنسيق خاص للأزرار الصغيرة */
.ios-icon-btn.ios-blue,
.ios-icon-btn.ios-red,
.ios-icon-btn.ios-green,
.ios-icon-btn.ios-orange,
.ios-icon-btn.ios-yellow,
.ios-icon-btn.ios-purple,
.ios-icon-btn.ios-gray,
.ios-icon-btn.ios-black,
.ios-icon-btn.ios-white {
    width: 36px;
    height: 36px;
    padding: 0;
    font-size: 14px;
}

/* تولتيب بنمط iOS */
.tooltip-inner {
    background: rgba(0, 0, 0, 0.85);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    padding: 8px 12px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 0.5px solid rgba(255, 255, 255, 0.2);
}

.tooltip .tooltip-arrow {
    border-top-color: rgba(0, 0, 0, 0.85);
}

/* التنسيق المتجاوب */
@media (max-width: 768px) {
    .ios-btn {
        padding: 8px 16px;
        min-height: 40px;
        font-size: 13px;
    }
    
    .ios-icon-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .ios-icon-btn.ios-blue,
    .ios-icon-btn.ios-red,
    .ios-icon-btn.ios-green,
    .ios-icon-btn.ios-orange,
    .ios-icon-btn.ios-yellow,
    .ios-icon-btn.ios-purple,
    .ios-icon-btn.ios-gray,
    .ios-icon-btn.ios-black,
    .ios-icon-btn.ios-white {
        width: 32px;
        height: 32px;
    }
}

/* تنسيق أزرار القائمة العلوية */
.ios-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    cursor: pointer;
    text-decoration: none;
}

.ios-nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ios-nav-btn:hover::before {
    opacity: 1;
}

.ios-nav-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.ios-nav-btn:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

/* حالة نشطة للأزرار */
.ios-btn.active,
.ios-icon-btn.active,
.ios-nav-btn.active {
    transform: scale(0.98);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* تأثيرات خاصة */
.ios-shine {
    position: relative;
    overflow: hidden;
}

.ios-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.ios-shine:hover::after {
    left: 100%;
}

/* ===== أنماط إضافية للتوافق مع جميع الصفحات ===== */

/* تحسين أزرار البوتستراب الافتراضية لتبدو بنمط iOS */
.btn.ios-style {
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn.ios-style:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.btn.ios-style:active {
    transform: scale(0.98);
}

/* تحسين الجداول */
.admin-table .ios-icon-btn {
    margin: 0 2px;
}

/* تحسين النماذج */
.form-control.ios-input {
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.form-control.ios-input:focus {
    border-color: #007AFF;
    box-shadow: 0 0 0 0.2rem rgba(0, 122, 255, 0.25);
}

/* تحسين البطاقات */
.admin-card.ios-card {
    border-radius: 18px;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* تحسين المودالات */
.modal-content.ios-modal {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
}

.modal-header.ios-header {
    border-radius: 20px 20px 0 0;
    border-bottom: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* تحسين التولتيب */
.tooltip.ios-tooltip .tooltip-inner {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    font-weight: 500;
}

/* تحسين القوائم المنسدلة */
.dropdown-menu.ios-dropdown {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
}

.dropdown-item.ios-item {
    border-radius: 8px;
    margin: 2px 4px;
    transition: all 0.2s ease;
}

.dropdown-item.ios-item:hover {
    background: rgba(0, 122, 255, 0.1);
    transform: translateX(4px);
}

/* تحسين Alerts */
.alert.ios-alert {
    border-radius: 12px;
    border: none;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* responsive للهواتف */
@media (max-width: 768px) {
    .ios-btn {
        min-height: 48px;
        padding: 12px 16px;
    }
    
    .ios-icon-btn {
        min-width: 40px;
        min-height: 40px;
        padding: 8px;
    }
    
    .ios-nav-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* تحسين الانيميشن للهواتف */
@media (prefers-reduced-motion: reduce) {
    .ios-btn,
    .ios-icon-btn,
    .ios-nav-btn {
        transition: none;
    }
    
    .ios-btn:hover,
    .ios-icon-btn:hover,
    .ios-nav-btn:hover {
        transform: none;
    }
}

/* تحسين الألوان للوضع الليلي */
@media (prefers-color-scheme: dark) {
    .ios-btn::before {
        background: rgba(255, 255, 255, 0.2);
    }
    
    .ios-gray {
        background: linear-gradient(135deg, #48484a, #3a3a3c);
        color: #ffffff;
    }
    
    .ios-white {
        background: linear-gradient(135deg, #2c2c2e, #1c1c1e);
        color: #ffffff;
    }
}

/* تحسين الطباعة */
@media print {
    .ios-btn,
    .ios-icon-btn,
    .ios-nav-btn {
        background: #f8f9fa !important;
        color: #333 !important;
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
}
