* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
    scroll-behavior: smooth;
}

:root {
    /* ألوان النمط النهاري - تم تحديثها لتكون بدرجات الفيروزي والأزرق الداكن */
    --primary-color: #00BFA5; /* لون فيروزي رئيسي أكثر حيوية */
    --primary-light: #B2EBF2; /* لون فيروزي فاتح */
    --primary-hover: #00897B; /* لون فيروزي داكن للتحويم */
    --success-color: #26A69A; /* لون فيروزي داكن للنجاح */
    --success-light: #E0F7FA; /* لون فيروزي فاتح جداً */
    --warning-color: #4DD0E1; /* لون أزرق فاتح للتحذير */
    --warning-light: #E0F7FA; /* لون أزرق فاتح جداً للتحذير */
    --danger-color: #EF5350; /* لون أحمر للخطر */
    --danger-light: #FFEBEE; /* لون أحمر فاتح جداً */
    --bg-color: #F5FFFD; /* خلفية فيروزي فاتحة جداً */
    --card-bg: #ffffff; /* خلفية البطاقات بيضاء */
    --text-primary: #00363A; /* نص أزرق داكن */
    --text-secondary: #00838F; /* نص أزرق متوسط */
    --border-color: #B2EBF2; /* حدود بلون فيروزي فاتح */
    --gradient-primary: linear-gradient(135deg, #00BFA5 0%, #00897B 100%); /* تدرج فيروزي */
    --gradient-success: linear-gradient(135deg, #26A69A 0%, #00796B 100%); /* تدرج فيروزي داكن */
    --box-shadow-sm: 0 2px 8px rgba(0, 191, 165, 0.1);
    --box-shadow-md: 0 4px 12px rgba(0, 191, 165, 0.15);
    --box-shadow-lg: 0 8px 24px rgba(0, 191, 165, 0.2);
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --gradient-warning: linear-gradient(135deg, #7AD2E2 0%, #4AABC0 100%); /* تدرج أزرق فاتح */
    --nav-shadow: 0 3px 10px rgba(0, 60, 74, 0.1);
    --nav-item-shadow: 0 4px 8px rgba(0, 60, 74, 0.05);}
    
    /* تم إزالة متغيرات النمط الليلي */
}

body {
    background: var(--bg-color);
    min-height: 100vh;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
    padding-bottom: 80px;
    transition: var(--transition-normal);
}

.task-badge.active {
    background: #fff8e7; /* خلفية برتقالية فاتحة */
    color: #ffa500; /* نص برتقالي */
}

.task-item.active .task-status {
    background: #fff8e7; /* خلفية برتقالية فاتحة */
    color: #068847; /* أيقونة برتقالية */
}

body {
    background-image: 
        /* دوائر زخرفية متدرجة - تم تحسينها */
        radial-gradient(circle at 10% 20%, rgba(0, 191, 165, 0.08) 0%, transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(0, 191, 165, 0.08) 0%, transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(0, 191, 165, 0.05) 0%, transparent 45%),
        radial-gradient(circle at 20% 60%, rgba(77, 208, 225, 0.03) 0%, transparent 35%),
        radial-gradient(circle at 80% 40%, rgba(77, 208, 225, 0.03) 0%, transparent 35%),
        /* أشكال هندسية خفيفة - تم تحسينها */
        repeating-linear-gradient(45deg, rgba(0, 191, 165, 0.02) 0px, rgba(0, 191, 165, 0.02) 12px, transparent 12px, transparent 14px),
        repeating-linear-gradient(135deg, rgba(0, 191, 165, 0.02) 0px, rgba(0, 191, 165, 0.02) 12px, transparent 12px, transparent 14px),
        /* نقاط متناثرة - تم تحسينها */
        radial-gradient(circle at 25% 35%, rgba(0, 191, 165, 0.03) 0%, rgba(0, 191, 165, 0.03) 2px, transparent 2px, transparent 100%),
        radial-gradient(circle at 75% 65%, rgba(0, 191, 165, 0.03) 0%, rgba(0, 191, 165, 0.03) 2px, transparent 2px, transparent 100%),
        radial-gradient(circle at 35% 75%, rgba(77, 208, 225, 0.03) 0%, rgba(77, 208, 225, 0.03) 2px, transparent 2px, transparent 100%),
        radial-gradient(circle at 65% 35%, rgba(77, 208, 225, 0.03) 0%, rgba(77, 208, 225, 0.03) 2px, transparent 2px, transparent 100%),
        /* موجات خفيفة - تم تحسينها */
        repeating-radial-gradient(circle at 80% 10%, transparent 0, transparent 35px, rgba(0, 191, 165, 0.02) 35px, rgba(0, 191, 165, 0.02) 37px),
        repeating-radial-gradient(circle at 20% 90%, transparent 0, transparent 35px, rgba(0, 191, 165, 0.02) 35px, rgba(0, 191, 165, 0.02) 37px),
        repeating-radial-gradient(circle at 40% 30%, transparent 0, transparent 40px, rgba(77, 208, 225, 0.015) 40px, rgba(77, 208, 225, 0.015) 42px);
    background-attachment: fixed;
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 200px 200px, 200px 200px, 150px 150px, 150px 150px, 150px 150px, 150px 150px, 300px 300px, 300px 300px, 300px 300px;
    animation: backgroundShimmer 60s infinite alternate ease-in-out;
}

@keyframes backgroundShimmer {
    0% { background-position: 0% 0%; }
    100% { background-position: 2% 2%; }
}

/* تم إزالة النمط الليلي */

/* زر تبديل النمط */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 15px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    text-align: right;
}

.theme-toggle:hover {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary-color);
}

