/* ============================================
   DETAIL PAGE — detail.css
   ============================================ */

/* ── Breadcrumb bar ── */
.detail-breadcrumb-bar {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
    padding: 10px 0;
}

/* Override breadcrumb colors for light bg (detail page) */
.detail-breadcrumb-bar .cat-breadcrumb a {
    color: var(--text-muted);
}

.detail-breadcrumb-bar .cat-breadcrumb a:hover {
    color: var(--secondary);
}

.detail-breadcrumb-bar .cat-breadcrumb span {
    color: var(--text-dark);
    font-weight: 500;
}

.detail-breadcrumb-bar .cat-breadcrumb .sep {
    color: var(--border-color);
    font-size: 10px;
}

.detail-main {
    padding-top: 20px;
    padding-bottom: 20px;
}

/* ── Document Header Card ── */
.doc-header-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px 28px 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.doc-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.doc-type-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.doc-share-btns {
    display: flex;
    gap: 6px;
}

.share-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-light);
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-btn:hover {
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
}

.doc-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 20px;
}

/* ── Meta info grid ── */
.doc-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px;
    padding: 18px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.doc-meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.doc-meta-item>i {
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--secondary);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.doc-meta-item div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.doc-meta-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 600;
}

.doc-meta-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

/* ── Rating & stats ── */
.doc-stats-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.doc-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-stars {
    color: #f59e0b;
    font-size: 15px;
    letter-spacing: 1px;
}

.rating-num {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
}

.rating-count {
    font-size: 13px;
    color: var(--text-muted);
}

.doc-counters {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.doc-counters span {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.doc-counters i {
    font-size: 12px;
}

/* ── Download box ── */
.doc-download-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(135deg, rgba(15, 36, 64, 0.03), rgba(14, 165, 233, 0.04));
    border: 1px solid rgba(14, 165, 233, 0.15);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.download-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.download-icon-wrap {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #ef4444;
    flex-shrink: 0;
}

.download-filename {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.download-filesize {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.download-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-preview {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-base);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-preview:hover {
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
}

.btn-download-main {
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-base);
    display: flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.28);
}

.btn-download-main:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.35);
}

.trust-badges {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.trust-badges span {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.trust-badges i {
    color: #22c55e;
    font-size: 11px;
}

/* ── PDF Preview Panel ── */
.pdf-preview-panel {
    background: #f4f6f9;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    overflow: hidden;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pdf-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #fff;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.pdf-preview-header .pdf-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
}

.pdf-preview-header .pdf-header-left i {
    color: var(--secondary);
    font-size: 15px;
}

.pdf-fullscreen-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #22c55e;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-base);
    transition: var(--transition);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.pdf-fullscreen-btn:hover {
    background: rgba(34, 197, 94, 0.08);
}

.btn-fullscreen-preview {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.btn-fullscreen-preview:hover {
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
    transform: scale(1.1);
}

/* Fullscreen support */
#pdfPreview:fullscreen {
    padding: 20px;
    background: #1a1a1a;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
}

#pdfPreview:fullscreen .pdf-preview-header {
    background: #222;
    border-bottom: 1px solid #333;
    color: #fff;
    margin-bottom: 20px;
    border-radius: 8px;
}

#pdfPreview:fullscreen .pdf-header-left {
    color: #fff;
}

#pdfPreview:fullscreen .pdf-doc-viewport,
#pdfPreview:fullscreen .pdf-real-viewport {
    height: calc(100vh - 100px) !important;
}

/* Document page mockup */
.pdf-doc-viewport {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-height: 520px;
    overflow-y: auto;
    background: #e8eaf0;
}

.pdf-doc-page {
    background: #fff;
    width: 100%;
    max-width: 580px;
    min-height: 800px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    border-radius: 2px;
    padding: 60px 56px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-family: 'Times New Roman', Times, serif;
}

.pdf-page-ministry {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #111;
    margin-bottom: 4px;
}

.pdf-page-university {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #111;
    margin-bottom: 60px;
}

.pdf-page-author {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: #111;
    letter-spacing: 1px;
    margin-bottom: 60px;
}

