body {
    background: #f5f6f8;
}

.service-detail-hero {
    position: relative;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.hero-mevzuat {
    background-image: url("../../images/yeniekledigimfotolar/sayfasliders/mevzuat-kanun-slider.webp");
    background-position: center 0%;
}

.service-detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(18, 35, 58, 0.52);
}

.service-detail-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

.service-detail-hero-content h1 {
    margin: 0 0 12px;
    font-family: "Poppins", sans-serif;
    font-size: 38px;
    line-height: 1.2;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0;
}

.service-detail-hero-content p {
    margin: 0;
    font-family: "Lato", sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.94);
}

@media (max-width: 991.98px) {
    .service-detail-hero {
        height: 240px;
    }

    .service-detail-hero-content h1 {
        font-size: 46px;
    }
}

@media (max-width: 767.98px) {
    .service-detail-hero {
        height: 200px;
    }

    .service-detail-hero-content h1 {
        font-size: 34px;
    }

    .service-detail-hero-content p {
        font-size: 15px;
        line-height: 1.7;
    }
}

/* ANA TAŞIYICI */
.book-cover-section {
    padding: 90px 0 56px;
    background: transparent;
}

.book-covers {
    display: flex;
    justify-content: center;
    gap: 120px;
    perspective: 1800px;
    perspective-origin: center center;
    flex-wrap: wrap;
}

/* HER KİTAP */
.book-3d {
    position: relative;
    width: 400px;
    height: 500px;
    transform-style: preserve-3d;
    transition: transform 0.45s ease, filter 0.45s ease;
    cursor: pointer;
    margin-top: -47px;
}

.book-3d:hover {
    transform: rotateY(-4deg) rotateX(2deg) translateY(-10px);
}

/* ÖN KAPAK */
.book-front {
    position: absolute;
    inset: 0;
    transform: translateZ(24px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow:
        18px 20px 30px rgba(0, 0, 0, 0.22),
        0 8px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    border-radius: 2px;
}

/* sağ alttaki sayfa altı gölgesi */
.book-front::before {
    content: "";
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 52px;
    height: 18px;
    background: rgba(0, 0, 0, 0.18);
    border-radius: 50%;
    filter: blur(8px);
    transform: rotate(-14deg);
    opacity: 0;
    transition: all 0.35s ease;
    z-index: 5;
    pointer-events: none;
}

.book-front::after {
    content: "";
    position: absolute;
    top: -22%;
    left: -42%;
    width: 30%;
    height: 150%;
    transform: skewX(-22deg);
    background: linear-gradient(
        115deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.10) 28%,
        rgba(255,255,255,0.58) 50%,
        rgba(255,255,255,0.12) 72%,
        rgba(255,255,255,0) 100%
    );
    opacity: 0;
    z-index: 3;
    pointer-events: none;
}




/* hover olunca kitap çok az hareket etsin */
.book-3d:hover .book-front {
    transform: translateZ(24px) rotateZ(-0.3deg);
}

/* KAPAK GÖRSELİ */
.book-cover-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* GÖRSEL ÜSTÜ KATMAN */
.book-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.08) 0%,
        rgba(0, 0, 0, 0.12) 45%,
        rgba(0, 0, 0, 0.22) 100%
    );
    z-index: 2;
}

/* İÇ ÇERÇEVE */
.book-inner-line {
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    pointer-events: none;
    z-index: 3;
}

/* ÜST YAZI */
.top-title {
    color: rgba(255, 255, 255, 0.92);
    font-size: 11px;
    letter-spacing: 1px;
    position: absolute;
    top: 38px;
    font-weight: 600;
    z-index: 4;
    text-align: center;
}

/* ANA BAŞLIK */
.book-front h2 {
    color: #fff;
    font-size: 31px;
    font-weight: 800;
    letter-spacing: 1px;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    position: relative;
    z-index: 4;
    text-align: center;
    padding: 0 22px;
}