/* تم إزالة النمط الليلي */
    background: var(--dark-bg-color);
    color: var(--dark-text-primary);
}

body.dark-mode .app-header {
    background: linear-gradient(135deg, var(--dark-card-bg) 0%, rgba(0, 20, 15, 0.9) 100%);
    border-bottom: 1px solid rgba(15, 229, 160, 0.15);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 1px 8px rgba(15, 229, 160, 0.1);
}

body.dark-mode .header-brand span {
    background: linear-gradient(to right, var(--dark-text-primary), var(--dark-primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.dark-mode .modern-nav {
    background: rgba(0, 10, 10, 0.8);
    border: 1px solid rgba(15, 229, 160, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(15, 229, 160, 0.1);
}

body.dark-mode .modern-nav-btn {
    color: var(--dark-text-secondary);
    background-color: rgba(0, 10, 10, 0.7);
    border: 1px solid rgba(15, 229, 160, 0.05);
}

body.dark-mode .modern-nav-btn:hover {
    color: var(--dark-primary-hover);
    background: rgba(0, 15, 15, 0.9);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2), 0 0 10px rgba(15, 229, 160, 0.2);
}

body.dark-mode .modern-nav-btn.active {
    background: linear-gradient(135deg, var(--dark-primary-light) 0%, rgba(0, 15, 15, 0.9) 100%);
    color: var(--dark-primary-hover);
    border: 1px solid rgba(15, 229, 160, 0.2);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2), 0 0 12px rgba(15, 229, 160, 0.3);
}

body.dark-mode .theme-toggle {
    color: var(--dark-text-secondary);
    background-color: rgba(0, 10, 10, 0.7);
    border: 1px solid rgba(15, 229, 160, 0.1);
}

body.dark-mode .theme-toggle:hover {
    background: rgba(15, 229, 160, 0.15);
    color: var(--dark-primary-hover);
    box-shadow: 0 0 15px rgba(15, 229, 160, 0.3);
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

/* تنسيق الهيدر العصري الجديد */
.app-header {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(0, 191, 165, 0.08) 100%);
    padding: 22px 35px;
    box-shadow: var(--box-shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 191, 165, 0.12);
    border-radius: 0 0 20px 20px;
    margin: 0 15px 25px 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-normal);
    animation: headerFadeIn 0.5s ease-out forwards;
    /* زخارف للهيدر - تم تحسينها */
    background-image: 
        /* شبكة خطوط */
        linear-gradient(90deg, rgba(0, 191, 165, 0.03) 1px, transparent 1px),
        linear-gradient(0deg, rgba(0, 191, 165, 0.03) 1px, transparent 1px),
        /* نقاط زخرفية */
        radial-gradient(circle at 15% 15%, rgba(0, 191, 165, 0.04) 0%, rgba(0, 191, 165, 0.04) 2px, transparent 2px, transparent 100%),
        radial-gradient(circle at 85% 85%, rgba(0, 191, 165, 0.04) 0%, rgba(0, 191, 165, 0.04) 2px, transparent 2px, transparent 100%),
        /* توهج خفيف */
        radial-gradient(circle at 50% 0%, rgba(77, 208, 225, 0.05) 0%, transparent 60%);
    background-size: 20px 20px, 20px 20px, 100px 100px, 100px 100px, 100% 100%;
}

@keyframes headerFadeIn {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    padding: 8px 15px;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.header-brand::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(14, 190, 126, 0.1) 0%, rgba(14, 190, 126, 0.03) 100%);
    border-radius: 16px;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: -1;
    transform: scale(0.9);
}

.header-brand:hover::before {
    opacity: 1;
    transform: scale(1);
}

.header-brand i {
    font-size: 32px;
    color: var(--primary-color);
    filter: drop-shadow(0 1px 2px rgba(14, 190, 126, 0.1));
    transition: all 0.3s ease;
}

.header-brand:hover i {
    transform: scale(1.03);
    filter: drop-shadow(0 2px 3px rgba(14, 190, 126, 0.15));
}

.header-brand span {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    position: relative;
    transition: all 0.3s ease;
    background: linear-gradient(to right, var(--text-primary), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* تنسيق القائمة المتفاعلة العصرية */
.modern-nav {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    padding: 8px;
    background: rgba(248, 250, 252, 0.6);
    border-radius: 16px;
    box-shadow: var(--box-shadow-sm);
    border: 1px solid rgba(0, 191, 165, 0.15);
    transition: var(--transition-normal);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    /* زخارف للقائمة - تم تحسينها */
    background-image: 
        /* توهج مركزي */
        radial-gradient(circle at 50% 50%, rgba(0, 191, 165, 0.05) 0%, transparent 70%),
        /* توهجات جانبية */
        radial-gradient(circle at 10% 50%, rgba(77, 208, 225, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 50%, rgba(77, 208, 225, 0.03) 0%, transparent 50%),
        /* نقاط زخرفية */
        radial-gradient(circle at 20% 20%, rgba(0, 191, 165, 0.03) 0%, rgba(0, 191, 165, 0.03) 2px, transparent 2px, transparent 100%),
        radial-gradient(circle at 80% 80%, rgba(0, 191, 165, 0.03) 0%, rgba(0, 191, 165, 0.03) 2px, transparent 2px, transparent 100%),
        /* خطوط متقاطعة */
        repeating-linear-gradient(135deg, rgba(0, 191, 165, 0.02) 0px, rgba(0, 191, 165, 0.02) 2px, transparent 2px, transparent 4px);
    background-size: 100% 100%, 50% 100%, 50% 100%, 100px 100px, 100px 100px, 20px 20px;
}

.modern-nav:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
    transform: translateY(-1px);
}

.modern-nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    transition: var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: none;
    letter-spacing: 0.3px;
}

.modern-nav-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 3px rgba(14, 190, 126, 0.1);
    opacity: 0;
}

