        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', sans-serif;
            overflow: hidden;
            height: 100vh;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            position: relative;
        }
:root {
    /* غيّر الرقم هذا عشان تكبر/تصغر الـ PopUp */
    --display-modal-scale: 1.5;
        /* التحكم بالمسافات */
    --modal-icon-margin-bottom: 20px;
    --modal-title-margin-bottom: 6px;

    /* التحكم بارتفاع الكارد من المنتصف */
    --modal-panel-height: auto; /* غيّرها لرقم مثل 260px أو 300px */
}

        .wallpaper {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
                background: url('assets/macos_big_sur_style_abstract_wallpaper.png') center/cover no-repeat;

            z-index: -1;
        }

        .menubar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 32px; /* h-8 */

    /* padding-left and padding-right = px-4 = 16px */
    padding: 0 16px;

    background: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);

    display: flex;
    align-items: center; /* مثل الأصلية */
    justify-content: space-between;

    font-size: 14px; /* text-sm */
    font-weight: 500; /* font-medium */
    color: black;

    z-index: 9999;
    user-select: none;
}

/* LEFT SIDE ITEMS */
.menubar-left {
    display: flex;
    align-items: center;
    gap: 24px; /* gap-6 = 24px */
}

.menubar-left .submenu {
    display: flex;
    align-items: center;
    gap: 16px; /* gap-4 = 16px */
}

/* GENERAL ITEM */
.menubar-item {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.85;
    cursor: default;
}

.menubar-item:hover {
    opacity: 1;
}

/* RIGHT SIDE */
.menubar-right {
    display: flex;
    align-items: center;
    gap: 16px; /* gap-4 = 16px */
}

/* WiFi + Battery group */
.menubar-icons {
    display: flex;
    align-items: center;
    gap: 12px; /* gap-3 = 12px */
}


        .desktop {
            position: fixed;
            top: 28px;
            left: 0;
            right: 0;
            bottom: 80px;
            overflow: hidden;
            
        }

        .window {
            position: absolute;
            min-width: 400px;
            min-height: 300px;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(30px);
            -webkit-backdrop-filter: blur(30px);
            border-radius: 12px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            overflow: hidden;
            display: none;
            flex-direction: column;
            transition: all 0.22s cubic-bezier(0.25, 0.1, 0.25, 1);
                opacity: 0.65;

        }

        .window.active {
            display: flex;
            z-index: 1000;
                opacity: 1;

        }

        .window.minimizing {
            animation: minimize 0.22s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
        }

        .window.closing {
            animation: close 0.18s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
        }

        .window.maximized {
            top: 28px !important;
            left: 0 !important;
            right: 0 !important;
            bottom: 80px !important;
            width: 100% !important;
            height: calc(100vh - 108px) !important;
            border-radius: 0;
            transition: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
        }

        .window-titlebar {
            height: 52px;
            background: #faf8fb;
            border-bottom: 0px solid rgba(0, 0, 0, 0.1);
            display: flex;
            align-items: center;
            padding: 0 16px;
            cursor: move;
            user-select: none;
                pointer-events: auto;

        }


.dock-item.terminal {
    background: linear-gradient(135deg, #222, #555);
}
        .window-controls {
            display: flex;
            gap: 8px;
        }

        .window-control {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            cursor: pointer;
            transition: filter 0.2s;
        }

        .window-control:hover {
            filter: brightness(0.9);
        }

        .window-control.close {
            background: #FF5F57;
        }

        .window-control.minimize {
            background: #FFBD2E;
        }

        .window-control.maximize {
            background: #28C840;
        }

        .window-title {
            flex: 1;
            text-align: center;
            font-size: 13px;
            font-weight: 600;
            color: #3a4658;
        }

.window-content {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    color: #000;
    background: #f7f7f7; /* لون خلفية التطبيق فقط */
}

        .window-content h2 {
            font-size: 32px;
            margin-bottom: 16px;
            font-weight: 700;
        }

        .window-content p {
            font-size: 16px;
            line-height: 1.6;
            margin-bottom: 16px;
            opacity: 0.8;
        }

        .skill-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 16px;
            margin-top: 24px;
        }

        .skill-item {
            background: rgba(0, 122, 255, 0.1);
            padding: 16px;
            border-radius: 8px;
            text-align: center;
            font-weight: 600;
            color: #007AFF;
        }

        .project-card {
            background: rgba(0, 0, 0, 0.05);
            padding: 24px;
            border-radius: 12px;
            margin-bottom: 16px;
        }

        .project-card h3 {
            font-size: 20px;
            margin-bottom: 8px;
        }

