@import url(https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap);

html,
body {
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    background: #e5e5e5;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.5s, color 0.5s
}

*::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

*::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.126);
    border-radius: 10px;
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.8), rgba(168, 85, 247, 0.8));
    /* indigo → violet */
    border-radius: 10px;
    backdrop-filter: blur(4px);
}

*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.9), rgba(79, 70, 229, 0.9));
}
#loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.8s ease-out
}

#loader-overlay.hidden {
    opacity: 0;
    pointer-events: none
}

#container-wrapper {
    display: flex;
    align-items: center;
    justify-content: center
}

:root {
    --color-primary: #149546;
    --color-primary-hover: #2563EB;
    --color-bg: #F8F7F4;
    --color-text-dark: #1a1a1a;
    --color-text-medium: #4B5563;
    --color-text-light: #6B7280;
    --color-white: #ffffff;
    --color-border: #E5E7EB;
    --color-header-bg: rgba(255, 255, 255, 0.8);
    --color-logo-dark: #1F2937
}

body.dark-mode {
    --color-primary: #25b95f;
    --color-primary-hover: #3B82F6;
    --color-bg: #1A202C;
    --color-text-dark: #E2E8F0;
    --color-text-medium: #A0AEC0;
    --color-text-light: #718096;
    --color-white: #1A202C;
    --color-border: #2D3748;
    --color-header-bg: rgba(26, 32, 44, 0.8);
    --color-logo-dark: #E2E8F0
}


:root {
    --bg-color: rgba(243, 243, 243, 0.8);
    --bg-hover-color: #e9e9e9;
    --text-color: #202020;
    --border-color: #e1e1e1;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --separator-color: #dcdcdc;
    --shortcut-color: #6a6a6a;
}

body.dark-mode {
    --bg-color: rgba(40, 40, 40, 0.75);
    --bg-hover-color: rgba(255, 255, 255, 0.1);
    --text-color: #e0e0e0;
    --border-color: rgba(255, 255, 255, 0.15);
    --shadow-color: rgba(0, 0, 0, 0.4);
    --separator-color: rgba(255, 255, 255, 0.15);
    --shortcut-color: #a0a0a0;
}

.theme-toggle-btn {
    background-color: #fff0;
    border: 1px solid var(--color-border);
    color: var(--color-text-medium);
    padding: .5rem;
    border-radius: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    line-height: 1
}

.theme-toggle-btn:hover {
    background-color: var(--color-border);
    color: var(--color-text-dark);
    transform: translateY(-2px)
}

.theme-toggle-btn i {
    width: 1.25rem;
    height: 1.25rem;
    transition: color 0.3s ease
}
.notify-dot {
    width: 10px;
    height: 10px;
    background: red;
    position: absolute;
    border-radius: 50%;
    top: 5px;
    right: 8px;
    border: 1px solid white;
}

/* --- Notification Box (The Dropdown) --- */
.notification-box {
    position: absolute;
    top: 130%;
    left: -100px; /* Adjusted based on your layout */
    width: 430px;
    max-width: 90vw;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 40px -5px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.8);
    transform-origin: top left;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Animation State: OPEN --- */
.notification-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Glass Header */
.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.notif-header h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: #1e293b;
}

.mark-read-text {
    background: none;
    border: none;
    color: #149585;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

/* List Area */
.notif-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 0;
    -webkit-overflow-scrolling: touch; 
    overscroll-behavior: contain;
    transform: translateZ(0);
}


/* Individual Item */
.notif-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid #ededed;
    transition: background 0.1s;
    position: relative;
    cursor: pointer;
}

.notif-item:hover {
    background: #f0f8ff;
}

.notif-item.unread {
    background: rgb(125 255 240 / 13%);
}

/* Icons */
.notif-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-icon-box i {
    width: 20px;
    height: 20px;
}

