/* Sales Edition - CSS Styles */

/* تعديل على ألوان القسم */
.sales-bg-primary {
    background-color: #0ea5e9;
}

.sales-text-primary {
    color: #0ea5e9;
}

.sales-border-primary {
    border-color: #0ea5e9;
}

/* تأثيرات الحركة في لوحة المبيعات */
.sales-card-hover {
    transition: all 0.3s ease;
}

.sales-card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* تنسيقات جدول العملاء */
.client-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    font-size: 16px;
}

/* تأثيرات أيقونات الإجراءات */
.action-icon {
    transition: transform 0.2s;
}

.action-icon:hover {
    transform: scale(1.2);
}

/* تنسيق حالات العملاء */
.status-active {
    background-color: #dcfce7;
    color: #166534;
}

.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-closed {
    background-color: #fee2e2;
    color: #991b1b;
}

/* تنسيق أنواع المشاريع */
.project-type {
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
}

.project-mobile {
    background-color: #dbeafe;
    color: #1e40af;
}

.project-web {
    background-color: #f3e8ff;
    color: #6b21a8;
}

.project-custom {
    background-color: #d1fae5;
    color: #065f46;
}

.project-consultation {
    background-color: #ffedd5;
    color: #9a3412;
}

/* تنسيق النشاطات الأخيرة */
.activity-item {
    position: relative;
    padding-right: 20px;
}

.activity-item::before {
    content: "";
    position: absolute;
    right: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e5e7eb;
}

.activity-item:last-child::before {
    bottom: 50%;
}

.activity-item:first-child::before {
    top: 50%;
}

.activity-dot {
    position: absolute;
    right: 4px;
    top: 12px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #0ea5e9;
    z-index: 1;
}

/* تحسين مربع البحث */
.search-input {
    transition: all 0.3s ease;
}

.search-input:focus {
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.3);
}

/* تحسينات الترويسة */
.header-shadow {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* تنسيق رقم المرجعي للعميل */
.client-reference {
    font-family: 'Courier New', monospace;
    color: #6b7280;
    font-size: 0.875rem;
}

/* تنسيق للأزرار */
.sales-button-primary {
    background-color: #0ea5e9;
    color: white;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s;
}

.sales-button-primary:hover {
    background-color: #0284c7;
}

.sales-button-secondary {
    background-color: white;
    color: #0ea5e9;
    border: 1px solid #0ea5e9;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s;
}

.sales-button-secondary:hover {
    background-color: #f0f9ff;
}

/* تنسيق للبطاقات الإحصائية */
.stats-card {
    border-radius: 0.75rem;
    padding: 1.25rem;
    background-color: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stats-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* تنسيق للإشعارات */
.notification-badge {
    position: absolute;
    top: 0;
    left: 0;
    height: 8px;
    width: 8px;
    background-color: #ef4444;
    border-radius: 50%;
}

/* قائمة الإشعارات المنسدلة */
#notifications-dropdown {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    max-height: 500px;
    overflow-y: auto;
}

/* الإشعارات غير المقروءة */
.notification-item.unread {
    border-right: 3px solid #3b82f6;
    background-color: rgba(239, 246, 255, 0.5);
}

.notification-item {
    transition: all 0.2s ease;
}

.notification-item:hover {
    background-color: #f9fafb;
}

/* الرسائل الإعلامية المنبثقة (Toast) */
#toast-container {
    pointer-events: none;
    z-index: 9999;
}

#toast-container > div {
    pointer-events: auto;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    min-width: 250px;
    max-width: 350px;
}

/* تحريك الإشعارات */
@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(59, 130, 246, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.notification-badge {
    animation: pulse 2s infinite;
}

/* تنسيق للملف الشخصي في الشريط الجانبي */
.profile-sidebar {
    border-top: 1px solid #e5e7eb;
    padding: 1rem;
}

/* تنسيق للتنقل في الصفحات */
.pagination-item {
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    transition: all 0.2s;
}

.pagination-item-active {
    background-color: #0ea5e9;
    color: white;
}

.pagination-item:hover:not(.pagination-item-active) {
    background-color: #e5e7eb;
}

/* تنسيق للرسوم البيانية مستقبلاً */
.chart-container {
    height: 200px;
    position: relative;
    margin-top: 1rem;
}

/* تنسيق للحركة في السايدبار */
@media (max-width: 768px) {
    .sidebar-mobile {
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }
    
    .sidebar-mobile.active {
        transform: translateX(0);
    }
}

/* تأثيرات تحريك للصفحة */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.5s ease-out;
}

/* تحسينات توافقية */
@media (max-width: 640px) {
    .mobile-hidden {
        display: none;
    }
    
    .mobile-stack {
        flex-direction: column;
    }
    
    .mobile-full-width {
        width: 100%;
    }
}
