.chapter-action {
    background: none !important;  /* override btn-light */
    background: none;
    border: none;
    color: darkblue;
    font-size: 0.9rem;
    cursor: pointer;
    opacity: 0.75;
    transition: color 0.2s ease, transform 0.15s ease, opacity 0.15s ease;
}

/* Ensure hover doesn't apply gray */
.chapter-action:hover {
    background: transparent !important; /* <- this fixes gray hover */
    color: darkblue;
    transform: scale(1.15);
    animation: shake 0.35s ease-in-out;
}

/* Edit */
.edit-action {
    color: #0d6efd;
}

.edit-action:hover {
    color: #0a58ca;
    transform: scale(1.2);
    animation: shake 0.35s ease-in-out;
    opacity: 1;
}

/* Delete */
.delete-action {
    color: #dc3545;
}

.delete-action:hover {
    color: #b02a37;
    transform: scale(1.15);
    animation: shake 0.35s ease-in-out;
    opacity: 1;
}

@keyframes shake {
    0%   { transform: translateX(0); }
    25%  { transform: translateX(-2px); }
    50%  { transform: translateX(2px); }
    75%  { transform: translateX(-1px); }
    100% { transform: translateX(0); }
}

.card:hover .book-cover-wrapper img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.chapter-text {
    line-height: 1.2;      /* adjust spacing between number and title */
}

.chapter-text div:first-child {
    font-weight: bold;     /* keep the number bold */
    font-size: 0.95rem;    /* optional smaller font */
}

.chapter-text div:last-child {
    font-size: 1rem;       /* title slightly larger */
}

.chapter-card.fullscreen {
    width: 100%;
    margin-bottom: 1rem !important;
    z-index: 1000;
}

/* Optional: smaller margin on small screens */
@media (max-width: 576px) {
    .chapter-card.fullscreen {
        margin-bottom: 0.5rem !important; /* 8px on mobile */
    }
}

.note-item {
    transition: all 0.2s ease;
}
.note-item .collapse {
    margin-top: 0.5rem;
}

.note-display {
    display: flex;        /* flex container */
    width: 100%;          /* force full width */
    gap: 0.5rem;          /* optional spacing between children */
}

.note-display.is-hidden {
    display: none !important;
}
