    :root {
        --bg-color: #0d0d0d;
        --sidebar-bg: #151515;
        --gold: #d4af37;
        --text-white: #ffffff;
        --card-bg: linear-gradient(145deg, #1e1e1e, #121212);
    }

    body {
        margin: 0;
        font-family: 'Segoe UI', sans-serif;
        background-color: var(--bg-color);
        color: var(--text-white);
        display: flex;
        height: 100vh;
    }

    /* Sidebar Styling */
    .sidebar {
        width: 260px;
        background-color: var(--sidebar-bg);
        border-left: 1px solid #2a2a2a;
        padding: 20px;
        display: flex;
        flex-direction: column;
    }

    .logo {
        font-size: 24px;
        color: var(--gold);
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 40px;
        padding: 0 10px;
    }

    .menu-trigger {
        width: 100%;
        background: #222;
        border: 1px solid #333;
        color: white;
        padding: 15px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        gap: 12px;
        cursor: pointer;
        transition: 0.6s;
        
    }

    .menu-trigger:hover { border-color: var(--gold); scale: calc(1.05); }

    .arrow { 
        margin-right: auto; 
        transition: transform 0.3s ease; /* حددنا الـ transform ليكون أنعم */
        transform: rotate(360deg); /* أضف هذا السطر */
    }
 /* الحاوية الأساسية */
.menu-container {
    width: 100%;
    position: relative;
}

/* 1. الحالة الافتراضية للقائمة (مغلقة) */
.dropdown-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #151515;
    border-radius: 8px;
    direction: ltr; /* لجعل السكرول يميناً في وضع RTL */
    
    /* الأنيميشن والظهور */
    max-height: 0;
    opacity: 0;
    overflow-y: auto; /* تفعيل السكرول العمودي */
    overflow-x: hidden;
    transition: all 0.6s ease;
    
    /* دعم متصفح فيرفوكس للشريط النحيف */
    scrollbar-width: thin;
}

/* 2. الحالة عند الفتح (أضف كلاس show بواسطة JS) */
.dropdown-menu.show {
    max-height: 450px; /* الطول الأقصى الذي يبدأ عنده السكرول */
    opacity: 1;
    margin: 10px 0;
    padding: 5px 0;
}

/* 3. تنسيق العناصر الداخلية */
.dropdown-menu li {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 5px;
    direction: rtl; /* إعادة النص للوضع الطبيعي */
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s ease;
}

.dropdown-menu li:hover { 
    background: rgba(212, 175, 55, 0.1); 
    color: #d4af37; /* لون ذهبي */
}

/* 4. تدوير السهم عند فتح القائمة */
.menu-container.active .arrow { 
    transform: rotate(180deg); 
}

