/* MODAL POPUP SHARED STYLING */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vh;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-radius: 8px;
    overflow-y: auto;
}

.modal-content {
    position: relative;
}

#doc-close-container, #query-close-container {
    position: sticky;
    top: 0;
    text-align: right;
    z-index: 1000;
    background-color: white;
    padding-bottom: 10px;
}

#close-docs-btn, #close-queries-btn {
    background-color: #0039a6;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
}

#close-docs-btn:hover, #close-queries-btn:hover {
    background-color: #082d70;
}

.markdown-content {
    line-height: 1.6;
    padding: 10px;
    font-size: 16px;
}

.markdown-content h1 {
    font-size: 28px;
    color: #0039a6;
    margin-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 5px;
}

.markdown-content h2 {
    font-size: 24px;
    margin-bottom: 12px;
}

.markdown-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.markdown-content code {
    background-color: #f5f5f5;
    color: #0039a6;
    padding: 2px 4px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 15px;
}

.markdown-content pre {
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 15px;
}

.markdown-content ul, .markdown-content ol {
    padding-left: 25px;
    margin-bottom: 15px;
}

.markdown-content li {
    margin-bottom: 6px;
}

.markdown-content p {
    margin-bottom: 12px;
}

.markdown-content a {
    color: #0039a6;
    text-decoration: underline;
}

.markdown-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
}

.markdown-content th, .markdown-content td {
    border: 1px solid #e0e0e0;
    padding: 8px;
    text-align: left;
}

.markdown-content th {
    background-color: #0039a6;
    color: white;
    font-weight: bold;
}

.markdown-content tr:nth-child(even) {
    background-color: #f9f9f9;
}
