﻿/* زر فتح المينو (ثابت أعلى اليمين) */
#menu {
    position: fixed;
    top: 14px;
    right: 14px;
    font-size: 32px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    cursor: pointer;
    user-select: none;
    z-index: 1101; /* فوق الـbackdrop */
    color: rgba(0,0,0,.8);
}


 
/* ====== القائمة الجانبية من اليمين ====== */
.side-nav {
    position: fixed;
    top: 0;
    right: 0; /* مهم: تفتح من اليمين */
    height: 100vh;
    width: 260px; /* يمكنك تصغير/تكبير */
    max-width: 86vw;
    background: #fff;
    /* box-shadow: -2px 0 12px rgba(0,0,0,.18);*/
    transform: translateX(320px); /* خارج الشاشة يمين */
    transition: transform 200ms cubic-bezier(0.4, 0.0, 0.6, 1);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    direction: rtl;
    border-left: 1px solid #e0e0e0;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

    .side-nav.open {
        transform: translateX(0);
    }


    /* هيدر بسيط */
    .side-nav header {
/*        background: url(https://lh3.googleusercontent.com/-OpzXLwUodco/VUzSNKm5x5I/AAAAAAAANtw/QlXckPJDTxs/w1366-h768/Wallrox%2B%25281%2529.png) no-repeat center/cover;
*/        padding: 12px;
        color: #111;
        background-color: #fff;display:flex;justify-content:space-between;
    }

.avatars-container {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}

    .avatars-container img {
        border-radius: 50%;
        display: block;
    }

.rich-area a {
    text-decoration: none;
    color: #111;
    font-weight: 500;
}

.rich-area .email {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #555;
}

    .rich-area .email a {
        color: #555;
        text-decoration: none;
        font-size: 14px;
    }

/* قائمة الروابط */
.side-nav nav {
    padding: 8px 0;
    overflow-y: auto;
}

.side-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.side-nav hr {
    border: 0;
    height: 1px;
    background: rgba(0,0,0,.12);
    margin: 8px 0;
}

.side-nav #subheader {
    user-select: none;
    pointer-events: none;
    color: rgba(0,0,0,.5);
    font-size: 12px;
    padding: 8px 16px;
}

.side-nav li {
    height: 45px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 16px;
    font-size: 18px;
    /*font-weight: 500;*/
    color: rgba(0,0,0,.9);
    cursor: pointer;
    user-select: none;
}

    .side-nav li svg {
    width: 22px;
    height: 22px;
}
    .side-nav li i.material-icons {
        color: rgba(0,0,0,.6);
    }

    .side-nav li.active,
    .side-nav li.active i.material-icons {
        color: #2196F3;
        
    }

/* ====== Ripple Effect (CSS) ====== */
[ripple] {
    position: relative;
    overflow: hidden;
}

    [ripple] .ripple--container {
        position: absolute;
        inset: 0;
    }

        [ripple] .ripple--container span {
            position: absolute;
            transform: scale(0);
            border-radius: 50%;
            opacity: .75;
            background-color: rgba(33,150,243,0.5); /* #2196F3 بنقاء 50% */
            animation: ripple 1000ms ease-out forwards;
        }

@keyframes ripple {
    to {
        opacity: 0;
        transform: scale(2);
    }
}

/* تحسينات صغيرة للشاشات الصغيرة */
@media (max-width: 360px) {
    #menu {
        top: 10px;
        right: 10px;
    }

    .side-nav {
        width: 260px;
    }
}


.toggle-logo{
    display:flex;justify-content:flex-start;align-items:center;
}
#toggle_login{
    padding: 0 10px
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: rgba(0, 0, 0, 0.7);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    /* margin-right: auto; */
    margin: 1rem;
    display:none
}

    .close-btn:hover {
        color: #000;
    }

@media (max-width: 960px) {
    .side-nav {
        width: 100% !important;
        max-width: 100% !important;
        transform: translateX(100%); /* تبدأ خارج الشاشة بالكامل */
    }

        .side-nav.open {
            transform: translateX(0); /* تفتح لتغطي كامل الشاشة */
        }

    .close-btn {
        display: block;
    }
}


/*  -----------------------------------------  menu bar  -------------------------------   */


@import url('https://fonts.googleapis.com/css?family=Muli:300,400,700,900');

/* منع التحديد */
.nav-list * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


/* الحاوية */
/*.nav-list-container {
    margin-bottom: 40px;
}
*/
/* القائمة الرئيسية */
.nav-list {
    background: #fff;
   /* border: 14px solid #fff;*/
    border-radius: 16px;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    width: auto;
    height: auto;
  /*  box-shadow: 0 6px 30px -10px #d5dbed;*/
    gap: 4px;
}
    /* 1) إزالة تحديد النصوص داخل النافبار */
    .nav-list,
    .nav-list * {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }

        /* 2) منع هايلايت اللمس في الجوال (iOS/Android) */
        .nav-list,
        .nav-list a,
        .nav-list button,
        .nav-list .nav-sect {
            -webkit-tap-highlight-color: transparent; /* أو rgba(0,0,0,0) */
        }

            /* 3) إخفاء إطار التركيز عند النقر بالماوس فقط (نبقيه للكيبورد) */
            .nav-list a:focus:not(:focus-visible),
            .nav-list .nav-sect:focus:not(:focus-visible) {
              -webkit-tap-highlight-color: transparent;
            }

            /* 4) (اختياري) حلقة تركيز لطيفة للكيبورد فقط */
            .nav-list a:focus-visible,
            .nav-list .nav-sect:focus-visible {
                outline: 2px solid #9fb3ff;
                outline-offset: 2px;
            }


