.doc_section{
    margin-bottom: 40px;
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    overflow: hidden;
    padding: 32px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.doc_section:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.content .doc_section ul.endpoints {
    padding: 0 24px;
    margin: 24px 0;
}
.content .doc_section ul.endpoints li {
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #283F59;
}
.content .doc_section ul.endpoints li a {
    font-weight: 600;
    display: block;
    text-decoration: none;
    color: #2d3748;
    font-size: 16px;
    line-height: 1.5;
}
.content .doc_section ul.endpoints li a:hover {
    color: #283F59;
}
.content .doc_section p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: #4a5568;
    font-size: 16px;
}
.content .doc_section h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 24px;
    color: #1a202c;
    border-bottom: 3px solid #283F59;
    padding-bottom: 16px;
}
.content .doc_section h2 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 32px;
    margin-bottom: 16px;
    color: #2d3748;
}
.content .doc_section h2:first-child {
    margin-top: 0;
}
.content .doc_section pre {
    background: #1a202c;
    padding: 24px;
    overflow-x: auto;
    width: 100%;
    color: #e2e8f0;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    border: 1px solid #2d3748;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}
.content .doc_section code {
    background: rgba(40, 63, 89, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    color: #d73027;
    font-size: 14px;
    border: 1px solid rgba(40, 63, 89, 0.2);
}
.content .doc_section table {
    width: 100%;
    text-align: left;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    margin: 24px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.content .doc_section table thead tr th {
    background: #2d3748;
    color: #ffffff;
    padding: 16px 20px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.content .doc_section table tbody tr td {
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}
.content .doc_section table tbody tr:last-child td {
    border-bottom: none;
}
.content .doc_section table tbody tr:nth-child(even) {
    background: #f7fafc;
}
.content .doc_section table tbody tr td:first-of-type {
    width: 25%;
    font-weight: 600;
}
.docs_btn {
    display: inline-block;
    background: #6658ea;
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    margin: 16px 0;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(40, 63, 89, 0.25);
}

.docs_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(40, 63, 89, 0.35);
    color: white;
    text-decoration: none;
}

.btn.btn-gradient-primary {
    background: rgb(255, 108, 55);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(40, 63, 89, 0.25);
}

.btn.btn-gradient-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(40, 63, 89, 0.35);
}

@media (min-width: 768px) {
    .sidebar{
        position: sticky;
        overflow-y: auto; 
        max-height: calc(100vh - 9rem);
        top: 2rem;
    }
}

/* Sidebar styling */
.sidebar .list-group-item {
    border: none;
    padding: 12px 20px;
    transition: all 0.3s ease-in-out;
}

.sidebar .list-group-item a {
    color: #4a5568 !important;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
}
.sidebar .list-group-item:hover {
    background: #f7fafc;
    transform: translateX(4px);
}

.sidebar .list-group-item a:hover {
    color: #283F59;
    text-decoration: none;
}

.sidebar .list-group-item:last-child {
    border-radius: 0 0 12px 12px;
}

.endpoints{
    list-style: none;
    padding: 0 !important;
}

/* Enhanced responsive design */
@media (max-width: 768px) {
    .doc_section {
        padding: 20px;
        margin-bottom: 24px;
    }
    
    .content .doc_section h1 {
        font-size: 24px;
    }
    
    .content .doc_section h2 {
        font-size: 20px;
    }
    
    .content .doc_section pre {
        padding: 16px;
        font-size: 12px;
    }
    
    .content .doc_section table thead tr th,
    .content .doc_section table tbody tr td {
        padding: 12px;
    }
    
    .sidebar {
        margin-bottom: 2rem;
    }
}

/* ========================================
   JSON FORMATTING IMPROVEMENTS
   ======================================== */

/* Import Fira Code font for better code readability */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&display=swap');

/* Enhanced pre formatting for better JSON display */
.content .doc_section pre {
    font-family: 'Fira Code', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace !important;
    line-height: 1.8 !important;
    white-space: pre !important;
    word-wrap: break-word !important;
    tab-size: 4 !important;
    -moz-tab-size: 4 !important;
    overflow-x: auto !important;
}

.content .doc_section pre code {
    font-family: 'Fira Code', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace !important;
    white-space: pre !important;
    line-height: 1.8 !important;
    display: block !important;
}

/* Google Code Prettify support */
.content .doc_section .prettyprint {
    font-family: 'Fira Code', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace !important;
    line-height: 1.8 !important;
    white-space: pre !important;
    word-wrap: break-word !important;
    tab-size: 4 !important;
    -moz-tab-size: 4 !important;
    overflow-x: auto !important;
}

.content .doc_section .prettyprinted {
    font-family: 'Fira Code', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace !important;
}

/* Prettyprint syntax highlighting colors */
.content .doc_section .prettyprint .pln { color: #e2e8f0 !important; } /* plain text */
.content .doc_section .prettyprint .str { color: #ce9178 !important; } /* strings */
.content .doc_section .prettyprint .kwd { color: #569cd6 !important; } /* keywords */
.content .doc_section .prettyprint .com { color: #6a9955 !important; font-style: italic !important; } /* comments */
.content .doc_section .prettyprint .typ { color: #4ec9b0 !important; } /* types */
.content .doc_section .prettyprint .lit { color: #b5cea8 !important; } /* literals */
.content .doc_section .prettyprint .pun { color: #e2e8f0 !important; } /* punctuation */
.content .doc_section .prettyprint .opn { color: #e2e8f0 !important; } /* opening brackets */
.content .doc_section .prettyprint .clo { color: #e2e8f0 !important; } /* closing brackets */
.content .doc_section .prettyprint .tag { color: #569cd6 !important; } /* HTML tags */
.content .doc_section .prettyprint .atn { color: #9cdcfe !important; } /* HTML attributes */
.content .doc_section .prettyprint .atv { color: #ce9178 !important; } /* HTML attribute values */
.content .doc_section .prettyprint .dec { color: #b5cea8 !important; } /* declarations */
.content .doc_section .prettyprint .var { color: #9cdcfe !important; } /* variables */
.content .doc_section .prettyprint .fun { color: #dcdcaa !important; } /* functions */

/* JSON specific prettyprint styling */
.content .doc_section .prettyprint.json .str { color: #ce9178 !important; } /* JSON strings */
.content .doc_section .prettyprint.json .kwd { color: #569cd6 !important; } /* JSON keywords (true, false, null) */
.content .doc_section .prettyprint.json .lit { color: #b5cea8 !important; } /* JSON numbers */
.content .doc_section .prettyprint.json .pun { color: #e2e8f0 !important; } /* JSON punctuation */

/* Ensure proper spacing for JSON elements */
.content .doc_section .prettyprint .pun,
.content .doc_section .prettyprint .str,
.content .doc_section .prettyprint .lit,
.content .doc_section .prettyprint .kwd {
    margin: 0 !important;
    padding: 0 !important;
}

/* Force proper indentation for all prettyprint elements */
.content .doc_section .prettyprint * {
    white-space: pre !important;
    font-family: 'Fira Code', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace !important;
}

/* Ensure spans don't break indentation */
.content .doc_section .prettyprint span {
    display: inline !important;
    white-space: pre !important;
}