/* Icon Colors */
.bg-teal { background: #e0f2f1; color: #149585; }
.bg-blue { background: #e0f2fe; color: #0ea5e9; }
.bg-purple { background: #f3e8ff; color: #a855f7; }

/* Content */
.notif-content p {
    margin: 0 0 4px;
    font-size: 0.8rem;
    color: #334155;
    line-height: 1.4;
}
body.dark-mode .notif-content strong{
    color: white;
}

.notif-time {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* Footer */
.notif-footer {
    padding: 12px;
    text-align: center;
    border-top: 1px solid #f1f5f9;
}

.notif-footer a {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
}

.notif-footer a:hover {
    color: #149585;
}

/* --- Dark Mode Support --- */
body.dark-mode .notif-btn {
    color: #cbd5e0;
}
body.dark-mode .notif-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
body.dark-mode .notif-badge {
    border-color: #0f172a; /* Match dark header bg */
}

body.dark-mode .notification-box {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 10px 40px -5px rgba(0, 0, 0, 0.5);
}

body.dark-mode .notif-header {
    border-bottom-color: #334155;
}

body.dark-mode .notif-header h3 {
    color: #f1f5f9;
}

body.dark-mode .notif-item {
    border-bottom-color: #334155;
}

body.dark-mode .notif-item:hover {
    background: #0f172a;
}

body.dark-mode .notif-item.unread {
    background: rgba(20, 149, 133, 0.1);
}

body.dark-mode .notif-content p {
    color: #cbd5e0;
}

body.dark-mode .notif-time {
    color: #94a3b8;
}

body.dark-mode .notif-footer {
    border-top-color: #334155;
}

/* Dark mode icons */
body.dark-mode .bg-teal { background: rgba(20, 149, 133, 0.2); }
body.dark-mode .bg-blue { background: rgba(14, 165, 233, 0.2); }
body.dark-mode .bg-purple { background: rgba(168, 85, 247, 0.2); }



/* --- DROPDOWN CONTAINER --- */
.dropdown {
    position: relative;
    display: inline-block;

}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Default: light theme */
.logo-dark {
    display: none;
}

/* Dark mode */
body.dark-mode .logo-light {
    display: none;
}

body.dark-mode .logo-dark {
    display: inline-block;
}


.btn {
    padding: 10px 18px;
    border-radius: 6px;
    background-color: #149546;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

/* --- DROPDOWN MENU STYLES --- */
.dropdown-menu {
    list-style: none;
    padding: 6px;
    margin: 0;
    position: absolute;
    top: 110%;
    left: -25px;
    min-width: 240px;
    z-index: 99999;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 8px 20px var(--shadow-color);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.dropdown-menu:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--text-color);
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#dropdown-button {
    display: flex;
    justify-content: center;
    align-items: center;
}

.dropdown-item:hover {
    background-color: var(--bg-hover-color);
}

.dropdown-item i {
    font-size: 18px;
}

.separator {
    height: 1px;
    background-color: var(--separator-color);
    margin: 6px 0;
}

a {
    text-decoration: none;
    color: inherit
}

ul {
    list-style: none
}

.co-container {
    width: 91%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem
}

.co-header {
    position: absolute;
    top: 0;
    width: 100vw;
    background-color: var(--color-header-bg);
    backdrop-filter: blur(10px);
    z-index: 50;
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.3s ease, border-color 0.3s ease
}

.co-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 5px;
    padding-bottom: 5px
}

.co-logo {
    display: flex;
    align-items: center;
    gap: .5rem
}

.co-logo span {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-logo-dark);
    transition: color 0.3s ease
}

.co-logo i {
    color: var(--color-primary);
    transition: color 0.3s ease
}

.co-desktop-nav {
    display: none;
    align-items: center;
    gap: 2rem
}

.co-desktop-nav a {
    color: var(--color-text-light);
    transition: color 0.3s ease
}

.co-desktop-nav a:hover {
    color: var(--color-primary)
}

.co-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem
}

.co-header-actions .co-login-btn {
    display: none;
    color: var(--color-text-light);
    font-weight: 500;
    transition: color 0.3s ease
}

.co-header-actions .co-login-btn:hover {
    color: var(--color-primary)
}

.co-theme-toggle-btn {
    background-color: #fff0;
    border: 1px solid var(--color-border);
    color: var(--color-text-medium);
    padding: .5rem;
    border-radius: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    line-height: 1
}

.co-theme-toggle-btn:hover {
    background-color: var(--color-border);
    color: var(--color-text-dark);
    transform: translateY(-2px)
}

.co-theme-toggle-btn i {
    width: 1.25rem;
    height: 1.25rem;
    transition: color 0.3s ease
}

.co-btn {
    display: inline-block;
    font-weight: 600;
    border-radius: .5rem;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer
}

.co-primary-btn {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / .05)
}

