.markdown {
    font-size: 1.2rem;
}
.markdown p {
    line-height: 1.8;
    font-size: 1.2rem;
}
.markdown ul {
    margin-bottom: 2rem;
}
.markdown ul li {
    font-size: 1.2rem;
}

.markdown .hljs {
    background-color: #202021 !important;
    border-radius: 1rem;
    border: .1rem solid hsla(0,0%,82%,.1);
}
.markdown img {
    width:100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 24px auto;
}
.markdown b, .markdown strong {
    font-weight: 800 !important;
}

/* Light Mode Markdown Table Styles */

/* Table container and base styling */
.markdown table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Table headers */
.markdown thead {
    background-color: #f5f5f5;
}

.markdown th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #2c2c2c;
    border-bottom: 2px solid #e0e0e0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Table body and cells */
.markdown tbody tr {
    border-bottom: 1px solid #e8e8e8;
    transition: background-color 0.2s ease;
}

.markdown tbody tr:hover {
    background-color: #f9f9f9;
}

.markdown tbody tr:last-child {
    border-bottom: none;
}

.markdown td {
    padding: 12px 16px;
    color: #424242;
    vertical-align: top;
    line-height: 1.5;
}

/* Alternating row colors */
.markdown tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.markdown tbody tr:nth-child(even):hover {
    background-color: #f5f5f5;
}

/* Responsive design */
@media (max-width: 768px) {
    .markdown table {
        font-size: 14px;
    }

    .markdown th, .markdown td {
        padding: 8px 12px;
    }

    /* Stack table on very small screens */
    @media (max-width: 480px) {
        .markdown table, .markdown thead, .markdown tbody, .markdown th, .markdown td, .markdown tr {
            display: block;
        }

        .markdown thead tr {
            position: absolute;
            top: -9999px;
            left: -9999px;
        }

        .markdown tr {
            border: 1px solid #e0e0e0;
            margin-bottom: 10px;
            padding: 10px;
            border-radius: 6px;
            background-color: #ffffff;
        }

        .markdown td {
            border: none;
            position: relative;
            padding: 8px 8px 8px 50%;
            border-bottom: 1px solid #e8e8e8;
        }

        .markdown td:before {
            content: attr(data-label) ": ";
            position: absolute;
            left: 6px;
            width: 45%;
            padding-right: 10px;
            white-space: nowrap;
            font-weight: 600;
            color: #2c2c2c;
        }

        .markdown td:last-child {
            border-bottom: none;
        }
    }
}

/* Table wrapper for horizontal scroll on medium screens */
.markdown .table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.markdown .table-wrapper table {
    margin: 0;
    min-width: 600px;
}

/* Scrollbar styling for webkit browsers */
.markdown .table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.markdown .table-wrapper::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.markdown .table-wrapper::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 4px;
}

.markdown .table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

/* Special styling for different cell types */
.markdown td code {
    background-color: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    color: #d73a49;
}

/* Links in tables */
.markdown td a {
    color: #0969da;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.markdown td a:hover {
    color: #0860ca;
    border-bottom-color: #0860ca;
}

/* Numbers and numeric data */
.markdown td.number,
.markdown td[data-type="number"] {
    text-align: right;
    font-family: 'Courier New', Courier, monospace;
    color: #1a7f37;
}

/* Status indicators */
.markdown td.status-active,
.markdown td[data-status="active"] {
    color: #1a7f37;
    font-weight: 500;
}

.markdown td.status-inactive,
.markdown td[data-status="inactive"] {
    color: #cf222e;
    font-weight: 500;
}

.markdown td.status-pending,
.markdown td[data-status="pending"] {
    color: #d97706;
    font-weight: 500;
}