/* خلفية خاصة لتطبيق Contact نفسه */
.contact-window-content {
    background: #f7f7f7;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 32px 28px 24px;
}

.contact-card {
    width: 100%;
    max-width: 460px;
    /* نشيل كل تأثير الكرت */
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.contact-title {
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    color: #111827;
}

.contact-subtitle {
    font-size: 14px;
    text-align: center;
    color: #6b7280;
    margin-bottom: 24px;
}

/* Form layout */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.contact-grid {
    display: flex;
    gap: 12px;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.contact-field label {
    font-size: 12px;
    font-weight: 500;
    color: #4b5563;
}

.contact-form input,
.contact-form textarea {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    background: rgba(255, 255, 255, 0.9);
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3);
    background: #ffffff;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Apple-style primary button */

.contact-submit-wrap {
    margin-top: 8px;
    display: flex;
    justify-content: center;
}

.contact-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 26px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    background: #007aff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.45);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.contact-submit-btn:hover {
    filter: brightness(1.05);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.55);
    transform: translateY(-1px);
}

/* المينيو بار: الخلفية نفسها ما تستقبل كلك، بس العناصر داخلها تستقبل */
.menubar {
    pointer-events: none;
}
.menubar * {
    pointer-events: auto;
}

/* الـ Dock كلها تتفاعل طبيعي */
.dock {
    pointer-events: auto;
}


        .dock {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(255, 255, 255, 0.3);
            backdrop-filter: blur(30px);
            -webkit-backdrop-filter: blur(30px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 20px;
            padding: 18px 16px;
            display: flex;
            gap: 8px;
            z-index: 10000;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        }

        .dock-item {
            width: 56px;
            height: 56px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            position: relative;
            font-size: 24px;
        }

        .dock-item:hover {
            transform: translateY(-12px) scale(1.2);
        }

        .dock-item.about { background: linear-gradient(135deg, #667eea, #764ba2); }
        .dock-item.skills { background: linear-gradient(135deg, #f093fb, #f5576c); }
        .dock-item.projects { background: linear-gradient(135deg, #4facfe, #00f2fe); }
        .dock-item.contact { background: linear-gradient(135deg, #43e97b, #38f9d7); }

        .dock-label {
            position: absolute;
            bottom: 72px;
            background: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 12px;
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s;
        }

        .dock-item:hover .dock-label {
            opacity: 1;
        }

        .resize-handle {
            position: absolute;
            right: 0;
            bottom: 0;
            width: 20px;
            height: 20px;
            cursor: nwse-resize;
        }

.window.hidden {
    opacity: 0 !important;
    pointer-events: none;
    visibility: hidden;
}


        /* GENERAL MENU BAR ITEM */
.menubar-item {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.85;
    cursor: default;
    margin-right: 0; /* مهم: منع التباعد الزائد */
}

.menubar-item:hover {
    opacity: 1;
}

/* LEFT SIDE: Apple + Portfolio + Menu List */
.menubar-left {
    display: flex;
    align-items: center;
    gap: 24px; /* Apple ↔ Portfolio ↔ Menu list */
}

/* MENU LIST spacing (File / Edit / View / Go / Window / Help) */
.menu-list {
    display: flex;
    align-items: center;
    gap: 16px; /* نفس النسخة الأصلية */
}

/* RIGHT SIDE */
.menubar-right {
    display: flex;
    align-items: center;
    gap: 16px; /* battery ↔ wifi ↔ clock */
}

/* WiFi + Battery group */
.menubar-icons {
    display: flex;
    align-items: center;
    gap: 12px; /* WiFi ↔ Battery */
}

.dock-dot {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #223041;
    border-radius: 50%;
    opacity: 0; /* مخفية افتراضياً */
    transition: opacity 0.2s ease;
}
.dock-item.open .dock-dot {
    opacity: 1; /* تظهر لو التطبيق شغال */
}


        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: scale(0.9);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        .window.active {
            animation: fadeIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        @keyframes minimize {
            to {
                opacity: 0;
                transform: scale(0.1) translateY(100vh);
            }
        }

        @keyframes close {
            to {
                opacity: 0;
                transform: scale(0.92);
            }
        }

        /* CLOSE — macOS style (Zoom Out + Fade) */
@keyframes mac-close {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.75) translateY(20px);
    }
}

/* MINIMIZE — macOS Genie Effect-ish */
@keyframes mac-minimize {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    40% {
        opacity: .8;
        transform: scale(0.9) translateY(10px);
    }
    100% {
        opacity: 0;
        transform: scale(0.1) translateY(120vh); /* يطير للDock */
    }
}

/* classes أثناء التشغيل */
.window.closing {
    animation: mac-close 0.22s cubic-bezier(.25,.1,.25,1) forwards;
}

.window.minimizing {
    animation: mac-minimize 0.28s cubic-bezier(.4,0,.2,1) forwards;
}

/* نستخدمه لإخفاء النافذة بعد الأنيميشن */
.window.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.dock-item.terminal {
    background: linear-gradient(135deg, #222, #555);
}

#terminal-input {
    display: inline-block;
    min-width: 1.2ch;      /* مساحة كافية عشان المؤشر يبان */
    margin-left: 4px;      /* مسافة صغيرة بعد الـ $ */
    color: #06c968;
    caret-color: #06c968;  /* تأكيد لون المؤشر */
}
.prompt {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}
.skill-percent {
    color: #90959f !important;
}





/* صفحات الإعدادات (يمين) — أنيميشن مثل macOS */
.settings-page {
    opacity: 0;
    transform: translateX(16px);
    transition: opacity .18s ease, transform .18s ease;
    display: none;
    
}

.settings-page.is-visible {
    opacity: 1;
    transform: translateX(0);
    display: block;
}

/* الأعمدة الوسطى لكل Section */
.settings-middle-section {
    display: none;
}

.settings-middle-section.active {
    display: block;
}

/* Mode buttons (pills) */
.mode-pill {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #d0d0d0;
    background: #f7f7f7;
    font-size: 13px;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}

.mode-pill:hover {
    background: #e9e9e9;
    border-color: #c0c0c0;
}


/* General style for Settings sidebar buttons */
.settings-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    margin-bottom: 6px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: #444;
    transition: 0.2s;
}

/* Hover effect */
.settings-btn:hover {
    background: #e9e9e9;
    border-color: #c0c0c0;
}

/* ACTIVE BLUE BUTTON — EXACT macOS STYLE */
.settings-btn.active {
    background: #007aff;
    color: #fbfcff !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3);
}

/* Make icon white when active */
.settings-btn.active .icon {
    color: white !important;
}

/* Icon base */
.settings-btn .icon {
    font-size: 18px;
    opacity: 0.85;
}

/* ---------- MID PANEL BUTTONS ---------- */

.mid-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 10px;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
        color: #444;
    transition: background 0.18s ease, color 0.18s ease;
}

/* الجزء اليسار: أيقونة + نص */
.mid-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* أيقونة اليسار */
.mid-btn .icon svg {
    width: 18px;
    height: 18px;
    stroke: #4b5563;
    transition: stroke 0.18s ease;
}

/* Chevron يمين */
.mid-chevron svg {
    width: 16px;
    height: 16px;
    opacity: 0.5;
    stroke: #4b5563;
    transition: stroke 0.18s ease, opacity 0.18s ease;
}

/* Hover خفيف */
.mid-btn:hover {
    background: #e9e9e9;
    border-color: #c0c0c0;
}

/* Active (أزرق) */
.mid-btn.active {
    background: #007aff;
    color: #ffffff;
}

/* أيقونات لما تكون Active → تصير بيضاء */
.mid-btn.active .icon svg,
.mid-btn.active .mid-chevron svg {
    stroke: #ffffff !important;
    opacity: 0.9;
}

/* Row styles on right side */
/* الكارد لكل سطر في اليمين */
.setting-row {
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-bottom: 8px;
    transition:
        background 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

/* مسافة أكبر بين الكروت عشان تنفس التصميم */
.setting-row + .setting-row {
    margin-top: 8px;
}

/* الـ Hover (نفس إحساس macOS) */
.setting-row:hover {
    background: #e9e9e9;
    border-color: #c0c0c0;
}

/* عنوان السؤال */
.setting-title {
    font-size: 14px;
    font-weight: 500;              /* مو 700 عشان يكون الـ Bold أخف */
    color: #101828;                /* قريب من الأسود بس مو أسود تماماً */
}

/* الإجابة تحت بلون رمادي */
.setting-answer {
    font-size: 13px;
    color: #6b7280;                /* gray-500 */
}

.settings-btn .icon svg {
    width: 20px;
    height: 20px;
    stroke: #555;
    transition: 0.2s;
}

.settings-btn.active .icon svg {
    stroke: white !important;
}



.icon {
    width: 22px;
    height: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    /* هذا يخلي كل الأيقونات perfect aligned */
}

.icon svg {
    width: 20px;
    height: 20px;

    stroke-width: 2;
    stroke: #555;
    transition: 0.2s;
}









/* ----- Display Mode – layout helpers ----- */

.setting-row-inline {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.setting-row-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 70%;
}

.setting-description {
    font-size: 12px;
    color: #6b7280;
}

/* ----- Switch (Enable Advanced Display Mode) ----- */

.switch-toggle {
    position: relative;
    width: 46px;
    height: 26px;
    border-radius: 999px;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    background: #e5e7eb;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.6);
    display: inline-flex;
    align-items: center;
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.1s ease;
}

.switch-toggle:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.switch-thumb {
    position: relative;
    left: 4px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.35);
    transition: transform 0.18s ease;
}

/* حالة التشغيل */
.switch-toggle.is-on {
    background: #34c759;
    box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.5);
}

.switch-toggle.is-on .switch-thumb {
    transform: translateX(18px);
}

/* ----- Display Mode select ----- */

.setting-select {
    min-width: 160px;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.setting-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3);
    background: #ffffff;
}

/* ----- Modal (macOS-style, light theme) ----- */

/* ----- Modal (macOS-style, dark, 1:1 تقريباً مع الصورة) ----- */

.modal-backdrop {
    position: fixed;
    inset: 0;                         /* يغطي الشاشة كاملة */
    display: flex;
    align-items: center;              /* عمودي في الوسط */
    justify-content: center;          /* أفقي في الوسط */
    background: rgba(0, 0, 0, 0.55);  /* خلفية داكنة */
    z-index: 99999;
    opacity: 1;
    transition: opacity 0.18s ease;
}

.modal-hidden {
    opacity: 0;
    pointer-events: none;
}

/* الكارد الأسود نفسه */
/* الكارد الأسود نفسه – أكبر شوية عشان يبان أكثر */
.modal-panel {
    position: relative;
    width: 266px;              /* كبرنا العرض */
        height: var(--modal-panel-height);   /* ← هنا */

    max-width: 92%;
    border-radius: 26px;
    background: #f7f7f7;
        margin-bottom: var(--modal-title-margin-bottom);
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(31, 41, 55, 0.75);
    padding: 24px 26px 18px;
    color: #f9fafb;
    transform: scale(var(--display-modal-scale));
    transform-origin: center center;
}
    

/* الهيدر الآن فيه الأيقونة فقط، ملصوقة لليسار */
.modal-header {
    display: flex;
    flex-direction: column;   /* ✨ يخليها تحت بعض بدل جنب بعض */
    align-items: flex-start;  /* كله لليسار */
    gap: 8px;                 /* مسافة بسيطة بين الأيقونة والعنوان */
    margin-bottom: 10px;
        margin-bottom: var(--modal-icon-margin-bottom);

}

.modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* الـ Title تحت الأيقونة مباشرة */
.modal-body {
    margin-bottom: 18px;
}

.modal-title {
    font-size: 13px;
    font-weight: 600;
    color: #0e0e0e;
    margin-bottom: 6px;
}

/* النص العادي بعد الـ Title (اللي طلبته) */
.modal-text-main {
    font-size: 13px;
    color: #a6a7ab;
    line-height: 1.4;
}

/* لو احتجت نص ثانوي مستقبلاً */
.modal-text-sub {
    font-size: 12px;
    color: #9d9d9d;
}

/* الأزرار بالأسفل */
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 20px;   /* ← أبل تستخدم Gap صغير جداً */
    padding-top: 4px; /* يعطي نفس إحساس أبل */
}

/* أساس زر */
.modal-btn {
    min-width: 96px;
    padding: 6px 14px;
    border-radius: 999px;
    border: none;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease, filter 0.12s ease;
}

/* زر Cancel (أسود فاتح مثل Ignore في الصورة) */
.modal-btn-secondary {
    background: #e1e1e1;
    color: #292929;
}

.modal-btn-secondary:hover {
    background: #e5e5e5;
    color: #000000;
}

/* زر Continue (بنفس درجة الزر الوردي في الصورة) */
.modal-btn-primary {
    background: #007aff;
    color: #eaf4ff;
}

.modal-btn-primary:hover {
    background: #0a73e2;
    color: #eaf4ff;
}

.modal-btn:active {
    transform: translateY(1px);
    box-shadow: none;
}

.modal-icon-img {
    display: block;
    width: 55px;   /* عدّلها إذا حاب أكبر/أصغر */
    height: auto;
}


















/* Scrollbar حديث لكل محتوى التطبيقات */
.window-content {
    /* لـ Firefox */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
}

/* لـ Chrome / Edge / Safari */
.window-content::-webkit-scrollbar {
    width: 8px;
}

.window-content::-webkit-scrollbar-track {
    background: transparent;
}

.window-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.22);
    border-radius: 999px;
}

.window-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.32);
}
























