@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&family=Cairo:wght@200..1000&display=swap');

body {
    font-family: cairo;
    background-color: #eee;
}

ul {
    list-style-type: none;
    padding: 0;
}

a {
    text-decoration: none;
}

.header {
    background-color: white;
    box-shadow: 3px 3px 3px #cccccc59;
}



.logo {
    width: 250px;
    text-align: center;
    border-left: 1px solid #ccc;
}

.logo a {
   font-size: 20px;
   color: black;
   font-weight: bold;
}

.sidebar {
    width: 250px;
    background-color: #191919;
    height: 100vh;
    position: fixed;
    overflow: hidden;
    transition: 0.3s;
    overflow-y: scroll;
    top: 48px;
    z-index: 1000;
}

.content {
    
    height: 100vh;
    margin-right: 250px;
    margin-top: 55px;
    transition: 0.3s;
}

 /* @media (max-width: 767px) {
    .sidebar {
        width: 0;
    } 

    .content {
        margin-right: 0;
    }
} */


/* للأجهزة الكبيرة (الحاسوب) يتم إزاحة المحتوى */
/* @media (min-width: 768px) {
    .content {
        transition: margin-right 0.3s ease-in-out;
    }
} */

/* على الجوال، يبقى المحتوى ثابتًا والشريط يظهر فوقه */
@media (max-width: 767px) {
    #sidebar {
        width: 250px;
        right: -250px; /* يبقى مخفيًا افتراضيًا */
    }

    .content {
        margin-right: 0 !important; /* عدم الإزاحة على الجوال */
    }
}

.avatar img {
    width: 40px;
    border-radius: 50%;
    border: 1px solid #ccc;
}

.icons i ,
.active-users,
#sidebar-toggle
{
    font-size: 20px;
    color: rgb(59, 59, 59);
}


.profile {
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile img {
    border-radius: 50%;
    border: 1px solid #ccc;
    padding: 2px;
}

.profile h3 {
    color: white;
    font-size: 20px;
    font-weight: bold;
    margin-top: 10px;
}

.ul-sidebar {
    margin-left: 10px;
    padding-right: 10px;
}
.ul-sidebar li {
    cursor: pointer;

    padding: 5px;
    border-radius: 5px;
}

.active {
    background-color: rgb(132, 132, 132);
}

.ul-sidebar li:hover {
    cursor: pointer;
    background-color: rgb(132, 132, 132);
    padding: 5px;
    border-radius: 5px;  
}

.ul-sidebar li a,
.ul-sidebar li i
{
    color: white;
}



/* تخصيص عرض شريط التمرير */
#sidebar::-webkit-scrollbar {
    width: 8px; /* عرض شريط التمرير */
}

/* تخصيص المسار (الخلفية) */
#sidebar::-webkit-scrollbar-track {
    background: #7a7979; /* لون الخلفية */
    border-radius: 10px; /* حواف مستديرة */
}

/* تخصيص الجزء المتحرك () */
#sidebar::-webkit-scrollbar-thumb {
    background: #d1d1d2;
    border-radius: 10px;
}

/* تخصيص الزر عند التمرير فوقه */
#sidebar::-webkit-scrollbar-thumb:hover {
    background: #040504;
}

.bell::after {
    position: absolute;
    content: "5";
    background-color: red;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    color: white;
    font-size: 10px;
    top: -5px;
    right: -5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat {
    padding: 20px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;

    align-items: center;

}

.stat-green {
    background-image: linear-gradient(to right, #43e97b 0%, #38f9d7 100%);
}
.stat-red {
    background-image: linear-gradient(120deg, #f093fb 0%, #f5576c 100%);

}
.stat-blue {
    background-image: radial-gradient(circle 248px at center, #16d9e3 0%, #30c7ec 47%, #46aef7 100%);
}
.stat-yellow{
    background-image: linear-gradient(to right, #f78ca0 0%, #f9748f 19%, #fd868c 60%, #fe9a8b 100%);
}



.stat h3 {
    color: white;
    font-family: Almarai;
    font-size: 25px;
    font-weight: bold;
}

.stat h4 {
    color: white;
    font-family: Almarai;
    font-size: 18px;
    font-weight: bold; 
    
}

#chart1 , #chart {
    height: 400px;
}

.item-side-menu {
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 10px;
    background-color: #eee;
    border-radius: 5px;
    margin-bottom: 10px;
}

.avatar-info img {
    width: 50px;
    border-radius: 50%;
    border: 1px solid #ccc;
}

.avatar-info h5 {
    font-size: 15px;
}
.item-side-menu .contact-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-side-menu .contact-info i {
    font-size: 25px;
    transition: 0.3s;
}
.item-side-menu .contact-info i:hover {
    cursor: pointer;
    transform: scale(1.2);
}

.item-side-menu .contact-info .whatsapp-icon {
    color: #25D366;
}
.item-side-menu .contact-info .messenger-icon {
    color: #00B2FF;
}

.grow-user {
    position: absolute;
    top: 0;
}








#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
/* .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #ccc;
    border-top-color: #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} */



.avatar-container {
    position: relative;
    display: inline-block;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 60px; /* المسافة تحت الصورة */
    left: 0;
    background: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    list-style: none;
    padding: 10px 0;
    width: 200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none; /* مخفي افتراضيًا */
    z-index: 1000;
}

.dropdown-menu li {
    padding: 10px;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dropdown-menu li a {
    text-decoration: none;
    color: black;
    display: block;
}

.dropdown-menu li:hover {
    background: #ff7777;
}


.messages-container {
    cursor: pointer;
}


.message-area {
    width: 250px;
    top: 50px;
    left: -30px;
    /* padding: 10px; */
    border-radius: 5px;
    border-bottom: 2px solid blue;
    display: none;
    cursor: pointer;
    transition:all 0.8s;
}

.message-area li {
    padding: 10px 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.message-area li:hover {
    background-color: #eee;
}


.ul-header {
    height: 60px;
    width: 100%;
    background-color: #4646fe;
    border-radius: 5px;
    padding: 10px;
    color: white;
}


.ul-header::after {
    position: absolute;
    content: "";
    /* width: 20px; */
    /* height: 20px; */
    /* background-color: #040504; */
    border: 12px solid;
    border-color:  transparent  transparent #4646fe transparent;
    top: -20px;
    left: 30px;
    
}