﻿
body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    min-height: 100vh;



}



   
    .online-users-container 
    {
        max-height: 70vh;
        overflow-y: auto;
        padding-right: 5px;
    }

    .user-card
    {
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 12px;
        text-align: center;
        padding: 15px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        transition: transform 0.2s, box-shadow 0.2s;
    }

        .user-card:hover
        {
            transform: translateY(-3px);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        }

    .user-avatar
    {
        width: 50px;
        height: 50px;
        background: #0d6efd20;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        color: #0d6efd;
        margin: 0 auto 8px;
        font-size: 20px;
    }

    .user-name
    {
        font-size: 14px;
        font-weight: 500;
        color: #333;
    }

    .online-dot
    {
        display: inline-block;
        width: 10px;
        height: 10px;
        background: #28a745;
        border-radius: 50%;
        margin-left: 6px;
    }








.navbar 
{
    z-index: 1055;
}

.sidebar 
{
    width: 250px;
    height: calc(100vh - 60px);
    background-color: #fff;
    border-left: 1px solid #dee2e6;
    position: fixed;
    top: 60px;
    right: 0;
    transition: right 0.3s ease;
    z-index: 1050;
    overflow-y: auto;
}

    .sidebar a
    {
        padding: 12px 20px;
        display: block;
        color: #000;
        text-decoration: none;
        border-bottom: 1px solid #eee;
    }

        .sidebar a:hover,
        .sidebar a.active 
        {
            background-color: #0d6efd;
            color: #fff;
        }

    .sidebar .collapse a
    {
        border: none;
        font-size: 0.95rem;
    }

    .sidebar a[data-bs-toggle="collapse"] {
        cursor: pointer;
        padding: 12px 20px;
    }

.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1040;
}

    .overlay.show
    {
        display: block;
    }

.content 
{
    margin-top: 60px;
    padding: 20px;
    margin-right: 250px;
    transition: margin-right 0.3s ease;
    min-height: calc(100vh - 60px - 56px);
}

footer.footer 
{
    position: relative;

    width: 100%;
    font-size: 0.9rem;
    color: #6c757d;
}

@media (max-width: 768px) {
    .sidebar {
        right: -250px;
    }

        .sidebar.show {
            right: 0;
        }

    .content {
        margin-right: 0;
    }
}

.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}

.dropdown-menu {
    text-align: right;
    min-width: 180px;
}

    .dropdown-menu a {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .dropdown-menu.custom-left {
        right: auto !important;
        left: 1px !important;
    }



.bodylogin {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #f8f9fa;
    background-image: url('Pic/01.jpg');
    background-repeat: no-repeat;
    background-position: right top;
    background-size :  cover;
    align-items: center;
    direction: rtl;
    justify-content: center;

}

.login-box {
    width: 130%;
    max-width: 500px;
    
    background: #fff;
    padding: 30px;
    margin-top : 10px;
    display:block;
    justify-content: center;
    border-radius: 14px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

    .login-box h2 {
        margin-bottom: 20px;
    }



    .center-box
    {
        position :absolute;
        top:40%;
        left:50%;
        transform : translate(-50% , -50%);
    }