@font-face {
    font-family: Vazir;
    src: url('../fonts/Vazir.eot');
    src: url('../fonts/Vazir.eot?#iefix') format('embedded-opentype'),
    url('../fonts/Vazir.woff2') format('woff2'),
    url('../fonts/Vazir.woff') format('woff'),
    url('../fonts/Vazir.ttf') format('truetype');
    font-weight: normal;
}

@font-face {
    font-family: Vazir;
    src: url('../fonts/Vazir-Bold.eot');
    src: url('../fonts/Vazir-Bold.eot?#iefix') format('embedded-opentype'),
    url('../fonts/Vazir-Bold.woff2') format('woff2'),
    url('../fonts/Vazir-Bold.woff') format('woff'),
    url('../fonts/Vazir-Bold.ttf') format('truetype');
    font-weight: bold;
}

@font-face {
    font-family: Vazir;
    src: url('../fonts/Vazir-Light.eot');
    src: url('../fonts/Vazir-Light.eot?#iefix') format('embedded-opentype'),
    url('../fonts/Vazir-Light.woff2') format('woff2'),
    url('../fonts/Vazir-Light.woff') format('woff'),
    url('../fonts/Vazir-Light.ttf') format('truetype');
    font-weight: 300;
}

@font-face {
    font-family: Vazir;
    src: url('../fonts/Vazir-Medium.eot');
    src: url('../fonts/Vazir-Medium.eot?#iefix') format('embedded-opentype'),
    url('../fonts/Vazir-Medium.woff2') format('woff2'),
    url('../fonts/Vazir-Medium.woff') format('woff'),
    url('../fonts/Vazir-Medium.ttf') format('truetype');
    font-weight: 500;
}

@font-face {
    font-family: Vazir;
    src: url('../fonts/Vazir-Thin.eot');
    src: url('../fonts/Vazir-Thin.eot?#iefix') format('embedded-opentype'),
    url('../fonts/Vazir-Thin.woff2') format('woff2'),
    url('../fonts/Vazir-Thin.woff') format('woff'),
    url('../fonts/Vazir-Thin.ttf') format('truetype');
    font-weight: 100;
}

@font-face {
    font-family: Vazir;
    src: url('../fonts/Vazir-Black.eot');
    src: url('../fonts/Vazir-Black.eot?#iefix') format('embedded-opentype'),
    url('../fonts/Vazir-Black.woff2') format('woff2'),
    url('../fonts/Vazir-Black.woff') format('woff'),
    url('../fonts/Vazir-Black.ttf') format('truetype');
    font-weight: 900;
}

/*---------------------------------- End of fonts ---------------------------------- */
/* قبل از بارگذاري adminlte.min.css */
:root {
  --light-blue: #00d2ff;
  --light-blue-darken: #2a5db0;
   --primary-color: #3a7bd5;
  --secondary-color: #00d2ff;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --dark-color: #2c3e50;
  --light-color: #f8f9fa;
  --sidebar-width: 280px;
  --header-height: 70px;
}

/* سايدبار سفارشي */
.dashboard-sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  position: fixed;
  height: 100vh;
  z-index: 1000;
  transition: all 0.3s;
}

/* هدر سايدبار */
/*.sidebar-header {
  padding: 25px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
*/
/* پروفايل کاربر */
.user-profile {
  display: flex;
  align-items: center;
  gap: 15px;
}

.profile-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.profile-info h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: white;
}

.profile-info span {
  font-size: 0.8rem;
  opacity: 0.8;
  color: rgba(255, 255, 255, 0.8);
}

/* منوي سايدبار */
.sidebar-menu {
  padding: 20px 0;
}

.nav-link {
	display: block;
	padding: .5rem 0.5rem;
}

.sidebar-menu .nav-link {
  /*display: flex;
  align-items: center;
  padding: 12px 20px;
  color: rgba(255, 255, 255, 0.8);*/
  transition: all 0.3s;
  font-size: 0.95rem;
}

.sidebar-menu .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  padding-right: 25px;
}

.sidebar-menu .nav-item.active .nav-link {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border-right: 3px solid white;
}

