
@font-face {
    font-family: 'vazir';
    src: url(/lib/font/vazir-font-v16.1.0/Vazir-Medium.woff2) format('woff2');
}
body{
    font-family: 'vazir';
}
/*برای پالت رنگی سایت*/
@import url(/lib/css/color-pallete.css);
/*ساخت منو سایت*/
*{
    margin:0;
    padding: 0;
}

#menu{
    background-color: #b9b9b9;
    height:55px;
    position:sticky;
    top:0;
    z-index:1000;    
}
#menu li:last-child{
  float:left;
}
#menu li{
   
    list-style: none;
    float:right;
    width: 100px;
    height:55px;
    line-height: 55px;
    text-align: center;
    background-color: #b9b9b9; 
}
#menu li a{
    text-decoration: none;
    color: #000;
    font-weight: bold;
    
}
#menu li:hover{
    background-color: var(--secondary);
}
#menu li::after{
    content: "";
    display: block;
    width:0;
    margin:0 auto;
    border-bottom: 5px solid var(--primary);
    transition:0.5s;
}
#menu li:hover::after{
    width:100%;
}
#menu ul{
    display:none;
    margin:0;
    padding: 0;
}
#menu li:hover ul{
    display:block;
}
h1{
    clear: both;
}
.active{
    background-color: var(--light);
    display: block;
    color: #fff;
}
li a:hover:not(.active){
    color: var(--secondary);
}
/*داشبورد جدید اصلاح شده*/
#menu-p{
    list-style-type: none;
    background-color:#b9b9b9;
    position: fixed;
    height:100%;
    overflow: auto;
    width:25%;
}
#menu-p li a{
    text-decoration: none;
    color: var(--black);
    display: block;
    padding: 10px;
    text-align: center;
    font-weight: bold;
}
#menu-p li:hover:not(.active){
    background-color: var(--secondary);
}
.active{
    background-color: var(--light);
}
#menu-p li::after{
    content: "";
    display: block;
    width:5;
    margin:0 auto;
    border-bottom: 1px solid #919191;
    transition:0.5s;
}
#menu-p ul{
    display:none;
}
    

#menu-p li:hover ul{
    display:block;
}
/* داشبورد برای دیو*/
.ty{

    margin-left:25%;
           padding: 20px;
           text-align: center;
    }
    /*برای فرم ورود و خروج-لاگین*/
    .header-link {
        position: fixed;
        right: 20px;
        top: 10px;
        text-decoration: none;
        color: #333;
        font-size: 16px;
    }

    .main-login {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
    }

    .form-container {
        background-color: hsla(0, 0%, 90%, 0.8);
        width: 400px;
        padding: 60px 20px 20px;
        border-radius: 15px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        text-align: center;
        position: relative;
    }
    label {
        display: block;
        margin-bottom: 5px;
        color: #333;
    }

    .box {
        width: calc(100% - 20px);
        padding: 10px;
        margin-bottom: 15px;
        border: none;
        border-radius: 5px;
        background-color: #fff;
        font-size: 16px;
        color: #333;
    }

    .button {
        background-color: var(--light);
        color: #000;
        padding: 10px 20px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 16px;
    }

    .button:hover {
        background-color: var(--primary);
        color: white;
    }

    .rem {
        color: #333;
        font-size: 15px;
        margin-left: 5px;
    }

    .img {
        width: 80px;
        margin: -50px auto 20px;
        border-radius: 50%;
        display: block;
        position: absolute;
        top: 5px;
        left: 50%;
        transform: translateX(-50%);
    }

    .register {
        margin-top: 20px;
        padding: 10px;
        border-radius: 5px;
        background-color: #fff;
        color: #333;
        font-size: 16px;
    }

    .register a {
        color: #333;
        text-decoration: none;
        display: block;
    }

    .register a:hover {
        color: #378539;
    }

    .form-footer {
        margin-top:20px;
    }
    /*بکگراند صفحه لاگین*/
    .body-login {
        background-image: url("/lib/image/backg-22.webp");
        background-size:cover;
        font-family: 'Vazirmatn', sans-serif;
    }
