.bi {
    vertical-align: -.125em;
    fill: currentColor;
}

.b-example-divider {
    width: 100%;
    height: 3rem;
    background-color: rgba(0, 0, 0, .1);
    border: solid rgba(0, 0, 0, .15);
    border-width: 1px 0;
    box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1),
                inset 0 .125em .5em rgba(0, 0, 0, .15);
}

.b-example-vr {
    flex-shrink: 0;
    width: 1.5rem;
    height: 100vh;
}

.custom-danger {
    background-color: #4b1e1e !important;
    color: #fff;
    border-radius: 2px;
    padding: 0.25rem;
}

.dark-tooltip {
    --bs-tooltip-bg: #343a40;
    --bs-tooltip-color: #fff;
}

.truncate {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resend-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.scroll-top-btn {
    z-index: 999999999 !important;
    position: fixed !important;
    bottom: 40px !important;
    right: 20px !important;
    pointer-events: auto !important;
    cursor: pointer;
    touch-action: manipulation;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    font-size: 22px;
    display: none;
    justify-content: center;
    align-items: center;
}

.sidebar-desktop {
    width: 280px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    z-index: 1030;
}

/* Desktop layout with fixed sidebar */
@media (min-width: 768px) {
    .content-area {
        margin-left: 280px !important;
    }
}

html, body {
    overflow-x: hidden !important;
}

.desktop-controls {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1020;
}

.article-content {
    font-size: 1.05rem;
    line-height: 1.75;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote,
.article-content pre,
.article-content table,
.article-content figure {
    margin-bottom: 1.5rem;
}

.article-content img {
    display: block;
    max-width: 100%;
    height: auto;
}

.article-content figure {
    margin-left: 0;
    margin-right: 0;
}

.article-content figcaption {
    margin-top: 0.5rem;
}

.article-content pre {
    overflow-x: auto;
    padding: 1rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    background: var(--bs-tertiary-bg);
}

.article-content code {
    font-size: 0.95em;
}

.article-content blockquote {
    padding-left: 1rem;
    border-left: 3px solid var(--bs-border-color);
    color: var(--bs-secondary-color);
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
}

.article-content th,
.article-content td {
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--bs-border-color);
}

.article-image {
    margin: 1.5rem 0;
}

.article-image-button {
    display: block;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
}

.article-image-preview {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    cursor: zoom-in;
}

.article-image-dialog {
    max-width: 90vw;
}

.article-image-modal-content {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
}

.article-image-wrapper {
    position: relative;
    display: inline-block;
}

#articleImageModalImage {
    display: block;
    width: auto;
    height: auto;
    max-width: 85vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 0.5rem;
}

.article-image-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;

    width: 36px;
    height: 36px;
    padding: 0;

    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;

    font-size: 28px;
    line-height: 32px;
    cursor: pointer;
}

.article-card-cover {
    width: 240px;
    height: 180px;
    max-width: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
}

@media (max-width: 767.98px) {
    .content-area {
        padding-top: 70px !important;
    }
}

.youtube-short {
    max-width: 250px;
    margin: 2rem 0;
}