.sidebar-menu .nav-icon {
  margin-left: 10px;
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

/* آيتم خروج */
.logout-item {
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}
/* رفع مشکل اسکرول */
.dashboard-sidebar {
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  height: 100%;
  overflow-y: auto;
}

/* تراز راست براي منوها */
.sidebar-menu {
  direction: rtl;
  padding-right: 0;
}


.sidebar-menu .nav-icon {
  margin-left: 10px;
  margin-right: 0;
}

/* رفع مشکل hover */
.sidebar-menu .nav-item:hover .nav-link {
  padding-left: 15px;
  padding-right: 25px;
}

/* آيتم فعال */
.sidebar-menu .nav-item.active .nav-link {
  border-right: none;
  border-left: 3px solid white;
}

@media (max-width: 767.98px) {
  .sidebar-overlay {
    display: block;
  }
  
  .dashboard-sidebar {
    position: fixed;
    z-index: 1000;
    height: 100vh;
  }
}


body {
    font-family: 'Vazir', sans-serif !important;
}

.ltr {
    direction:ltr;
}


ul {
    padding-inline-start: 0px;
}

.dropdown-item {
    text-align: right;
}
.dropdown-footer, .dropdown-header {
    text-align: center;
}

.breadcrumb-item+.breadcrumb-item::before {
    padding-left: .5rem;
}


/*------------------------------------ contacts-list ------------------------------------*/

.contacts-list-img {
    float: right;
}

.contacts-list-info {
    margin-right: 45px;
    margin-left: 0;
}


/* sidebar */

.sidebar {
    direction: ltr;
}

.sidebar > div:first-child {
    direction: rtl;
}

.control-sidebar, .control-sidebar:before {
    left: -250px;
    right: auto;
    transition: left .3s ease-in-out;
}

.control-sidebar-slide-open .control-sidebar, .control-sidebar-slide-open .control-sidebar:before {
    left: 0;
    right: auto;
}

.small-box .icon {
    right:auto;
    left:10px;
}

.nav-sidebar .nav-link>p>.right {
    left: 1rem;
    right: auto;
}

.nav-sidebar>.nav-item .nav-icon {
    margin-right: 0;
    margin-left: .2rem;
}


.sidebar-collapse .main-sidebar, .sidebar-collapse .main-sidebar:before {
    margin-right: -250px;
}

.main-sidebar {
    left: auto;
    right:0;
}

/* Cards */

.card-header>.card-tools {
    right:auto;
    left:1rem;
}

.user-block img {
     float: right;
}

.attachment-block .attachment-img {
    float: right;
}

.attachment-block .attachment-pushed {
    margin-left: 0px;
    margin-right: 110px;
}

.card-comments .card-comment img, .img-lg, .img-md, .img-sm, .user-block.user-block-sm img {
    float: right;
}

.card-comments .comment-text {
    margin-right: 40px;
    margin-left: 0;
}

.card-comments .card-comment img+.img-push, .img-sm+.img-push, .user-block.user-block-sm img+.img-push {
    margin-left: 0px;
    margin-right: 40px;
}

.user-block .comment, .user-block .description, .user-block .username {
    margin-right: 50px;
    margin-left: 0px;
}

.btn-group-vertical {
    align-items: center;
}


/*------------------------- Form ----------------------------*/
.select2-container .select2-search--inline {
    float: right;
}

.select2-container--default .select2-search--inline .select2-search__field {
    text-align: right;
}

/*----------------------- Extra Page ---------------------------*/
.error-page>.headline {
    float: right;
}

.error-page>.error-content {
    margin-right: 190px;
    margin-left: 0;
}

.lockscreen-image {
    left: auto;
    right:-10px;
}

.lockscreen-credentials {
    margin-left: 0px;
    margin-right: 70px;
}

.nav {
    padding-inline-start: 0px !important;
}

/*---------------------------------- Persian Date Picker ---------------------------------- */

.datepicker-plot-area {
    font-family: 'Vazir', sans-serif;
}

/*---------------------------------- gpt ---------------------------------- */
body {
      font-family: "Vazirmatn", sans-serif;
      background-color: #f9fafa;
      padding-bottom: 80px;
    }
    .month-scroll-container {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      direction: rtl; /* ???? ?????? ???? ?? ?? */
    }
    
    .nav-months {
      display: flex;
      overflow-x: auto;
      scroll-behavior: smooth;
      width: 100%;
      max-width: 100%;
      padding: 0 140px; /* ?? ???? ?????? */
      gap: 8px;
    }
    
    .scroll-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: #fff;
      border: none;
      z-index: 10;
      padding: 8px 10px;
      font-size: 12px;
      cursor: pointer;
      border-radius: 50%;
      box-shadow: 0 0 5px rgba(0,0,0,0.1);
    }
    
    .scroll-left {
      left: 0;
    }
    
    .scroll-right {
      right: 0;
    }
    
    .scroll-btn {
      display: none; /* ??????? ??????? ???? */
    }

    
    .month-tab {
      white-space: nowrap;
      padding: 8px 16px;
      border-bottom: 2px solid transparent;
      cursor: pointer;       
      transition: background-color 0.3s;
    }
    .month-tab.active {
      color: #007bff;
      border-color: #007bff;
      font-weight: bold;
    }
    
    .nav-months::-webkit-scrollbar {
      display: none; /* ??? ?????? ??? ?? ????????? ?????? */
    }
    
    @media (max-width: 768px) {
      .scroll-btn {
        display: none;
      }
    
      .scroll-btn.show {
        display: block;
      }
      
      .nav-months{
        padding: 0 40px; 
      }
    }
    
 
    .toggle-switch {
      position: relative;
      display: inline-flex;
      border: 1px solid #ccc;
      border-radius: 30px;
      overflow: hidden;
      background: #f0f0f0;
      user-select: none;
    }
    
    .toggle-switch input[type="radio"] {
      display: none;
    }
    
    .toggle-switch label {
      padding: 8px 20px;
      cursor: pointer;
      z-index: 2;
      font-size: 14px;
      color: #666;
      transition: color 0.3s;
    }
    
    .toggle-switch input#btn-daily:checked ~ label[for="btn-daily"],
    .toggle-switch input#btn-weekly:checked ~ label[for="btn-weekly"] {
      color: #fff;
    }
    
    .toggle-switch .slider {
      position: absolute;
      top: 0;
      bottom: 0;
      width: 50%;
      background-color: #0d6efd;
      border-radius: 30px;
      z-index: 1;
      transition: left 0.3s;
    }
    
    .toggle-switch input#btn-daily:checked ~ .slider {
      left: 0%;
    }
    
    .toggle-switch input#btn-weekly:checked ~ .slider {
      left: 50%;
    }

    .card-custom {
      border-radius: 1rem;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
      padding: 16px;
      margin-bottom: 16px;
      background: #fff;
    }
    .icon-box {
      width: 50px;
      height: 50px;
      background-color: #e9f0ff;
      color: #007bff;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 8px;
      font-size: 24px;
      box-shadow: 0 2px 6px rgba(0, 123, 255, 0.2);
      transition: background 0.3s ease;
    }
    
    .icon-box:hover {
      background-color: #d0e4ff;
    }
    .income-box span {
      font-size: 14px;
      color: #666;
    }
    
    .icon-circle {
      width: 32px;
      height: 32px;
      background-color: #e9f0ff;
      color: #007bff;
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin-left: 6px;
      font-size: 18px;
      box-shadow: 0 1px 4px rgba(0, 123, 255, 0.2);
      vertical-align: middle;
    }
    
    .info-item {
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      font-size: 15px;
    }
    
    .badge-circle {
      position: absolute;
      top: -4px;
      right: -10px;
      background-color: #dc3545;
      color: white;
      font-size: 11px;
      padding: 3px 6px;
      border-radius: 50%;
      min-width: 20px;
      text-align: center;
      z-index: 10;
      box-shadow: 0 0 0 2px #fff;
    }
    
    footer .text-center {
      cursor: pointer;
    }
    
    .nav-tabs .nav-link {
      border: none;
      border-bottom: 2px solid transparent;
      color: #6c757d;
    }
    .nav-tabs .nav-link.active {
      color: #000;
      border-color: #0d6efd;
      font-weight: bold;
    }
    
    .about-page {
      background: #fff;
      border-radius: 1rem;
      box-shadow: 0 0 10px #00000010;
      margin: 1rem;
    }
    .about-page h4 {
      color: #0d6efd;
    }
    .about-page ul li {
      margin-bottom: 0.5rem;
    }
    
    
    
    .clickable-image {
      cursor: zoom-in;
      transition: 0.2s;
    }
    .clickable-image:hover {
      transform: scale(1.05);
    }
    
    .ticket-card {
        transition: all 0.3s ease;
        box-shadow: 0 2px 10px rgba(0,0,0,0.08);
        border-radius: 12px;
        overflow: hidden;
        margin-bottom: 1.5rem;
        margin-bottom: 15px;
      }
      .ticket-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
      }
      .question-box {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-left: 4px solid #0d6efd;
      }
      .img-thumbnail {
        transition: all 0.3s ease;
      }
      .img-thumbnail:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
      }
      
      .toast-center {
            top: 50% !important;
            left: 50% !important;
            transform: translate(-50%, -50%) !important;
            position: fixed;
            z-index: 9999;
      }
      
      /* اضافه کردن به فايل CSS شما */
    .card-outline {
      border-top: 3px solid !important;
    }
    
    .callout {
      border-right: 5px solid #17a2b8;
    }
    
    /* بهبود ظاهر RTL */
    [dir="rtl"] .card-header .card-tools {
      left: 1rem;
      right: auto;
    }
    
    [dir="rtl"] .nav-sidebar .nav-link > .right {
      left: 1rem;
      right: auto;
    }
    
    /* انيميشن براي کارتها */
    .card {
      transition: all 0.3s ease;
    }
    
    .card:hover {
      transform: translateY(-5px);
      box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }


