:root {
    --primary-color: #5E17EB;
    --secondary-color: #8A2BE2;
    --accent-color: #4B0082;
    --gold-color: #FFD700;
    --light-gold: #FFF8DC;
    --text-color: #333;
    --light-text: #f8f9fa;
    --dark-bg: #1E1E1E;
    --light-bg: #f5f5f5;
    --science-color: #3CB371;
    --blue-accent: #4169E1;
    --pink-accent: #C71585;
    --scrollbar-thumb: var(--primary-color);
    --scrollbar-track: #f1f1f1;
    --cell-color: #a5d8ff;
    --dna-color: #9370DB;
    --card-bg: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    --card-shadow: 0 10px 30px rgba(94, 23, 235, 0.15);
    --glow-sun: #ffa500;
    --glow-moon: #87ceeb;
    --success: #3CB371;
    --danger: #e63946;
    --border-radius: 10px;
    --light-gray: #f5f5f5;
    --nav-bg: #ffffff;
    --sidebar-bg: #f5f5f5;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 5px 15px rgba(0, 0, 0, 0.1);
    --rose-400: #C71585;
    --cyan-500: #4169E1;
    --purple-500: #8A2BE2;
    --yellow-500: #FFD700;
}

.dark-theme {
    --text-color: #f8f9fa;
    --light-bg: #1E1E1E;
    --dark-bg: #f5f5f5;
    --scrollbar-thumb: var(--secondary-color);
    --scrollbar-track: #333;
    --card-bg: linear-gradient(135deg, #2d2d2d 0%, #252525 100%);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --light-bg: #2b2b2b;
    --card-bg: #2b2b2b;
    --nav-bg: #2b2b2b;
    --sidebar-bg: #1E1E1E;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 5px 15px rgba(0, 0, 0, 0.4);
    --success: #3CB371;
    --danger: #e63946;
}

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Tajawal', sans-serif;
            transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
        }

        body {
            background-color: var(--sidebar-bg);
            color: var(--text-color);
            line-height: 1.6;
            overflow-x: hidden;
        }

        .dashboard-container {
            display: grid;
            grid-template-columns: 1fr 2fr;
            gap: 20px;
            max-width: 1200px;
            margin: 80px auto 30px;
            padding: 0 20px;
        }

        header {
            background: var(--nav-bg);
            color: var(--text-color);
            padding: 0.8rem 0;
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
            box-shadow: var(--shadow);
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        }

        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .logo {
            display: flex;
            align-items: center;
            font-size: 1.8rem;
            font-weight: 800;
        }

        .logo span {
            color: var(--accent-color);
        }

        .logo .crown-icon {
            color: var(--gold-color);
            margin-left: 8px;
        }

        .nav-controls {
            display: flex;
            align-items: center;
            gap: 15px;
            position: relative;
        }

        .nav-icons {
            display: flex;
            gap: 0.8rem;
        }

        .nav-icon {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--light-gray);
            color: var(--text-color);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .nav-icon:hover {
            background: var(--primary-color);
            color: white;
            transform: translateY(-2px);
        }

        .notification-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background: var(--accent-color);
            color: white;
            font-size: 0.7rem;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .user-profile {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 5px;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
        }

        .user-profile:hover {
            background: var(--light-gray);
            transform: translateY(-2px);
        }

        .user-profile img {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid transparent;
            transition: all 0.3s ease;
        }

        .user-profile:hover img {
            border-color: var(--primary-color);
        }
        

        .popup {
            position: fixed;
            top: 80px;
            right: 20px;
            width: 350px;
            max-width: 90%;
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            z-index: 999;
            opacity: 0;
            visibility: hidden;
            transform: translateY(20px);
            transition: all 0.3s ease;
        }

        body.dark-theme .popup {
            background-color: #2c2c2c;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }

        .popup.active {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .popup-title {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 20px;
            border-bottom: 1px solid #eee;
            font-weight: 700;
            color: var(--primary-color);
        }

        body.dark-theme .popup-title {
            border-bottom: 1px solid #444;
        }

        .popup-title .close-popup {
            cursor: pointer;
            color: #777;
            transition: all 0.3s ease;
        }

        .popup-title .close-popup:hover {
            color: var(--primary-color);
            transform: rotate(90deg);
        }

        .popup-content {
            padding: 15px;
            max-height: 400px;
            overflow-y: auto;
        }

        .popup-item {
            display: flex;
            align-items: center;
            padding: 10px;
            border-radius: 8px;
            margin-bottom: 10px;
            transition: all 0.3s ease;
            text-decoration: none;
            color: inherit;
        }

        .popup-item:hover {
            background-color: rgba(94, 23, 235, 0.1);
            transform: translateX(-5px);
        }

        body.dark-theme .popup-item:hover {
            background-color: rgba(94, 23, 235, 0.3);
        }

        .popup-item i {
            font-size: 1.2rem;
            margin-left: 10px;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background-color: rgba(94, 23, 235, 0.1);
        }

        body.dark-theme .popup-item i {
            background-color: rgba(94, 23, 235, 0.3);
        }

        .popup-text {
            flex: 1;
        }

        .popup-text h4 {
            font-size: 0.95rem;
            margin-bottom: 3px;
            color: var(--text-color);
        }

        .popup-text p {
            font-size: 0.8rem;
            color: #777;
            margin: 0;
        }

        .no-notifications {
            text-align: center;
            padding: 30px 0;
        }

        .no-notifications i {
            font-size: 3rem;
            color: #ddd;
            margin-bottom: 15px;
        }

        .no-notifications p {
            color: #777;
        }

        .user-menu-popup .popup-item {
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .user-menu-popup .popup-item:hover {
            background: var(--primary-color);
            color: white;
        }

        .user-menu-popup .popup-item:hover p {
            color: white;
        }

        .theme-toggle {
            position: relative;
            width: 70px;
            height: 35px;
            background: linear-gradient(45deg, #ffd700, #ffed4a);
            border-radius: 25px;
            border: none;
            cursor: pointer;
            transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
            overflow: hidden;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .theme-toggle:hover {
            transform: scale(1.05);
        }
        
        .theme-toggle .toggle-circle {
            position: absolute;
            top: 4px;
            right: 4px;
            width: 27px;
            height: 27px;
            background: white;
            border-radius: 50%;
            transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.8);
        }

        .theme-toggle .icon {
            font-size: 16px;
            transition: all 0.4s ease;
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
        }

        .theme-toggle .sun-icon {
            color: #ff6b35;
            opacity: 1;
            transform: rotate(0deg) scale(1);
        }

        .theme-toggle .moon-icon {
            color: #4a5568;
            position: absolute;
            opacity: 0;
            transform: rotate(180deg) scale(0.5);
        }

        .theme-toggle .sun-rays {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            pointer-events: none;
        }
        
        .theme-toggle.dark {
            background: linear-gradient(45deg, #4a5568, #2d3748);
            box-shadow: 0 5px 15px rgba(74, 85, 104, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }
        
        .theme-toggle.dark .toggle-circle {
            right: 39px;
            background: #2d3748;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }
        
        .theme-toggle.dark .sun-icon {
            opacity: 0;
            transform: rotate(-180deg) scale(0.5);
        }

        .theme-toggle.dark .moon-icon {
            opacity: 1;
            transform: rotate(0deg) scale(1);
            color: var(--glow-moon);
        }

        .theme-toggle.dark .sun-rays {
            opacity: 0;
        }

        .nav-controls-desktop {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .sidebar {
            background: var(--card-bg);
            border-radius: var(--border-radius);
            padding: 20px;
            box-shadow: var(--shadow);
            height: fit-content;
            position: sticky;
            top: 90px;
        }

        .profile-info {
            text-align: center;
            padding-bottom: 20px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
            margin-bottom: 20px;
        }

        .profile-img {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            object-fit: cover;
            margin: 0 auto 15px;
            border: 3px solid var(--primary-color);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        }

        .profile-name {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 5px;
        }

        .profile-title {
            color: var(--primary-color);
            font-weight: 500;
            margin-bottom: 15px;
        }

        .profile-stats {
            display: flex;
            justify-content: space-around;
            margin-bottom: 20px;
            flex-wrap: wrap; /* يسمح بعناصر متعددة في صف واحد */
            gap: 10px; /* مسافة بين العناصر */
        }

        .stat {
            text-align: center;
            min-width: 80px; /* الحد الأدنى للعرض لكل عنصر */
            flex: 1; /* توزيع المساحة بالتساوي */
        }

        .stat-number {
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--primary-color);
        }

        .stat-label {
            font-size: 0.9rem;
            color: #777;
        }

        .sidebar-links {
            list-style: none;
        }

        .sidebar-links li {
            margin-bottom: 10px;
        }

        .sidebar-links a {
            display: flex;
            align-items: center;
            padding: 12px 15px;
            border-radius: 8px;
            color: var(--text-color);
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .sidebar-links a i {
            margin-left: 10px;
            font-size: 1.2rem;
        }

        .sidebar-links a:hover, .sidebar-links a.active {
            background: var(--primary-color);
            color: white;
        }
        
        /* أنماط جديدة للملف الشخصي */
        .profile-container {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        
        .profile-card {
            background: var(--card-bg);
            border-radius: var(--border-radius);
            padding: 25px;
            box-shadow: var(--shadow);
        }
        
        .section-title {
            font-size: 1.4rem;
            font-weight: 700;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .section-title i {
            color: var(--primary-color);
            font-size: 1.2rem;
        }
        
        .info-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin-top: 15px;
        }
        
        .info-item {
            display: flex;
            padding: 15px;
            background: var(--light-gray);
            border-radius: var(--border-radius);
        }
        
        .info-label {
            font-weight: 600;
            min-width: 120px;
            color: #555;
        }
        
        .info-value {
            flex: 1;
            font-weight: 500;
        }
        
        .progress-bar {
            height: 8px;
            background-color: #e0e0e0;
            border-radius: 4px;
            margin: 10px 0;
            overflow: hidden;
        }
        
        .progress-fill {
            height: 100%;
            background-color: var(--primary-color);
            border-radius: 4px;
            transition: width 0.5s ease;
        }
        
        .progress-info {
            display: flex;
            justify-content: space-between;
            font-size: 0.9rem;
            color: #555;
        }

        /* أنماط جديدة للإحصائيات */
        .flex-center-both {
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .flex-col {
            flex-direction: column;
        }
        
        .space-y-8 > * + * {
            margin-top: 2rem;
        }
        
        .max-w-lg {
            max-width: 32rem;
        }
        
        .w-full {
            width: 100%;
        }
        
        .mx-auto {
            margin-left: auto;
            margin-right: auto;
        }
        
        .h-1 {
            height: 4px;
        }
        
        .bg-cyan-500 {
            background-color: var(--cyan-500);
        }
        
        .bg-opacity-30 {
            opacity: 0.3;
        }
        
        .smooth {
            transition: all 0.3s ease;
        }
        
        .rounded-md {
            border-radius: 0.375rem;
        }
        
        .mb-5 {
            margin-bottom: 1.25rem;
        }
        
        .space-x-2 > * + * {
            margin-right: 0.5rem;
        }
        
        .space-x-reverse {
            direction: rtl;
        }
        
        .pb-10 {
            padding-bottom: 2.5rem;
        }
        
        .trasnform {
            transform: translateY(-1px);
        }
        
        .font-big {
            font-size: 1.5rem;
        }
        
        .font-w-bold {
            font-weight: 700;
        }
        
        .font-h1 {
            font-size: 2rem;
            line-height: 1.2;
        }
        
        .text-rose-400 {
            color: var(--rose-400);
        }
        
        .text-cyan-500 {
            color: var(--cyan-500);
        }
        
        .pt-10 {
            padding-top: 2.5rem;
        }
        
        .grid {
            display: grid;
        }
        
        .grid-cols-3 {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }
        
        .gap-5 {
            gap: 1.25rem;
        }
        
        .progress-circle {
            position: relative;
            width: 8rem;
            height: 8rem;
            border-radius: 50%;
            overflow: hidden;
            box-shadow: var(--shadow-hover);
            transition: all 0.3s ease;
        }
        
        .progress-content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 85%;
            height: 85%;
            border-radius: 50%;
            background: var(--card-bg);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: var(--shadow);
        }
        
        .font-ibm {
            font-family: 'Tajawal', sans-serif;
            font-weight: 700;
        }
        
        .font-smaller {
            font-size: 0.9rem;
        }
        
        .clr-text-primary {
            color: var(--text-color);
        }
        
        .rounded-full {
            border-radius: 9999px;
        }
        
        .border-2 {
            border-width: 2px;
            border-style: solid;
        }
        
        .border-rose-500 {
            border-color: var(--rose-400);
        }
        
        .border-cyan-500 {
            border-color: var(--cyan-500);
        }
        
        .border-purple-500 {
            border-color: var(--purple-500);
        }
        
        .clr-white {
            color: white;
        }
        
        .bg-rose-500 {
            background-color: var(--rose-400);
        }
        
        .bg-cyan-500 {
            background-color: var(--cyan-500);
        }
        
        .bg-purple-500 {
            background-color: var(--purple-500);
        }
        
        .bg-yellow-500 {
            background-color: var(--yellow-500);
        }
        
        .px-4 {
            padding-left: 1rem;
            padding-right: 1rem;
        }
        
        .py-1 {
            padding-top: 0.25rem;
            padding-bottom: 0.25rem;
        }
        
        .pl-4 {
            padding-right: 1rem;
        }
        
        .pr-2 {
            padding-left: 0.5rem;
        }
        
        .font-small {
            font-size: 0.875rem;
        }
        
        .items-start {
            align-items: flex-start;
        }
        
        .space-y-2 > * + * {
            margin-top: 0.5rem;
        }
        
        .space-y-3 > * + * {
            margin-top: 0.75rem;
        }
        
        .flex {
            display: flex;
        }
        
        .justify-between {
            justify-content: space-between;
        }
        
        .max-w-xl {
            max-width: 36rem;
        }
        
        .p-1 {
            padding: 0.25rem;
        }
        
        .undefined {
            border-radius: 9999px;
        }
        
        .bg-inner-container {
            background: var(--light-gray);
        }
        
        .text-center {
            text-align: center;
        }
        
        .px-2 {
            padding-right: 0.5rem;
            padding-left: 0.5rem;
        }
        
        .py-5 {
            padding-top: 1.25rem;
            padding-bottom: 1.25rem;
        }
        
        .bg-outer-container {
            background: var(--light-gray);
        }
        
        .pt-5 {
            padding-top: 1.25rem;
        }
        
        .pt-2 {
            padding-top: 0.5rem;
        }
        
        .pb-5 {
            padding-bottom: 1.25rem;
        }
        
        /* تحسينات للهاتف */
        @media (max-width: 992px) {
            .dashboard-container {
                grid-template-columns: 1fr;
            }
            
            .sidebar {
                position: relative;
                top: 0;
                margin-bottom: 20px;
            }
            
            .nav-icons {
                gap: 0.5rem;
            }
            
            .grid-cols-3 {
                grid-template-columns: 1fr;
                gap: 30px;
            }
            
            .progress-circle {
                width: 150px;
                height: 150px;
                margin: 0 auto;
            }
            
            /* تعديلات على إحصائيات الملف الشخصي */
            .profile-stats {
                flex-direction: row; /* الحفاظ على الصف الأفقي */
                justify-content: center; /* توسيط العناصر */
                gap: 15px; /* زيادة المسافة بين العناصر */
            }
            
            .stat {
                min-width: 100px; /* زيادة العرض الأدنى */
                padding: 10px 5px; /* زيادة المساحة الداخلية */
            }
            
            .profile-container {
                gap: 15px;
            }
        }

        @media (max-width: 768px) {
            .navbar {
                padding: 0 10px;
            }
            
            .nav-controls {
                gap: 10px;
            }
            
            .nav-icons {
                gap: 0.3rem;
            }
            
            .nav-icon {
                width: 35px;
                height: 35px;
                font-size: 0.9rem;
            }
            
            .logo {
                font-size: 1.5rem;
            }
            
            .logo .crown-icon {
                font-size: 1.3rem;
            }
            
            .popup {
                width: 300px;
                right: 10px;
            }
            
            .notifications-popup {
                width: 320px;
            }
            
            .theme-toggle {
                transform: scale(0.9);
            }
            
            .info-grid {
                grid-template-columns: 1fr;
            }
            
            .profile-img {
                width: 100px;
                height: 100px;
            }
            
            .profile-name {
                font-size: 1.3rem;
            }
            
            .section-title {
                font-size: 1.2rem;
            }
            
            .stat-card .number {
                font-size: 1.5rem;
            }
            
            /* تعديلات إضافية لإحصائيات الملف الشخصي */
            .profile-stats {
                gap: 10px; /* تقليل المسافة بين العناصر */
            }
            
            .stat {
                min-width: 85px; /* تقليل العرض الأدنى */
                padding: 8px 4px; /* تقليل المساحة الداخلية */
            }
            
            .stat-number {
                font-size: 1.2rem; /* تقليل حجم خط الرقم */
            }
            
            .stat-label {
                font-size: 0.85rem; /* تقليل حجم خط التسمية */
            }
        }

        @media (max-width: 576px) {
            .nav-icons {
                display: flex;
            }
            
            .logo {
                font-size: 1.3rem;
            }
            
            .theme-toggle {
                transform: scale(0.8);
            }
            
            .user-profile img {
                width: 35px;
                height: 35px;
            }
            
            .popup {
                width: calc(100% - 40px);
                right: 20px;
                max-height: 70vh;
            }
            
            .notifications-popup {
                width: calc(100% - 40px);
            }
            
            .progress-circle {
                width: 120px;
                height: 120px;
            }
            
            .font-h1 {
                font-size: 1.5rem;
            }
            
            .stat-number {
                font-size: 1.1rem;
            }
            
            .sidebar-links a {
                padding: 10px;
                font-size: 0.9rem;
            }
            
            .sidebar-links a i {
                margin-left: 8px;
                font-size: 1rem;
            }
            
            .info-item {
                flex-direction: column;
                padding: 12px;
            }
            
            .info-label {
                min-width: auto;
                margin-bottom: 5px;
                font-size: 0.9rem;
            }
            
            .info-value {
                font-size: 0.95rem;
            }
            
            .flex-center-both.space-x-2.space-x-reverse.pb-10 {
                flex-direction: column;
                gap: 10px;
                padding-bottom: 20px;
            }
            
            .font-big {
                font-size: 1.2rem;
            }
            
            .max-w-xl {
                max-width: 100%;
            }
            
            .flex.space-x-2.space-x-reverse.items-center.justify-between.max-w-xl.w-full {
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
            }
            
            .rounded-full.p-1.undefined {
                width: 100%;
            }
            
            .bg-inner-container.clr-text-primary.smooth.rounded-full.py-1.px-2.font-w-bold.flex.text-center {
                width: 100%;
                justify-content: center;
            }
            
            /* تحسينات نهائية لإحصائيات الملف الشخصي على الهواتف الصغيرة */
            .profile-stats {
                gap: 5px; /* تقليل المسافة بين العناصر */
                margin-top: 10px; /* تقليل الهوامش العلوية */
                margin-bottom: 15px; /* تقليل الهوامش السفلية */
            }
            
            .stat {
                min-width: 70px; /* تقليل العرض الأدنى */
                padding: 6px 3px; /* تقليل المساحة الداخلية */
            }
            
            .stat-number {
                font-size: 1rem; /* تقليل حجم خط الرقم */
            }
            
            .stat-label {
                font-size: 0.75rem; /* تقليل حجم خط التسمية */
            }
        }
        
        /* تحسينات إضافية للهاتف */
        @media (max-width: 480px) {
            .dashboard-container {
                padding: 0 15px;
            }
            
            .profile-card {
                padding: 20px 15px;
            }
            
            .progress-circle {
                width: 100px;
                height: 100px;
            }
            
            .font-ibm {
                font-size: 0.9rem;
            }
            
            .font-smaller {
                font-size: 0.8rem;
            }
            
            .font-w-bold.font-h1 {
                font-size: 1.3rem;
                text-align: center;
            }
            
            .space-y-8 > * + * {
                margin-top: 1.5rem;
            }
            
            .pt-10 {
                padding-top: 1.5rem;
            }
            
            /* تحسينات أخيرة لإحصائيات الملف الشخصي */
            .profile-stats {
                justify-content: space-between; /* توزيع العناصر بالتساوي */
            }
            
            .stat {
                min-width: 65px; /* تقليل العرض الأدنى */
                padding: 5px 2px; /* تقليل المساحة الداخلية */
            }
        }
        
        /* تحسينات متقدمة للهاتف */
        @media (max-width: 380px) {
            .navbar {
                flex-wrap: wrap;
                padding: 10px;
            }
            
            .logo {
                order: 1;
                margin-bottom: 10px;
                width: 100%;
                justify-content: center;
            }
            
            .nav-controls {
                order: 2;
                width: 100%;
                justify-content: center;
            }
            
            header {
                padding: 0;
            }
            
            .profile-img {
                width: 80px;
                height: 80px;
            }
            
            .profile-name {
                font-size: 1.2rem;
            }
            
            .sidebar-links a {
                padding: 8px 10px;
                font-size: 0.85rem;
            }
            
            .section-title {
                font-size: 1.1rem;
            }
            
            .font-h1 {
                font-size: 1.2rem;
            }
            
            .profile-stats {
                gap: 3px; 
            }
            
            .stat {
                min-width: 60px;
                padding: 4px 1px;
            }
            
            .stat-number {
                font-size: 0.9rem; /* تقليل حجم خط الرقم */
            }
            
            .stat-label {
                font-size: 0.7rem; /* تقليل حجم خط التسمية */
            }
        }
