*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazir';
}
@font-face {
    font-family: 'Vazir';
    src: url('/dashboard/fonts/Vazir-FD.eot');
    src: url('/dashboard/fonts/Vazir-Regular.ttf') format('embedded-opentype'),
    url('/dashboard/fonts/Vazir-FD.woff') format('woff'),
    url('/dashboard/fonts/Vazir-FD.ttf') format('truetype');
    font-weight: normal;
}


:root {
    /* ===== Colors ===== */
    --primary-color: #90CAF9;
    --panel-color: #E0E0E0;
    --text-color: #000;
    --black-light-color: #000;
    --border-color: #e6e5e5;
    --toggle-color: #37474F;
    --box1-color: #4CAF50;
    --box2-color: #FFE6AC;
    --box3-color: #E7D1FC;
    --title-icon-color: #E0E0E0;
    --nav-color: #90CAF9;
    --search-box-color: #E0E0E0;
    --table-color: #FFF;
    --btn1-color: #2e7d32;
    --btn2-color: #16A085;
    --btn3-color: #1565C0;
    --btn4-color: #F4511E;
    --btn5-color: #AFB42B;
  
    /* ====== Transition ====== */
    --tran-05: all 0.5s ease;
    --tran-03: all 0.3s ease;
    --tran-03: all 0.2s ease;
  }

body{
    direction: rtl;
    min-height: 100vh;
    background-color: var(--primary-color);
    font-family: 'Vazir';
}
body.dark{
    --primary-color: #3A3B3C;
    --panel-color: #212121;
    --text-color: #CCC;
    --black-light-color: #CCC;
    --border-color: #4D4C4C;
    --toggle-color: #FFF;
    --box1-color: #3A3B3C;
    --box2-color: #3A3B3C;
    --box3-color: #3A3B3C;
    --title-icon-color: #CCC;
    --nav-color:#212121;
    --search-box-color:#8fa2ab;
    --table-color:#37474F;
    --btn1-color: #1B5E20;
    --btn2-color: #004d40;
    --btn3-color: #1A237E;
    --btn4-color: #BF360C;
    --btn5-color: #827717;
    



}
/* === Custom Scroll Bar CSS === */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #0b3cc1;
}

body.dark::-webkit-scrollbar-thumb:hover,
body.dark .activity-data::-webkit-scrollbar-thumb:hover{
    background: #3A3B3C;
}

nav{
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 250px;
    padding: 10px 14px;
    background-color: var(--primary-color);
    border-right: 1px solid var(--border-color);
    transition: var(--tran-05);
}
nav.close{
    width: 73px;
}
nav .logo-name{
    display: flex;
    align-items: center;
}
nav .logo-image{
    display: flex;
    justify-content: center;
    min-width: 45px;
}
nav .logo-image img{
    width: 40px;
    object-fit: cover;
    border-radius: 50%;
}