.modern-nav-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(14, 190, 126, 0.2) 0%, transparent 75%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(0.5);
    z-index: -1;
    pointer-events: none;
    border-radius: 18px;
}

.modern-nav-btn:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-sm);
    background: rgba(255, 255, 255, 0.8);
}

.modern-nav-btn:hover::before {
    width: 60%;
    opacity: 0.6;
    height: 2px;
}

.modern-nav-btn:hover::after {
    opacity: 0.5;
    transform: scale(1.1);
}



.modern-nav-btn.active {
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(255, 255, 255, 0.9) 100%);
    color: var(--primary-color);
    font-weight: 600;
    box-shadow: var(--box-shadow-sm);
    border: 1px solid rgba(0, 191, 165, 0.1);
    transform: translateY(0);
    position: relative;
}

.modern-nav-btn.active::before {
    width: 70%;
    height: 2px;
    opacity: 0.6;
}

.modern-nav-btn i {
    font-size: 22px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.05));
}

.modern-nav-btn:hover i {
    transform: scale(1.05);
    color: var(--primary-color);
    filter: drop-shadow(0 1px 2px rgba(14, 190, 126, 0.1));
}

.modern-nav-btn.theme-btn {
    background: linear-gradient(135deg, var(--bg-color) 0%, rgba(255, 255, 255, 0.9) 100%);
    border: 1px solid rgba(14, 190, 126, 0.1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.modern-nav-btn.theme-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(14, 190, 126, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.3s ease;
    transform: scale(0.5);
    z-index: 1;
    border-radius: 50%;
}

.modern-nav-btn.theme-btn:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(14, 190, 126, 0.1);
}

.modern-nav-btn.theme-btn:hover::after {
    opacity: 0.5;
    transform: scale(1);
}

.main-content {
    flex: 1;
    padding: 30px;
    padding-bottom: 50px;
    background: var(--bg-color);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow-y: auto;
    position: relative;
    z-index: 1;
    /* تم تعديل المحتوى الرئيسي ليناسب التصميم الجديد بدون القائمة الجانبية */
}

/* تنسيق الفوتر الجديد */
.app-footer {
    background: var(--card-bg);
    padding: 25px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    box-shadow: 0 -4px 10px rgba(0, 191, 165, 0.08);
    position: relative;
    overflow: hidden;
    /* زخارف للفوتر - تم تحسينها */
    background-image: 
        /* توهج علوي */
        radial-gradient(circle at 50% 0%, rgba(0, 191, 165, 0.08) 0%, transparent 60%),
        /* توهج جانبي */
        radial-gradient(circle at 10% 50%, rgba(77, 208, 225, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 50%, rgba(77, 208, 225, 0.05) 0%, transparent 50%),
        /* نقوش خطية */
        repeating-linear-gradient(135deg, rgba(0, 191, 165, 0.02) 0px, rgba(0, 191, 165, 0.02) 3px, transparent 3px, transparent 6px),
        /* نقاط زخرفية */
        radial-gradient(circle at 20% 80%, rgba(0, 191, 165, 0.03) 0%, rgba(0, 191, 165, 0.03) 2px, transparent 2px, transparent 100%),
        radial-gradient(circle at 80% 20%, rgba(0, 191, 165, 0.03) 0%, rgba(0, 191, 165, 0.03) 2px, transparent 2px, transparent 100%);
    background-size: 100% 100%, 50% 100%, 50% 100%, 20px 20px, 100px 100px, 100px 100px;
}

.app-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0.5;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand i {
    font-size: 24px;
    color: var(--primary-color);
}

.footer-text {
    text-align: center;
}

.footer-text p {
    margin: 5px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.designer-name {
    color: var(--primary-color);
    font-weight: 700;
}

/* تنسيقات متجاوبة للشاشات الصغيرة */
@media (max-width: 768px) {
    .app-header {
        flex-direction: column;
        gap: 18px;
        padding: 18px 15px;
        margin: 0 8px 18px 8px;
    }
    
    .modern-nav {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
        padding: 10px;
        border-radius: 16px;
    }
    
    .modern-nav-btn {
        padding: 12px;
        font-size: 14px;
        border-radius: 14px;
    }
    
    .modern-nav-btn span {
        display: none;
    }
    
    .modern-nav-btn i {
        font-size: 24px;
        margin: 0;
    }
    
    .modern-nav-btn:hover {
        transform: translateY(-3px) scale(1.1);
    }
    
    .header-brand {
        padding: 6px 12px;
    }
    
    .header-brand span {
        font-size: 20px;
    }
    
    .header-brand i {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .app-header {
        padding: 15px 12px;
        margin: 0 5px 15px 5px;
        border-radius: 0 0 20px 20px;
    }
    
    .modern-nav {
        gap: 5px;
        padding: 8px;
    }
    
    .modern-nav-btn {
        padding: 10px;
        border-radius: 12px;
    }
    
    .modern-nav-btn i {
        font-size: 20px;
    }
    
    .header-brand {
        padding: 5px 10px;
    }
    
    .header-brand span {
        font-size: 18px;
    }
    
    .header-brand i {
        font-size: 24px;
    }

    
    .main-content {
        padding: 20px 15px;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: 16px;
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--box-shadow-md);
    position: relative;
    overflow: hidden;
    z-index: 1;
    /* نقوش وزخارف للأزرار - تم تحسينها */
    background-image: 
        /* نمط خطوط متقاطعة */
        linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent),
        /* توهج خفيف */
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.2) 0%, transparent 60%),
        /* نقاط زخرفية */
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.1) 2px, transparent 2px, transparent 100%),
        radial-gradient(circle at 15% 85%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.1) 2px, transparent 2px, transparent 100%);
    background-size: 12px 12px, 100% 100%, 100px 100px, 100px 100px;
}

