.markdown p {
    line-height: 1.8;
}
.markdown ul {
    margin-bottom: 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;
}
/* Dark Mode Markdown Table Styles */

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

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

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

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

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

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

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

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

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

/* 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 #333;
            margin-bottom: 10px;
            padding: 10px;
            border-radius: 6px;
            background-color: #1a1a1a;
        }

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

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

        .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: #1a1a1a;
}

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

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

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

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

.markdown td a:hover {
    color: #81d4fa;
    border-bottom-color: #81d4fa;
}

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

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

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

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