nav {
    background: white;
}

.auth-form {
    width: 100%;
    max-width: 350px;
}

.notify-dot {
    position: absolute;
    top: 6px;
    right: -4px;

    width: 8px;
    height: 8px;

    background-color: #0d6efd; /* bootstrap blue */
    border-radius: 50%;
}

.add-form {
    width: 100%;
    max-width: 300px;
    height: 180px;
}

.book__image {
    width: 100%;
}

.library {
    max-width: 1075px;
    margin: 0 auto;
}

.header_content {
    max-width: 1440px;
}

.book {
    width: 32%;
    flex: 0 0 32%;
}

@media (max-width: 768px) {
    .book {
        width: 100%;
        flex: 0 0 100%;
    }
}

.delete_button {
    position: absolute;
    top: 4px;
    right: 4px;
    border: none;
    padding: 0;
    margin: 0;
    background: none;
}

.delete_button:hover {
    transform: scale(1.05);
}

.delete_button img {
    width: 30px;
}

canvas.dark {
    filter: invert(1) hue-rotate(180deg);
}

.page {
    position: relative;
    display: inline-block;
}

.textLayer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* ...другие стили... */
    --scale-factor: 1; /* переменная масштаба по умолчанию */
}

t:hover {
    cursor: pointer;
}

.popover {
    min-width: 274px; /* стандарт = 276px */
}

.sound {
    width: 18px;
    margin-left: 4px;
}

.sound:hover {
    cursor: pointer;
}

.review {
    min-height: 50%;
    width: 745px;
}

@media (max-width: 768px) {
    .review {
        width: 390px;
    }
}

.score-btn {
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 12px 22px;
    font-weight: 500;
    font-size: 15px;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease;
}

.score-btn:hover {
    transform: translateY(-1px);
}

/* Again — muted red */
.score-0 {
    background-color: #f3eaea;
    color: #8b3a3a;
    border-color: #e4caca;
}

/* Hard — warm neutral */
.score-3 {
    background-color: #f6f2e8;
    color: #7a6a3a;
    border-color: #e5ddc8;
}

/* Good — soft green */
.score-4 {
    background-color: #edf5ef;
    color: #2f6b4f;
    border-color: #d7e8dd;
}

/* Perfect — confident green */
.score-5 {
    background-color: #e7f2ec;
    color: #1f5f46;
    border-color: #cfe3d8;
}

.char-ok {
    color: #00c853; /* зелёный */
    font-weight: 600;
}

.char-bad {
    color: #d32f2f; /* красный */
    font-weight: 600;
}

.adaptive {
    max-width: 60%;
    width: 100%;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .adaptive {
        max-width: 100%;
    }
}

.user-menu {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0.45rem 0.75rem;
}

@media (max-width: 768px) {
    .user-menu {
        padding: 0.5rem 0;
    }
}

.user-menu:hover,
.user-menu:focus,
.user-menu:active,
.user-menu.show {
    border: 0 !important;
    box-shadow: none !important;
    background: rgba(
        0,
        0,
        0,
        0.04
    ) !important; /* можно убрать вообще, если хочешь совсем без */
}

/* убираем bootstrap focus-ring */
.user-menu:focus-visible {
    outline: none !important;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 0.9rem;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;

    color: #adb5bd;
    font-size: 1rem;
    line-height: 1;

    transition: color 0.15s ease;
}

.password-toggle:hover {
    color: #495057;
}

/* убираем лишние эффекты */
.form-control:focus {
    box-shadow: none;
}