.action-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
    letter-spacing: 0.5px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
    z-index: -1;
}

.action-btn:hover::before {
    transform: translateX(100%);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 35px;
    padding: 10px;
}

.stat-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.5));
    padding: 25px 20px;
    text-align: center;
    min-width: 100px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    box-shadow: var(--box-shadow-md);
    transition: var(--transition-slow);
    margin: 5px 0;
    border: 1px solid rgba(0, 191, 165, 0.15);
    overflow: hidden;
    z-index: 1;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    /* نقوش زخرفية للبطاقات - تم تحسينها */
    background-image: 
        /* توهجات زاوية */
        radial-gradient(circle at 90% 10%, rgba(0, 191, 165, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 10% 90%, rgba(0, 191, 165, 0.05) 0%, transparent 40%),
        /* نقاط زخرفية */
        radial-gradient(circle at 85% 15%, rgba(77, 208, 225, 0.04) 0%, rgba(77, 208, 225, 0.04) 2px, transparent 2px, transparent 100%),
        radial-gradient(circle at 15% 85%, rgba(77, 208, 225, 0.04) 0%, rgba(77, 208, 225, 0.04) 2px, transparent 2px, transparent 100%),
        /* خطوط متقاطعة */
        repeating-linear-gradient(45deg, rgba(0, 191, 165, 0.02) 0px, rgba(0, 191, 165, 0.02) 5px, transparent 5px, transparent 7px),
        /* توهج مركزي */
        radial-gradient(circle at 50% 50%, rgba(0, 191, 165, 0.03) 0%, transparent 60%);
    background-size: 100% 100%, 100% 100%, 100px 100px, 100px 100px, 20px 20px, 100% 100%;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.5));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* تأثير متقدم عند التحويم */
.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card i {
    font-size: 50px;
    margin-bottom: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

/* تخصيص ألوان الأيقونات لكل بطاقة - تصميم متقدم ومحسن */
.stat-card:nth-child(1) i {
    color: var(--primary-color);
    background: linear-gradient(135deg, #3b82f6, #0ea5e9);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 3px 6px rgba(59, 130, 246, 0.4));
    animation: iconPulse 2s infinite alternate;
}

.stat-card:nth-child(2) i {
    color: var(--warning-color);
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 3px 6px rgba(236, 72, 153, 0.4));
    animation: iconPulse 2.3s infinite alternate;
}

.stat-card:nth-child(3) i {
    color: var(--success-color);
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 3px 6px rgba(139, 92, 246, 0.4));
    animation: iconPulse 2.6s infinite alternate;
}

@keyframes iconPulse {
    0% { filter: drop-shadow(0 3px 6px rgba(59, 130, 246, 0.2)); }
    100% { filter: drop-shadow(0 5px 10px rgba(59, 130, 246, 0.5)); }
}

.stat-card:hover i {
    transform: scale(1.2) translateY(-5px);
}

.stat-info h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.stat-info span {
    font-size: 42px;
    font-weight: 800;
    display: block;
    transition: all 0.4s ease;
    margin-top: 5px;
    position: relative;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
}

/* تخصيص ألوان الأرقام لكل بطاقة - تصميم محسن */
.stat-card:nth-child(1) .stat-info span {
    background: linear-gradient(135deg, #3b82f6, #0ea5e9);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 3px 8px rgba(59, 130, 246, 0.2);
}

.stat-card:nth-child(2) .stat-info span {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 3px 8px rgba(236, 72, 153, 0.2);
}

.stat-card:nth-child(3) .stat-info span {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 3px 8px rgba(139, 92, 246, 0.2);
}

.stat-card:nth-child(3) .stat-info span {
    background: linear-gradient(135deg, var(--success-color), #16a34a);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* تأثيرات إضافية عند التحويم - محسنة */
.stat-card:hover .stat-info span {
    transform: scale(1.1);
    animation: numberGlow 1.5s infinite alternate;
}

@keyframes numberGlow {
    0% { text-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); }
    100% { text-shadow: 0 6px 12px rgba(59, 130, 246, 0.3); }
}

.stat-card:nth-child(1):hover {
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.15);
}

.stat-card:nth-child(2):hover {
    border: 1px solid rgba(236, 72, 153, 0.3);
    box-shadow: 0 15px 30px rgba(236, 72, 153, 0.15);
}

.stat-card:nth-child(3):hover {
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.15);
}

.quick-add-task {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.quick-add-task h2 {
    font-size: 20px;
    margin-bottom: 25px;
    color: var(--text-primary);
}

#quick-task-form {
    display: flex;
    gap: 15px;
}