.pdf-page-doc-title {
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    color: #111;
    line-height: 1.5;
    margin-bottom: 8px;
    max-width: 420px;
}

.pdf-page-subtitle {
    font-size: 13px;
    color: #333;
    font-style: italic;
    margin-bottom: 60px;
}

.pdf-page-type {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #111;
    margin-bottom: 4px;
}

.pdf-page-year {
    font-size: 13px;
    color: #333;
    margin-top: auto;
    padding-top: 40px;
}

/* Blurred page (locked) */
.pdf-doc-page.locked {
    position: relative;
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
}

.pdf-lock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.75);
    filter: blur(0);
    z-index: 2;
    border-radius: 2px;
    pointer-events: auto;
}

.pdf-lock-overlay i {
    font-size: 28px;
    color: var(--primary);
}

.pdf-lock-overlay p {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    font-family: var(--font-base);
}

.pdf-lock-overlay .btn-dl-free {
    font-size: 13px;
    padding: 8px 20px;
    font-family: var(--font-base);
}

/* Page number chip */
.pdf-page-num {
    position: absolute;
    bottom: 16px;
    right: 20px;
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-base);
}

.pdf-doc-viewport::-webkit-scrollbar {
    width: 6px;
}

.pdf-doc-viewport::-webkit-scrollbar-thumb {
    background: #c5ccd8;
    border-radius: 3px;
}

/* ── Section cards ── */
.doc-section-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.doc-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.doc-section-title i {
    color: var(--secondary);
    font-size: 15px;
}

/* ── Description ── */
.doc-description {
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 0px;
    transition: max-height 0.4s ease;
}

.product-description-wrapper {
    position: relative;
    margin-top: 0;
}

.product-description-wrapper.expanded .doc-description {
    max-height: 5000px !important;
}

.article-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, #ffffff);
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.product-description-wrapper.expanded .article-overlay {
    opacity: 0;
}

.article-readmore {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    text-align: center;
    padding-bottom: 5px;
}

.product-description-wrapper.expanded .article-readmore {
    position: relative;
    bottom: auto;
    margin-top: 20px;
}

.btn-readmore {
    background: white;
    border: 1px solid var(--secondary);
    color: var(--secondary);
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.btn-readmore:hover {
    background: var(--secondary);
    color: white;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.2);
}

.doc-desc-expand {
    display: none;
}

.btn-show-more {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-base);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-show-more:hover {
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
}

/* ── Table of Contents ── */
.doc-toc {
    list-style: none;
    padding: 0;
    margin: 0;
}

.doc-toc li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-dark);
    transition: var(--transition);
    border-bottom: 1px solid var(--border-light);
}

.doc-toc li:last-child {
    border-bottom: none;
}

.doc-toc li:hover {
    background: var(--bg-light);
    color: var(--secondary);
}

.doc-toc li.toc-sub {
    padding-left: 32px;
    font-size: 13px;
    color: var(--text-muted);
}

.toc-num {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--secondary);
    flex-shrink: 0;
}

/* ── Tags ── */
.doc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.doc-tag {
    display: inline-block;
    padding: 5px 14px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.doc-tag:hover {
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
}

/* ── Related list ── */
.related-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ── Sidebar Download Card ── */
.sidebar-download-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 88px;
}

.sdcard-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.sdcard-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ef4444;
    flex-shrink: 0;
}

.sdcard-type {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.sdcard-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    margin-top: 4px;
}

.sdcard-badge.free {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.sdcard-badge.premium {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.sdcard-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.sdcard-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.sdcard-stat i {
    width: 18px;
    text-align: center;
    color: var(--secondary);
    font-size: 12px;
}

.btn-dl-main-sidebar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    border: none;
    cursor: pointer;
    margin-bottom: 10px;
    transition: var(--transition);
    font-family: var(--font-base);
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
}

.btn-dl-main-sidebar:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(34, 197, 94, 0.38);
}

.btn-preview-sidebar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    cursor: pointer;
    margin-bottom: 16px;
    transition: var(--transition);
    font-family: var(--font-base);
}

.btn-preview-sidebar:hover {
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
}

.sdcard-trust {
    display: flex;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
}

