/* Header Styles */
:root {
    --border-color: #715A5A;
}

header {
    background-color: var(--light-bg);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-box {
    background-color: var(--sidebar-bg);
    border-radius: 6px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-color);
}

.search-box input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 200px;
    outline: none;
}

.search-box i {
    color: var(--text-light);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.theme-toggle:hover {
    background-color: var(--hover-color);
}

/* Sidebar Styles */
.sidebar {
    width: 240px;
    overflow-y: auto;
    height: calc(100vh - 30px);
    position: sticky;
    transition: all 0.3s;
    border-right: 1px solid #715A5A;
    flex-shrink: 0;
}

.sidebar-section {
    margin-bottom: 25px;
}

.sidebar-title {
    padding: 10px 25px;
    padding-left: 15px;;
    font-size: 20px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.sidebar-menu {
    list-style: none;
    padding-left: 15px;
}

.sidebar-menu li {
    border-left: 3px solid transparent;
}

.sidebar-menu li.active {
    border-left-color: #957C62;
    background-color: rgba(182, 174, 159, 0.3);
}

.sidebar-menu li a:hover {
    background-color: rgba(182, 174, 159, 0.3);
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 5px 12px 5px 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s;
    font-weight: 500;
}

/* .sidebar-menu a:hover {
    background-color: var(--hover-color);
} */

.sidebar-menu a i {
    margin-right: 10px;
    width: 18px;
    text-align: center;
    color: var(--text-light);
}

.submenu {
    list-style: none;
    margin-left: unset;
    padding-left: unset;
    display: none;
}

.submenu.active {
    display: block;
}

.submenu li {
    border-left: none;
    margin-left: 15px;
}

.submenu a {
    padding: 5px;
    padding-left: 10px;
    font-size: 16px;
    color: var(--text-secondary);
}

.submenu li.active {
    /* border-left-color: #957C62; */
    border-left: 3px solid #957C62;
}

/* .submenu a:before {
    content: "↳";
    margin-right: 8px;
    color: var(--text-light);
} */

.menu-toggle {
    margin-left: auto;
    transition: transform 0.3s;
    font-size: 16px;
}

.menu-toggle.rotated {
    transform: rotate(180deg);
}

/* Main Content Styles */
.main-content {
    flex: 1;
    padding: 30px 15px 30px 30px;
    padding-top: unset;
    overflow-y: auto;
    background-color: var(--light-bg);
    min-width: 0; /* Allows content to shrink properly */
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 16px;
    background-color: rgba(182, 174, 159, 0.3)
}

.breadcrumb a {
    text-decoration: none;
}

/* .breadcrumb a:hover {
    color: var(--primary);
} */

/* .breadcrumb .separator {
    color: var(--text-light);
} */

.page-title {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 700;
}

.content-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 24px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    /* border-bottom: 1px solid var(--border-color); */
    font-weight: 600;
}

.content-text {
    margin-bottom: 20px;
    line-height: 1.7;
}

.code-block {
    background-color: var(--code-bg);
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
    overflow-x: auto;
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow);
}

.code-block pre {
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    color: var(--text-primary);
}

.code-block .code-comment {
    color: #6a737d;
}

.code-block .code-keyword {
    color: #d73a49;
}

.code-block .code-string {
    color: #032f62;
}

.table-container {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 6px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px 15px;
    text-align: left;
    border: 1px solid var(--border-color);
}

th {
    background-color: rgba(182, 174, 159, 0.3);
    font-weight: 600;
}

td {
    color: var(--text-secondary);
}

th.col-width-100 {
    width: 100px;
}

th.col-width-180 {
    width: 100px;
}

th.col-width-240 {
    width: 240px;
}

th.col-width-280 {
    width: 280px;
}

th.col-width-300 {
    width: 300px;
}

tr:hover td {
    /* background-color: var(--hover-color); */
}

.info-box {
    background-color: rgba(58, 134, 255, 0.1);
    border-left: 4px solid var(--primary);
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.info-box p {
    margin: 0;
    color: var(--text-primary);
}

.warning-box {
    background-color: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.warning-box p {
    margin: 0;
    color: var(--text-primary);
}

.endpoint {
    background-color: var(--code-bg);
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    border-left: 4px solid var(--primary);
}

.endpoint-method {
    display: inline-block;
    padding: 4px 8px;
    background-color: var(--primary);
    color: white;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 10px;
}

.endpoint-path {
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

/* Desktop-only optimizations */
.sidebar {
    min-width: 240px;
}

/* .main-content {
    min-width: 600px;
} */

#section-02-howto .container {
  padding-left: unset;
  padding-right: unset;
}

#section-02-howto #table-content {
    padding: 70px 25px;
}

.page-gamesystems #section-02-howto {
    font-size: 18px;
}

.page-gamesystems #section-02-howto .page-title {
    font-size: 30px;
}

.page-gamesystems #section-02-howto img.width-250 {
    width: 250px;
    height: auto;
}

.page-gamesystems #section-02-howto img.width-300 {
    width: 300px;
    height: auto;
}

.page-gamesystems #section-02-howto img.width-450 {
    width: 450px;
    height: auto;
}

.page-gamesystems #section-02-howto img.width-500 {
    width: 500px;
    height: auto;
}

.page-gamesystems #section-02-howto img.width-550 {
    width: 550px;
    height: auto;
}

.page-gamesystems #section-02-howto img.width-600 {
    width: 600px;
    height: auto;
}

.page-gamesystems .ghost-float {
    position: fixed;
    bottom: 15%;
    right: 100px;
    transition: transform 100ms linear;
    cursor: pointer;
    background-color: white;
    color: #824e28;
    border: 2px solid #824e28;
    border-radius: 20px;
    /* padding-left: 5px;
    padding-right: 5px;
    padding-bottom: 4px; */
    padding: 1px 5px 4px 5px;
}