body {
    background-color: #f8f9fa;
    overflow-x: hidden;
    margin: 0;
}

/*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;
}



/* نوار کناری */
.sidebar {
    background-color: #343a40;
    color: #fff;
    height: 100vh;
    width: 250px;
    position: fixed;
    top: 0;
    right: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

/* حالت مخفی شدن */
.sidebar.collapsed {
    right: -250px;
}

.sidebar a {
    color: #ddd;
    padding: 10px 20px;
    display: block;
    text-decoration: none;
}

.sidebar a:hover {
    color: #ff7f50;
}

/* Navbar */
.navbar-custom {
    background-color: #343a40;
    color: #fff;
    padding: 10px 20px;
    position: fixed;
    width: calc(100% - 250px);
    top: 0;
    right: 250px;
    z-index: 999;
    transition: all 0.3s ease;
}

body.sidebar-collapsed .navbar-custom {
    width: 100%;
    right: 0;
}

/* دکمه همبرگری */
.btn-toggle {
    color: #fff;
    background: none;
    border: none;
    font-size: 1.5rem;
}

/* محتوای اصلی */
.content {
    margin-right: 250px;
    padding: 70px 20px;
    transition: all 0.3s ease;
}

body.sidebar-collapsed .content {
    margin-right: 0;
}

/* لوگو در حالت عادی */
.sidebar .logo img {
height: 50px;
transition: all 0.3s ease;
}

/* لوگو در حالت collapsed */
.sidebar.collapsed .logo img {
height: 40px; /* اندازه کوچک‌تر لوگو */
}


/* واکنش‌گرایی برای موبایل */
@media (max-width: 768px) {
    .sidebar {
        right: -250px;
    }

    .sidebar.collapsed {
        right: 0;
    }

    .navbar-custom {
        width: 100%;
        right: 0;
    }

    body.sidebar-collapsed .navbar-custom {
        right: 250px; /* Navbar به سمت چپ حرکت می‌کند */
    }

    .content {
        margin-right: 0;
    }
    
}

.card-custom {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), inset 0 -4px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* هدر کارت */
.card-header-custom {
    background: linear-gradient(135deg, #007bff, #3a3f44);
    color: white;
    font-weight: bold;
    padding: 15px 20px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

/* متن مدت‌زمان پشتیبانی */
.support-remaining {
    font-size: 1.2rem;
    font-weight: bold;
    color: #007bff;
}

/* طراحی کنسول برای اسکریپت‌ها */
.console-box {
    background-color: #2d2d2d;
    color: #00ff00;
    font-family: "Courier New", Courier, monospace;
    border-radius: 15px;
    padding: 15px;
    overflow-x: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.console-title {
    background-color: #3a3f44;
    color: #f1f1f1;
    padding: 10px 15px;
    font-weight: bold;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}




/*OLD CSS*/
.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}
  }


  #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;
}


/*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;
}


.og-badge {
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: normal;
}
.primary-soft {
    background-color: rgba(98,75,255,.1);
    color: #624bff;
}
.success-soft {
    background-color: rgba(25, 135, 84, .1);
    color: #198754;
}
.danger-soft {
    background-color: rgba(220, 53, 69, .1);
    color: #dc3545;
}
.warning-soft {
    background-color: rgba(255, 193, 7, .1);
    color: #ffc107;
}
.info-soft {
    background-color: rgba(13, 202, 240, .1);
    color: #0dcaf0;
}
.secondary-soft {
    background-color: rgba(71, 85, 105, .1);
    color: #475569;
}