/* ================= PROJECTS (Dynamic) ================= */

.projects-simple {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.projects-simple .card-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.projects-simple .card-title {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
}

.projects-simple .card-tagline {
  font-size: 13px;
  color: #6b7280;
}

.projects-simple .projects-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.projects-simple .project-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.projects-simple .project-item {
  padding: 12px 12px 10px;
  border-radius: 14px;
  background: #f3f4f6;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.projects-simple .project-item:hover {
  transform: translateY(-1px);
}

.projects-simple .project-name {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}

.projects-simple .project-desc {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 8px;
}

.projects-simple .project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.projects-simple .project-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  background: #e5e7eb;
  color: #4b5563;
}

/* ================= PROJECTS (Dynamic + Hover Actions) ================= */

.projects-simple {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.projects-simple .card-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.projects-simple .card-title {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
}

.projects-simple .card-tagline {
  font-size: 13px;
  color: #6b7280;
}

.projects-simple .projects-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.projects-simple .project-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.projects-simple .project-item {
  padding: 12px 12px 10px;
  border-radius: 14px;
  background: #f3f4f6;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
  position: relative;
  overflow: hidden;
}

.projects-simple .project-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
}

.projects-simple .project-name {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}

.projects-simple .project-desc {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 8px;
}

.projects-simple .project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.projects-simple .project-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  background: #e5e7eb;
  color: #4b5563;
}

