@font-face {
    font-family: "AuthorsEstedad";
    src: url("../fonts/Estedad-Medium.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

html,
body.authors-sample-viewer-body,
body.authors-sample-viewer-body * {
    box-sizing: border-box !important;
    font-family: "AuthorsEstedad", "Estedad", Tahoma, Arial, sans-serif !important;
}

body.authors-sample-viewer-body {
    margin: 0 !important;
    padding: 0 !important;
    direction: rtl !important;
    background: #111827 !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
}

body.authors-sample-viewer-body[data-authors-is-admin="1"] {
    -webkit-user-select: auto !important;
    user-select: auto !important;
}

.authors-sample-viewer-page {
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    background: #111827 !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
}

/* Top Bar */

.authors-sample-topbar {
    width: 100% !important;
    min-height: 74px !important;
    flex: 0 0 74px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
    padding: 12px 22px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e5e7eb !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12) !important;
    z-index: 20 !important;
}

.authors-sample-topbar-title {
    min-width: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.authors-sample-back-icon {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 14px !important;
    background: #f3f4f6 !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.authors-sample-back-icon:hover {
    background: #e5e7eb !important;
}

.authors-sample-back-icon img {
    width: 22px !important;
    height: 22px !important;
    display: block !important;
    pointer-events: none !important;
}

.authors-sample-topbar-title strong {
    display: block !important;
    max-width: 58vw !important;
    color: #111827 !important;
    font-size: 17px !important;
    font-weight: 900 !important;
    line-height: 1.8 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.authors-sample-topbar-action {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
}

.authors-sample-buy-btn {
    min-height: 46px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 18px !important;
    border-radius: 14px !important;
    background: #111827 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1.8 !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}

.authors-sample-buy-btn:hover {
    background: #000000 !important;
    color: #ffffff !important;
}

/* Progress */

.authors-sample-progress-wrap {
    width: 100% !important;
    height: 9px !important;
    flex: 0 0 9px !important;
    background: #e5e7eb !important;
    z-index: 19 !important;
}

.authors-sample-progress {
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    overflow: hidden !important;
    background: #e5e7eb !important;
}

.authors-sample-progress span {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    height: 100% !important;
    display: block !important;
    background: #111827 !important;
    transition: width 0.25s ease !important;
}

/* Content */

.authors-sample-content {
    position: relative !important;
    width: 100% !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #d1d5db !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
}

.authors-sample-page-scroll {
    width: 100% !important;
    height: 100% !important;
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
    background: #d1d5db !important;
    padding: 22px 22px 96px 22px !important;
    text-align: center !important;
}

.authors-sample-canvas {
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
    background: #ffffff !important;
    box-shadow: 0 18px 45px rgba(17, 24, 39, 0.22) !important;
    border-radius: 8px !important;
    -webkit-user-select: none !important;
    user-select: none !important;
}

.authors-sample-error {
    width: calc(100% - 44px) !important;
    max-width: 720px !important;
    margin: 44px auto !important;
    padding: 24px !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    color: #111827 !important;
    text-align: center !important;
    box-shadow: 0 18px 45px rgba(17, 24, 39, 0.18) !important;
}

.authors-sample-error strong {
    display: block !important;
    margin-bottom: 10px !important;
    font-size: 17px !important;
    font-weight: 900 !important;
    color: #111827 !important;
}

.authors-sample-error p {
    margin: 0 !important;
    color: #4b5563 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 2 !important;
}

/* Initial Loading */

.authors-sample-loader {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;
    width: 100vw !important;
    height: 100vh !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(17, 24, 39, 0.76) !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    line-height: 1.8 !important;
    text-align: center !important;
    pointer-events: none !important;
}

.authors-sample-loader::before {
    content: "" !important;
    width: 34px !important;
    height: 34px !important;
    margin-left: 12px !important;
    border-radius: 50% !important;
    border: 3px solid rgba(255, 255, 255, 0.28) !important;
    border-top-color: #ffffff !important;
    animation: authorsSampleSpin 0.8s linear infinite !important;
}

.authors-sample-loader.is-visible {
    display: flex !important;
}

@keyframes authorsSampleSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Bottom Controls */

.authors-sample-bottom-toolbar {
    position: fixed !important;
    left: 22px !important;
    bottom: 28px !important;
    z-index: 60 !important;
    width: auto !important;
    min-height: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    pointer-events: none !important;
}

.authors-sample-bottom-controls {
    min-height: 52px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    padding: 7px !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(229, 231, 235, 0.95) !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: blur(12px) !important;
    pointer-events: auto !important;
    direction: rtl !important;
}

.authors-pdf-nav-btn {
    min-height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 14px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 13px !important;
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1.8 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.authors-pdf-nav-btn:hover:not(:disabled) {
    background: #f3f4f6 !important;
    color: #111827 !important;
}

.authors-pdf-nav-btn:disabled,
.authors-pdf-nav-btn.is-disabled {
    opacity: 0.42 !important;
    cursor: not-allowed !important;
    background: #f9fafb !important;
    color: #9ca3af !important;
}

.authors-sample-page-status {
    min-width: 78px !important;
    min-height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 14px !important;
    border-radius: 999px !important;
    background: #111827 !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1.8 !important;
    direction: ltr !important;
}

/* Toast */

.authors-sample-toast {
    position: fixed !important;
    right: 24px !important;
    bottom: 24px !important;
    z-index: 1000000 !important;
    max-width: calc(100vw - 48px) !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 16px !important;
    border-radius: 14px !important;
    background: #111827 !important;
    color: #ffffff !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24) !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1.8 !important;
    opacity: 0 !important;
    transform: translateY(8px) !important;
    pointer-events: none !important;
    transition: all 0.22s ease !important;
}

.authors-sample-toast.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Responsive */

@media (max-width: 768px) {
    .authors-sample-topbar {
        min-height: 118px !important;
        flex: 0 0 118px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: center !important;
        padding: 12px 14px !important;
        gap: 10px !important;
    }

    .authors-sample-topbar-title {
        width: 100% !important;
    }

    .authors-sample-topbar-title strong {
        max-width: calc(100vw - 86px) !important;
        font-size: 15px !important;
    }

    .authors-sample-buy-btn {
        width: 100% !important;
        min-height: 44px !important;
        font-size: 13px !important;
    }

    .authors-sample-page-scroll {
        padding: 12px 12px 94px 12px !important;
    }

    .authors-sample-bottom-toolbar {
        left: 10px !important;
        right: 10px !important;
        bottom: 14px !important;
        width: auto !important;
    }

    .authors-sample-bottom-controls {
        width: 100% !important;
        justify-content: space-between !important;
        border-radius: 16px !important;
    }

    .authors-pdf-nav-btn {
        flex: 1 1 0 !important;
        padding: 8px 9px !important;
        font-size: 12px !important;
    }

    .authors-sample-page-status {
        min-width: 64px !important;
        padding: 8px 10px !important;
        font-size: 13px !important;
    }

    .authors-sample-loader {
        font-size: 14px !important;
    }

    .authors-sample-toast {
        right: 12px !important;
        bottom: 86px !important;
        max-width: calc(100vw - 24px) !important;
    }
}