/*show it on devices with max of 767 px and lower*/
@media (max-width: 767px) {
    .hidden-mobile {
        display: none;
    }
}


.ss01 {
    -moz-font-feature-settings: "ss01";
    -webkit-font-feature-settings: "ss01";
    font-feature-settings: "ss01";
}



.ss03 {
    -moz-font-feature-settings: "ss03";
    -webkit-font-feature-settings: "ss03";
    font-feature-settings: "ss03";
}


.ss04 {
    -moz-font-feature-settings: "ss04";
    -webkit-font-feature-settings: "ss04";
    font-feature-settings: "ss04";
}


a.disabled {
    pointer-events: none;
    cursor: default;
}

.user-profile-pic {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}


.role-list-tab a {
    font-size: 1.2em;
    color: #000; 
}


/*search suggest */
#suggestionsList {
    position: absolute;
    top: 100%;
    left: 8px;
    width: 98%;
    z-index: 1000;
    background-color: white;
    box-sizing: border-box;
    max-height: 300px;
    overflow-y: auto;
    border-radius: 0.25rem;
}

.results-list-group-item {
    padding: 10px;
    border-bottom: 1px solid #eaeaea;
    background-color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.results-list-group-item:last-child {
    border-bottom: none;
}

.results-list-group-item a {
    color: #333;
    text-decoration: none;
    display: flex; /* استفاده از Flexbox */
    justify-content: space-between; /* فاصله‌گذاری بین محتوای چپ و راست */
    align-items: center;
}

.results-list-group-item a:hover {
    background-color: #f8f9fa;
}

.avatar {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.user-avatar {
    margin-right: 10px;
}

.admin-avatar {
    width: 30px;
    height: 30px;
    object-fit: cover;
}


.bg-gate {
    background-color: #f2f6fc;
}


/*thumbnail */
.thumbnail {
    width: 18rem;
    height: 18rem;
    background-color: #e74c3c; /* رنگ زمینه اصلی */
    color: white;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: Arial, sans-serif;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

.thumbnail .provider {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.thumbnail .main-text {
    font-size: 3rem;
    font-weight: bold;
}

.thumbnail .price {
    font-size: 2rem;
    margin: 0.5rem 0;
    background-color: black;
    padding: 0.2rem 0.5rem;
    border-radius: 0.5rem;
}

.thumbnail .extra {
    font-size: 1rem;
    background-color: black;
    padding: 0.2rem 0.5rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.thumbnail .subtitle {
    font-size: 1.2rem;
}

/* thumbnail  2 */

.thumbnail-2 {
    width: 18rem;
    height: 18rem;
    background-color: #4a90e2; /* رنگ زمینه اصلی */
    color: white;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: Arial, sans-serif;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    position: relative;
}

.thumbnail-2 .provider {
    font-size: 1.5rem;
    font-weight: bold;
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.thumbnail-2 .main-text {
    font-size: 3rem;
    font-weight: bold;
}

.thumbnail-2 .price {
    font-size: 2rem;
    margin: 0.5rem 0;
}

.thumbnail-2 .extra {
    font-size: 1rem;
    background-color: #004d40;
    padding: 0.2rem 0.5rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.thumbnail-2 .subtitle {
    font-size: 1.2rem;
    color: white;
    position: absolute;
    bottom: 1rem;
    right: 1rem;
}

/* thumbnail  3 */
.thumbnail-3 {
    width: 18rem;
    height: 18rem;
    background-color: #00d170; /* رنگ زمینه اصلی */
    color: white;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    font-family: Arial, sans-serif;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

.thumbnail-3 .provider {
    font-size: 1.5rem;
    font-weight: bold;
    background-color: white;
    color: #00d170;
    padding: 0.2rem 0.5rem;
    border-radius: 1rem;
}

.thumbnail-3 .main-text {
    font-size: 2.5rem;
    font-weight: bold;
    color: black;
}

.thumbnail-3 .price {
    font-size: 2rem;
    color: black;
}

.thumbnail-3 .extra {
    font-size: 1rem;
    background-color: #004d40;
    padding: 0.2rem 0.5rem;
    border-radius: 1rem;
}

.thumbnail-3 .subtitle {
    font-size: 1.2rem;
    margin-top: 1rem;
    color: black;
}


/* thumbnail  4 */
.thumbnail-4 {
    width: 18rem;
    height: 18rem;
    background-color: #00bfa5; /* رنگ زمینه را می‌توانید تغییر دهید */
    color: white;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: Arial, sans-serif;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.thumbnail-4 .provider {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.thumbnail-4 .main-text {
    font-size: 3rem;
    font-weight: bold;
}

.thumbnail-4 .price {
    font-size: 2rem;
    margin: 0.5rem 0;
}

.thumbnail-4 .extra {
    font-size: 1rem;
    background-color: #004d40;
    padding: 0.2rem 0.5rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.thumbnail-4 .subtitle {
    font-size: 1.2rem;
}

/* thumbnail  5 */


.bash-console {
    background-color: #1e1e1e;
    color: #ffffff;
    font-family: 'Courier New', Courier, monospace;
    padding: 15px;
    border-radius: 5px; 
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    max-height: 400px;
    white-space: pre-wrap; 
}

.ltr-text {
    direction: ltr;
}

.remove-underline {
    text-decoration: none;
}

.hidden-until-loaded {
    visibility: hidden;
}

/* Loader */
.loader {
    width: 100%;
    height: 22px;
    border-radius: 20px;
    color: #514b82;
    border: 2px solid;
    position: relative;
    margin-top: 10%;
    margin-bottom: 10%
  }
  .loader::before {
    content: "";
    position: absolute;
    margin: 2px;
    inset: 0 100% 0 0;
    border-radius: inherit;
    background: currentColor;
    animation: l6 2s infinite;
  }
  @keyframes l6 {
      100% {inset:0}
  }

  /*loader 2 */
/* HTML: <div class="loader"></div> */
.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 20vh; /* کل ارتفاع صفحه */
  }
  
  .loader-search {
    --c:no-repeat linear-gradient(orange 0 0);
    background: 
      var(--c),var(--c),var(--c),
      var(--c),var(--c),var(--c),
      var(--c),var(--c),var(--c);
    background-size: 16px 16px;
    animation: 
      l32-1 1s infinite,
      l32-2 1s infinite;
  }
  
  @keyframes l32-1 {
    0%,100% {width:45px;height: 45px}
    35%,65% {width:65px;height: 65px}
  }
  
  @keyframes l32-2 {
    0%,40%  {background-position: 0 0,0 50%, 0 100%,50% 100%,100% 100%,100% 50%,100% 0,50% 0,  50% 50% }
    60%,100%{background-position: 0 50%, 0 100%,50% 100%,100% 100%,100% 50%,100% 0,50% 0,0 0,  50% 50% }
  }
  

  /* Loader OpenGate */
.loader-gate {
    width: fit-content;
    font-weight: bold;
    font-family: Kanit;
    font-size: 3.2rem;
    background: radial-gradient(circle closest-side,#f48020  94%,#0000) right/calc(200% - 1em) 100%;
    animation: l24 1s infinite alternate linear(0 0%, 0.69 28.72%, 0.88 80.15%);
  }
  .loader-gate::before {
    content: "OpenGate";
    line-height: 1em;
    color: #0000;
    background: inherit;
    background-image: radial-gradient(circle closest-side,#fff 94%,#000);
    -webkit-background-clip:text;
            background-clip:text;
  }
  
  @keyframes l24{
    100%{background-position: left}
  }



  /*OpenGate Logo*/
  .outer-box {
    width: 120px;
    height: 120px;
    background-color: #f48020;
    border-radius: 30px; /* مربع با گوشه‌های گرد */
    position: relative;
  }

  .inner-oval-big {
    position: absolute;
    top: 10px;
    left: 30px;
    width: 60px;
    height: 100px;
    background-color: #f48020;
    border-radius: 50%;
  }

  .inner-oval-small {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 90px;
    height: 90px;
    border: 15px solid #ffffff;
    border-radius: 47%;
    background-color: transparent;
  }


/*BTN CLOSE */
  .btn-close-alert-white {
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    padding: 0.25em 0.25em;
    color: #000;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    border: 0;
    border-radius: 0.25rem;
    opacity: 0.5;
    margin-left: -0.375rem;
    margin-right: 0.75rem;
  }



/* سفید کردن کل صفحه و قرار دادن لودر و نوار پیشرفت در وسط */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff; /* رنگ پس‌زمینه صفحه */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* چیدمان عناصر به صورت عمودی */
}

/* تنظیم لودر و نوار پیشرفت در یک container */
#loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* استایل wrapper نوار پیشرفت */
#progress-bar-wrapper {
    width: 50%; /* عرض نوار پیشرفت */
    height: 4px;
    background-color: #f3f3f3;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 20px; /* فاصله بین لوگو و نوار پیشرفت */
}

/* استایل نوار پیشرفت */
#progress-bar {
    width: 0;
    height: 100%;
    background-color: #f48020; /* رنگ نوار پیشرفت */
    transition: width 0.4s ease;
}

/* جلوگیری از اسکرول در حین بارگذاری */
body.loading {
    overflow: hidden;
}

/****Box Card ****/
.search-field-box {
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}


 /*Chart js*/
 .chart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}


/*the section  */
.section-card {
    border-radius: 15px;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}
.header-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-section h1 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0;
}
.alert-section {
    margin-bottom: 15px;
}
.card-action-buttons a, .card-action-buttons button {
    margin-bottom: 10px;
}
.table-section {
    overflow-x: auto;
}