.co-primary-btn:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px)
}

.co-header-actions .co-primary-btn {
    padding: .625rem 1.25rem
}

.co-theme-toggle-btn i {
    transform-origin: center center;
    transition: transform 0.4s ease-out
}

.co-theme-toggle-btn.toggled i {
    transform: rotate(360deg)
}

@media (min-width:640px) {
    .co-header-actions .co-login-btn {
        display: inline
    }
}

@media (min-width:768px) {
    .co-desktop-nav {
        display: flex
    }
}

.dot {
    background-color: #00ff37;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: absolute;
    right: -9px;
    bottom: -4px;
    display: none;
}

.bookinfocover {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    gap: 0px;
    bottom:4%;
    background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(140, 11, 144, 0.51));
    width: 88%;
    left: 7%;
}

#spine-illusion {
    position: absolute;
    top: 2%;
    left: 50%;
    width: 20px;
    height: 98%;
    transform: translateX(-50%);
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to right, #fff0 0%, rgb(0 0 0 / .2) 50%, #fff0 100%) !important;
    mask-image: linear-gradient(to bottom, #fff0 0%, rgb(0 0 0 / .2) 5%, rgb(0 0 0 / .4) 10%, rgb(0 0 0 / .6) 20%, rgb(0 0 0 / .8) 30%, rgb(0 0 0 / .8) 70%, rgb(0 0 0 / .6) 80%, rgb(0 0 0 / .4) 90%, rgb(0 0 0 / .2) 95%, #fff0 100%) !important;
    -webkit-mask-image: linear-gradient(to bottom, #fff0 0%, rgb(0 0 0 / .2) 5%, rgb(0 0 0 / .4) 10%, rgb(0 0 0 / .6) 20%, rgb(0 0 0 / .8) 30%, rgb(0 0 0 / .8) 70%, rgb(0 0 0 / .6) 80%, rgb(0 0 0 / .4) 90%, rgb(0 0 0 / .2) 95%, #fff0 100%) !important;
    border-radius: 20px;
    transition: background 0.5s
}

#container {
    position: relative;
    width: 900px;
    height: 600px;
    border-radius: 20px;
    padding-left: 20px;
    padding-top: 20px;
    margin-top: 50px;
    z-index: 1;
    background: #fff0;
    border: 1px solid rgb(0 0 0 / .1);
    background: rgb(81 81 81 / 6%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px)
}

.flipbook {
    width: 880px;
    height: 580px;
    position: relative;
    z-index: 1
}

.flipbook .page {
    width: 440px;
    height: 580px;
    overflow: hidden;
    align-items: center;
    font-size: .82rem;
    box-sizing: border-box;
    border-radius: 20px;
    transition: background 0.5s, color 0.5s;
    border: 1px solid rgb(0 0 0 / .1);
    box-shadow: none !important;
    background-color: #fffaed;
}

.fullscreen .flipbook .page {
    font-size: 1.2rem;
    width: 650px;
    height: 800px
}

.page {
    border: 1px solid #858585 !important;
}

.pagestyle {
    padding: 20px
}

.media {
    width: 100%;
    margin: 0
}

.pagestyle a {
    color: #4881ff;
    text-decoration: none
}

.pagestyle a:hover {
    color: #144cc4
}

.pagestyle iframe {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    margin: 1.5rem auto;
    border: none;
    border-radius: .5rem
}

.page-wrapper code {
    display: inline;
    padding: .2rem .4rem;
    border-radius: .5rem;
    font-family: "Fira Code", monospace;
    font-size: .9rem
}

.page-wrapper pre code {
    border-radius: .5rem;
    color: #e0e0e0;
}

.page-wrapper blockquote {
    border-left: 6px solid #2563eb;
    margin: 1.2rem 0;
    font-style: italic;
    color: #4a5568;
    background: #f7fafc;
    border-radius: .5rem;
    height: 40px;
    align-items: center;
    display: flex;
    padding: 0 10px
}

.pagestyle img {
    height: auto;
    display: block;
    margin-left: -40px;
    width: 125%
}

.page-number {
    text-align: center;
    font-size: .65rem;
    font-weight: 700;
    color: #2a2a2a;
    padding-top: 2px;
    border-top: 1px dashed #9d9d9d;
    position: absolute;
    bottom: 2px;
    left: 48%
}

