﻿
body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    min-height: 100vh;



}










.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%);
    }