/* 5. تخصيص شكل شريط السكرول (متصفحات Chrome و Edge) */
.dropdown-menu::-webkit-scrollbar {
    width: 5px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 10px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #888; 
}
    /* Main Content & Grid */
    .content {
        flex: 1;
        padding: 40px;
        overflow-y: auto;
    }

    .cards-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
        margin-top: 30px;
    }

    .card {
        background: var(--card-bg);
        padding: 40px 20px;
        border-radius: 20px;
        text-decoration: none;
        color: white;
        display: flex;
        flex-direction: column;
        align-items: center;
        border: 1px solid #2a2a2a;
        transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .card i { font-size: 50px; margin-bottom: 15px; transition: 0.3s; }
    .card span { font-size: 1.2rem; font-weight: bold; }

    .card:hover {
        transform: translateY(-10px) scale(1.03);
        border-color: var(--gold);
        box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
    }

    .dash-board { 
        color: #00d2ff; /* لون أزرق ديجيتال يناسب لوحات التحكم */
        text-shadow: 0 0 15px rgba(0, 210, 255, 0.4); 
    }

    /* ألوان الأيقونات */
    .icon-github { color: #fff; }
    .icon-linkedin { color: #0077b5; }
    .icon-youtube { color: #ff0000; }
    .icon-whatsapp { color: #25d366; }
    .icon-telegram { color: #0088cc; }
    .icon-cloudflare { color: #f38020; }
    .icon-government { color: #006c35; } /* أخضر حكومي */
    
    /* زر الزائد العائم */
    .add-btn {
        position: fixed;
        bottom: 30px;
        left: 30px;
        width: 80px;
        height: 80px;
        border-radius: 50%;
        background: var(--gold);
        color: black;
        font-size: 30px;
        font-weight: bold;
        border: none;
        cursor: pointer;
        box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
        z-index: 1000;
            transition: all ease 1s;
        
    }
    .add-btn:hover {
        box-shadow: 0 10px 30px rgba(212, 175, 55, 0.6);
        background-color: #ff0000; /* تغيير اللون عند التمرير */
        color: var(--gold);
        scale: calc(1.2);
    }
    /* النافذة المنبثقة */
    .modal {
        display: none;
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.8);
        backdrop-filter: blur(5px);
        z-index: 2000;
        
    }

    .modal-content {
        background: #1e1e1e;
        width: 350px;
        margin: 100px auto;
        padding: 30px;
        border-radius: 20px;
        border: 1px solid var(--gold);
        text-align: center;
    }

    .modal-content input, .modal-content select {
        width: 100%;
        padding: 12px;
        margin: 10px 0;
        background: #000;
        border: 1px solid #333;
        color: white;
        border-radius: 8px;
    }

    .save-btn { background: var(--gold); color: black; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; font-weight: bold; }
    .cancel-btn { background: #333; color: white; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; margin-right: 10px; }


    .add-btn-sidebar {
        width: 100%;
        background: rgba(212, 175, 55, 0.1);
        border: 1px dashed var(--gold);
        color: var(--gold);
        padding: 12px;
        border-radius: 10px;
        margin-bottom: 20px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        font-weight: bold;
        transition: 0.3s;
    }

    .add-btn-sidebar{
        font-size: 22px;
    }
    .add-btn-sidebar:hover {
        background: var(--gold);
        color: black;
    }

    .type-switcher {
        display: flex;
        gap: 20px;
        margin-bottom: 20px;
        justify-content: center;
    }
    .type-switcher button{
        background-color: var(--text-white);
        font-size: 22px;
        font-weight: bold;
        border-radius: 20px 0px 20px 0px;
        border: 5px solid var(--gold);
        width: 200px;
        height: 80px;
    }

    .active-type {
        background: var(--gold) !important;
        color: black !important;
    }

    /* --- ألوان الأيقونات الفاخرة --- */

    /* GitHub */
    .icon-github { color: #ffffff; filter: drop-shadow(0 0 5px rgba(255,255,255,0.3)); }

    /* LinkedIn */
    /* أضف .fas لزيادة قوة التحديد */
    .icon-linkedin, .fas.icon-linkedin {
        color: #0077b5 !important; /* استخدم important مؤقتاً للتأكد من أنها المشكلة */
        filter: drop-shadow(0 0 5px rgba(0, 119, 181, 0.5));
    }
    /* YouTube */
    .icon-youtube { color: #ff0000; filter: drop-shadow(0 0 5px rgba(255, 0, 0, 0.5)); }

    /* WhatsApp */
    .icon-whatsapp { color: #25d366; filter: drop-shadow(0 0 5px rgba(37, 211, 102, 0.5)); }

    /* Telegram */
    .icon-telegram { color: #0088cc; filter: drop-shadow(0 0 5px rgba(0, 136, 204, 0.5)); }

    /* Cloudflare */
    .icon-cloudflare { color: #f38020; filter: drop-shadow(0 0 5px rgba(243, 128, 32, 0.5)); }

    /* Government (Absher/Tawakkalna) */
    .icon-government { color: #006c35; filter: drop-shadow(0 0 5px rgba(0, 108, 53, 0.5)); }

    /* ChatGPT & AI */
    .fa-robot { color: #10a37f; filter: drop-shadow(0 0 5px rgba(16, 163, 127, 0.5)); }

    /* Figma */
    .fa-figma { color: #f24e1e; filter: drop-shadow(0 0 5px rgba(242, 78, 30, 0.5)); }

    /* n8n (Network Wired) */
    .fa-network-wired { color: #ff6d5a; filter: drop-shadow(0 0 5px rgba(255, 109, 90, 0.5)); }

    /* Gmail */
    .fa-envelope { color: #ea4335; filter: drop-shadow(0 0 5px rgba(234, 67, 53, 0.5)); }

    /* Google Drive */
    .fa-google-drive { color: #34a853; filter: drop-shadow(0 0 5px rgba(52, 168, 83, 0.5)); }

    /* Portfolio / Briefcase */
    .fa-briefcase { color: var(--gold); }

    /* Resume / PDF */
    .fa-file-pdf { color: #ff4b2b; }

    /* Language / Translate */
    .fa-language { color: #4285f4; }

    /* Dashboard Speedometer */
    .dash-board { 
        color: #00d2ff !important; 
        filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.6));
    }
    .sanad-icon { 
        color: #ffd700 !important; /* لون ذهبي نقي */
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6)); /* توهج ذهبي ناعم */
        text-shadow: 0 0 2px rgba(0, 0, 0, 0.2); /* إضافة عمق بسيط للون */
    }

    /* تحسين شكل الأيقونة داخل الكارد عند التحويم */
    .card:hover i {
        transform: scale(1.1);
        filter: brightness(1.2) drop-shadow(0 0 15px currentColor);
    }
    /* تأثير الأيقونة البنفسجية المشعة */
.AivoraTech-icon {
    color: #E0B0FF; /* لون البنفسجي الأساسي */
    text-shadow: 0 0 10px rgba(224, 176, 255, 0.8), 
                 0 0 20px rgba(255, 255, 255, 0.4); /* إشعاع أبيض خفيف */
    transition: all 0.3s ease;
}


    .search-container {
        margin-top: auto; /* ليدفع البحث للأسفل */
        position: relative;
        padding: 10px;
        border-top: 1px solid #2a2a2a;
    }

    .search-container input {
        width: 80%;
        background: #000;
        border: 1px solid #333;
        color: white;
        padding: 10px 35px 10px 10px;
        border-radius: 8px;
        outline: none;
        font-size: 0.9rem;
        transition: 0.3s;
    }

    .search-container input:focus {
        border-color: var(--gold);
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
    }

    .search-icon {
        position: absolute;
        right: 22px;
        top: 50%;
        transform: translateY(-50%);
        color: #666;
        pointer-events: none;
    }

    /* تمييز النص المبحوث عنه */
    .highlight {
        color: var(--gold);
        text-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
        font-weight: 900;
        background: none; /* عشان ما يطلع خلفية صفراء قديمة */
    }
    /* استخدم سلكتور أقوى لضمان التلوين */
    .sidebar .dropdown-menu li[id^="side-"].active-category {
        background: rgba(212, 175, 55, 0.2) !important;
        color: var(--gold) !important;
        border-right: 4px solid var(--gold) !important;
        transform: translateX(-5px);
    }
    /* تنسيق القسم المختار (Active) */
    /* تنسيق القسم المختار (Active) */
    .dropdown-menu li.active-category {
        background: rgba(212, 175, 55, 0.15); /* خلفية ذهبية شفافة */
        color: var(--gold); /* تلوين النص بالذهبي */
        border-right: 4px solid var(--gold); /* خط جانبي لتمييزه */
        font-weight: bold;
        transform: translateX(-5px); /* إزاحة بسيطة لليمين لإعطاء تأثير حركي */
        transition: 0.3s;
    }

    /* تلوين الأيقونة داخل القسم النشط */
    .dropdown-menu li.active-category i {
        color: var(--gold);
        filter: drop-shadow(0 0 5px var(--gold));
    }

    .google-search-container {
        width: 100%;
        max-width: 800px; /* ليناسب عرض شبكة الأيقونات */
        margin: 20px auto 40px auto; /* مسافة تحت وفوق */
        padding: 0 20px;
    }

    .search-wrapper {
        position: relative;
        display: flex;
        align-items: center;
        background: #1a1a1a; /* نفس لون خلفية الكروت في صورتك */
        border: 1px solid #333;
        border-radius: 12px;
        padding: 10px 15px;
        transition: all 0.3s ease;
    }

    .search-wrapper:focus-within {
        border-color: #ffd700; /* التوهج الذهبي عند الكتابة */
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
    }

    .search-wrapper input {
        flex: 1;
        background: transparent;
        border: none;
        color: white;
        font-size: 1.1rem;
        padding: 5px 15px;
        outline: none;
    }

    .search-icon {
        color: #888;
        font-size: 1.2rem;
    }

    .search-wrapper button {
        background: transparent;
        border: none;
        color: #ffd700; /* لون السهم ذهبي */
        cursor: pointer;
        font-size: 1.2rem;
        padding: 5px;
    }
.modal-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: center;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: #333;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
    flex: 1;
}

.tab-btn.active {
    background: #008080; /* لون التيل الغامق المفضل لديك */
    box-shadow: 0 0 10px rgba(0, 128, 128, 0.5);
}

.tab-btn:hover {
    background: #444;
}

#deleteCatSelect {
    width: 100%;
    padding: 10px;
    background: #222;
    color: white;
    border: 1px solid #444;
    border-radius: 5px;
    margin: 15px 0;
}