body.dark-mode .page-number {
    color: #fff
}

.flipbook .page.cover {
    background: linear-gradient(135deg, #3a3a3a, #1f1f1f);
    color: #fff;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    letter-spacing: 1px;
    border-radius: 20px;
    box-shadow: none !important
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: fill;
    border-radius: 20px
}

.page-wrapper {
    border-radius: 20px;
    filter: drop-shadow(2px 4px 8px rgba(15, 15, 15, 0.607))
}

.fullscreen-button {
    position: absolute;
    top: 80px;
    right: 20px;
    z-index: 999;
    padding: 8px 12px;
    font-size: 20px;
    background-color: #2c3e50;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgb(0 0 0 / .2);
    transition: background-color 0.3s ease
}

.fullscreen-button:hover {
    background-color: #34495e
}

.control-button#likeBtn {
  background-color: #2c3e50;
  transition: background-color 0.2s ease;
}
.control-button#likeBtn.like-active {
  background-color: #007BFF;
}

.control-button#saveBtn {
  background-color: #2c3e50;
  transition: background-color 0.2s ease;
}
.control-button#saveBtn.save-active {
  background-color: #ff6b00;
}


html.dark-mode {
    background: #1A202C !important;
    color: #f0f0f0
}

body.dark-mode #container {
    border: 1px solid rgb(255 255 255 / .1);
    background: rgb(255 255 255 / .048)
}

body.dark-mode .flipbook .page {
    background: #313131;
    color: #d7d7d7;
    border: 1px solid rgb(255 255 255 / .1);
    box-shadow: none !important
}

body.dark-mode .flipbook .page.cover {
    background: linear-gradient(135deg, #111, #222);
    color: #fff;
    box-shadow: none !important
}

body.dark-mode .nav-button {
    background-color: #555;
    color: #020202
}

body.dark-mode .nav-button:hover {
    background-color: #777
}

body.dark-mode #spine-illusion {
    background: linear-gradient(to right, #fff0 0%, rgb(255 255 255 / .2) 50%, #fff0 100%) !important
}

body.dark-mode .page-wrapper {
    border-radius: 20px;
    filter: drop-shadow(2px px 8px rgba(176, 176, 176, 0.596))
}

.nav-button {
    padding: 10px 15px;
    transform: translateY(-50%);
    background: linear-gradient(to bottom right, #ffffff, #f0f0f0);
    border: none;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    font-size: 28px;
    color: #333;
    cursor: pointer;
    box-shadow: 0 8px 20px rgb(0 0 0 / .08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.4s
}

.nav-button:hover {
    background: linear-gradient(to bottom right, #e0e7ff, #7e93e6);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 12px 28px rgb(0 0 0 / .15)
}

.icon {
    display: inline-block;
    font-size: 30px;
    transition: transform 0.3s ease
}

.nav-button.prev {
    position: absolute;
    left: 10%;
    top: 50%;
    z-index: 9999
}

.nav-button.next {
    position: absolute;
    right: 10%;
    top: 50%;
    z-index: 9999
}

.nav-button.prev:hover .icon {
    animation: moveLeft 0.6s ease-in-out infinite
}

.nav-button.next:hover .icon {
    animation: moveRight 0.6s ease-in-out infinite
}

@keyframes moveLeft {

    0%,
    100% {
        transform: translateX(0)
    }

    50% {
        transform: translateX(-6px)
    }
}

@keyframes moveRight {

    0%,
    100% {
        transform: translateX(0)
    }

    50% {
        transform: translateX(6px)
    }
}

#progress-bar-container {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 5px;
    background: rgb(129 129 129 / .471);
    border-radius: 20px;
    overflow: hidden;
    z-index: 999
}

#progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, #6a11cb, #2575fc);
    border-radius: 20px;
    transition: width 0.3s ease
}

body.dark-mode #progress-bar-container {
    background: rgb(217 217 217 / .792)
}

body.dark-mode #progress-bar {
    background: linear-gradient(to right, #00c6ff, #0072ff)
}

#page-number {
    color: #fff;
    user-select: none;
    margin-top: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center
}