#task-form {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    background: var(--bg-color);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
    box-shadow: var(--box-shadow-sm);
    position: relative;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    transform: translateY(0);
}

#task-form:focus-within {
    border-color: var(--primary-color);
    box-shadow: var(--box-shadow-md);
    transform: translateY(-3px);
}

#task-input {
    flex: 1;
    padding: 15px 20px;
    font-size: 16px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 12px;
    transition: var(--transition-normal);
    position: relative;
    font-weight: 400;
    color: var(--text-primary);
    min-width: 300px;
    width: 100%;
    box-shadow: var(--box-shadow-sm);
}

#task-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 191, 165, 0.2);
    transform: translateY(-2px);
}

.add-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    font-size: 16px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: var(--box-shadow-md);
}

.add-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
    letter-spacing: 0.5px;
}

.add-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.5s ease;
    transform: scale(0.5);
    z-index: 1;
}

.add-btn:hover::before {
    opacity: 0.7;
    transform: scale(1);
    animation: addBtnRipple 3s infinite;
}

@keyframes addBtnRipple {
    0% { transform: scale(0.9); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.2; }
    100% { transform: scale(0.9); opacity: 0.3; }
}

.add-btn:active {
    transform: translateY(1px);
}

.add-btn i {
    font-size: 18px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.add-btn:hover i {
    transform: rotate(45deg);
    animation: none;
}

.tasks-container {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--box-shadow-md);
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.tasks-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
    opacity: 0.5;
}

.tasks-header {
    margin-bottom: 20px;
}

.tasks-list {
    background: var(--bg-color);
    border-radius: 24px;
    padding: 30px;
    width: 100%;
    margin: 0 auto;
    max-height: 600px; /* ارتفاع أقصى بدلاً من ثابت */
    min-height: 300px; /* ارتفاع أدنى */
    overflow-y: auto;
    box-shadow: inset 0 0 20px rgba(0, 191, 165, 0.05);
    border: 2px solid var(--border-color);
    margin-bottom: 25px;
    box-sizing: border-box;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.tasks-list::-webkit-scrollbar {
    width: 8px;
}

.tasks-list::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-radius: 4px;
}

.tasks-list::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0, 191, 165, 0.3);
}

.task-item {
    background: white;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
    box-shadow: var(--box-shadow-sm);
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    min-height: 70px;
    transform: translateY(0);
    overflow: hidden;
}

.task-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--box-shadow-md);
    transform: translateY(-5px);
    background: linear-gradient(to right, rgba(0, 191, 165, 0.02), rgba(255, 255, 255, 0.9), rgba(0, 191, 165, 0.02));
}

.task-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scaleY(0);
    transform-origin: bottom;
    box-shadow: 0 0 10px rgba(0, 191, 165, 0.3);
}

.task-item:hover::before {
    opacity: 1;
    transform: scaleY(1);
    animation: glowPulse 1.5s infinite alternate;
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 5px rgba(0, 191, 165, 0.3); }
    100% { box-shadow: 0 0 15px rgba(0, 191, 165, 0.6); }
}

.task-item:last-child {
    margin-bottom: 0;
}

.task-checkbox {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    background: white;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.task-checkbox:checked {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(14, 190, 126, 0.4);
    transform: scale(1.1);
}

.task-checkbox:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 18px;
    left: 5px;
    top: -2px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    animation: checkmark 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes checkmark {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}

.task-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 10px;
    width: 100%;
    overflow: hidden;
}

.task-text {
    font-size: 17px;
    color: var(--text-primary);
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-date {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.task-date i {
    color: var(--primary-color);
    font-size: 14px;
}

.task-actions {
    display: flex;
    gap: 12px;
    opacity: 1;
}

.task-actions button {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    background: var(--bg-color);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--box-shadow-sm);
    font-size: 18px;
    transition: var(--transition-normal);
    overflow: hidden;
}

.task-actions button i {
    position: relative;
}

.task-actions .edit-btn i {
    color: var(--primary-color);
}

.task-actions .delete-btn i {
    color: var(--danger-color);
}

.task-actions .edit-btn {
    background: var(--primary-light);
    color: var(--primary-color);
}

.task-actions .edit-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-md);
}

.task-actions .edit-btn:hover i {
    color: white;
}

.task-actions .delete-btn {
    background: var(--danger-light);
    color: var(--danger-color);
}

.task-actions .delete-btn:hover {
    background: var(--danger-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(239, 83, 80, 0.2);
}

.task-actions .delete-btn:hover i {
    color: white;
}

.task-item.completed {
    background: rgba(14, 190, 126, 0.05);
    border-color: var(--primary-light);
}

.task-item.completed span {
    text-decoration: line-through;
    color: #888;
}

.task-item.completed::before {
    background: var(--gradient-success);
    transform: scaleY(1);
}

.task-checkbox {
    margin-left: 10px;
}

.task-text {
    flex: 1;
}

.delete-btn {
    color: var(--danger-color);
    background: var(--danger-light);
    border: none;
    cursor: pointer;
    font-size: 20px;
    transition: background-color 0.2s ease, color 0.2s ease;
    position: relative;
    border-radius: 8px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.delete-btn:hover {
    background: var(--danger-color);
    color: white;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}




/* تنسيقات نافذة التعديل */
.confirm-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.confirm-content {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 25px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}

.confirm-content h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 700;
}

.confirm-content p {
    margin-bottom: 25px;
    color: var(--text-secondary);
    font-size: 16px;
}

.edit-task-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    font-weight: 400;
    color: var(--text-primary);
    text-align: right;
    direction: rtl;
}