/* SAĞ SAYFA KALINLIĞI */
.book-pages {
    position: absolute;
    top: 8px;
    right: 0;
    width: 26px;
    height: calc(100% - 16px);
    transform-origin: right center;
    transform: rotateY(90deg) translateX(16px) translateZ(8px);
    border-radius: 2px 4px 4px 2px;
    background: linear-gradient(
        180deg,
        #fafafa 0%,
        #f1f1f1 52%,
        #f8f8f8 100%
    );
    box-shadow:
        inset 5px 0 8px rgba(0,0,0,0.08),
        inset -2px 0 3px rgba(255,255,255,0.4);
}





/* RESPONSIVE */
@media (max-width: 991px) {
    .book-covers {
        gap: 50px;
    }

    .book-3d {
        width: 235px;
        height: 340px;
    }

    .book-front h2 {
        font-size: 27px;
    }
}

@media (max-width: 576px) {
    .book-cover-section {
        padding: 60px 0 70px;
    }

    .book-covers {
        gap: 35px;
    }

    .book-3d {
        width: 210px;
        height: 305px;
    }

    .book-front h2 {
        font-size: 24px;
    }

    .top-title {
        top: 28px;
        font-size: 10px;
    }
}

.book-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.book-covers-three {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 35px;
    flex-wrap: nowrap;
}

.book-covers-three .book-3d {
    width: 260px;
    height: 370px;
    margin-top: -35px;
}

