body {
    margin: 0;
    font-family: "Segoe UI", "Inter", Arial, sans-serif;
    display: flex;
    height: 100vh;
    background: #f5f7fb;
    color: #111827;
    line-height: 1.6;
}

.sidebar {
    width: 220px;
    background-color: #2c3e50;
    color: white;
    height: 100vh;
    position: fixed;
    padding-top: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.08);
}

.sidebar h2 {
    text-align: center;
    font-size: 20px;
    margin-bottom: 20px;
}

.sidebar img {
    display: block;
    margin: 0 auto 15px;
    width: 130px;
    border-radius: 8px;
}

.sidebar a {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
}

.sidebar a:hover {
    background-color: #34495e;
}

.content {
    margin-left: 220px;
    padding: 30px;
    max-width: 1200px;
    width: 100%;
}

.topbar {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.topbar label {
    font-size: 12px;
    font-weight: bold;
    color: #4b5563;
}

.topbar select,
.topbar input {
    padding: 6px 10px;
    border: 1px solid #cfd6dd;
    border-radius: 6px;
    font-size: 12px;
    background: #fff;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.doc-main {
    min-width: 0;
}

.doc-runner {
    position: sticky;
    top: 20px;
    align-self: start;
}

.panel {
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
}

.panel-title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: bold;
}

.code-panel pre {
    margin: 0;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 6px;
    padding: 10px;
    font-size: 12px;
}

.code-panel select {
    margin-bottom: 8px;
    width: 100%;
}

.doc-runner .try-block {
    margin-top: 0;
}

.doc-runner h2,
.doc-runner h4 {
    margin-top: 0;
}

@media (max-width: 1100px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    .doc-runner {
        position: static;
    }
}

.endpoint {
    margin-bottom: 40px;
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.endpoint h3 {
    margin-bottom: 10px;
}

h1, h2, h3, h4 {
    color: #0f172a;
    margin: 0 0 12px;
    line-height: 1.3;
}

h1 {
    font-size: 24px;
    font-weight: 700;
}

h2 {
    font-size: 18px;
    font-weight: 600;
}

h3 {
    font-size: 16px;
    font-weight: 600;
}

h4 {
    font-size: 14px;
    font-weight: 600;
}

.endpoint h1 {
    margin-bottom: 16px;
}

.endpoint h2 {
    margin-top: 18px;
}

.endpoint h3 {
    margin-top: 10px;
}

.content-grid {
    margin-top: 8px;
}

.codebgcolor code {
    background: #0f172a;
    color: #e2e8f0;
    padding: 6px 10px;
    border-radius: 6px;
    display: block;
}

.method {
    font-weight: bold;
    color: #27ae60;
}

pre {
    background: #fff;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    border: 1px solid #ccc;
}

.swagger-ui {
    margin-top: 16px;
}

.swagger-ui .swagger-container {
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
}

th, td {
    border: 1px solid #ccc;
    padding: 8px 12px;
    text-align: left;
}

th {
    background-color: #34495e;
    color: white;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

.success { color: green; }
.error { color: red; }

.menu-title {
    font-size: 16px;
    font-weight: bold;
    padding: 12px 20px 8px;
    color: #ecf0f1;
    border-top: 1px solid #34495e;
    margin-top: 10px;
}

.submenu {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.submenu li a {
    font-size: 14px;
    padding: 10px 30px;
    display: block;
    color: #ecf0f1;
    text-decoration: none;
}

.submenu li a:hover {
    background-color: #3d566e;
}

.download-group {
    margin: 10px 0 20px;
}

.download-btn {
    display: inline-block;
    margin: 5px 10px 5px 0;
    padding: 8px 14px;
    background-color: #27ae60;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    transition: background-color 0.2s ease;
}

.download-btn:hover {
    background-color: #1e874b;
}

.try-block {
    background: #f9fafb;
    border: 1px solid #e1e4e8;
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0 24px;
}

.try-block label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    margin: 10px 0 6px;
}

.try-block input,
.try-block textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cfd6dd;
    border-radius: 6px;
    font-size: 13px;
    box-sizing: border-box;
    background: #fff;
}

.try-block textarea {
    min-height: 180px;
    font-family: "Courier New", monospace;
}

.try-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.try-btn {
    background: #2c7be5;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.try-btn.secondary {
    background: #6c757d;
}

.try-response {
    margin-top: 12px;
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    padding: 10px;
    font-family: "Courier New", monospace;
    font-size: 12px;
    white-space: pre-wrap;
    word-break: break-word;
}

.doc-runner {
    max-height: calc(100vh - 10px);
    overflow-y: auto;
    padding-right: 6px;
}

.pre-padding-border-0 {
    padding: 0px;
    border: none;
}