.sdcard-trust span {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.sdcard-trust i {
    color: #22c55e;
    font-size: 10px;
}

/* ── Doc info list ── */
.doc-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.doc-info-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 4px;
    border-bottom: 1px solid var(--border-light);
    font-size: 13px;
}

.doc-info-list li:last-child {
    border-bottom: none;
}

.dil-label {
    color: var(--text-muted);
    font-weight: 500;
}

.dil-val {
    color: var(--text-dark);
    font-weight: 600;
    text-align: right;
}

.rating-val i {
    font-size: 12px;
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
    .sidebar-download-card {
        position: static;
    }

    .sidebar-sticky-wrap {
        position: static !important;
    }

    .doc-meta-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pdf-preview-pages {
        grid-template-columns: repeat(2, 1fr);
    }

    .doc-download-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .download-actions {
        width: 100%;
    }

    .btn-preview,
    .btn-download-main {
        flex: 1;
        justify-content: center;
    }

    /* PDF viewport ở tablet: giảm chiều cao */
    .pdf-real-viewport {
        height: 60vh !important;
        min-height: 400px !important;
    }

    .pdf-doc-viewport {
        max-height: 400px;
    }
}

@media (max-width: 575.98px) {
    .doc-header-card {
        padding: 18px;
    }

    .doc-title {
        font-size: 18px;
    }

    .doc-meta-grid {
        grid-template-columns: 1fr;
    }

    .pdf-preview-pages {
        grid-template-columns: 1fr;
    }

    .doc-stats-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .doc-counters {
        gap: 12px;
    }

    .sdcard-trust {
        flex-direction: column;
        gap: 6px;
    }

    .doc-section-card {
        padding: 16px;
    }

    /* PDF viewport ở mobile: giảm nữa */
    .pdf-real-viewport {
        height: 50vh !important;
        min-height: 300px !important;
    }

    .pdf-doc-viewport {
        max-height: 350px;
    }

    .pdf-doc-page {
        padding: 30px 24px;
        min-height: 500px;
    }
}

/* ============================================
   SAVE / FAVORITE BUTTON
   ============================================ */

/* Header heart button */
.share-btn.btn-save-thesis {
    position: relative;
}

.share-btn.btn-save-thesis i {
    transition: all 0.3s ease;
}

.share-btn.btn-save-thesis.is-saved {
    background: #fef2f2 !important;
    border-color: #fca5a5 !important;
}

.share-btn.btn-save-thesis.is-saved i {
    color: #ef4444 !important;
}

.share-btn.btn-save-thesis:hover i {
    color: #ef4444;
    transform: scale(1.15);
}

/* Sidebar save button */
.btn-save-sidebar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-base, 'Be Vietnam Pro', sans-serif);
    color: #64748b;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 14px;
}

.btn-save-sidebar i {
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-save-sidebar:hover {
    border-color: #fca5a5;
    color: #ef4444;
    background: #fef2f2;
}

.btn-save-sidebar:hover i {
    transform: scale(1.15);
}

.btn-save-sidebar.is-saved {
    background: #fef2f2;
    color: #ef4444;
    border-color: #fca5a5;
}

.btn-save-sidebar.is-saved i {
    color: #ef4444;
}

/* Heart pulse animation on save */
@keyframes heartPulse {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.3);
    }

    50% {
        transform: scale(0.95);
    }

    75% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

.btn-save-thesis.is-saved i {
    animation: heartPulse 0.5s ease;
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.tvla-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-base, 'Be Vietnam Pro', sans-serif);
    z-index: 99999;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.tvla-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.tvla-toast-success {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}

.tvla-toast-info {
    background: linear-gradient(135deg, #334155, #1e293b);
    color: #fff;
}

.tvla-toast i {
    font-size: 16px;
}

/* ── PDF.js Mobile Viewer ── */
.pdf-mobile-controls button:active {
    transform: scale(0.9);
    opacity: 0.7;
}

#pdf-viewer-container::-webkit-scrollbar {
    width: 6px;
}

#pdf-viewer-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

/* Fix for mobile height since it was using !important in media queries */
@media (max-width: 991.98px) {
    .pdf-real-viewport.pdf-mobile-viewer {
        height: auto !important;
        min-height: 500px !important;
    }
}