.alert-container {
    position: absolute;
    z-index: 999;
    bottom: 15px;
    right: 1%;
    width: 23%;
    background-color: #3498db;
    color: #fff;
    padding: 10px 10px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgb(0 0 0 / .2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    animation: fadeIn 0.5s ease-out forwards
}

.alert-message {
    flex-grow: 1;
    font-size: 1.1rem;
    line-height: 1.5;
    font-weight: 500
}

.alert-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
    outline: none;
    color: #fff
}

.alert-close-btn:hover {
    background-color: rgb(255 255 255 / .2);
    transform: scale(1.05)
}

.alert-close-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    display: block
}

.like {
    position: fixed;
    top: -40px;
    will-change: transform, opacity;
    animation: fall linear forwards;
    pointer-events: none;
    z-index: 1000;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.co-desktop-nav a.active {
    color: #60a5fa !important;
}

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2c3e50df;
    color: white;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, visibility 0.5s, bottom 0.5s;
    font-family: sans-serif;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    bottom: 30px;
}

.error {
    width: 300px;
    padding: 0px 8px;
    position: absolute;
    top: 10%;
    right: 1%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    background: #defcdb;
    border-radius: 8px;
    border: 1px solid #00ff37;
    box-shadow: 0px 0px 5px -3px #111;
    z-index: 9999;
}

.error__icon {
    width: 20px;
    height: 20px;
    transform: translateY(-2px);
    margin-right: 8px;
}

.error__icon path {
    fill: #2cc921;
}

.error__title {
    font-weight: 500;
    font-size: 14px;
    color: #197123;
}

.error__close {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-left: auto;
}

.error__close path {
    fill: #01271a;
}

.fade-out {
    animation: fadeOut 0.5s forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}



@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px)
    }

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

.alert-hide {
    opacity: 0 !important;
    transform: translateY(-20px) !important;
    pointer-events: none
}

body,
* {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none
}

.allow-selection,
.allow-selection * {
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important
}

.highlighted {
    background-color: rgb(255 118 0 / 88%);
    border-radius: 3px;
    padding: 0 2px
}

.shortcuts-panel {
    position: fixed;
    top: 80px;
    right: 75px;
    width: 255px;
    max-height: 85vh;
    background: rgb(255 255 255 / .25);
    backdrop-filter: blur(8px);
    color: #222;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgb(0 0 0 / .3);
    padding: 20px;
    z-index: 1000;
    opacity: 0;
    transform: translateX(100%);
    pointer-events: none;
    transition: all 0.35s ease
}

.shortcuts-panel.visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto
}

.shortcuts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px
}

.shortcuts-header h2 {
    margin: 0;
    font-size: 20px
}

.shortcuts-header b {
    font-size: 18px
}

#closeShortcuts {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #555
}

#closeShortcuts:hover {
    color: #d00
}

.shortcuts-panel ul {
    list-style: none;
    padding: 0;
    margin: 0
}

.shortcuts-panel li {
    padding: 4px 0;
    border-bottom: 1px solid #b6b6b6;
    font-size: 16px
}

.shortcuts-panel li:last-child {
    border-bottom: none
}

body.dark-mode .shortcuts-panel {
    background: rgb(40 40 40 / .25);
    color: #fff;
    border: 1px solid #555
}

body.dark-mode #closeShortcuts {
    color: #ccc
}

body.dark-mode #closeShortcuts:hover {
    color: #ff4d4d
}

body.dark-mode .shortcuts-panel li {
    border-bottom: 1px solid #444
}

.comment-list {
    overflow-y: auto;
    max-height: 60%;
    padding: 0;
    margin-bottom: 12px;
    list-style: none
}

.comment-item {
    background: rgb(255 255 255 / .4);
    padding: 6px 8px;
    margin-bottom: 6px;
    border-radius: 8px;
    font-size: 15px
}

.comment-input-section {
    display: flex;
    flex-direction: column;
    gap: 8px
}

#commentInput {
    width: 100%;
    resize: none;
    border: 1px solid #aaa;
    border-radius: 8px;
    padding: 8px;
    font-size: 14px;
    background: #fff;
    color: #000
}

#addComment {
    align-self: flex-end;
    background-color: #06c;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer
}

#addComment:hover {
    background-color: #004d99
}

body.dark-mode .comment-item {
    background: rgb(60 60 60 / .4);
    color: #eee
}

body.dark-mode #commentInput {
    background: #222;
    color: #eee;
    border: 1px solid #444
}


body.dark-mode blockquote {
    color: #202020;
    background: #ffffffb8
}