/* ===== Hover Actions ===== */

.projects-simple .project-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;

  max-height: 0;
  margin-top: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;

  transform: translateY(6px);
  transition:
    max-height 0.22s ease,
    margin-top 0.22s ease,
    opacity 0.18s ease,
    transform 0.18s ease;
}

.projects-simple .project-item:hover .project-actions {
  max-height: 60px;
  margin-top: 10px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.projects-simple .project-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  min-width: 74px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;

  color: #ffffff;
  background: rgba(17, 24, 39, 0.88);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  box-shadow:
    0 8px 18px rgba(15, 23, 42, 0.14),
    inset 0 0 0 1px rgba(255,255,255,0.10);

  transition:
    transform 0.14s ease,
    filter 0.14s ease,
    background 0.14s ease;
}

.projects-simple .project-action-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.projects-simple .project-action-btn:active {
  transform: translateY(0);
}

.projects-simple .project-action-btn-secondary {
  background: rgba(255, 255, 255, 0.72);
  color: #111827;
  box-shadow:
    0 8px 18px rgba(15, 23, 42, 0.10),
    inset 0 0 0 1px rgba(255,255,255,0.45);
}
.projects-simple .project-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
}

/* ================= WORKSPACE APP ================= */

.dock-item.workspace {
  background: linear-gradient(135deg, #f093fb, #f5576c);
}

.workspace-app {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.workspace-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.workspace-main-title {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.workspace-main-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.workspace-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(248,250,252,0.94));
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.workspace-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.09);
}

