﻿.imgForDiv {
    width: 100%;
    height: 200px
}
.MenuLi:hover{
    background-color:rgba(255,255,255,0.3);
    border-radius:10px;
}
.redText
{
    color:red;
}
/*th {
    overflow-wrap: anywhere;
    
    white-space:normal;
    word-wrap:break-word;
}*/

th a {
    color: mediumblue;
    text-decoration: none;
}
b, strong {
    font-weight: bold !important;
}

th, td {
   word-break:break-word;
    text-align: right;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    overflow-x: scroll;
    vertical-align: middle;
    white-space: nowrap;
    overflow: auto;
    height: 20px;
    padding: 8px;  
    border: 1px solid #ddd;
}
@import url('https://cdn.fontcdn.ir/Font/Persian/Vazir/Vazir.css');
p{

    margin:0;
    padding:0;
    border:none;

}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: "Vazir", sans-serif;
    background: #f4f4f9;
}

:root {
    --menu-width: 250px;
    --collapsed-width: 60px;
}


.header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
    width: 100%;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;

    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 170px;
}

.header-image {
    max-height:150px; 
}

.header-title {
    padding-right:5px;
    margin:0 auto;
    font-weight: bold;
    color: #333;
    text-align: center;
    flex-grow: 1;
}

.language-switcher {
    background: #224488;
    color: white;
    text-align: left;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: bold;
}

.language {
    cursor: pointer;
    margin-right: 5px;
}

    .language:hover {
        text-decoration: none;
    }
.side {

    max-width:auto;
    max-height:auto ;
 
}
/* استایل سایدبار */
aside {
    position: relative;
    padding: 10px;
    border-radius:8px;
    min-height: 70vh;
    background: linear-gradient(0deg, #051599a8, #224488);
   
    color: white;
    transition: width 0.3s ease-in-out;
    box-shadow: 0px 0px 15px 0px #00000073;
    z-index: 1000;
    overflow-y: auto;
    
    max-width:250px;
}

/*menu ham*/
/* تنظیمات اولیه */
.sidebar {
   
    position: fixed;
    top: 0;
    right: -250px; /* در حالت پیش‌فرض مخفی باشد */
    height: 100vh;
    padding: 15px;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease-in-out;
    z-index: 1000; /* روی صفحه باشد */
    color:white;
}
.top-buttons {
    position: relative;
    z-index: 1050;
    border: none;
    margin-right: 7px;
    background-color: transparent;
    backdrop-filter: blur(10px);
    border: none;
    box-shadow: none;
    color: black;
}
    /* وقتی فعال شد (روی صفحه بیاید) */
    .sidebar.active {
        right: 0;
    }

    /* تغییر اندازه فونت و لیست */
    .sidebar .nav-link {
        font-size: 5px; /* کوچک‌تر شدن متن */
        padding: 5px 8px;
    }

/* در صفحات بزرگ، ستون عادی بماند */
@media (min-width: 768px) {
    .sidebar {
        position: static;
        right: auto;
        width: auto;
        height: auto;
        
    }
}

/*end*/
.block {
    text-align: center;
    
    margin: 0px;
    padding:0px;
    float: none;
}

.block1 {
    text-align: center;
   
    margin: 0px;
    padding:0px;
    float: none;
}

@media only screen and (max-width: 767px) {
    .block {
        width: 100%;
    }
}
/* دکمه منو */
.menu-btn {
    color: white;
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px;
    border: none;
    font-size: 18px;
    border-radius: 50%;
    cursor: pointer;
    background: #004494;
    transition: transform 0.3s ease-in-out, background 0.3s;
}

    .menu-btn:hover {
        background: #003377;
    }



.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    white-space: nowrap;
    cursor: auto;
    color: white;
}

a {
    text-decoration: none;
   
}

.brand-name {
    font-size: 20px;
    transition: opacity 0.3s, width 0.3s;
}



/* استایل آیتم‌های منو */
.menu-items {
    margin-top: 15px;
}

    .menu-items a {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 10px;
        margin-bottom: 10px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        transition: background 0.3s, color 0.3s;
    }

        .menu-items a.active {
            background: rgba(0, 68, 148, 0.7);
            color: #fff;
            font-weight:bold;
        }

        .menu-items a:hover {
            color: #daddff;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 10px;
        }

.icon {
    font-size: 22px;
}

.item-name {
    transition: opacity 0.3s, width 0.3s;
}

.menu-items {
    list-style: none;
    padding: 0;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: white;
    transition: background 0.3s ease-in-out;
}

    .menu-link .icon {
        margin-left: 10px;
    }

    /* استایل وقتی منو فعال است */
    .menu-link.active {
        background: #ff9800; /* رنگ دلخواه برای هایلایت */
        border-radius: 8px;
        color: white !important;
    }

/* تولتیپ در حالت collapsed */
.tooltip {
    position: absolute;
    right: -40px;
    white-space:nowrap;
    top: 50%;
    color: white;
    padding: 5px 15px;
    font-size: 15px;
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    background-color: rgb(22, 22, 22);
    transform: translate(100%, -50%);
}



/* استایل بخش اصلی */
main {
    margin-left: var(--menu-width);
    padding: 20px;
    background: #ffffff;
    width: 100vw;
    height: 100vh;
    transition: margin-left 0.3s ease-in-out;
}



/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
   

    .menu-btn {
        left: calc(100% - 40px);
    }
    main {
        margin-left: var(--collapsed-width);
    }

    aside {
        overflow-y: auto;
    }
}
    


/*.sidebar {
    padding: 15px;
    position: relative;
    right: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
}*/

.content {
   
   /* padding: 20px;
    min-height: 100vh;*/
    
}



@media (max-width: 768px) {
  

    .sidebar {
        min-width: 230px;
        
    }

   
}

