﻿
body {
    background-color: #f5f7fb;
    font-family: "Segoe UI", sans-serif;
}
/* Layout Wrapper */
.content-wrapper {
    margin-top: 60px;
    height: calc(100vh - 60px);
    display: flex;
    overflow: hidden;
}

.CodeMirror {
    border: 1px solid #ccc;
    border-radius: 6px;
    height: auto !important;
    font-size: 14px;
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(90deg, #1e3c72, #2a5298);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    z-index: 1050;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.navbar {
    background: #1e3c72 !important;
}

.navbar-brand {
    color: white !important;
    font-weight: bold;
    font-size: 1.1rem;
}

.api-dashboard {
    display: flex;
    height: calc(100vh - 60px);
    overflow: hidden;
}

.api-dashboard {
    display: flex;
    margin-top: 60px; /* offset for fixed topbar */
    height: calc(100vh - 60px);
    overflow: hidden;
}

.sidebar {
    width: 280px;
    background: #fff;
    border-right: 1px solid #ddd;
    overflow-y: auto;
    box-shadow: 0 0 6px rgba(0,0,0,0.05) !important;
}

.main-panel {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background: #ffffff;
}

.main-content {
    flex: 1;
    overflow-y: auto;
    background: #fff;
    border-radius: 10px;
    padding: 16px 12px 3px 7px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 1px solid #dfdfdf
}

#apiResponse {
    white-space: pre-wrap;
    background: #1e1e1e;
    color: #dcdcdc;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
}

.api-header {
    background: #f0f4fa;
    border-bottom: 1px solid #dfe4ea;
    padding: 10px;
}

.badge {
    font-size: 0.8rem;
}


.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: #1e3c72;
    color: #fff;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.2);
    z-index: 1050;
}

    .footer a {
        color: #ffd700;
        text-decoration: none;
    }

        .footer a:hover {
            text-decoration: underline;
        }

.controller-header {
    cursor: pointer;
    user-select: none;
}

    .controller-header:hover {
        background-color: #f1f1f1;
    }

.list-group-item:hover {
    background-color: #f8f9fa;
}

.logoone {
    height: 100%;
}

textarea {
    max-width: 60%;
    resize: none;
}

.response-editor .CodeMirror {
    height: 300px !important;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.nav-tabs .nav-link {
    font-weight: 500;
    color: #555;
}

    .nav-tabs .nav-link.active {
        background-color: #1e3c72;
        color: #fff;
        border-color: #1e3c72 #1e3c72 #fff;
    }
@media (max-width: 991px) {

    /* Hide sidebar by default */
    .sidebar {
        position: fixed;
        top: -100vh;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background: #fff;
        z-index: 2000;
        transition: top 0.3s ease-in-out;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        border-right: none;
    }

        .sidebar.active {
            top: 60px;
        }

    #toggleSidebarBtn {
        display: inline-block !important;
    }
}