.edit-task-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 190, 126, 0.2);
}

.confirm-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.confirm-buttons button {
    padding: 12px 25px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirm-yes {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 10px rgba(14, 190, 126, 0.3);
}

.confirm-yes:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(14, 190, 126, 0.4);
}

.confirm-no {
    background: #f1f5f9;
    color: var(--text-secondary);
}

.confirm-no:hover {
    background: #e2e8f0;
    transform: translateY(-3px);
}

/* تم إزالة تنسيقات الفوتر */

.designer-name {
    color: var(--primary-color);
    font-weight: 700;
}
}

/* تم إزالة تنسيقات وسائل التواصل الاجتماعي والفوتر */

/* تم إزالة تنسيقات list-footer و footer-buttons و export-btn */

.desktop-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 14px 28px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(14, 190, 126, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.desktop-btn i {
    font-size: 22px;
    transition: all 0.3s ease;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.desktop-btn:hover {
    background: var(--gradient-primary);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(14, 190, 126, 0.4);
}

.desktop-btn:hover i {
    transform: scale(1.3) rotate(15deg);
    filter: drop-shadow(0 3px 7px rgba(0, 0, 0, 0.4));
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.current-tasks {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.current-tasks:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
}

.tasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.tasks-header h2 {
    font-size: 20px;
    color: var(--text-primary);
    position: relative;
}

.tasks-header h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.tasks-count {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.date-select {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-primary);
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.history-list {
    max-height: 300px;
    overflow-y: auto;
}

.history-item {
    padding: 8px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.history-item .date {
    font-size: 12px;
    color: #888;
    display: block;
}

.history-item.completed {
    color: var(--success-color);
}

.history-dashboard {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.history-header {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.history-filters {
    display: flex;
    gap: 15px;
    align-items: center;
    background: var(--bg-color);
    padding: 20px;
    border-radius: 16px;
    margin-top: 20px;
}

.date-select, .status-select {
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.status-select {
    padding: 14px 24px;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    background: white;
    color: var(--text-primary);
    font-weight: 500;
    min-width: 180px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.status-select:hover, .status-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
    outline: none;
}

.status-select option {
    padding: 10px;
    font-size: 14px;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.history-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.history-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.history-card .date {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: block;
}

.history-card .task-text {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.history-card .status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
}

.history-card .status.completed {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success-color);
}

.history-card .status.deleted {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.history-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.page-btn {
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    background: transparent;
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.history-content {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.history-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--gradient-primary);
}

.calendar-wrapper {
    position: relative;
    min-width: 220px;
    z-index: 10;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

.calendar-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    justify-content: center;
    box-shadow: 0 6px 12px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

.calendar-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 60%);
    z-index: 1;
}

.calendar-btn i {
    font-size: 22px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.3));
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 5px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
}

.calendar-btn:hover i {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
    /* تم إزالة الرسوم المتحركة التي تسبب الاهتزاز */
}

@keyframes pulse-calendar {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.calendar-btn:hover {
    transform: none;
    box-shadow: 0 5px 10px rgba(16, 185, 129, 0.3);
    letter-spacing: 0.5px;
}

.calendar-btn span {
    font-size: 16px;
    position: relative;
    z-index: 2;
}

.date-picker {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    color-scheme: light;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    pointer-events: auto;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    background: transparent;
    color: transparent;
    cursor: pointer;
}

input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-clear-button {
    display: none;
}

.calendar-controls {
    display: flex;
    gap: 15px;
    width: 100%;
    position: relative;
}

.calendar-type {
    min-width: 100px;
    padding: 14px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: white;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.calendar-type:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(14, 190, 126, 0.15);
}

.calendar-type:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light), 0 8px 15px rgba(14, 190, 126, 0.1);
}

.calendar-btn {
    flex: 1;
}

.history-groups {
    display: flex;
    flex-direction: column;
    gap: 35px;
    padding: 10px 5px;
}

.history-group {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.history-group:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(14, 190, 126, 0.15);
    border-color: var(--primary-light);
}

.history-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, rgba(14, 190, 126, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    border-bottom: 2px solid var(--primary-light);
    position: relative;
    overflow: hidden;
}

.history-group-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--gradient-primary);
}

.history-group-date {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.history-group-date::before {
    content: '\f073';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-color);
    background: var(--primary-light);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(14, 190, 126, 0.2);
}

.history-group-count {
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: var(--gradient-primary);
    padding: 8px 16px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(14, 190, 126, 0.2);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.history-group-count::before {
    content: '\f0ae';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.history-group:hover .history-group-count {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(14, 190, 126, 0.3);
}

.history-tasks {
    display: grid;
    gap: 15px;
    padding: 20px 25px;
    max-height: 400px;
    overflow-y: auto;
}

.history-tasks::-webkit-scrollbar {
    width: 8px;
}

.history-tasks::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-radius: 4px;
}

.history-tasks::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.history-task-item {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.history-task-item:hover {
    transform: translateX(-8px) translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(14, 190, 126, 0.15);
}

.history-task-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

.history-task-item:hover::before {
    transform: scaleY(1);
}

.history-task-time {
    color: var(--text-secondary);
    font-size: 14px;
    min-width: 80px;
    background: var(--bg-color);
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.history-task-time::before {
    content: '\f017';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-color);
}

.history-task-item:hover .history-task-time {
    background: var(--primary-light);
    color: var(--primary-color);
}

.history-task-text {
    flex: 1;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.history-task-status {
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.history-task-status.completed {
    background: var(--success-light);
    color: var(--success-color);
}

.history-task-status.completed::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.history-task-item:hover .history-task-status.completed {
    background: var(--success-color);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 5px 12px rgba(30, 215, 94, 0.3);
}

.history-task-status.active {
    background: var(--warning-light);
    color: var(--warning-color);
}

.history-task-status.active::before {
    content: '\f017';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.history-task-item:hover .history-task-status.active {
    background: var(--warning-color);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 5px 12px rgba(245, 158, 11, 0.3);
}

.history-task-item.completed .history-task-text {
    text-decoration: line-through;
    color: var(--text-secondary);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 16px;
    background: var(--bg-color);
    border-radius: 16px;
    border: 2px dashed var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.empty-state::before {
    content: '\f073';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 40px;
    color: var(--primary-color);
    background: var(--primary-light);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(14, 190, 126, 0.2);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .dashboard {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none;
    }
    
    .main-content {
        padding: 16px;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        padding: 10px 0;
        gap: 15px;
    }

    .app-container {
        grid-template-columns: 1fr;
        padding-left: 0;
    }

    .main-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        height: 70px;
        flex-direction: row;
        justify-content: space-around;
        padding: 10px;
        z-index: 1000;
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
    }

    .nav-brand {
        display: none;
    }

    .nav-link {
        padding: 8px;
        border-radius: 12px;
        margin-bottom: 0;
        transform: none !important;
    }

    .nav-link span {
        display: none;
    }

    .main-content {
        padding-bottom: 90px;
    }

    .tasks-overview {
        grid-template-columns: 1fr;
    }
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding-left: 0; /* تم إزالة الهامش المخصص للقائمة الجانبية */
    padding-bottom: 80px; /* إضافة مساحة في الأسفل لتجنب تداخل المحتوى مع الفوتر */
}

/* تم إزالة القائمة الجانبية */
/* .main-nav {
    تم إزالة القائمة الجانبية
} */

/* تم إزالة الرسوم المتحركة والعناصر المرتبطة بالقائمة الجانبية */

/* تم إزالة تنسيقات العلامة التجارية في القائمة الجانبية */

/* تم إزالة تنسيقات روابط القائمة الجانبية */

/* تم إزالة تنسيقات روابط القائمة الجانبية */

.view {
    animation: fadeIn 0.3s ease;
}

.view-header {
    background: var(--card-bg);
    padding: 24px;
    border-radius: 24px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto 30px auto;
}

#dashboard-view .stats-container {
    background: transparent;
    padding: 30px;
    border-radius: 24px;
    margin: 20px 0 40px;
}

#dashboard-view .stat-card {
    background: var(--card-bg);
    color: var(--text-primary);
    box-shadow: var(--box-shadow-md);
    border: 1px solid rgba(0, 191, 165, 0.1);
}

#dashboard-view .stat-card i {
    color: inherit;
}

#tasks-view {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    overflow: hidden;
}

.task-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    background: var(--card-bg);
    padding: 15px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    justify-content: center;
}

.task-filters .filter-btn {
    padding: 12px 24px;
    min-width: 140px;
    border: none;
    border-radius: 10px;
    background: var(--bg-color);
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.task-filters .filter-btn i {
    font-size: 16px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.task-filters .filter-btn:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(14, 190, 126, 0.2);
}

.task-filters .filter-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.task-filters .filter-btn:hover::before {
    width: 70%;
}

.task-filters .filter-btn:hover i {
    transform: scale(1.2) rotate(5deg);
    color: var(--primary-color);
    animation: filterIconPulse 1.5s infinite;
}

@keyframes filterIconPulse {
    0% { transform: scale(1.2) rotate(5deg); }
    50% { transform: scale(1.3) rotate(10deg); }
    100% { transform: scale(1.2) rotate(5deg); }
}

.task-filters .filter-btn.active {
    background: #ffa500; /* لون برتقالي */
    color: white;
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.25);
    animation: filterButtonPulse 3s infinite;
}

.task-filters .filter-btn.active i {
    animation: activeFilterIconPulse 2s infinite;
}

@keyframes filterButtonPulse {
    0% { box-shadow: 0 4px 12px rgba(255, 165, 0, 0.25); }
    50% { box-shadow: 0 4px 15px rgba(255, 165, 0, 0.4); }
    100% { box-shadow: 0 4px 12px rgba(255, 165, 0, 0.25); }
}

@keyframes activeFilterIconPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.tasks-container {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.tasks-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    margin-bottom: 10px;
    width: 100%;
}

.task-item:hover {
    transform: translateX(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.task-checkbox {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    background: white;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.task-checkbox:checked {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(14, 190, 126, 0.4);
    transform: scale(1.1);
}

.task-checkbox:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 18px;
    left: 5px;
    top: -2px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    animation: checkmark 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes checkmark {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}

.task-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 10px;
    width: 100%;
    overflow: hidden;
}

.task-text {
    font-size: 17px;
    color: var(--text-primary);
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-date {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.task-date i {
    color: var(--primary-color);
    font-size: 14px;
}

.task-actions {
    display: flex;
    gap: 12px;
    opacity: 1;
}

.task-actions button {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    background: var(--bg-color);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--box-shadow-sm);
    font-size: 18px;
    transition: var(--transition-normal);
    overflow: hidden;
}

.task-actions button i {
    position: relative;
}

.task-actions .edit-btn i {
    color: var(--primary-color);
}

.task-actions .delete-btn i {
    color: var(--danger-color);
}

.task-actions .edit-btn {
    background: var(--primary-light);
    color: var(--primary-color);
}

.task-actions .edit-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-md);
}

.task-actions .edit-btn:hover i {
    color: white;
}

.task-actions .delete-btn {
    background: var(--danger-light);
    color: var(--danger-color);
}

.task-actions .delete-btn:hover {
    background: var(--danger-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(239, 83, 80, 0.2);
}

.task-actions .delete-btn:hover i {
    color: white;
}

.task-item.completed .task-text {
    text-decoration: line-through;
    color: var(--text-secondary);
}

.delete-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--danger-color);
    opacity: 1;
    /* إزالة التأثيرات الحركية */
}


.delete-btn:hover {
    background: #fff0f0;
}

#tasks-view {
    max-width: 800px;
    margin: 0 auto;
}

#history-view .history-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.recent-tasks {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-top: 40px;
}

.recent-task-item {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.recent-task-item:hover {
    transform: translateX(-4px);
    border-color: var(--primary-color);
}

.tasks-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.tasks-chart {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
}

.tasks-chart:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
    transform: translateY(-5px);
}

.tasks-chart h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 15px;
}

