html,
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

header {
    background: linear-gradient(90deg, #3b6978, #204051);
    color: white;
    text-align: center;
    padding: 2rem 0;
    padding-bottom: 0px;
}

header h1 {
    font-size: 2.5rem;
    margin: 0;
}

.container {
    flex: 1;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    overflow: auto;
    width: 100vw;
    min-width: 100vw;
}

main {
    flex: 3;
    width: 100%;
    max-width: 1200px;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 0 1.5rem;
    padding-left: 0px;
    padding-right: 0px;
    display: flex;
    overflow: hidden;
}

.sidebar {
    flex: 1;
    background-color: #3b6978;
    padding: 1.5rem;
    margin-right: 1rem;
    border-radius: 10px;
    color: white;
    min-width: 150px;
    max-width: 300px;
    overflow-y: auto;
    position: sticky;
    top: 2rem;
}

.sidebar h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    cursor: pointer;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem;
    display: block;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.sidebar ul li a:hover {
    background-color: #204051;
    transform: translateX(5px);
}

.sidebar ul active a {
    background-color: #f4f4f9;
    color: #204051;
    font-weight: bold;
}

.sidebar ul li .active {
    background-color: #204051;
    color: #f4f4f9;
    /*font-weight: bold;*/
    transform: translateX(5px);
}

.dropdown-toggle {
    background: linear-gradient(90deg, #3b6978, #204051);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0.75rem 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
    display: inline-block;
}

.dropdown-toggle:focus {
    outline: none;
}

.dropdown-toggle:active {
    transform: translateY(0px) scale(1);
}

article {
    flex: 3;
    overflow: hidden;
}

.accordion {
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 100%;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background-color: #204051;
    color: white;
    font-size: 1.5rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    min-width: 300px;
    cursor: default;
    pointer-events: none;
}

.accordion-header:hover {
    background-color: #3b6978;
}

.sub-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background-color: #204051;
    color: white;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    min-width: 300px;
}

.sub-accordion-header:hover {
    background-color: #3b6978;
}

.accordion-content {
    background-color: white;
    margin-top: 5px;
    max-height: 0;
    overflow: auto;
    transition: max-height 0.3s ease-out;
    padding: 0 1rem;
}

.accordion-content.open {
    max-height: calc(100% - 100px);
    padding: 1rem;
}

.accordion p {
    margin: 1rem 0;
}

footer {
    text-align: center;
    padding: 2rem;
    background-color: #3b6978;
    color: white;
    position: relative;
    width: 100%;
    bottom: 0;
    box-sizing: border-box;
}

.left-space {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 10px;
}

.right-space {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 10px;
}

.skeleton-item {
    background-color: #d0d0d0;
    height: 24px;
    margin-bottom: 1rem;
    border-radius: 4px;
    animation: pulse 1.5s infinite;
    cursor: default;
    pointer-events: none;
}

.coachmark {
    display: none;
    position: absolute;
    background-color: #3b6978;
    color: white;
    border-radius: 5px;
    padding: 10px;
    z-index: 10;
    animation: fade-in 1.5s;
    white-space: nowrap;
}

.coachmark::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #3b6978 transparent;
}

section {
    margin-bottom: 30px;
}

pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    background-color: #f4f4f4;
    color: #2c3e50;
    padding: 10px;
    border-radius: 5px;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.3;
    }
}

.summary-button {
    background-color: #3b6978;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 20px;
}

@keyframes flash {
    0% {
        box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
}

.summary-button:hover {
    background-color: #204051;
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.summary-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-family: 'Arial', sans-serif;
}

th,
td {
    padding: 15px;
    text-align: left;
    font-size: 1em;
}

th {
    background-color: #2c4e56;
    color: white;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #f1f8f7;
}

tr:nth-child(odd) {
    background-color: #ffffff;
}

td {
    color: #333333;
}

ul {
    padding-left: 20px;
}

pre {
    background-color: #e0f2f1;
    padding: 15px;
    border-radius: 5px;
    font-size: 0.95em;
    color: #2c4e56;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', Courier, monospace;
}

table,
th,
td {
    border: 1px solid #ddd;
}

.status-code {
    padding: 5px 10px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
}

.status-200, .status-201 {
    background-color: #28a745;
}

.status-400, .status-403, .status-500 {
    background-color: #dc3545;
}

.status-401, .status-402, .status-404, .status-409 {
    background-color: #ffc107;
}

@media screen and (max-width: 768px) {

    th,
    td {
        font-size: 0.9em;
        padding: 10px;
    }

    pre {
        font-size: 1em;
        padding: 10px;
    }
}

@media (max-width: 1400px) {

    .left-space,
    .right-space {
        flex: 0 0 200px;
    }
}

@media (max-width: 1180px) {

    .left-space,
    .right-space {
        flex: 0 0 150px;
    }
}

@media (max-width: 1000px) {

    .left-space,
    .right-space {
        flex: 0 0 20px;
    }
}

@media (min-width: 651px) {
    .sidebar {
        display: block;
    }

    .dropdown {
        display: none;
    }
}

@media (max-width: 650px) {
    main {
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
        margin-bottom: 10px;
        padding-right: 0;
    }
    
    header h1 {
        font-size: 1.8rem;
    }

    .sidebar,
    .accordion {
        width: 100%;
    }

    .sidebar {
        display: none;
    }

    .accordion-header {
        font-size: 1rem;
        min-width: 250px;
    }

    .substep-header {
        font-size: 1rem;
    }

    .accordion-content {
        font-size: 14px;
        margin-right: 0px;
        padding: 0;
    }

    .accordion-content.open {
        padding: 0.5rem;
    }

    .summary-button {
        font-size: 1rem;
    }

    .dropdown {
        display: block;
        background-color: #3b6978;
        color: white;
        border: none;
        border-radius: 5px;
        padding: 10px;
        font-size: 1.2rem;
        cursor: pointer;
        margin: 10px 0;
    }

    .dropdown-content {
        display: none;
        position: absolute;
        background-color: white;
        border-radius: 5px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        left: 7%;
        right: 7%;
        transition: all 0.3s ease;
        margin-top: 5px;
        overflow-y: auto;
        max-height: 320px;
        border: 1px solid #ccc;
        text-align: left;
        font-size: 1rem;

    }

    .dropdown-content.show {
        display: block;
    }

    .dropdown-content a {
        color: #333;
        text-decoration: none;
        padding: 0.7rem;
        display: block;
        border-radius: 5px;
        transition: background-color 0.3s ease;
    }

    .dropdown-content a:hover {
        background-color: #f4f4f9;
    }

    .dropdown-content ul {
        list-style-type: none;
        padding: 0;
        margin: 0;
    }

    .dropdown-content li {
        margin-top: 10px;
        margin-left: 10px;
    }

    .dropdown-content a {
        color: #333;
        text-decoration: none;
        padding: 0.5rem;
        display: block;
        border-radius: 5px;
        transition: background-color 0.3s ease;
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }
    
    th,
    td {
        font-size: 0.75em;
        padding: 5px;
    }
}

@media (max-width: 460px) {

    html,
    body {
        overflow-y: auto;
        height: auto;
    }

    .container {
        height: auto;
        overflow-y: auto;
        max-height: 100vh;
    }

    footer {
        padding: 0.5rem;
        padding-top: 0;
        padding-bottom: 20px;
    }

    .sub-accordion-header.substep-header {
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-height: 500px) {

    html,
    body {
        overflow-y: auto;
        height: auto;
    }

    .container {
        height: auto;
        overflow-y: auto;
        max-height: 100vh;
    }

    .left-space,
    .right-space {
        flex: 0 0 20px;
    }
}