.book-covers-three .book-link {
    --book-enter-x: 0px;
    --book-enter-y: -150px;
    opacity: 0;
    animation: book-card-reveal 1.05s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.book-covers-three .book-link:nth-child(1) {
    --book-enter-y: -150px;
    animation-delay: 0.08s;
}

.book-covers-three .book-link:nth-child(2) {
    --book-enter-y: 150px;
    animation-delay: 0.2s;
}

.book-covers-three .book-link:nth-child(3) {
    --book-enter-y: -150px;
    animation-delay: 0.32s;
}

.book-covers-three .book-link:nth-child(4) {
    --book-enter-y: -150px;
    animation-delay: 0.44s;
}

.book-covers-three .book-3d {
    width: 320px;
    height: 430px;
    margin-top: -35px;
}

.book-covers-three .book-front h2 {
    font-size: 28px;
    line-height: 1.2;
    padding: 0 18px;
}

.book-dark .book-spine {
    background: linear-gradient(180deg, #24344d 0%, #1c2a40 50%, #162133 100%);
}

.book-link:hover .book-3d {
    transform: rotateY(-4deg) rotateX(2deg) translateY(-10px);
}

.book-link:hover .book-front::after {
    animation: bookCardSheen 0.9s ease-out forwards;
}

.book-link:hover .book-front::before {
    opacity: 0.55;
    width: 60px;
}

.book-link:hover .book-front {
    transform: translateZ(24px) rotateZ(-0.3deg);
}

@keyframes bookCardSheen {
    0% {
        left: -42%;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    100% {
        left: 122%;
        opacity: 0;
    }
}

@keyframes book-card-reveal {
    0% {
        opacity: 0;
        filter: blur(5px);
        transform: translate3d(var(--book-enter-x), var(--book-enter-y), 0) scale(0.96);
    }

    65% {
        opacity: 1;
    }

    100% {
        opacity: 1;
        filter: blur(0);
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@media (max-width: 1199px) {
    .book-covers-three {
        gap: 40px;
    }

    .book-covers-three .book-3d {
        width: 280px;
        height: 390px;
    }

    .book-covers-three .book-front h2 {
        font-size: 24px;
    }
}

@media (max-width: 991.98px) {
    .book-cover-section {
        padding: 56px 0 64px;
    }

    .book-covers-three {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        gap: 24px;
        padding: 0 10px;
    }

    .book-covers-three .book-link {
        width: min(100%, 300px);
        opacity: 1;
        animation: none !important;
        transform: none !important;
        filter: none !important;
    }

    .book-covers-three .book-3d {
        width: 100%;
        height: 360px;
        margin-top: 0;
        transform: none !important;
    }

    .book-covers-three .book-link:hover .book-3d,
    .book-covers-three .book-link:hover .book-front {
        transform: none !important;
    }

    .book-covers-three .book-link:hover .book-front::after {
        animation: none !important;
        opacity: 0;
    }

    .book-covers-three .book-front h2 {
        font-size: 24px;
    }
}
/*liste içeriği*/
@media (prefers-reduced-motion: reduce) {
    .book-covers-three .book-link {
        opacity: 1;
        animation: none;
    }

    .document-list-empty,
    .document-item {
        opacity: 1;
        animation: none;
    }
}

/*genelgeler.html sayfası cssi*/

@keyframes document-list-enter {
    0% {
        opacity: 0;
        transform: translateY(-26px) scale(0.985);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.document-list-section {
    padding: 85px 0 110px;
    background: #f5f6f8;
}


.document-list-wrap {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.document-list-empty {
    padding: 30px 26px;
    background: #ffffff;
    border: 1px solid #dde4ee;
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(17, 34, 61, 0.06);
    text-align: center;
    opacity: 0;
    animation: document-list-enter 1.08s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.document-list-empty h3 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.3;
    color: #12233a;
}

.document-list-empty p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #5f6f84;
}

.document-item {
    display: flex;
    align-items: stretch;
    gap: 22px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid rgba(43, 79, 133, 0.26);
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(17, 34, 61, 0.06), 0 0 0 1px rgba(90, 168, 255, 0.12);
    opacity: 0;
    animation: document-list-enter 1.08s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    animation-delay: var(--list-enter-delay, 0s);
    will-change: transform, opacity;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.document-item:hover {
    transform: translateY(-5px);
    border-color: rgba(19, 98, 171, 0.46);
    box-shadow: 0 18px 36px rgba(17, 34, 61, 0.10), 0 0 0 1px rgba(90, 168, 255, 0.22);
}

.document-item-left {
    width: 150px;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    padding-right: 8px;
    border-right: 1px solid #e7edf4;
}

.document-item-date {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.doc-date-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: #7b8ba1;
}

.document-item-date strong {
    font-size: 15px;
    line-height: 1.3;
    color: #12233a;
    font-weight: 700;
}

.document-review-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 18px;
    border-radius: 10px;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(135deg, #12233a 0%, #1a3150 55%, #24446f 100%);
    border: 1px solid rgba(96, 162, 240, 0.34);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(18, 35, 58, 0.22);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.document-review-btn::before {
    content: "";
    position: absolute;
    inset: -35% auto -35% -42%;
    width: 38%;
    background: linear-gradient(
        115deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.12) 30%,
        rgba(255, 255, 255, 0.72) 50%,
        rgba(255, 255, 255, 0.14) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-24deg);
    animation: document-button-sheen 2.8s ease-in-out infinite;
    pointer-events: none;
}

.document-review-btn:hover {
    background: linear-gradient(135deg, #163154 0%, #2b4f85 60%, #3d6da8 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(19, 98, 171, 0.28);
}

@keyframes document-button-sheen {
    0% {
        left: -42%;
        opacity: 0;
    }

    12% {
        opacity: 0.95;
    }

    46% {
        left: 112%;
        opacity: 0;
    }

    100% {
        left: 112%;
        opacity: 0;
    }
}

.document-item-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.document-item-body h3 {
    margin: 0;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 700;
    color: #12233a;
    letter-spacing: -0.2px;
}

@media (max-width: 991.98px) {
    .document-list-top h2 {
        font-size: 36px;
    }

    .document-item {
        flex-direction: column;
        gap: 22px;
    }

    .document-item-left {
        width: 100%;
        min-width: 100%;
        border-right: none;
        border-bottom: 1px solid #e7edf4;
        padding-right: 0;
        padding-bottom: 20px;
    }

    .document-item-date strong {
        font-size: 15px;
    }

    .document-item-body h3 {
        font-size: 20px;
    }
}

@media (max-width: 767.98px) {
    .document-list-section {
        padding: 65px 0 80px;
    }

    .document-list-top {
        margin-bottom: 38px;
    }

    .document-list-top h2 {
        font-size: 30px;
    }

    .document-list-top p {
        font-size: 15px;
        line-height: 1.7;
    }

    .document-item {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .document-item-body h3 {
        font-size: 18px;
    }

    .document-review-btn {
        width: 100%;
    }
}

.hero-document-detail {
    height: 320px;
}

.hero-document-detail .service-detail-hero-content {
    max-width: 980px;
}

.hero-document-detail .service-detail-hero-content h1 {
    margin: 0;
    font-size: 26px;
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: -0.15px;
}

.document-breadcrumb {
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255,255,255,0.82);
    word-break: break-word;
}

.document-breadcrumb a {
    color: rgba(255,255,255,0.88);
    text-decoration: none;
}

.document-breadcrumb a:hover {
    color: #fff;
}

.document-breadcrumb span {
    margin: 0 7px;
    opacity: 0.7;
}

.document-breadcrumb strong {
    color: #fff;
    font-weight: 700;
}

.document-detail-section {
    padding: 80px 0 110px;
    background: #f5f6f8;
}

.document-meta-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}

.document-meta-item {
    background: #fff;
    border: 1px solid #dfe6ef;
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: 0 10px 24px rgba(17, 34, 61, 0.045);
}

.document-meta-item span {
    display: block;
    margin-bottom: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #7b8ba1;
}

.document-meta-item strong {
    font-size: 15px;
    line-height: 1.35;
    color: #12233a;
    font-weight: 700;
}

.document-viewer-wrap {
    background: #fff;
    border: 1px solid #dfe6ef;
    border-radius: 26px;
    padding: 28px;
    box-shadow: 0 16px 36px rgba(17, 34, 61, 0.08);
}

.document-viewer-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin-bottom: 12px;
}

.document-open-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 10px;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(135deg, #12233a 0%, #1a3150 55%, #24446f 100%);
    border: 1px solid rgba(96, 162, 240, 0.34);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(18, 35, 58, 0.22);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.document-open-btn::before {
    content: "";
    position: absolute;
    inset: -35% auto -35% -42%;
    width: 38%;
    background: linear-gradient(
        115deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.12) 30%,
        rgba(255, 255, 255, 0.72) 50%,
        rgba(255, 255, 255, 0.14) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-24deg);
    animation: document-button-sheen 2.8s ease-in-out infinite;
    pointer-events: none;
}

.document-open-btn:hover {
    background: linear-gradient(135deg, #163154 0%, #2b4f85 60%, #3d6da8 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(19, 98, 171, 0.28);
}

.fullscreen-close-btn {
    display: none;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 10px;
    background: #12233a;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fullscreen-close-btn:hover {
    background: #2b4f85;
    transform: translateY(-2px);
}

.document-pdf-frame {
    width: 100%;
    height: 980px;
    border-radius: 18px;
    overflow: hidden;
    background: #e9edf3;
    border: 1px solid #e4eaf2;
}

.document-pdf-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: #fff;
}

.document-navigation-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 42px;
}

.document-nav-card {
    display: block;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #dfe6ef;
    border-radius: 16px;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(17, 34, 61, 0.05);
    transition: all 0.3s ease;
}

.document-nav-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(17, 34, 61, 0.08);
}

.document-nav-label {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #2b4f85;
}

.document-nav-card h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.4;
    color: #12233a;
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .hero-document-detail {
        height: 290px;
    }

    .hero-document-detail .service-detail-hero-content h1 {
        font-size: 23px;
    }

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

    .document-viewer-top {
        justify-content: flex-end;
    }

    .document-pdf-frame {
        height: 780px;
    }

    .document-navigation-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .document-detail-section {
        padding: 60px 0 80px;
    }

    .hero-document-detail {
        height: 260px;
    }

    .hero-document-detail .service-detail-hero-content h1 {
        font-size: 20px;
        line-height: 1.35;
    }

    .document-meta-item {
        padding: 13px 16px;
        border-radius: 14px;
    }

    .document-meta-item strong {
        font-size: 15px;
    }

    .document-viewer-wrap {
        padding: 18px;
        border-radius: 18px;
    }

    .document-pdf-frame {
        height: 560px;
        border-radius: 14px;
    }

    .document-nav-card {
        padding: 20px;
        border-radius: 16px;
    }

    .document-nav-card h3 {
        font-size: 18px;
    }

    .document-open-btn {
        width: 100%;
    }
}

.document-flipbook-section {
    position: relative;
    background: #fff;
    border: 1px solid #dfe6ef;
    border-radius: 26px;
    padding: 22px;
    box-shadow: 0 16px 36px rgba(17, 34, 61, 0.08);
}

.flipbook-shell {
    position: relative;
    margin-top: 12px;
    background: transparent;
    border: 0;
    border-radius: 20px;
    padding: 14px 26px 10px;
    overflow: hidden;
}

.flipbook-stage {
    position: relative;
    min-height: 820px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1800px;
    background: transparent;
    isolation: isolate;
}

.flipbook-stage::before {
    content: "Fides";
    position: absolute;
    left: 50%;
    top: 46%;
    transform: translate(-50%, -50%);
    font-size: clamp(150px, 17vw, 280px);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.08em;
    color: rgba(39, 57, 82, 0.03);
    -webkit-text-stroke: 1.6px rgba(39, 57, 82, 0.18);
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
}

.flipbook-stage::after {
    content: "Mühendislik";
    position: absolute;
    left: 50%;
    top: 56%;
    transform: translate(-50%, -50%);
    font-size: clamp(24px, 3.2vw, 46px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.03em;
    color: rgba(39, 57, 82, 0.18);
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
}

.flipbook-stage.is-pannable {
    cursor: grab;
    touch-action: none;
}

.flipbook-stage::after {
    content: "M\00FChendislik";
    top: 57%;
    font-size: clamp(34px, 4.8vw, 68px);
    font-weight: 600;
    color: rgba(39, 57, 82, 0.14);
}

.flipbook-stage::before {
    content: "F";
    left: 18%;
    top: 50%;
    transform: translateY(-50%);
    font-size: clamp(180px, 20vw, 340px);
}

.flipbook-stage::after {
    content: "S";
    left: auto;
    right: 18%;
    top: 50%;
    transform: translateY(-50%);
    font-size: clamp(180px, 20vw, 340px);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.08em;
    color: rgba(39, 57, 82, 0.03);
    -webkit-text-stroke: 1.6px rgba(39, 57, 82, 0.18);
}

.flipbook-stage.is-panning {
    cursor: grabbing;
    user-select: none;
}

.flipbook-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #6c7b8e;
    z-index: 2;
}

.flipbook-app {
    width: 100%;
    max-width: 1360px;
    height: 820px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.flip-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(96, 162, 240, 0.34);
    border-radius: 50%;
    background: linear-gradient(135deg, #12233a 0%, #1a3150 55%, #24446f 100%);
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 10px 22px rgba(18, 35, 58, 0.22);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.flip-nav::before {
    content: "";
    position: absolute;
    inset: -35% auto -35% -42%;
    width: 38%;
    background: linear-gradient(
        115deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.12) 30%,
        rgba(255, 255, 255, 0.72) 50%,
        rgba(255, 255, 255, 0.14) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-24deg);
    animation: document-button-sheen 2.8s ease-in-out infinite;
    pointer-events: none;
}

.flip-nav:hover {
    background: linear-gradient(135deg, #163154 0%, #2b4f85 60%, #3d6da8 100%);
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 14px 28px rgba(19, 98, 171, 0.28);
}

.flip-nav.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) scale(0.9);
}

.flip-prev {
    left: 12px;
}

.flip-next {
    right: 12px;
}

.flipbook-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(210, 219, 231, 0.95);
    border-radius: 18px;
    box-shadow: 0 14px 32px rgba(17, 34, 61, 0.16);
    backdrop-filter: blur(10px);
    z-index: 12;
}

.flipbook-tool-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d4dce6;
    border-radius: 12px;
    background: #fff;
    color: #12233a;
    font-size: 23px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: all 0.25s ease;
}

.flipbook-tool-btn:hover,
.flipbook-tool-btn[aria-expanded="true"],
.flipbook-tool-btn.is-active {
    background: #12233a;
    border-color: #12233a;
    color: #fff;
}

.annotation-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-left: 10px;
    margin-left: 2px;
    border-left: 1px solid #d4dce6;
}

.annotation-tool-btn {
    font-size: 18px;
}

.annotation-tool-btn i {
    line-height: 1;
    pointer-events: none;
}

.annotation-marker-icon {
    position: relative;
    display: block;
    width: 22px;
    height: 11px;
    border-radius: 4px 6px 6px 4px;
    background: #f4c430;
    transform: rotate(-28deg);
    box-shadow:
        inset -4px 0 0 rgba(18, 35, 58, 0.22),
        0 1px 0 rgba(255, 255, 255, 0.45);
    pointer-events: none;
}

.annotation-marker-icon::before {
    content: "";
    position: absolute;
    left: -5px;
    top: 2px;
    width: 8px;
    height: 7px;
    border-radius: 2px 0 0 2px;
    background: #12233a;
    clip-path: polygon(0 50%, 100% 0, 100% 100%);
}

.annotation-marker-icon::after {
    content: "";
    position: absolute;
    right: -4px;
    top: 2px;
    width: 5px;
    height: 7px;
    border-radius: 1px;
    background: rgba(18, 35, 58, 0.42);
}

.annotation-tool-btn.is-active .annotation-marker-icon {
    background: #ffe066;
    box-shadow:
        inset -4px 0 0 rgba(255, 255, 255, 0.22),
        0 0 12px rgba(255, 224, 102, 0.55);
}

.annotation-tool-btn.is-active .annotation-marker-icon::before,
.annotation-tool-btn.is-active .annotation-marker-icon::after {
    background: #ffffff;
}

.annotation-color-input {
    width: 42px;
    height: 42px;
    padding: 4px;
    border: 1px solid #d4dce6;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}

.annotation-size-input {
    width: 84px;
    accent-color: #12233a;
    cursor: pointer;
}

.flipbook-tool-btn-menu {
    font-size: 28px;
    font-weight: 800;
}

.flipbook-tool-menu-wrap {
    position: relative;
}

.flipbook-dropdown {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    min-width: 220px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #d9e1eb;
    border-radius: 18px;
    box-shadow: 0 18px 38px rgba(17, 34, 61, 0.18);
}

.flipbook-dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 14px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: #33465f;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.flipbook-dropdown-item:hover {
    background: #eef3f9;
    color: #12233a;
}

.flipbook-bottom-bar {
    margin-top: 10px;
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
}

.flipbook-page-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #5f6f84;
    font-size: 15px;
    font-weight: 700;
}

