/**
 * TerfiGYS - Doküman Detay / İzleme Sayfası Stilleri
 */

/* Sayfa Gövdesi Kapsayıcısı */
/* Hero Header Kartı (İki Katmanlı: Kategori Üstte, Başlık Ortada, Butonlar Altta) */
.gd-page-header {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid var(--gd-border, #e2e8f0);
    padding: 16px 20px 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.gd-page-header-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
}

.gd-page-header-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.gd-page-title-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1 1 0%;
    min-width: 0;
}

/* Üst Kategori & Meta Satırı */
.gd-page-category-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    flex-wrap: wrap;
}

.gd-doc-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    padding: 2px 9px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 11.5px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.gd-doc-category-badge:hover {
    background: #dbeafe;
    color: #1d4ed8;
}

.gd-doc-meta-dot {
    color: #cbd5e1;
    font-weight: 700;
}

.gd-doc-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
}

.gd-page-title {
    font-size: 1.18rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.38;
    letter-spacing: -0.01em;
    word-break: break-word;
}

/* Alt Aksiyon Çubuğu (Butonlar Altta) */
.gd-page-header-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.gd-page-header-actions-left,
.gd-page-header-actions-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Renkli & Vurgulu Warning XS Butonları (Notlarımı İndir - Not Defteri) */
.gd-btn-xs-warning {
    background-color: #ca8a04 !important;
    color: #ffffff !important;
    border: 1px solid #ca8a04 !important;
    font-weight: 700 !important;
}

.gd-btn-xs-warning:hover {
    background-color: #a16207 !important;
    border-color: #a16207 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(202, 138, 4, 0.25) !important;
}

.gd-btn-xs-warning svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

/* Tanıtım Tur Butonu (Sadece İkon) */
.gd-tour-trigger-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
}

.gd-tour-trigger-btn:hover {
    background: #e2e8f0 !important;
    border-color: #cbd5e1 !important;
}

/* Ana Viewer & Grid */
.gd-doc-viewer-grid {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
}

