body {
    margin: 0;
    padding: 0;
}

@media (min-width: 769px) {
    body {
        overflow: hidden;
    }
}

#api-docs-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    height: 100vh;
    width: 100vw;
}

.api-sidebar {
    width: 400px;
    background-color: var(--bs-light);
    border-right: 1px solid var(--bs-border-color);
    overflow-y: auto;
    flex-shrink: 0;
}

.api-main {
    flex: 1;
    overflow-y: auto;
}

.cursor-pointer {
    cursor: pointer;
}

.folder-icon {
    transition: transform 0.2s;
}

.folder-icon.rotated {
    transform: rotate(90deg);
}

.sidebar-content {
    height: 100%;
    overflow-y: auto;
}

.nav-bg {
    background-color: #252930;
    color: #adb5bd;
}

.endpoint-item:hover, .endpoint-item.active, #welcome-button:hover, #welcome-button.active {
    background-color: #15171C !important;
    color: white !important;
}

.endpoint-item:hover .endpoint-name,
.endpoint-item.active .endpoint-name,
#welcome-button:hover span,
#welcome-button.active span {
    color: white !important;
}

.response-item {
    margin-bottom: 1.5rem;
}

.response-item:last-child {
    margin-bottom: 0;
}

.response-header {
    display: flex;
    align-items: center;
}

.search-item {
    position: sticky;
    top: 0;
    background-color: var(--bs-light);
    z-index: 10;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--bs-border-color);
}

#search-results {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--bs-border-color);
    border-radius: 5px;
}

.search-result-item {
    padding: 8px 12px;
    border-bottom: 1px solid var(--bs-border-color-translucent);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #15171C !important;
}

.search-result-category {
    font-size: 0.75rem;
    color: #6c757d;
    margin-left: auto;
}

.search-highlight {
    background-color: transparent;
    font-weight: bold;
    padding: 0;
    border-radius: 0;
}

@media (max-width: 768px) {
    #api-docs-container {
        flex-direction: column;
        position: relative;
        height: auto;
        min-height: 100vh;
    }

    .api-sidebar {
        width: 100%;
        max-height: 50vh;
        border-right: none;
        border-bottom: 1px solid var(--bs-border-color);
    }

    .sidebar-content {
        height: auto;
        max-height: 100%;
    }

    .api-main {
        min-height: 50vh;
    }

    .endpoint-header .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }

    #method-badge {
        margin-right: 0 !important;
        margin-bottom: 1rem;
    }

    .row > .col-md-6 {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .folder-header, .endpoint-item {
        padding: 0.5rem !important;
    }

    .folder-name, .endpoint-name {
        font-size: 0.9rem;
    }

    pre {
        font-size: 0.8rem;
    }
}