/*body{
  font-size: 1rem;
}*/

/* Prevent horizontal scroll */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

h6{
  font-size: 1rem;
}
.navbar-top{
  position: fixed;
  top: 0;
  width: 100%;
  height: 62px;
  z-index: 9999;
}

.page-wrapper {
  padding-top: 62px;
}


/* Left side bar*/
.left-sidebar{
  position: fixed;
  top: 62px;
  right: 0;
  bottom: 0;
  width: 300px;
  border-right: 1px solid #e0e4ef;
  z-index:999
}
.navbar-collapse.collapse.show .left-sidebar{
	z-index: 10000;
}
.left-sidebar ul{
  overflow: hidden;
}
.left-sidebar .list-group-borderless .list-group-item {
  padding: 5px 12px;
  font-size: 0.875rem;
}
.left-sidebar .list-group-borderless .active:hover{
  background:#19191c;
  color: #fff;
}

/* Main content */
.main-content{
  margin-right: 300px;
  padding: 0px 100px 50px;
}

@media (max-width: 991.98px) {
  .left-sidebar{
    position: fixed;
    top: 62px;
    right: 0;
    bottom: 0;
    width: 280px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 10000;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  }
  .navbar-collapse.show .left-sidebar,
  .navbar-collapse.collapse.show .left-sidebar{
    transform: translateX(0);
  }
  .main-content{
    margin-right: 0;
    padding: 0px 30px 50px;
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .main-content{
    padding: 0px 20px 50px;
  }
  .left-sidebar{
    width: 260px;
  }
}

@media (max-width: 575.98px) {
  .navbar-top{
    position: relative;
    height: auto;
    min-height: 62px;
  }
  .page-wrapper {
    padding-top: 0;
  }
  .left-sidebar{
    top: 0;
    width: 280px;
  }
  .main-content{
    padding: 0px 15px 30px;
    width: 100%;
  }
  .navbar-brand.py-3,
  .navbar-brand.pb-3 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }
}


.copy-link{
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 9;
}

/* .badge{
  font-size: 100%;
} */


/*Custom scroll bar*/
.ss-wrapper {
  overflow: hidden;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
  float: left;
}

.ss-content {
  height: 100%;
  width: calc(100% + 18px);
  padding: 0 0 0 0;
  position: relative;
  overflow-x: auto;
  overflow-y: scroll;
  box-sizing: border-box;
}

.ss-content.rtl {
  width: calc(100% + 18px);
  right: auto;
}

.ss-scroll {
  position: relative;
  background: rgba(0, 0, 0, 0.1);
  width: 9px;
  border-radius: 4px;
  top: 0;
  z-index: 2;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s linear;
}

.ss-hidden {
  display: none;
}

.ss-container:hover .ss-scroll,
.ss-container:active .ss-scroll {
  opacity: 1;
}

.ss-grabbed {
  -o-user-select: none;
  -ms-user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  user-select: none;
}
.changelog-page .badge{
  width: 80px;
}

/* Nav pills */
.nav-pills.nav-tabs-line {
  padding: 0.625rem 0;
}
.nav-pills.nav-tabs-line .nav-link {
  border: transparent;
  color: #066ac9;
}
.nav-pills.nav-tabs-line .nav-link.active {
  color: #066ac9;
  background-color: rgba(6, 106, 201, 0.1);
}
.nav-pills.nav-tabs-line .nav-item {
  margin-bottom: -2px;
}

.nav-tabs.nav-tabs-line {
  border-bottom: rgba(0, 0, 0, 0.1);
  padding-right: 0
}

.nav-tabs.nav-tabs-line .nav-link {
  background: transparent;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 3px solid transparent;
}

.nav-tabs.nav-tabs-line .nav-link.active {
  background: transparent;
  color: #2163e8;
  border-bottom: 3px solid #2163e8;
}

.nav-tabs.nav-tabs-line .nav-item {
  margin-bottom: -2px;
}

/* Responsive tables and code blocks */
.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  max-width: 100%;
  margin-bottom: 1rem;
  border-collapse: collapse;
}

/* Ensure tables don't break layout on mobile */
@media (max-width: 767.98px) {
  .table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: -ms-autohiding-scrollbar;
  }
  
  .table {
    min-width: 600px; /* Minimum width for table content */
    font-size: 0.875rem;
  }
  
  .table th,
  .table td {
    padding: 0.5rem;
    white-space: nowrap;
  }
  
  /* Code blocks responsive */
  pre {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    word-wrap: normal;
    white-space: pre;
  }
  
  code {
    word-break: break-word;
    white-space: pre-wrap;
  }
  
  pre code {
    white-space: pre;
    word-break: normal;
  }
  
  /* Main content overflow */
  .main-content {
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* Ensure all content inside main-content respects boundaries */
  .main-content * {
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* Images responsive */
  .main-content img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 575.98px) {
  .table {
    min-width: 500px;
    font-size: 0.8rem;
  }
  
  .table th,
  .table td {
    padding: 0.4rem;
  }
  
  pre {
    font-size: 0.8rem;
    padding: 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
  
  code {
    font-size: 0.85em;
    word-break: break-word;
  }
  
  pre code {
    white-space: pre;
    word-break: normal;
  }
  
  /* Ensure main-content doesn't overflow */
  .main-content {
    overflow-x: hidden;
    max-width: 100vw;
    box-sizing: border-box;
  }
}