.workspace-card-wide {
  grid-column: 1 / -1;
}

.workspace-card-header {
  margin-bottom: 14px;
}

.workspace-card-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 4px 0;
}

.workspace-card-header p {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
}

.workspace-stack-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.workspace-stack-item {
  padding: 12px 12px 10px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.workspace-stack-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 4px 0;
}

.workspace-stack-description {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.55;
  margin: 0;
}

.workspace-tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.workspace-tool-pill {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-width: 120px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
  border: 1px solid #dbeafe;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
}

.workspace-tool-name {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}

.workspace-tool-type {
  font-size: 11px;
  color: #6b7280;
}

.workspace-specs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.workspace-spec-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.workspace-spec-label {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}

.workspace-spec-value {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .workspace-card-wide {
    grid-column: auto;
  }

  .workspace-spec-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}



/* ================= SETTINGS CHANGELOG EMBED ================= */

.setting-row--changelog {
    gap: 10px;
}

.settings-changelog-embed {
    width: 450px;
    height: 170px;
    max-width: 100%;
    overflow-y: auto;
    overflow-x: hidden;

    padding: 12px 14px;
    border-radius: 14px;
    background: #f1f3f6;
    border: 1px solid #d9dee7;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.65),
        0 1px 2px rgba(15, 23, 42, 0.04);

    scroll-behavior: smooth;
}

.settings-changelog-list {
    list-style: none;
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settings-changelog-list li {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(217, 222, 231, 0.95);
    color: #4b5563;
    font-size: 13px;
    line-height: 1.55;
    white-space: pre-line;
}

.settings-changelog-list .changelog-version {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.settings-changelog-list .changelog-label {
    display: block;
    font-size: 13px;
    color: #6b7280;
}