nav .logo-name .logo_name{
    font-size: 22px;
    font-weight: 600;
    color: var(--text-color);
    margin-left: 14px;
    transition: var(--tran-05);
}
nav.close .logo_name{
    opacity: 0;
    pointer-events: none;
}
nav .menu-items{
    margin-top: 40px;
    height: calc(100% - 90px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.menu-items li{
    list-style: none;
}
.menu-items li a{
    display: flex;
    align-items: center;
    height: 50px;
    text-decoration: none;
    position: relative;
}
.nav-links li a:hover:before{
    content: "";
    position: absolute;
    right: -7px;
    height: 5px;
    width: 5px;
    border-radius: 50%;
    background-color: var(--primary-color);
}
body.dark li a:hover:before{
    background-color: var(--text-color);
}
.menu-items li a i{
    font-size: 24px;
    min-width: 45px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black-light-color);
}
.menu-items li a .link-name{
    font-size: 18px;
    font-weight: 400;
    color: var(--black-light-color);    
    transition: var(--tran-05);
}
nav.close li a .link-name{
    opacity: 0;
    pointer-events: none;
}
.nav-links li a:hover i,
.nav-links li a:hover .link-name{
    color: var( --btn3-color);
    cursor: pointer;
}
body.dark .nav-links li a:hover i,
body.dark .nav-links li a:hover .link-name{
    color: var( --btn3-color);
    right: 0;
    cursor: pointer;
}
.menu-items .logout-mode{
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}
.menu-items .mode{
    display: flex;
    align-items: center;
    white-space: nowrap;
}
.menu-items .mode-toggle{
    position: absolute;
    right: 14px;
    height: 50px;
    min-width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.mode-toggle .switch{
    position: relative;
    display: inline-block;
    height: 22px;
    width: 40px;
    border-radius: 25px;
    background-color: var(--toggle-color);
}
.switch:before{
    content: "";
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    height: 15px;
    width: 15px;
    background-color: var(--primary-color);
    border-radius: 50%;
    transition: var(--tran-03);
}
body.dark .switch:before{
    right: 20px;
}

.dashboard{
    position: relative;
    right: 250px;
    background-color: var(--panel-color);
    min-height: 100vh;
    width: calc(100% - 250px);
    padding: 10px 14px;
    transition: var(--tran-05);
}
nav.close ~ .dashboard{
    right: 73px;
    width: calc(100% - 73px);
}
.dashboard .top{
    position: fixed;
    top: 0;
    right: 250px;
    display: flex;
    width: calc(100% - 250px);
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background-color: var(--primary-color);
    transition: var(--tran-05);
    z-index: 10;
}
nav.close ~ .dashboard .top{
    right: 73px;
    width: calc(100% - 73px);
}
.dashboard .top .sidebar-toggle{
    font-size: 26px;
    color: var(--text-color);
    cursor: pointer;
}
.dashboard .top .search-box{
    position: relative;
    height: 45px;
    max-width: 500px;
    width: 100%;
    margin: 0 30px;
}
.top .search-box input{
    position: absolute;
    border: 1px solid var(--border-color);
    background-color: var(--panel-color);
    padding: 0 25px 0 50px;
    border-radius: 25px;
    height: 100%;
    width: 100%;
    color: var(--text-color);
    font-size: 15px;
    font-weight: 400;
    outline: none;
}
.top .search-box i{
    position: absolute;
    left: 15px;
    font-size: 22px;
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);
    color: var(--black-light-color);
}
.top img{
    width: 40px;
    border-radius: 50%;
}
.dashboard .dash-content{
    padding-top: 50px;
}
.dash-content .title{
    display: flex;
    align-items: center;
    margin: 60px 0 30px 0;
}
.dash-content .title i{
    position: relative;
    height: 35px;
    width: 35px;
    background-color: var(--primary-color);
    border-radius: 6px;
    color: var(--title-icon-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.dash-content .title .text{
    font-size: 24px;
    font-weight: 500;
    color: var(--text-color);
    margin-left: 10px;
}
.dash-content .boxes{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.dash-content .boxes .box{
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 12px;
    width: calc(100% / 3 - 15px);
    padding: 15px 20px;
    background-color: var(--box1-color);
    transition: var(--tran-05);
}
.boxes .box i{
    font-size: 35px;
    color: var(--text-color);
}
.boxes .box .text{
    white-space: nowrap;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color);
}
.boxes .box .number{
    font-size: 40px;
    font-weight: 500;
    color: var(--text-color);
}
.boxes .box.box2{
    background-color: var(--box2-color);
}
.boxes .box.box3{
    background-color: var(--box3-color);
}
.dash-content .activity .activity-data{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.activity .activity-data{
    display: flex;
}
.activity-data .data{
    display: flex;
    flex-direction: column;
    margin: 0 15px;
}
.activity-data .data-title{
    font-size: 20px;
    font-weight: 500;
    color: var(--text-color);
}
.activity-data .data .data-list{
    font-size: 18px;
    font-weight: 400;
    margin-top: 20px;
    white-space: nowrap;
    color: var(--text-color);
}

@media (max-width: 1000px) {
    nav{
        width: 73px;
    }
    nav.close{
        width: 250px;
    }
    nav .logo_name{
        opacity: 0;
        pointer-events: none;
    }
    nav.close .logo_name{
        opacity: 1;
        pointer-events: auto;
    }
    nav li a .link-name{
        opacity: 0;
        pointer-events: none;
    }
    nav.close li a .link-name{
        opacity: 1;
        pointer-events: auto;
    }
    nav ~ .dashboard{
        right: 73px;
        width: calc(100% - 73px);
    }
    nav.close ~ .dashboard{
        right: 250px;
        width: calc(100% - 250px);
    }
    nav ~ .dashboard .top{
        right: 73px;
        width: calc(100% - 73px);
    }
    nav.close ~ .dashboard .top{
        right: 250px;
        width: calc(100% - 250px);
    }
    .activity .activity-data{
        overflow-X: scroll;
    }
}

@media (max-width: 780px) {
    .dash-content .boxes .box{
        width: calc(100% / 2 - 15px);
        margin-top: 15px;
    }
}
@media (max-width: 560px) {
    .dash-content .boxes .box{
        width: 100% ;
    }
}
@media (max-width: 400px) {
    nav{
        width: 0px;
    }
    nav.close{
        width: 73px;
    }
    nav .logo_name{
        opacity: 0;
        pointer-events: none;
    }
    nav.close .logo_name{
        opacity: 0;
        pointer-events: none;
    }
    nav li a .link-name{
        opacity: 0;
        pointer-events: none;
    }
    nav.close li a .link-name{
        opacity: 0;
        pointer-events: none;
    }
    nav ~ .dashboard{
        right: 0;
        width: 100%;
    }
    nav.close ~ .dashboard{
        right: 73px;
        width: calc(100% - 73px);
    }
    nav ~ .dashboard .top{
        right: 0;
        width: 100%;
    }
    nav.close ~ .dashboard .top{
        right: 0;
        width: 100%;
    }
}

table {
    direction: rtl;
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    border: 1px solid #888787;
  }
  table {
    margin-top: 50px;
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    border: 1px solid #ddd;
  }
  
  table thead tr {
    height: 60px;
    background-color: var(--primary-color);
  }
  
  th,
  td {
    text-align: center;
    padding: 10px;
    color: var(--text-color);
  }
  
  tr:nth-child(even) {
    background-color: var(--table-color);
  }
  
  /* اضافه کردن واکنش‌پذیری به جدول */
  @media screen and (max-width: 600px) {
    table {
      border-bottom: 2px solid #ddd;
    }
  
    table thead {
      display: none;
    }
  
    table th {
      display: none;
    }
  
    table tr {
      margin-bottom: 50px;
      display: block;
  
  
    }
  
    table td {
      display: block;
      text-align: center;
      align-items: center;
      font-size: 15px;
  
    }
  
    table td:last-child {
      border-bottom: 0;
    }
  
    table td:before {
      content: attr(data-label);
      float: right;
      text-transform: uppercase;
      font-weight: bold;
    }
  
    body.dark {
      margin-right: 150px;
      border-bottom: none;
      transition: all 0.5s ease;
    }
  }
  
  @media screen and (max-width: 320px) {
    body .dark {
      margin-right: 150px;
      border-bottom: none;
      transition: all 0.5s ease;
    }
  }

  .btn1 {
    text-decoration: none;
    background: var(--btn1-color);
    color: var(--text-color);
    font-family: 'Vazir';
    text-align: center;
    width: 100%;
    max-width: 200px;
    padding: 4px;
    flex: 1 0 140px;
    margin: 5px;
    cursor: pointer;
  }
  
  .btn2 {
    text-decoration: none;
    background: var(--btn2-color);
    color: var(--text-color);
    font-family: 'Vazir';
    text-align: center;
    padding: 4px;
    flex: 1 0 140px;
    margin: 5px;
    cursor: pointer;
  }
  
  .btn3 {
    text-decoration: none;
    background: var(--btn3-color);
    color: var(--text-color);
    font-family: 'Vazir';
    text-align: center;
    padding: 4px;
    flex: 1 0 140px;
    margin: 5px;
    cursor: pointer;
  }
  
  .btn4 {
    text-decoration: none;
    background: var(--btn4-color);
    color: var(--text-color);
    font-family: 'Vazir';
    text-align: center;
    padding: 4px;
   
    flex: 1 0 140px;
    margin: 5px;
    cursor: pointer;
  }
  
  .btn5 {
    text-decoration: none;
    background: var(--btn5-color);
    color: var(--text-color);
    font-family: 'Vazir';
    text-align: center;
    padding: 4px;
   
    flex: 1 0 140px;
    margin: 5px;
  }
  
  
  .login {
    text-align: center;
    color: var(--text-color);
    padding: 8px;
  }
  
  .btn {
    margin: 0 auto;
    margin-top: 5px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
  }
  
  .vd {
    flex: 1 0 140px;
    margin: 1px;
    padding: 8px;
  }
  
  .select,
  .select2 {
    font-size: 20px;
    flex: 1 0 140px;
    display: inline-block;
    padding: 8px;
  }
  
  select {
    align-items: center;
    justify-items: center;
    font-family: 'Vazir';
    flex: 1 0 150px;
    width: 210px;
    padding: 8px;
    font-size: 14px;
    cursor: pointer;
  }

  .h2 {
    display: flex;
    font-weight: bolder;
    font-size: 30px;
    align-items: center;
    justify-content: center;
    flex-flow: row wrap;
    text-align: center !important;
    color: var(--text-color);
  }

.login {
    text-align: center;
    color: var(--text-color);
    padding: 8px;
  }
  .form-signin {
    width: 100%;
    max-width: 220px;
    padding: 15px;
    margin: 0 auto;
  
  }
  .logout, .dark, .mode-toggle {
    display:inline;
    padding-top: 10px;
    color:  var(--text-color);
    
  }
  .out {
    color:  var(--text-color);
    text-decoration: none;

  }

 