.form-control,.dropdown-toggle {
    font-size: .85rem;
}

.input-label {
    font-weight: 700;
    color: darkslategrey;
}

.thumb {
    position: relative;
}
.image1 {
    position: absolute;
    /*right: 10px;*/
    left: 0px;
    top: 0px;
}

.image2 {
    position: absolute;
    /*right: 10px;*/
    left: 0px;
    top: 20px;
}

.modal {
    max-width: 100vw;
    padding: 6vw;
    backdrop-filter: contrast(0.4);
}
.modal-header {
    background-color: black;
    color: white;
    justify-content: space-between;
}

.close {
    font-size: 2em;
}

body {
    /*font-family: Arial, sans-serif;*/
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    text-align: justify;
    font-size: smaller;
}

header {
    background: linear-gradient(90deg, #011505, #204564);
    height: 55px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 999;
    width: 100%;
}

.header {
    background: linear-gradient(90deg, #011505, #204564);
    height: 55px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 999;
    width: 100%;
}

.container-fluid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo_img {
    height: 48px;
    width: auto;
    /*margin-right: 15px;*/
    margin: 3px 15px 3px 0px;
}

.class_img {
    width: 150px;
    height: auto;
    margin: 0px;
}

.nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.nav-menu ul li {
    margin-right: 30px;
}

.nav-menu ul li a {
    color: #adc7de;
    text-decoration: none;
    font-size: 14px;
}

.nav-menu li:hover {
    color: #ffad16;
}

.nav-menu ul li.active a {
    color: #ffad16;
}

.nav-menu ul li img {
    height: 30px;
    width: auto;
    margin-left: 20px;
}

.menu-icon {
    display: none;
    color: #fff;
    cursor: pointer;
    font-size: 36px;
}


.wrapper {
    display: flex;
    flex: 1; /* Ensure wrapper takes full height */
}

#sidebar {
    /*width: 300px;*/
    z-index: 1000;
    background-color: #fff;
    /*position: fixed;*/
    top: 55px; /* Height of the fixed header */
    left: 0;
    /*height: calc(100vh - 55px);*/ 
    /* Adjusted height to fit remaining viewport */
    /*    overflow-y: auto;*/
    padding-bottom: 50px; /* Room for the footer */
    transition: all 0.3s ease;
    /*border-right: 1px solid #ccc;*/
    padding: 4px;
}

.sidebar-nav {
    padding: 20px 10px;
}

/*.sidebar-item {
    list-style: none;
    margin: 10px 0;
}*/

.sidebar-link {
    display: flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.sidebar-link:hover {
    background-color: #f0f0f0;
}

.sidebar-dropdown {
    padding-left: 20px;
    display: none;
}

.sidebar-link.active {
    background-color: #f0f0f0;
    font-weight: bold;
    color: #0b2c4a;
}

.lni-icon {
    margin-right: 10px;
}

h1 a {
    font-weight: bold;
    color: #0b2c4a;
}

a {
    text-decoration: none;
    color: #4169E1;
}

li {
    font-size: 14px;
    text-align: left;
}

.hello table, .content-section table {
    width: 100%; /* Ensure table width is 100% */
    border-collapse: collapse;
    margin: 20px auto;
    font-size: 13px;
    overflow-x: auto; /* Enable horizontal scrolling */
    display: block; /* Display block to enable scrolling */
}

/* Add scrollbars for table containers */
.hello, .content-section {
    /*     overflow-x: auto; Enable horizontal scrolling */
}

/* Keep other styles the same */
.hello th, td, .content-section th, .content-section td {
    padding: 8px;
    text-align: left;
}

.hello th, .content-section th {
    background-color: #f2f2f2;
    font-size: 14px;
}

.hello td ul, .content-section td ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.hello td ul li, .content-section td ul li {
    margin-bottom: 5px;
    font-size: 12px;
}

.main-content {
    flex: 1;
    /*padding: 20px;*/
    overflow-y: auto;
    /*margin-top: 55px;*/
    /*    margin-left: 304px;  Adjusted to include sidebar width */
    display: flex;
    overflow-x: hidden;
    /*flex-direction: column;*/
}

.api-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* Ensure wrapping on smaller screens */
}

.content-section {
    flex: 1;
    margin-right: 20px;
    min-width: 300px; /* Ensure minimum width for content sections */
}

.content-section table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 13px;
    overflow-x: auto; /* Ensure horizontal scrolling */
}

.content-section table th, .content-section table td {
    padding: 5px;
    border: 1px solid #ddd;
    text-align: left;
}

.content-section table th {
    background-color: #f4f4f4;
    font-weight: 600;
}

.content-section table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.content-section table tbody tr:hover {
    background-color: #f1f1f1;
}

.main-content h1 {
    color: #0b2c4a;
    font-size: 24px;
    margin-bottom: 10px;
}

.main-content p {
    color: #333;
    /*font-size: 14px;*/
    line-height: 1.6;
}

.content-section code {
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 2px 4px;
    border-radius: 5px;
}

.code-consoles {
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 45%; /* Reduced the maximum width */
}

.code-console {
    width: 100%;
    background-color: #3a3f46; /* Lighter grey shade */
    border-radius: 8px;
    overflow: hidden;
    font-size: 16px;
    color: #adbac7;
    max-height: 300px; /* Max height for scrolling */
    overflow-y: auto; /* Enable vertical scrolling */
}

