/* منع الزوم التلقائي على الموبايل */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="url"],
input[type="date"],
textarea,
select {
    font-size: 16px !important;
    touch-action: manipulation;
}

/* تحسينات الموبايل */
@media (max-width: 768px) {
    /* تصغير حجم الصفحة بشكل عام */
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 1.5rem !important;
    }
    
    h2 {
        font-size: 1.3rem !important;
    }
    
    h3 {
        font-size: 1.1rem !important;
    }
    
    .container {
        padding-right: 0.75rem !important;
        padding-left: 0.75rem !important;
        max-width: 100% !important;
    }
    
    .grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
    
    .card {
        margin-bottom: 0.75rem;
        padding: 0.75rem !important;
    }
    
    .card-body {
        padding: 0.75rem !important;
    }
    
    /* تحسين الأزرار للموبايل */
    .btn {
        padding: 0.6rem 0.9rem !important;
        font-size: 0.9rem !important;
    }
    
    .btn-sm {
        padding: 0.4rem 0.7rem !important;
        font-size: 0.8rem !important;
    }
    
    /* تحسين النافذة المنبثقة */
    .modal-content {
        margin: 0.75rem !important;
        max-width: calc(100% - 1.5rem) !important;
    }
    
    /* تصغير الجداول */
    table {
        font-size: 0.85rem !important;
    }
    
    table th,
    table td {
        padding: 0.5rem !important;
    }
    
    /* تصغير النماذج */
    .form-control {
        padding: 0.6rem !important;
        font-size: 14px !important;
    }
    
    /* تصغير المسافات */
    [style*="padding:2rem"] {
        padding: 1rem !important;
    }
    
    [style*="padding:1.5rem"] {
        padding: 0.75rem !important;
    }
    
    [style*="margin:2rem"] {
        margin: 1rem !important;
    }
    
    [style*="margin-bottom:2rem"] {
        margin-bottom: 1rem !important;
    }
}

/* تحسينات التابلت */
@media (max-width: 1024px) and (min-width: 769px) {
    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* تحسين شريط التنقل */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 0.5rem !important;
    }
    
    nav ul li {
        width: 100%;
        text-align: center;
    }
}

/* Notification Bell */
.notification-bell {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #EF4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px 5px;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}