.flipbook-page-info strong {
    color: #12233a;
    font-size: 17px;
}

.document-flipbook-section:fullscreen {
    box-sizing: border-box;
    width: 100vw;
    height: 100vh;
    padding: 18px 18px 14px;
    background: #f3f6fb;
    overflow: hidden;
}

.flipbook-bottom-bar .flipbook-toolbar {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.document-flipbook-section:fullscreen .document-viewer-top {
    position: relative;
    z-index: 20;
    align-items: center;
    margin-bottom: 12px;
}

.document-flipbook-section:fullscreen .document-open-btn {
    display: none;
}

.document-flipbook-section:fullscreen .fullscreen-close-btn {
    display: inline-flex;
}

.document-flipbook-section:fullscreen .flipbook-shell {
    margin-top: 0;
    height: calc(100vh - 108px);
}

.document-flipbook-section:fullscreen .flipbook-stage,
.document-flipbook-section:fullscreen .flipbook-app {
    min-height: calc(100vh - 190px);
    height: calc(100vh - 190px);
}

.document-flipbook-section:fullscreen .flipbook-bottom-bar {
    margin-top: 8px;
}

@media (max-width: 991.98px) {
    .flipbook-shell {
        padding: 10px 18px 8px;
    }

    .flipbook-stage {
        min-height: 700px;
    }

    .flipbook-app {
        height: 700px;
    }
}

@media (max-width: 767.98px) {
    .document-flipbook-section {
        padding: 12px;
        border-radius: 18px;
    }

    .flipbook-shell {
        padding: 6px 28px 6px;
        border-radius: 18px;
    }

    .flipbook-stage {
        min-height: 520px;
    }

    .flipbook-app {
        height: 520px;
    }

    .flipbook-stage::before,
    .flipbook-stage::after {
        display: none;
        content: none;
    }

    .flip-nav {
        width: 42px;
        height: 42px;
        font-size: 28px;
    }

    .flipbook-bottom-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .flipbook-toolbar {
        max-width: calc(100vw - 48px);
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 8px 10px;
    }

    .flipbook-bottom-bar .flipbook-toolbar {
        position: static;
        left: auto;
        transform: none;
        align-self: center;
    }

    .flipbook-tool-btn {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .annotation-toolbar {
        flex-wrap: wrap;
        justify-content: center;
        gap: 7px;
        width: 100%;
        padding-left: 0;
        margin-left: 0;
        padding-top: 8px;
        border-left: 0;
        border-top: 1px solid #d4dce6;
    }

    .annotation-color-input {
        width: 38px;
        height: 38px;
    }

    .annotation-size-input {
        width: min(120px, calc(100vw - 310px));
        min-width: 74px;
    }

    .flipbook-dropdown {
        min-width: 200px;
    }
}

@media (max-width: 575.98px) {
    .flipbook-shell {
        padding: 6px 18px;
    }

    .flipbook-toolbar {
        max-width: calc(100vw - 32px);
        gap: 6px;
        padding: 7px 8px;
        border-radius: 16px;
    }

    .flipbook-tool-btn,
    .annotation-color-input {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .flipbook-tool-btn {
        font-size: 18px;
    }

    .annotation-tool-btn {
        font-size: 16px;
    }

    .annotation-marker-icon {
        width: 20px;
        height: 10px;
    }

    .annotation-size-input {
        width: 88px;
        min-width: 88px;
    }
}

.flipbook-page {
    background: #fff;
    border: 1px solid #e6ebf2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(17, 34, 61, 0.10);
}

.flipbook-page canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    background: #fff;
}

.flipbook-page {
    position: relative;
}

.flipbook-page .annotation-canvas {
    position: absolute;
    inset: 0;
    z-index: 4;
    background: transparent;
    pointer-events: none;
    touch-action: none;
}

.document-flipbook-section.is-annotation-mode .flipbook-page .annotation-canvas {
    pointer-events: auto;
    cursor: crosshair;
}

.document-flipbook-section.is-annotation-mode .flipbook-stage {
    cursor: crosshair;
}

.flipbook-page.is-ghost-page {
    background: transparent;
    box-shadow: none;
    pointer-events: none;
    opacity: 0 !important;
    visibility: hidden;
    border: 0 !important;
}

.stf__parent {
    margin: 0 auto;
}

.stf__wrapper {
    transition: transform 0.35s ease;
    will-change: transform;
}

.flipbook-stage.is-panning .stf__wrapper {
    transition: none;
}

.stf__block {
    box-shadow: none !important;
}

@media (max-width: 767.98px) {
    .document-list-empty {
        padding: 24px 18px;
        border-radius: 18px;
    }

    .document-list-empty h3 {
        font-size: 20px;
    }

    .document-list-empty p {
        font-size: 15px;
    }
}