.gd-view-main {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.gd-pdf-embed-container {
    width: 100%;
    height: 82vh;
    border-radius: 14px;
    border: 1px solid var(--gd-border, #e2e8f0);
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.gd-doc-image-wrapper {
    background: #ffffff;
    padding: 20px;
    border-radius: 14px;
    border: 1px solid var(--gd-border, #e2e8f0);
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.gd-doc-image-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.08);
}

.gd-doc-unsupported-wrapper {
    padding: 50px 20px;
    text-align: center;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid var(--gd-border, #e2e8f0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.gd-unsupported-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #94a3b8;
}

/* Yan Panel Notlar - Mevzuat Akıllı Not Defteri Renk Standartları (#ca8a04, #fffbeb, #fde68a, #92400e, #451a03) */
.gd-notes-sidebar {
    width: 350px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid var(--gd-border, #e2e8f0);
    display: flex;
    flex-direction: column;
    height: 82vh;
    position: sticky;
    top: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

.gd-notes-sidebar.hidden {
    display: none !important;
}

.gd-sidebar-header {
    padding: 14px 18px;
    background: #ca8a04;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gd-sidebar-title {
    font-weight: 800;
    color: #ffffff;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gd-sidebar-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.gd-sidebar-close-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

.gd-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gd-sidebar-footer {
    padding: 14px 16px;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gd-note-textarea {
    width: 100%;
    min-height: 80px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px;
    font-size: 13.5px;
    font-family: inherit;
    outline: none;
    resize: none;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.gd-note-textarea:focus {
    border-color: #ca8a04;
    box-shadow: 0 0 0 3px rgba(202, 138, 4, 0.15);
}

.gd-note-item {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 14px;
    font-size: 13.5px;
    line-height: 1.5;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.gd-note-body-text {
    white-space: pre-wrap;
    word-break: break-word;
    margin-bottom: 8px;
    color: #451a03;
}

.gd-note-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #92400e;
    font-weight: 700;
    border-top: 1px dashed #fde68a;
    padding-top: 6px;
}

.gd-note-actions {
    display: flex;
    gap: 6px;
}

.gd-note-action-icon-btn {
    background: none;
    border: none;
    color: #92400e;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gd-note-action-icon-btn:hover {
    color: #ca8a04;
}

.gd-note-action-icon-btn.danger:hover {
    color: #dc2626;
}

.gd-note-edit-area {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gd-note-edit-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.gd-notes-empty-state {
    text-align: center;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.gd-notes-empty-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #475569;
}

.gd-notes-empty-limit {
    font-size: 12px;
    font-weight: 600;
    color: #b45309;
    background: #fefce8;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid #fef08a;
    display: inline-block;
}

.gd-notes-sample-box {
    width: 100%;
    margin-top: 10px;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 12px;
    text-align: left;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.gd-notes-sample-box:hover {
    border-color: #ca8a04;
    background: #fffbeb;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(202, 138, 4, 0.08);
}

.gd-notes-sample-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.gd-notes-sample-badge {
    font-size: 11px;
    font-weight: 700;
    color: #b45309;
    display: flex;
    align-items: center;
    gap: 4px;
}

.gd-notes-sample-hint {
    font-size: 10.5px;
    color: #94a3b8;
    font-weight: 600;
}

.gd-notes-sample-text {
    font-size: 12.5px;
    line-height: 1.45;
    color: #334155;
    font-style: italic;
}

/* Premium Kilit Paneli */
.gd-premium-lock-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 28px 16px;
    height: 100%;
    box-sizing: border-box;
}

.gd-lock-badge {
    width: 56px;
    height: 56px;
    background: #fffbeb;
    color: #ca8a04;
    border: 1px solid #fde68a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    box-shadow: 0 6px 14px rgba(202, 138, 4, 0.15);
}

.gd-lock-title {
    font-size: 16px;
    font-weight: 800;
    color: #451a03;
    margin: 0 0 8px 0;
}

.gd-lock-desc {
    font-size: 13px;
    color: #92400e;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.gd-lock-note-footer {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 14px;
}

/* Boş Durum Kartı */
.gd-empty-state-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid var(--gd-border, #e2e8f0);
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 20px 0;
}

.gd-empty-state-card h1 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.gd-empty-state-card p {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
    max-width: 400px;
    line-height: 1.5;
}

/* Modern Zippi Custom Responsive Modal */
.gd-notes-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 100010;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.gd-notes-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.gd-notes-modal {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid var(--gd-border, #e2e8f0);
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.gd-notes-modal-overlay.active .gd-notes-modal {
    transform: scale(1);
}

.gd-notes-modal-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--gd-border, #e2e8f0);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.gd-notes-modal-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.gd-notes-modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 6px;
}

.gd-notes-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.gd-notes-modal-body {
    padding: 18px;
    font-size: 13.5px;
    color: #334155;
    line-height: 1.5;
}

.gd-notes-modal-footer {
    padding: 12px 18px;
    border-top: 1px solid var(--gd-border, #e2e8f0);
    background: #f8fafc;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 992px) {
    .gd-doc-viewer-grid {
        flex-direction: column;
        gap: 14px;
    }

    .gd-view-main {
        width: 100% !important;
    }

    .gd-notes-sidebar {
        width: 100% !important;
        height: auto;
        max-height: 500px;
        position: relative;
        top: 0;
    }

    .gd-pdf-embed-container {
        height: 70vh;
    }
}

@media (max-width: 768px) {
    .gd-page-header {
        padding: 12px 14px;
        border-radius: 12px;
        gap: 10px;
    }

    .gd-page-header-top {
        gap: 12px;
    }

    .gd-page-header-icon {
        width: 40px;
        height: 40px;
    }

    .gd-page-title {
        font-size: 1.05rem;
    }

    .gd-page-header-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding-top: 10px;
    }

    .gd-page-header-actions-left,
    .gd-page-header-actions-right {
        width: 100%;
        gap: 6px;
        flex-wrap: wrap;
    }

    .gd-pdf-embed-container {
        height: 60vh;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .gd-page-body {
        padding: 6px !important;
        gap: 8px !important;
    }

    .gd-page-header-actions {
        gap: 6px;
    }

    .gd-pdf-embed-container {
        height: 55vh;
    }
}

/* ── TAM PAKETE ÖZEL MATERYAL KİLİT KARTI (Rule 1, 27, 31 Uyumlu) ───────── */
.gd-doc-lock-showcase {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 3px solid #f59e0b;
    border-radius: 16px;
    padding: 48px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 18px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    min-height: 540px;
    box-sizing: border-box;
    width: 100%;
}

.gd-doc-lock-badge {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gd-doc-lock-icon {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.15);
}

.gd-doc-lock-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.35;
    max-width: 620px;
    letter-spacing: -0.01em;
}

.gd-doc-lock-desc {
    font-size: 0.95rem;
    color: #475569;
    margin: 0;
    line-height: 1.6;
    max-width: 600px;
}

.gd-doc-lock-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 640px;
    text-align: left;
    margin: 8px 0 14px;
}

.gd-doc-feature-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.86rem;
    font-weight: 600;
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.gd-doc-feature-pill svg {
    flex-shrink: 0;
}

.gd-doc-lock-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 6px;
    width: 100%;
}

.gd-doc-lock-actions .gd-btn {
    padding: 12px 22px;
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .gd-doc-lock-showcase {
        padding: 30px 16px;
        min-height: auto;
    }

    .gd-doc-lock-title {
        font-size: 1.2rem;
    }

    .gd-doc-lock-features {
        grid-template-columns: 1fr;
    }

    .gd-doc-lock-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .gd-doc-lock-actions .gd-btn {
        width: 100%;
        justify-content: center;
    }
}

/* PRO Özellik Kilit Modalı (Tam Ekran & PDF İndirme) */
.gd-pdf-upgrade-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(5px);
    z-index: 100020;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.gd-pdf-upgrade-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.gd-pdf-upgrade-modal-card {
    background: transparent;
    border-radius: 16px;
    max-width: 520px;
    width: 100%;
    position: relative;
    transform: translateY(12px) scale(0.96);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.gd-pdf-upgrade-modal-overlay.active .gd-pdf-upgrade-modal-card {
    transform: translateY(0) scale(1);
}

/* Not Defteri Demo Rozeti ve Bilgi Kutusu */
.gd-notes-demo-tag {
    font-size: 10px;
    font-weight: 800;
    background: #fef08a;
    color: #854d0e;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    margin-left: 6px;
    text-transform: uppercase;
    vertical-align: middle;
}

.gd-notes-demo-notice {
    background: #fefce8;
    border-bottom: 1px solid #fef08a;
    padding: 10px 14px;
    font-size: 12px;
    line-height: 1.45;
    color: #713f12;
}

.gd-notes-demo-notice a {
    color: #2563eb;
    font-weight: 700;
    text-decoration: underline;
}

.gd-notes-demo-notice a:hover {
    color: #1d4ed8;
}

/* ==========================================================================
   Mozilla PDF.js Yerel Görüntüleyici & Hibrit Motor Stilleri
   ========================================================================== */

.gd-hidden {
    display: none !important;
}

.gd-pdfjs-wrapper {
    width: 100%;
    height: 82vh;
    border-radius: 14px;
    border: 1px solid var(--gd-border, #e2e8f0);
    overflow: hidden;
    background: #334155;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    position: relative;
    box-sizing: border-box;
}

.gd-pdfjs-toolbar {
    background: #1e293b;
    color: #f8fafc;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid #334155;
    z-index: 10;
    box-sizing: border-box;
    flex-shrink: 0;
}

.gd-pdfjs-toolbar-left,
.gd-pdfjs-toolbar-center,
.gd-pdfjs-toolbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.gd-pdfjs-btn {
    background: #334155;
    color: #f8fafc;
    border: 1px solid #475569;
    border-radius: 6px;
    padding: 5px 9px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.15s ease;
    line-height: 1;
}

.gd-pdfjs-btn:hover:not(:disabled) {
    background: #475569;
    color: #ffffff;
    border-color: #64748b;
}

.gd-pdfjs-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.gd-pdfjs-page-box {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
}

.gd-pdfjs-page-input {
    width: 44px;
    height: 26px;
    background: #0f172a;
    border: 1px solid #475569;
    color: #ffffff;
    border-radius: 4px;
    padding: 2px 4px;
    text-align: center;
    font-size: 12.5px;
    font-weight: 700;
    box-sizing: border-box;
}

.gd-pdfjs-page-input:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.gd-pdfjs-zoom-badge {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    min-width: 42px;
    text-align: center;
}

.gd-pdfjs-switch-btn {
    background: #0284c7;
    color: #ffffff;
    border: 1px solid #0369a1;
    border-radius: 6px;
    padding: 5px 9px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
    line-height: 1;
}

.gd-pdfjs-switch-btn:hover {
    background: #0369a1;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35);
}

.gd-pdfjs-notice {
    background: #e0f2fe;
    border-bottom: 1px solid #bae6fd;
    color: #0369a1;
    padding: 7px 14px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
    flex-shrink: 0;
}

.gd-pdfjs-notice-text {
    font-weight: 500;
    flex: 1;
}

.gd-pdfjs-notice-close {
    background: transparent;
    border: none;
    color: #0369a1;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1;
}

.gd-pdfjs-notice-close:hover {
    background: #bae6fd;
}

.gd-pdfjs-viewport {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 24px 16px;
    background: #334155;
    position: relative;
    box-sizing: border-box;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.gd-pdfjs-canvas-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    max-width: 100%;
}

.gd-pdfjs-page-wrapper {
    position: relative;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gd-pdfjs-page-wrapper canvas {
    display: block;
    border-radius: 4px;
    background: #ffffff;
    max-width: none;
}

.gd-pdfjs-page-num-pill {
    position: absolute;
    bottom: 8px;
    right: 12px;
    background: rgba(15, 23, 42, 0.75);
    color: #f8fafc;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    pointer-events: none;
    opacity: 0.8;
    backdrop-filter: blur(4px);
    transition: opacity 0.2s ease;
}

.gd-pdfjs-page-wrapper:hover .gd-pdfjs-page-num-pill {
    opacity: 1;
}

.gd-pdfjs-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    color: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 5;
    font-size: 13px;
    font-weight: 600;
}

.gd-pdfjs-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #38bdf8;
    border-radius: 50%;
    animation: gdSpin 0.75s linear infinite;
}

@keyframes gdSpin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .gd-pdfjs-toolbar {
        padding: 6px 10px;
        gap: 6px;
    }
    .gd-pdfjs-btn-text span {
        display: none;
    }
    .gd-pdfjs-switch-btn span {
        display: none;
    }
    .gd-pdfjs-viewport {
        padding: 8px;
    }
}

.gd-pdfjs-error-box {
    background: #1e293b;
    border: 1px solid #ef4444;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.gd-pdfjs-error-title {
    color: #f87171;
    font-size: 16px;
    font-weight: 800;
}

.gd-pdfjs-error-msg {
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.5;
}

.gd-pdfjs-error-actions {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}