/* العناصر */
.nav-sect,
.nav-sub-sect {
    position: relative;
    padding: 14px 20px;
    border-radius: 12px;
  /*  cursor: pointer;*/
    transition: background 299ms ease, opacity 199ms ease;
    text-align: center;
    font-size: 18px; /* الخط أكبر */
}
/* prevent hightlight */

    .nav-sect a,
    .nav-sub-sect a {
        text-decoration: none;
        color: #333333;
        transition: color 299ms ease;
    }

    /* الهوفر */
    .nav-sect:hover {
        background: whitesmoke;
    }

        .nav-sect:hover .url {
            color: #6e80a5;
        }

        .nav-sect:hover .line-1,
        .nav-sect:hover .line-2 {
            stroke: #6e80a5;
        }

/* الأيقونة */
.nav-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.nav-sect {
    opacity: 1;
}

/* القائمة الفرعية */
.nav-sub-list {
    position: absolute;
    background: #fff;
    border-radius: 16px;
    width: max-content;
    padding: 15px;
    top: 48px;
    right: 0;
    box-shadow: 0 6px 30px -10px #d5dbed;
    overflow: hidden;
    opacity: 0;
    transform: scale(0);
    transform-origin: top right;
    transition: opacity 299ms ease 199ms, transform 0ms ease;
    z-index: 50;
}

.nav-sub-sect {
    text-align: left;
}

    .nav-sub-sect:hover {
        background: whitesmoke;
    }

        .nav-sub-sect:hover .sub-url {
            color: #6e80a5;
        }

/* تفعيل القائمة الفرعية */
.nav-sub-list-on {
    opacity: 1;
    transform: scale(1);
}

/* حالات الشفافية */
.less-op {
    opacity: .5;
    transition: opacity 299ms ease;
}

    .less-op:hover {
        opacity: 1;
    }

/* أسهم SVG */
line {
    stroke-width: 5px;
    stroke: #333333;
}

.arrow {
    transform: translateY(0);
    transition: all 199ms ease;
}

.line-1 {
    transform-origin: 17% 48%;
    transform: rotate(40deg) translateX(6px);
    transition: all 199ms ease;
}

.line-2 {
    transform-origin: 83% 48%;
    transform: rotate(-40deg) translateX(-6px);
    transition: all 199ms ease;
}

.svg-arrow {
    transform: scale(1.4);
}

.arrow-active {
    transform: translateY(2px);
}

.line-1-active {
    transform-origin: 17% 40%;
    transform: rotate(0deg) translateX(3px);
}

.line-2-active {
    transform-origin: 83% 40%;
    transform: rotate(0deg) translateX(-3px);
}

/* موبايل */
@media (max-width: 414px) {
    .url, .sub-url {
        font-size: 16px;
    }

    .nav-sect {
        min-width: 59px;
        padding: 10px;
    }
}


/*  ------------------- this for add in side menu versosn web app and link toggle ----------------------------- */
/* القائمة الجانبية */
.side-nav {
    display: flex;
    flex-direction: column; /* الهيدر فوق - الوسط - المعلومات تحت */
    height: 100vh; /* تغطي الشاشة كاملة */
    overflow: hidden; /* ما يطلع سكرول عام */
}

    /* القسم اللي يتمدد ويحتوي الروابط الرئيسية */
    .side-nav nav {
        flex: 1; /* ياخذ كل المساحة المتبقية */
        overflow-y: auto; /* التمرير فقط داخل الروابط */
    }

/* القسم السفلي */
.app-info-section {
    flex-shrink: 0; /* يظل ثابت تحت */
    padding: 12px 16px;
    border-top: 1px solid #eee;
    background: #fff;
    direction: rtl;
    text-align: right;
}


    /* الروابط مثل يوتيوب */
    .app-info-section .links {
        display: flex;
        flex-wrap: wrap; /* يلتفوا على أكثر من سطر */
        gap: 6px 12px; /* مسافات بينهم */
        line-height: 1.6;
    }

        .app-info-section .links a {
            color: rgba(0,0,0,.6);
            text-decoration: none;
            font-size: 12px;
            white-space: nowrap; /* ما ينكسر النص */
        }

            .app-info-section .links a:hover {
                text-decoration: underline;
            }

    /* إصدار التطبيق وحقوق النشر */
    .app-info-section .version,
    .app-info-section .copy {
        font-size: 12px;
        color: rgba(0,0,0,.6);
        text-align: right;
        margin-top: 6px;
    }