.tasks-chart h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

#tasks-progress {
    margin-top: 30px;
    text-align: center;
}

.progress-bar {
    height: 16px;
    background: var(--bg-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 0.8s ease;
    position: relative;
    overflow: hidden;
}

.progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
                rgba(255, 255, 255, 0.1) 25%, 
                rgba(255, 255, 255, 0.2) 50%, 
                rgba(255, 255, 255, 0.1) 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
}

@keyframes shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.progress-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.recent-activity h2, .tasks-chart h2 {
    color: var(--text-primary);
    font-size: 18px;
    margin-bottom: 20px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 5px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
}

.activity-item:hover {
    transform: translateX(-4px);
    background: var(--primary-light);
}

.activity-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--primary-light);
}

.activity-text {
    flex: 1;
    padding: 0 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-time {
    color: var(--text-secondary);
    font-size: 14px;
    min-width: 80px;
    text-align: left;
    flex-shrink: 0;
    padding-right: 5px;
}

.recent-activity {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.recent-activity:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
    transform: translateY(-5px);
}

.recent-activity h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 15px;
}

.recent-activity h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.tasks-progress {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: var(--bg-color);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress {
    height: 100%;
    background: var(--primary-color);
    border-radius: 6px;
    transition: width 0.3s ease;
}

.progress-text {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* نافذة تأكيد الحذف */
.confirm-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.confirm-content {
    background: rgb(255, 255, 255);
    padding: 24px;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease;
}

.confirm-content h3 {
    color: var(--text-primary);
    margin-bottom: 16px;
    font-size: 18px;
}

.confirm-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-buttons button {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirm-yes {
    background: var(--danger-color);
    color: rgb(255, 255, 255);
}

.confirm-yes:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.confirm-no {
    background: var(--bg-color);
    color: var(--text-primary);
}

.confirm-no:hover {
    background: var(--border-color);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تم إزالة تنسيقات ختم الحقوق */

/* تنسيق الحقوق في القائمة الجانبية */
.nav-footer {
    width: 100%;
    margin-top: auto;
    padding: 15px 10px;
}

.nav-copyright {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-primary);
    border-radius: 12px;
    padding: 12px 15px;
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(14, 190, 126, 0.2);
    margin: 0 auto;
    max-width: 300px;
}

.nav-copyright:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.nav-copyright i {
    font-size: 16px;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
}

.nav-copyright:hover i {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.3);
}

.nav-copyright-text {
    font-size: 12px;
    line-height: 1.4;
    color: white;
    font-weight: 500;
    text-align: right;
}

.nav-copyright-text p {
    margin: 2px 0;
}

.nav-copyright .designer-name {
    color: white;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding: 0 4px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.nav-copyright .designer-name:hover {
    letter-spacing: 0.8px;
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* تم إزالة تنسيقات الختم */
/* تم إزالة المزيد من تنسيقات الختم */
}

.stamp-text {
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
    margin-right: 5px;
}

.stamp-text p {
    margin: 2px 0;
}

.designer-name {
    color: var(--primary-color);
    font-weight: 700;
}

.designer-name {
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding: 0 5px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: linear-gradient(to right, var(--primary-light), transparent);
    border-radius: 4px;
    padding: 0 4px;
    text-shadow: 0 1px 3px rgba(14, 190, 126, 0.2);
    box-shadow: 0 1px 3px rgba(14, 190, 126, 0.1);
}

.designer-name::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.4s ease;
}

.designer-name:hover {
    color: var(--primary-hover);
    text-shadow: 0 0 8px rgba(14, 190, 126, 0.5);
    letter-spacing: 0.8px;
    transform: translateY(-2px);
    background: linear-gradient(to right, var(--primary-light), rgba(255, 255, 255, 0.5));
    box-shadow: 0 3px 8px rgba(14, 190, 126, 0.2);
}

.designer-name:hover::after {
    width: 100%;
    height: 3px;
    box-shadow: 0 1px 3px rgba(14, 190, 126, 0.3);
}

/* تم إزالة تنسيقات الفوتر وختم الحقوق */