.code-block {
    padding: 12px;
    background-color: #3a3f46 !important; /* Lighter grey shade */
    color: #adbac7;
    white-space: pre-wrap;
    line-height: 1;
    width: 100%;

}

.console-header {
    position: sticky;
    top: 0;
    background-color: #2d333b; /* Darker grey shade */
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #444c56;
    z-index: 1; /* Ensure header stays above content */
}

.console-header .method {
    color: #58a6ff;
    font-weight: bold;
    font-size: 13px;
}

.console-header .endpoint {
    margin-left: 4px;
    color: #adbac7;
    font-size: 13px;
}

.console-header select, .console-header button {
    background: none;
    border: none;
    color: #adbac7;
    font-size: 13px;
    cursor: pointer;
}

.console-header select {
    margin-right: 4px;
}

.console-header button img {
    width: 14px;
    height: 14px;
}

.code-text {
    display: inline-block;
    color: #adbac7;
}

.code-block .code-text span {
    color: #6f42c1;
}

#language-selector10, #language-selector20, #language-selector1,
#language-selector3 {
    border: 1px solid #fff;
    border-radius: 4px;
    padding: 3px 8px;
}

.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
    color: #495057;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
}

.nav-tabs .nav-link {
    border: 1px solid transparent;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
    color: #fff;
}

.nav-tabs .nav-link:hover {
    color: grey;
}

.header-with-button {
    text-align: right; /* Adjust spacing as needed */
}

.header-with-button a {
    color: #fff; /* Adjust spacing as needed */
}

.input-box {
    display: flex;
    margin-bottom: 20px;
}

.input-box input {
    flex: 1;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px 0 0 5px;
    border-right: none;
}

.input-box button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #007bff;
    color: #fff;
    border: 1px solid #007bff;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.output-console {
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    overflow: auto;
    max-height: 300px;
}

.output-console pre {
    margin: 0;
    padding: 0;
    white-space: pre-wrap;
}

#copy-button, #fullscreen-button {
    background: none;
    border: none;
    cursor: pointer;
}

h4 {
    font-size: 26px;
    padding-top: 6px;
    /*padding-bottom: 10px;*/
    padding-right: 3px;
}

.nav-link {
    margin-top: 10px;
}


@media (max-width: 1000px) {

    .class_img {
        width: 150px;
        height: auto;
        margin: 0px;
    }
    .form-control {
        font-size: small;
    }

    .col {
        font-size: x-small;
    }
    h6 {
        font-size: small;
    }
    .btn {
        font-size: small;
    }

    .header {
        padding: 0px;
    }

    .nav-link {
        margin-top: 0px;
    }

    .nav-menu ul {
        display: none;
        flex-direction: column;
        background-color: #151B26;
        position: absolute;
        top: 55px;
        left: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .nav-menu.active ul {
        display: flex;
        max-height: 300px; /* Adjust as needed */
    }
    .nav-menu ul li {
        margin-right: 0;
        margin-bottom: 20px;
    }
    .menu-icon {
        display: block;
    }
    .logo_img {
        height: 40px;
    }
    .container-fluid {
        flex-direction: row;
        align-items: center;
    }
    .logo {
        display: flex;
        align-items: center;
    }
    .wrapper {
        /*flex-direction: column;*/
    }
    .sidebar-link span {
        display: none; /* Hide text */
    }
    .main-content {
        flex: 1;
        padding: 20px;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    .api-content {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap; /* Ensure wrapping on smaller screens */
    }

    .content-section {
        flex: 1;
        margin-right: 5px;
        min-width: 300px; /* Ensure minimum width for content sections */
    }

    .content-section table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 10px;
        font-size: 13px;
        overflow-x: auto; /* Ensure horizontal scrolling */
    }
    .code-consoles {
        width: 100%;
        max-width: 100%; /* Adjusted maximum width for smaller screens */
    }
}

@media (max-width: 750px) {

    .form-control {
        font-size: small;
    }
    .col {
        font-size: xx-small;
    }
    h6 {
        font-size: small;
    }
    .btn {
        font-size: small;
    }

    .header {
        padding: 0px;
    }

    header {
        height: 45px;
    }

    .navbar-toggler-icon {
        width: 1em;
    }

    h4.mb-0 {
        padding-top: 3px;
        font-size: 15px; /* Reduced size for API text */
    }

    .logo_img {
        height: 20px; /* Reduced size */
        margin-right: 3px;
    }
    .nav-menu ul li a {
        font-size: 12px;
    }
    .nav-menu ul li img {
        height: 20px; /* Reduced size */
        margin-left: 10px;
    }
    .nav-menu ul {
        top: 45px;
    }
    .main-content {
        flex: 1;
        padding: 20px;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    .api-content {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap; /* Ensure wrapping on smaller screens */
    }

    .content-section {
        flex: 1;
        margin-right: 5px;
        min-width: 80%; /* Ensure minimum width for content sections */
    }

    .content-section table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 10px;
        font-size: 12px;
        overflow-x: auto; /* Ensure horizontal scrolling */
    }
    .code-consoles {
        width: 100%;
        max-width: 100%; /* Adjusted maximum width for smaller screens */

    }
}

.dtabTrHighlight {
    background-color: #efd0ff !important;
}

.centered {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.progressUpl { display: none; }
.uplMessageClass { display: none; }
