:root {
    --body-font: "Roboto", sans-serif;
    --body-color: #2B988F;
}

.main-color {
    color: #2B988F;
    margin-top: 4px;
    font-size: 95% !important;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.main-color {
    color: #2B988F;
    margin-top: 4px;
    font-size: 95% !important;
}

.book-store {
    display: flex;
    flex-direction: column;
    max-width: 1400px;
    height: 100vh;
    margin: 0 auto;
    overflow: hidden;
    background: #f2f5f7;
    box-shadow: 0 2px 50px 10px rgba(0, 0, 0, 0.21);
}

.book-slide {
    width: 100%;
}

.book {
    background: #fff;
}

.book-cell {
    display: flex;
    padding: 25px;
    height: 250px;
    width: 100%;
    background-color: aquamarine;
}

.book-img {
    flex-shrink: 0;
}

.book-photo {
    width: 180px;
    border-radius: 2px;
    box-shadow: -2px 6px 19px 0px #7f818e;
    transition: transform 0.3s ease;
}

    .book-photo:hover {
        transform: scale(1.03);
    }

.book-content {
    padding: 0 20px;
    color: #fff;
    overflow: hidden;
}

.book-title {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-author {
    margin-top: 3px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-sum {
    margin-top: 20px;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-see {
    margin-top: 25px;
    padding: 8px;
    width: 160px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: #fbadaf;
    background: #fff;
    border-radius: 20px;
    cursor: pointer;
}

    .book-see:hover {
        color: #ff6e72;
    }

.card {
    border: none;
    border-radius: 4px;
}

.position-sticky {
    top: 10px;
}

.bg-opacity-75 {
    background-color: rgba(255,255,255,.75) !important;
}

/* Scoped to forum layout only */
.book-store .album-cover,
.book-cell .album-cover {
    position: relative;
    margin-bottom: -50px;
    z-index: 10;
}


    .album-cover img {
        display: block;
        width: 100%;
        height: auto;
    }

.album-cover-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.album-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 0 12px 0;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 100%);
    color: #fff;
    border-radius: 0 0 10px 10px;
    min-height: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


#p-tabs {
    position: relative;
    font-size: 13px;
    color: #919191;
    text-align: center;
    padding: 10px 20px;
    margin-top: -64px;
    background-color: #fff;
    box-shadow: 0px 3px 3px #ddd;
    z-index: 3;
}

#p-tabs-m .td {
    width: 16.6667%;
    cursor: pointer;
    padding: 10px 3px;
    transition: color 0.2s ease, background-color 0.2s ease;
    border-radius: 4px;
}

    #p-tabs-m .td.active {
        color: #2b988f;
    }

    #p-tabs-m .td span {
        display: block;
        margin-top: 5px;
        line-height: 1.2;
    }

    #p-tabs-m .td i {
        display: block;
        font-size: 24px;
    }

    #p-tabs-m .td:hover {
        background-color: #f4f4f4;
        color: #2b988f;
    }

    #p-tabs-m .td.active span:after {
        content: "";
        display: block;
        height: 4px;
        background-color: #2B988F;
        margin-top: 6px;
        width: 100%;
        border-radius: 2px;
    }

#p-tab-m {
    width: auto;
    color: #ccc;
    cursor: pointer;
    vertical-align: middle;
}

    #p-tab-m i {
        font-size: 24px;
    }

.tb {
    display: table;
    width: 100%;
}

.td {
    display: table-cell;
    vertical-align: middle;
}

.book-photo {
    width: 280px;
    box-shadow: -2px 6px 19px 0px #7f818e;
    transition: transform 0.3s ease;
}

.q-ad-c {
    padding: 2px 0;
}

.q-ad {
    padding: 6px 10px;
    background-color: rgba(255,255,255,0.05);
    border-radius: 4px;
    color: #ccc;
    font-size: 0.85rem;
}

    .q-ad img {
        width: 28px;
        height: 28px;
        object-fit: cover;
    }

.artist-name {
    font-weight: 600;
    color: #2b988f;
    font-size: 0.85rem;
}

.album-title {
    font-size: 0.70rem;
    color: #2e4f70;
}

.artist-name-top {
    font-weight: 600;
    color: #fff;
    font-size: 0.85rem;
}

.album-title-top {
    font-size: 0.65rem;
    color: #ccc;
}

.badge.small {
    font-size: 0.7rem;
    font-weight: 500;
    background-color: rgba(255,255,255,0.2);
    color: #fff;
    padding: 4px 8px;
}

.on-ct-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #555;
}

.on-ct img {
    border-radius: 50%;
    border: 2px solid #ddd;
}

.on-ct-name {
    white-space: nowrap;
}


.club-settings-box li {
    padding: 6px 0;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dotted #ccc;
    align-items: center;
}

.setting-label {
    font-weight: 600;
    color: #333;
    width: 150px;
}

.setting-value {
    color: #555;
}

.club-settings-box .badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 0.25rem;
    font-weight: 500;
}

.chat-box,
.review-box,
.message-box {
    background: #fff;
    padding: 12px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

    .chat-box textarea,
    .review-box textarea {
        font-size: 0.85rem;
        resize: none;
    }

    .chat-box h6,
    .review-box h6,
    .message-box h6 {
        font-size: 0.9rem;
        font-weight: 600;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        gap: 6px;
        color: #333;
    }

.star-rating .star {
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s ease;
    background: linear-gradient(145deg, #FFD54F, #FF9800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

    .star-rating .star.filled {
        background: linear-gradient(145deg, #FFD700, #FF6F00);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        transform: scale(1.05);
        font-variation-settings: "wght" 700;
    }

    .star-rating .star:hover,
    .star-rating .star:hover ~ .star {
        transform: scale(1.15);
    }

.calendar-item {
    display: flex;
    padding: 1em 0em;
    border-bottom: 1px dotted #ccc;
    align-items: center;
}


.event-date {
    width: 20%;
    text-align: center;
    color: #4d4d4d;
}

    .event-date .month {
        text-transform: uppercase;
        font-size: 0.8rem;
        line-height: 1;
    }

    .event-date .day {
        font-size: 1.8rem;
        font-weight: bold;
    }

.event-info {
    width: 80%;
    padding-left: 1.5em;
    border-left: 2px solid #121212;
    color: #4d4d4d;
}

.remove-action {
    font-size: .7rem;
    color: red;
}

    .remove-action i {
        font-size: .7rem;
        ;
        color: red;
        vertical-align: -1;
    }

footer {
    background-color: #0A0A0D;
    border-top: 1px solid #eaeaea;
    font-size: 0.85rem;
    border-radius: 0;
    margin-bottom: 0;
}

    footer a {
        color: white !important;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        footer a:hover {
            color: #ccc;
            text-decoration: underline;
        }

    footer .bg-white {
        box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05);
    }

.text-primary {
    color: #404089 !important; /* Replace with your custom color */
}

.bg-secondary {
    background-color: #626262 !important;
}

#emoji-picker {
    max-height: 500px;
    max-width: 380px;
    overflow: auto;
    border-radius: 6px;
    border: 1px solid #ccc;
    z-index: 9999999 !important;
}

.chat-input {
    position: relative;
    z-index: 800;
}

.chat-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1rem 0;
    font-size: 0.8rem;
    color: #888;
}

    .chat-divider::before,
    .chat-divider::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid #ccc;
    }

    .chat-divider:not(:empty)::before {
        margin-right: 0.75em;
    }

    .chat-divider:not(:empty)::after {
        margin-left: 0.75em;
    }

.group:hover .reaction-trigger {
    display: block !important;
}

.reaction-badge {
    cursor: pointer;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 13px !important;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(10px) saturate(1.4);
    -webkit-backdrop-filter: blur(10px) saturate(1.4);
    transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.15s ease,
                background 0.15s ease;
}

    .reaction-badge.reaction-other {
        background: rgba(255, 255, 255, 0.55);
        border: 1.5px solid rgba(0, 0, 0, 0.07);
        color: #374151;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07),
                    inset 0 1px 0 rgba(255, 255, 255, 0.7);
    }

        .reaction-badge.reaction-other:hover {
            background: rgba(255, 255, 255, 0.78);
            box-shadow: 0 5px 16px rgba(0, 0, 0, 0.1),
                        inset 0 1px 0 rgba(255, 255, 255, 0.85);
        }


    .reaction-badge.border-primary {
        border: 1px solid #0d6efd !important;
    }

    .reaction-badge[title]:hover {
        opacity: 1;
    }


    .reaction-badge.reaction-mine {
        background: rgba(43, 152, 143, 0.15);
        border: 1.5px solid rgba(43, 152, 143, 0.45);
        color: #155e59;
        box-shadow: 0 2px 8px rgba(43, 152, 143, 0.15),
                    inset 0 1px 0 rgba(255, 255, 255, 0.35);
    }

        .reaction-badge.reaction-mine:hover {
            background: rgba(43, 152, 143, 0.24);
            box-shadow: 0 5px 16px rgba(43, 152, 143, 0.22),
                        inset 0 1px 0 rgba(255, 255, 255, 0.4);
        }


/* container for each member/invite */
.member-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border: 1px solid #ebebeb;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    background: #fff;
}

    /* dashed border for pending invites */
    .member-item.pending {
        background: #F8F9FA !important;
        border: 1px #EBEBEB dashed;
    }

/* avatar */
.member-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.65rem;
    background-color: #f2f9f8;
}

/* info area takes up the rest */
.member-info {
    flex: 1;
}

/* top row: name + badge */
.member-row-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .75rem;
}

/* style the username text */
.member-username {
    font-style: italic;
    color: #666;
}

/* make member rows grid-based so  + text stack nicely */
.on-ct-wrapper {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .5rem;
    align-items: center;
}

    /* style pending invites */
    .on-ct-wrapper.pending-invite {
        border: 1px dashed #ffc107; /* dashed gold border */
        background-color: #e3f9f7; /* light yellowish bg */
        padding: .5rem;
        border-radius: 4px;
    }

    /* inside each wrapper, stack the name info into two lines */
    .on-ct-wrapper .on-ct-name {
        display: grid;
        grid-template-rows: auto auto;
        line-height: 1.2;
    }

        /* first line: primary text (name/email) */
        .on-ct-wrapper .on-ct-name span:first-child {
            font-weight: 600;
            color: #333;
        }

        /* second line: username / badge row */
        .on-ct-wrapper .on-ct-name span:nth-child(2),
        .on-ct-wrapper .on-ct-name .badge {
            font-size: .85rem;
            color: #666;
        }

        /* push the “remove” button into that second row */
        .on-ct-wrapper .on-ct-name button {
            grid-row: 2;
        }

.member-item.pending .member-row-bot {
    display: flex;
    gap: .5rem;
}

.member-item.pending .invite-date {
    font-size: .7rem;
    color: #666;
}

.member-item.pending {
    font-size: .7rem;
}

.resend-invite span {
    display: inline-flex;
    align-items: center;
    justify-content: center; /* if you ever want to center-justify multiple icons/text horizontally */
    font-size: .8rem;
}

/* Make the invite link input a bit more compact */
#inviteLink {
    font-size: 0.875rem; /* slightly smaller text */
    padding: 0.35rem 0.5rem; /* less vertical padding */
    height: calc(1.5em + 0.7rem + 2px); /* match Bootstrap-sm inputs */
    border-radius: 0.25rem;
    background-color: #f8f9fa; /* light gray, matches cards */
    border: 1px solid #ced4da;
}

/* Tweak the copy button to btn-sm size */
.input-group .btn-outline-secondary {
    padding: 0.35rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.2;
    border-radius: 0.25rem;
    border
}

/* Optional: keep them on one line on smaller screens */
@media (max-width: 576px) {
    .input-group {
        flex-wrap: nowrap;
    }

    #inviteLink {
        flex: 1 1 auto;
    }

    .input-group .btn-outline-secondary {
        flex: 0 0 auto;
        margin-left: 0.25rem;
    }
}

#clubHeaderImg {
    touch-action: pan-y;
    cursor: default;
    user-select: none;
    user-drag: none;
}

    #clubHeaderImg.dragging {
        touch-action: none;
        cursor: grabbing;
    }

/* Your gradient overlay */
.overlay-gradient {
    pointer-events: none; /* absolutely no clicks here */
    z-index: 1;
}


.send-btn-theme {
    background-color: #2B988F !important;
    color: white !important;
}

    .send-btn-theme:hover {
        background-color: #17756D !important;
    }

.club-badge {
    background-color: #eaf4ff;
}

/* full‐page dimmer: dims everything but lets clicks pass through */
#globalOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    pointer-events: none;
}

/* instruction box: above dimmer but clicks pass through too */
#dragInstruction {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-align: center;
    z-index: 1002;
    pointer-events: none;
}

    #dragInstruction .arrow {
        font-size: 1.2rem;
        line-height: 1;
    }

    #dragInstruction .text {
        margin: 0.2rem 0;
        font-weight: bold;
    }

/* make sure header is above the dimmer */
#headerDragContainer {
    position: relative; /* already set */
    z-index: 1001; /* must be > dimmer & instructions */
    overflow: hidden;
}

/* Container adjustments */
#clubTabs {
    justify-content: space-between;
    border-bottom: none;
    background: #fff;
    margin-top: -120px; /* match your previous pull-up */
    padding: 10px 20px;
}

    /* Each tab button */
    #clubTabs .nav-link {
        flex: 1;
        text-align: center;
        color: #585858;
        font-size: 13px;
        border: none;
        border-radius: 4px 4px 0 0;
        padding: 10px 20px;
        transition: color .2s, background-color .2s;
    }

        /* Icon + label spacing */
        #clubTabs .nav-link .material-icons {
            display: block;
            font-size: 24px;
            margin-bottom: 3px;
        }

        /* Hover state */
        #clubTabs .nav-link:hover {
            background-color: #f4f4f4;
            color: #2B988F;
            border-radius: 4px;
        }

        /* Active tab */
        #clubTabs .nav-link.active {
            color: #2B988F;
            background: #fff;
            font-weight: 600;
            position: relative;
        }

            /* Active bar under text */
            #clubTabs .nav-link.active::after {
                content: "";
                position: absolute;
                bottom: 0;
                left: 10%;
                width: 80%;
                height: 4px;
                background-color: #2B988F;
                border-radius: 2px;
            }

    /* The “more” dropdown arrow tab */
    #clubTabs #p-tab-m {
        flex: 0 0 auto;
        color: #ccc;
        cursor: pointer;
    }

/* Keep the nav-tabs container above the content */
#clubTabs,
#clubTabsContent {
    z-index: 3;
}

.mid-boxes {
    padding: 12px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    font-size: 0.85rem;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid #ededed;
}

.crickets {
    padding: 40px;
    font-size: 20px;
    color: #ccc;
}

#uploadBtn:hover,
#moveBtn:hover {
    color: white !important;
    transition: ease-in-out .3s;
}

#uploadBtn,
#moveBtn {
    transition: ease-in-out .3s;
}

.reactions-display {
    overflow: visible;
}

.forum-post-list {
    display: block;
}


.forum-post .username {
    font-size: 0.95rem;
}

.forum-post .post-body {
    line-height: 1.45;
}

.forum-post-body {
    line-height: 1.55;
}

    .forum-post-body h1,
    .forum-post-body h2,
    .forum-post-body h3 {
        margin-top: 1rem;
    }

    .forum-post-body code {
        background: #f4f4f4;
        padding: 2px 5px;
        border-radius: 4px;
        font-size: 0.9em;
    }

    .forum-post-body pre {
        background: #111;
        color: #eee;
        padding: 10px;
        border-radius: 6px;
        overflow-x: auto;
    }


.queue-accordion-header.queue-accordion-hover,
.queue-accordion-header.queue-accordion-active {
    background: #e6f0ff !important;
    transition: background .18s;
}

.queue-arrow .material-icons.arrow-icon {
    transition: transform 0.2s;
}

.queue-card {
    box-shadow: 0 1px 4px rgba(25,25,60,0.06);
    border-radius: 10px;
    margin-right: 6px;
    transition: box-shadow .14s, transform .13s;
}

    .queue-card:last-child {
        margin-right: 0;
    }

    .queue-card:hover {
        z-index: 5;
    }

.queue-card-fade-content {
    background: linear-gradient(to top, rgba(0,0,0,0.66) 80%, rgba(0,0,0,0.00) 100%);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    padding-top: 16px;
    padding-bottom: 9px;
    min-height: 58px;
}

.add-to-queue-card:hover,
.add-to-queue-card:focus {
    border-color: #ccc !important;
    color: #888 !important;
    outline: none;
    background-color: #292929 !important;
    transition: ease-in-out .4s !important;
}

.add-to-queue-card,
.add-to-queue-card {
    transition: ease-in-out .4s !important;
}

.last-pick-badge {
    background-color: #292929 !important;
    opacity: .8 !important;
}

/* Hide drag-handles and delete buttons until “edit” mode is activated */
.queue‐edit‐controls {
    display: none;
}

    .queue‐edit‐controls.show {
        display: inline-flex; /* or flex, depending on your markup */
    }

/* ── Hide drag-handles and delete buttons until “edit” mode is activated ── */
.sortableQueue .queue-handle,
.sortableQueue .queue-remove-btn {
    display: none;
}

.sortableQueue.editing .queue-handle,
.sortableQueue.editing .queue-remove-btn {
    display: inline-flex;
    align-items: center;
}

/* ── Queue action icon sizing — match compact album picker btn-sm ── */
.queue-spotify-link { font-size: 1rem; line-height: 1; }
.queue-remove-btn .material-icons { font-size: 1rem; }

@media (max-width: 767.98px) {
    .queue-spotify-link { font-size: 0.875rem; }
    .queue-remove-btn .material-icons { font-size: 0.875rem; }
}



/* target only the “edit” link inside that H5 */
.card-title .edit-queue-trigger {
    font-size: 0.5em; /* make it half the size of the H5 */
    display: inline-flex; /* so its contents can align center */
    align-items: center; /* vertical‐center the icon/text */
    line-height: 1.5; /* prevent extra descender/ascender spacing */
    margin-top: 5px;
}

    .card-title .edit-queue-trigger .material-icons {
        font-size: 1em; /* icon size will be 0.5em of the H5, since parent is 0.5em */
        vertical-align: middle; /* ensure perfect centering within the link */
        margin-right: 0.25em; /* a little gap between icon + “Edit” text */
    }

/* Make the date‐column visible */
#queueDates {
    display: flex;
    flex-direction: column;
    margin-top: 1px;
}

    #queueDates .queue-date {
        border-bottom: 1px solid #eee;
        font-size: 0.75rem;
        color: #555;
    }

.now-playing-box {
    border-left: 4px solid #2B988F;
    background: #fafcff;
}

.now-playing-meta .material-icons {
    font-size: 1em !important;
    vertical-align: -2px;
    margin-right: 2px;
}

.now-playing-meta li {
    margin-bottom: 4px;
}

.now-playing-box img.shadow {
    box-shadow: 0 2px 6px rgba(30, 110, 110, 0.10);
}

.last-pick-box {
    border-left: 4px solid #2B988F;
}

.last-pick-badge {
    vertical-align: middle;
    background-color: #fff !important;
}

.side-car {
    margin-left: 15px;
    background: #fff;
    padding: 12px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    font-size: 0.85rem;
    margin-bottom: 20px;
    border-radius: 4px;
    background-color: #fff;
}

/* Desktop club-dash sidebar: each widget is its own rounded container,
   matching the dashboard's .dash-section corner radius (12px). */
.dash-rail .side-car {
    border-radius: 12px;
}

.review-list-item {
    padding: 12px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    font-size: 0.85rem;
    margin-bottom: 20px;
    border-radius: 4px;
    background-color: #fff;
    border-left: 4px solid #2B988F !important;
    border-right: 0px !important;
    border-bottom: 0px !important;
    border-top: 0px !important;
}

.card-top {
    list-style: none;
    font-size: .9rem;
    margin-right: 20px;
    border: 3px dashed rgba(255,255,255,0.1);
    background-color: #242424;
}

    .card-top li {
        margin-bottom: .3rem;
    }

.text-green a {
    color: #DBECEB;
}

/* File upload icon for chat */
#attachFileBtn .material-icons {
    font-size: 24px;
    vertical-align: middle;
    color: #888;
    transition: color 0.2s;
}

#attachFileBtn:hover .material-icons,
#sendMessageBtn:hover .material-icons,
#emojiBtn:hover .material-icons,
#gifBtn:hover .material-icons {
    color: #29B5A8;
    transition: ease-in-out .3s;
}

#attachFileBtn .material-icons,
#sendMessageBtn .material-icons,
#emojiBtn .material-icons,
#gifBtn .material-icons {
    transition: ease-in-out .3s;
}


.chat-attachment {
    display: inline-block;
    margin: 2px 0;
    padding: 2px 6px;
    background: #f6f6f6;
    border-radius: 6px;
    font-size: 0.96em;
    color: #222;
}

    .chat-attachment img {
        max-width: 240px;
        border-radius: 4px;
        display: block;
        margin-bottom: 2px;
    }

#chatFilePreview .file-preview-box {
    position: relative;
    background: #fafafd;
}

#chatFilePreview img {
    max-width: 280px;
    max-height: 280px;
    border-radius: 6px;
}

#chatFilePreview .btn-link.text-danger {
    position: relative;
    top: 2px;
    right: 2px;
    font-size: 1rem;
}


.member .avatar .rounded-circle {
    border: 2px solid #fff;
    width: 13px;
    height: 13px;
    box-shadow: 0 0 3px #fff;
}

.status-dot {
    box-shadow: 0 0 3px #3332;
    transition: background 0.15s;
}


.avatar-wrapper {
    position: relative;
    display: inline-block;
}

.status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid #fff;
    box-shadow: 0 0 0 2px #fff;
    z-index: 2;
    pointer-events: auto;
    cursor: pointer;
}

    .status-dot.online {
        background: #44c75a;
    }

    .status-dot.offline {
        background: #b1b1b1;
    }

/* Chat unread message indicator */
.chat-unread-msg {
    background: linear-gradient(90deg, #f3ffea 0%, #fff 60%);
    border-left: 3px solid #4caf50 !important;
    position: relative;
    padding: 5px;
}

.unread-dot {
    display: none;
}

.notification-badge-chat {
    position: absolute;
    bottom: 10px;
    right: -6px;
    background: #dc3545;
    color: #fff;
    font-size: 0.55rem;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px #fff;
}

.tab-unread-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dc3545;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9px;
    margin-left: 5px;
    vertical-align: middle;
    line-height: 1;
    box-shadow: 0 0 0 2px #fff;
}

.hand {
    cursor: pointer !important;
}

/* Chat message alignment and coloring */
.chat-msg-own {
    flex-direction: row-reverse !important;
}

    .chat-msg-own .msg-text {
        background: #DCEBFA !important; /* Material blue 700 */
        color: #222 !important;
    }

.chat-msg-other .msg-text {
    background: #f1f1f1 !important;
    color: #222 !important;
}

.chat-msg-own .avatar-status-wrap {
    margin-left: 0.75rem !important;
    margin-right: 0 !important;
}

.chat-msg-other .avatar-status-wrap {
    margin-right: 0.75rem !important;
    margin-left: 0 !important;
}

.react-btn {
    color: #AFE7E2;
}

.tooltip.show {
    z-index: 99999 !important;
}

/* Edit/delete buttons on own message: only show on .group:hover */
.group.chat-msg-own:hover .edit-delete-btns {
    opacity: 1 !important;
    color: AFE7E2 !important;
}

.group.chat-msg-own .edit-delete-btns {
    opacity: 0;
    pointer-events: none;
}

.group.chat-msg-own:hover .edit-delete-btns {
    pointer-events: auto;
}

.seen-avatar {
    transition: box-shadow 0.1s;
    margin-left: -5px;
    box-shadow: 0 0 1.5px #bbb;
    background: #fff;
}

/* Show reply button only on hover of the row */
.group:hover .reply-hover-wrap {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.reply-hover-wrap {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s;
}

/* Show chat actions (edit/delete/reply/emoji/forum) only on hover */
.group:hover .msg-actions-group,
.group:focus-within .msg-actions-group {
    opacity: 1 !important;
    pointer-events: auto;
}

.msg-actions-group {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s;
}


.msg-actions-group {
    border-radius: 10px;
}

.btn-link {
    color: #737373 !important;
}

    .btn-link:hover {
        color: #2d2d2d !important;
        background-color: #F5F5F5 !important;
    }

.hv {
    width: 1px !important;
    margin-left: 3px;
    margin-right: 3px;
    height: 10px;
    border: 1px solid #E0E0E0;
}

/* Base link color */
.pagination .page-link {
    color: #2B988F;
}

    /* Hover state */
    .pagination .page-link:hover {
        background-color: #DEF1EF;
        color: #2B988F;
    }

/* Active page */
.pagination .page-item.active .page-link {
    color: #fff;
    background-color: #2B988F;
    border-color: #2B988F;
}

/* Disabled state (optional) */
.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
}

.btn-down {
    background-color: #fff !important;
    transition: all 0.3s ease;
    border-radius: 8px;
    border: 2px solid #ddd !important;
}

    .btn-down:hover {
        background-color: #F8F9FA !important;
        transition: all 0.3s ease;
    }


.icon-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-btn:hover {
    opacity: 1 !important;
    transition: all 0.3s ease;
}


/* Highlight the active/expanded thread in the list */
.thread-list-row.active-thread,
.thread-list-row:focus,
.thread-list-row:hover {
    background: #f6f7f9 !important;
}

.thread-list-row.active-thread {
    cursor: default !important;
}

/* === Quill Toolbar Theming === */
.ql-toolbar button {
    pointer-events: auto !important;
    opacity: 1 !important;
    position: static !important;
    z-index: 1001 !important;
}

/* Dropdown: Hover and selected item color */
.ql-toolbar .ql-picker .ql-picker-options .ql-picker-item:hover,
.ql-toolbar .ql-picker .ql-picker-options .ql-picker-label:hover,
.ql-toolbar .ql-picker .ql-picker-options .ql-picker-item.ql-selected {
    color: #2B988F !important;
    background: #f0f4fa !important;
}

/* Picker label (toolbar) hover/focus color */
.ql-toolbar .ql-picker-label:hover,
.ql-toolbar .ql-picker-label:focus {
    color: #2B988F !important;
}

    .ql-toolbar .ql-picker-label:hover::before,
    .ql-toolbar .ql-picker-label:focus::before {
        color: #2B988F !important;
    }

/* Picker label (toolbar): selected value color */
.ql-toolbar .ql-picker-label.ql-active,
.ql-toolbar .ql-picker-label.ql-active:hover,
.ql-toolbar .ql-picker-label.ql-active:focus {
    color: #2B988F !important;
    background: #f0f4fa !important;
}

/* Native Quill icons */
button:hover .ql-stroke,
.ql-picker-label:hover .ql-stroke {
    fill: none;
    stroke: #2B988F !important;
}

.ql-active .ql-stroke {
    fill: none;
    stroke: #2B988F !important;
}

button:hover .ql-fill,
.ql-picker-label:hover .ql-fill {
    fill: #2B988F !important;
    stroke: none;
    color: #2B988F !important;
}

.ql-active .ql-fill {
    fill: #2B988F !important;
    stroke: none;
}

/* =========================
   Custom toolbar buttons
========================= */

/* Hover */
.ql-toolbar button.ql-emoji:hover,
.ql-toolbar button.ql-gif:hover,
.ql-toolbar button.ql-tag:hover,
.ql-toolbar button.ql-album:hover,
.ql-toolbar button.ql-spoiler:hover {
    color: #2B988F !important;
}

/* Ensure icon inherits the button color */
.ql-toolbar button.ql-emoji::before,
.ql-toolbar button.ql-gif::before,
.ql-toolbar button.ql-tag::before,
.ql-toolbar button.ql-album::before,
.ql-toolbar button.ql-spoiler::after {
    color: inherit !important;
}

/* =========================
   Quill toolbar custom tooltip
========================= */

#ql-tip {
    position: fixed;
    z-index: 99999;
    background: #1e293b;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    padding: 5px 8px;
    border-radius: 4px;
    pointer-events: none;
    white-space: nowrap;
    transform: translateX(-50%) translateY(-100%);
    opacity: 0;
    transition: opacity 0.12s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

#ql-tip.show {
    opacity: 1;
}

/* =========================
   New Thread Card
========================= */

.forum-new-thread-card {
    background: linear-gradient(160deg, #ffffff 0%, #f0faf9 100%);
    border: 1px solid rgba(43, 152, 143, 0.18);
    border-radius: 14px;
    padding: 22px 24px 18px;
}

.forum-new-thread-header {
    border-bottom: 1px solid rgba(43, 152, 143, 0.12);
    padding-bottom: 14px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.forum-new-thread-close {
    background: transparent;
    border: 1px solid rgba(43, 152, 143, 0.25);
    color: #2B988F;
    border-radius: 8px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.forum-new-thread-close:hover {
    background: rgba(43, 152, 143, 0.12);
    color: #1b6b62;
    border-color: rgba(43, 152, 143, 0.45);
}
.forum-new-thread-close .material-icons {
    font-size: 1.1rem;
    line-height: 1;
}

.forum-new-thread-eyebrow {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #2B988F;
    margin: 0;
}

.forum-new-thread-eyebrow .material-icons {
    font-size: 0.95rem;
    line-height: 1;
}

/* Send row wrapper: invisible to desktop layout, becomes flex on mobile */
.forum-send-row {
    display: contents;
}

/* Send bar always visible */
.forum-new-thread-card .forum-thread-send-bar,
#forum-reply-box .forum-thread-send-bar {
    display: flex;
}

/* Editor always expanded inside the new-thread card */
.forum-new-thread-card .forum-quill-wrap .ql-editor {
    min-height: 160px;
    transition: none;
}

/* Reply editor — small by default, expands on focus or when there's content */
#forum-reply-box .forum-quill-wrap .ql-editor {
    min-height: 60px;
    transition: min-height 0.2s ease;
}

#forum-reply-box .forum-quill-wrap.is-focused .ql-editor,
#forum-reply-box .forum-quill-wrap.has-content .ql-editor {
    min-height: 160px;
}

/* =========================
   Preview Render Area
========================= */
.forum-thread-preview {
    position: relative;
    border: 2px dashed rgba(43, 152, 143, 0.35);
    border-radius: 8px;
    padding: 28px 16px 16px;
    margin-top: 12px;
    margin-bottom: 10px;
    background: rgba(43, 152, 143, 0.03);
    min-height: 48px;
}

/* Close button in top-right corner */
.forum-preview-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    cursor: pointer;
    color: #2B988F;
    opacity: 0.45;
    transition: opacity 0.15s;
}

.forum-preview-close .material-icons {
    font-size: 1.1rem;
}

.forum-preview-close:hover {
    opacity: 1;
}

/* Floating "Preview" label on the dashed border */
.forum-thread-preview::before {
    content: "Preview";
    position: absolute;
    top: -10px;
    left: 14px;
    padding: 0 8px;
    background: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #2B988F;
    border-radius: 3px;
}

/* Inside the new-thread card the bg is not white — match it */
.forum-new-thread-card .forum-thread-preview::before {
    background: #f0faf9;
}

/* New-thread form action buttons */
.forum-btn-preview {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(43, 152, 143, 0.5);
    border-radius: 6px;
    color: #2B988F;
    background: transparent;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.forum-btn-preview:hover {
    background: rgba(43, 152, 143, 0.08);
    border-color: #2B988F;
}
.forum-btn-preview:active {
    background: rgba(43, 152, 143, 0.15);
}
.forum-btn-preview:disabled {
    opacity: 0.38;
    cursor: default;
    pointer-events: none;
}

.forum-btn-cancel {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 400;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #7a8a89;
    background: transparent;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}
.forum-btn-cancel:hover {
    color: #2B988F;
    background: rgba(43, 152, 143, 0.06);
}

/* =========================
   Forum Quill Wrapper
========================= */

.forum-quill-wrap {
    position: relative;
}

/* Left-pointing speech-bubble caret toward avatar */
.forum-quill-wrap::before,
.forum-quill-wrap::after {
    content: '';
    position: absolute;
    top: 20px;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 1;
}

/* Outer triangle — border colour */
.forum-quill-wrap::before {
    left: 2px;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-right: 8px solid #dee2e6;
    transform: translateY(-50%);
}

/* Inner triangle — toolbar background fill */
.forum-quill-wrap::after {
    left: 3px;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 7px solid #f8f9fa;
    transform: translateY(-50%);
}

/* Toolbar */
.forum-quill-wrap .ql-toolbar.ql-snow {
    border: 1px solid #dee2e6;
    border-radius: .375rem .375rem 0 0;
    padding: 3px 6px;
    margin-left: 10px;
    background: #f8f9fa;
}

/* Editor container */
.forum-quill-wrap .ql-container.ql-snow {
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 .375rem .375rem;
    font-family: inherit;
    font-size: .875rem;
    margin-left: 10px;
}

/* Editor area */
.forum-quill-wrap .ql-editor {
    padding: 6px 12px;
    min-height: 80px;
    max-height: 300px;
    overflow-y: auto;
    line-height: 1.5;
    transition: min-height 0.2s ease;
}

/* Placeholder */
.forum-quill-wrap .ql-editor.ql-blank::before {
    font-style: normal;
    color: #6c757d;
    left: 12px;
}

/* GIF button icon */
.forum-quill-wrap .ql-toolbar button.ql-gif::before {
    content: "GIF";
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.02em;
    line-height: 1;
    color: #555;
    display: inline-block;
    vertical-align: middle;
}

/* Tag (artist) button icon */
.forum-quill-wrap .ql-toolbar button.ql-tag::before {
    content: "\f130";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 13px;
    color: #444;
    line-height: 1;
}

/* Album button icon */
.forum-quill-wrap .ql-toolbar button.ql-album::before {
    content: "\f51f";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 13px;
    color: #444;
    line-height: 1;
}

/* Button sizing and layout */
.forum-quill-wrap .ql-toolbar button.ql-gif,
.forum-quill-wrap .ql-toolbar button.ql-emoji,
.forum-quill-wrap .ql-toolbar button.ql-tag,
.forum-quill-wrap .ql-toolbar button.ql-album,
.forum-quill-wrap .ql-toolbar button.ql-spoiler {
    width: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 5px;
    margin-top: 0;
}

/* Hover color for all custom button icons */
.forum-quill-wrap .ql-toolbar button.ql-gif:hover::before,
.forum-quill-wrap .ql-toolbar button.ql-emoji:hover::before,
.forum-quill-wrap .ql-toolbar button.ql-tag:hover::before,
.forum-quill-wrap .ql-toolbar button.ql-album:hover::before,
.forum-quill-wrap .ql-toolbar button.ql-spoiler:hover::after {
    color: #2B988F;
}

/* ==== Custom Checkbox/Radio (from KenanYusuf CodePen) ==== */
.control {
    display: block;
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    cursor: pointer;
    line-height: 1.2;
    user-select: none;
}


    .control input {
        position: absolute;
        z-index: -1;
        opacity: 0;
    }

.control__indicator {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 24px;
    width: 24px;
    background: #e6e6e6;
    border-radius: 6px;
    transition: background 0.3s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.07);
}


.control:hover input ~ .control__indicator,
.control input:focus ~ .control__indicator {
    background: #cccccc;
}

.control input:checked ~ .control__indicator {
    background: #2B988F; /* Your brand primary */
}

.control:hover input:not([disabled]):checked ~ .control__indicator,
.control input:checked:focus ~ .control__indicator {
    background: #2B988F; /* Your brand dark */
}

.control input:disabled ~ .control__indicator {
    background: #e6e6e6;
    opacity: 0.6;
    pointer-events: none;
}

/* Checkbox tick */
.control__indicator:after {
    content: '';
    position: absolute;
    display: none;
}

.control.control--checkbox .control__indicator:after {
    left: 8px;
    top: 4px;
    width: 8px;
    height: 14px;
    border: solid #fff;
    border-width: 0 3px 3px 0;
    border-radius: 1px;
    transform: rotate(45deg);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}


.control input:checked ~ .control__indicator:after {
    display: block;
}

.control--checkbox input:disabled ~ .control__indicator:after {
    border-color: #7b7b7b;
}

.control--checkbox .control__indicator {
    border-radius: 4px;
}

.side-button {
    background-color: #2B988F !important;
    color: white !important;
    box-shadow: var(--shadow-sm) !important;
}

    .side-button:hover {
        background-color: #106E66 !important;
        transition: ease-in-out .3s;
    }

        .side-button:hover span {
            color: white !important;
            transition: ease-in-out .3s;
        }

.side-button {
    transition: ease-in-out .3s;
}


.card.my-review {
    padding: 12px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    font-size: 0.85rem;
    margin-bottom: 20px;
    border-radius: 4px;
    background-color: #fff;
    border-left: 4px solid #2B988F !important;
    border-right: 0px !important;
    border-bottom: 0px !important;
    border-top: 0px !important;
}

.your-review-ribbon {
    user-select: none;
    pointer-events: none;
}

.review-author-card {
    box-sizing: border-box;
    height: 175px;
    width: 160px;
    min-width: 120px;
    max-width: 180px;
    justify-content: flex-start !important;
    align-items: center;
    overflow: hidden;
}

@media (max-width: 600px) {
    .review-author-card {
        width: 100px;
        min-width: 80px;
        max-width: 120px;
        height: 120px;
        padding: 1rem !important;
    }
}


.divider-with-text {
    display: flex;
    align-items: center;
    width: 100%;
    font-family: inherit;
}

.divider-line {
    display: inline-block;
    height: 1px;
    background: #F1F2F3;
    vertical-align: middle;
}

.divider-left {
    width: 100px;
}

.divider-right {
    flex: 1;
}

.divider-text {
    padding: 0 18px;
    font-weight: 500;
    color: #888;
    letter-spacing: .03em;
    white-space: nowrap;
    margin: .5rem;
}

input[type="checkbox"]:disabled + .control__indicator,
input[type="checkbox"]:disabled ~ label {
    opacity: .5;
    cursor: not-allowed;
}

label[for="reviewPostToChat"]:disabled,
label[for="reviewPostToForum"]:disabled {
    opacity: .5;
    cursor: not-allowed;
}


.star-rating-box {
    background: #f4f4f7;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    min-width: 210px;
}

/* Chat bubble hover: your own (primary) and others (light) */
.msg-text.bg-primary:hover {
    background-color: #DAE9F8 !important; /* Slightly darker blue (adjust as needed) */
    filter: brightness(0.97);
    transition: background 0.16s, filter 0.16s;
}

.msg-text.bg-light:hover {
    background-color: #F4F3F3 !important; /* Slightly darker light (adjust as needed) */
    filter: brightness(0.97);
    transition: background 0.16s, filter 0.16s;
}


/* Lock chat icon button dimensions to prevent hover jump */
.chat-input .btn-link {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.small {
    font-size: 80%;
}

.list-group-item:hover {
    background-color: #F8F9FA;
}

.edit-post-btn:hover {
    color: #000;
}

.forum-content.is-editing .post-body {
    margin-top: 36px;
}

.queue-item {
    border-radius: 0px !important;
}

/* Hidden on desktop — mobile card only */
.queue-card-bg   { display: none; }
.queue-item-dates { display: none; }

/* Always show album info button in queue */
.queue-meta .album-info-trigger {
    display: inline-flex !important;
    align-items: center;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.tox-notification--warning {
    display: none !important;
}

/* =====================================================
   Disable album picker while queue is editing
   ===================================================== */
.queue-editing-disabled {
    position: relative;
    opacity: 0.45;
    pointer-events: none;
    filter: grayscale(0.85);
}

    .queue-editing-disabled::after {
        content: "Finish editing your queue to add albums";
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        font-size: 0.9rem;
        color: #444;
        background: rgba(255,255,255,0.85);
        border-radius: 8px;
        text-align: center;
        padding: 1rem;
    }


.h4-u {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(43,152,143,0.12);
    color: #2B988F;
    font-weight: 600;
    font-size: 0.95rem;
}


/* =========================================
   ALBUM ACTION BUTTONS — POLISHED STYLING
========================================= */

.album-action-buttons .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
    font-size: 0.95rem;
    line-height: 1.1;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}

/* -----------------------------------------
   Spotify
----------------------------------------- */
.btn-spotify {
    background-color: #1db954;
    color: #fff;
    border: none;
}

    .btn-spotify:hover {
        background-color: #1ed760;
        box-shadow: 0 6px 18px rgba(30, 215, 96, 0.35);
        transform: translateY(-1px);
        color: #fff;
    }

/* -----------------------------------------
   Apple Music (subtle gradient)
----------------------------------------- */
.btn-apple-music {
    background: linear-gradient( 135deg, #fa2d48, #fb5c74 );
    color: #fff;
    border: none;
}

    .btn-apple-music:hover {
        box-shadow: 0 6px 18px rgba(250, 45, 72, 0.35);
        transform: translateY(-1px);
        color: #fff;
    }

/* -----------------------------------------
   YouTube (muted red)
----------------------------------------- */
.btn-youtube {
    background-color: #b91d1d;
    color: #fff;
    border: none;
}

    .btn-youtube:hover {
        background-color: #d32f2f;
        box-shadow: 0 6px 18px rgba(211, 47, 47, 0.35);
        transform: translateY(-1px);
        color: #fff;
    }

/* -----------------------------------------
   Add to Queue (neutral / primary action)
----------------------------------------- */
.btn-add-queue {
    background-color: #1f2937; /* slate */
    color: #fff;
    border: none;
}

    .btn-add-queue:hover {
        background-color: #374151;
        box-shadow: 0 6px 18px rgba(31, 41, 55, 0.35);
        transform: translateY(-1px);
        color: #fff;
    }

/* =========================================
   EDIT MODE — DISABLE ACTIONS
   (applied via .queue-edit-mode on body or container)
========================================= */
.queue-edit-mode .album-action-buttons .btn {
    opacity: 0.45;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}

/* =========================================
   ENTER ANIMATION (ALBUM SELECT)
========================================= */
.album-action-buttons {
    animation: albumButtonsFadeIn 0.35s ease-out both;
}

@keyframes albumButtonsFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.now-playing {
    position: relative;
    background: linear-gradient(90deg, #111, #151515);
    overflow: hidden;
}

    .now-playing::after {
        content: "";
        position: absolute;
        inset: 0;
        background: repeating-linear-gradient( 90deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 2px, transparent 2px, transparent 6px );
        animation: waveMove 6s linear infinite;
        pointer-events: none;
    }

@keyframes waveMove {
    from {
        background-position-x: 0;
    }

    to {
        background-position-x: 120px;
    }
}

.forum-post {
    animation: fadeIn 0.15s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(3px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.forum-thread span:last-child {
    transition: color 0.15s ease;
}



.forum-post-body p {
    margin-bottom: 0.6rem;
}

    .forum-post-body p:last-child {
        margin-bottom: 0;
    }

.forum-post-body ul,
.forum-post-body ol {
    margin-bottom: 0.75rem;
}

.ql-spoiler {
    width: 28px;
    position: relative;
}

    .ql-spoiler::after {
        content: "\f070"; /* Font Awesome eye-slash */
        font-family: "Font Awesome 6 Free";
        font-weight: 900; /* solid style */
        font-size: 0.95em;
        line-height: 1;
        display: inline-block;
    }



/* Outer row */
.forum-thread {
    position: relative;
    padding-left: 18px;
}


/* Inner content layout */
.forum-thread-content {
    display: block;
}

/* Title row */
.forum-thread-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}


/* Meta row */
.forum-thread-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #6c757d;
}

.forum-thread-meta-left {
    white-space: nowrap;
}

.forum-thread-meta-right {
    white-space: nowrap;
}

/* =========================
   FORUM THREAD LIST
========================= */

#forum-thread-list {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

/* Thread row */
.forum-thread {
    padding: 14px 16px;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

    /* Remove last divider */
    .forum-thread:last-child {
        border-bottom: none !important;
    }

    /* Hover */
    .forum-thread:hover {
        background: #f8f9fb;
    }

    /* Active (opened thread – optional hook later) */
    .forum-thread.active {
        background: #f1f5ff;
    }

/* Title */
.forum-thread-title {
    font-size: 0.95rem;
    line-height: 1.3;
}

/* Meta row */
.forum-thread-meta {
    margin-top: 2px;
    font-size: 0.8rem;
    color: #6b7280;
}

/* Reply count */
.forum-thread-meta-right {
    color: #374151;
    font-weight: 500;
}

/* =========================
   NEW BADGE
========================= */

.forum-thread-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.forum-thread-new-badge {
    display: none;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 2px 6px;
    border-radius: 10px;
    background: #e8f0ff;
    color: #1d4ed8;
    line-height: 1;
    text-transform: uppercase;
}

/* Show only on unread threads */
.forum-thread-unread .forum-thread-new-badge {
    display: inline-block;
}


.forum-thread {
    padding: 12px 14px;
}

.forum-thread-title {
    font-size: 0.92rem;
}

.forum-thread-meta {
    margin-top: 1px;
}

/* =========================
   FORUM UNREAD FADE
   ========================= */
.forum-thread-unread {
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

    .forum-thread-unread.removing {
        opacity: 0;
    }

.forum-thread-unread {
    background: rgba(33, 150, 243, 0.04);
}

.forum-unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2196f3;
    flex-shrink: 0;
}


/* =========================
   FORUM PAGINATION (ELLIPSIS)
   ========================= */

#forum-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
}

    /* Base button */
    #forum-pagination .btn {
        min-width: 34px;
        height: 32px;
        padding: 0 10px;
        font-size: 0.8rem;
        font-weight: 500;
        border-radius: 16px;
        border: 1px solid #dbe7e6;
        background: #fff;
        color: #2B988F;
        line-height: 1;
        transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    }

        /* Hover */
        #forum-pagination .btn:hover:not(:disabled):not(.btn-primary) {
            background-color: #DEF1EF;
            border-color: #2B988F;
            color: #2B988F;
        }

    /* Active page */
    #forum-pagination .btn-primary {
        background-color: #2B988F !important;
        border-color: #2B988F !important;
        color: #fff !important;
        pointer-events: none;
        box-shadow: 0 2px 6px rgba(43, 152, 143, 0.35);
    }

    /* Prev / Next arrows */
    #forum-pagination .btn:first-child,
    #forum-pagination .btn:last-child {
        font-size: 0.9rem;
        font-weight: 600;
    }

    /* Disabled arrows */
    #forum-pagination .btn:disabled {
        opacity: 0.4;
        cursor: default;
        box-shadow: none;
    }

    /* Ellipsis */
    #forum-pagination span {
        padding: 0 6px;
        font-size: 0.85rem;
        color: #9ca3af;
        user-select: none;
    }


/* =========================
   FORUM PAGE TRANSITION
   ========================= */

#forum-thread-list {
    transition: opacity 0.2s ease;
}

    #forum-thread-list.is-fading {
        opacity: 0;
    }


/* =========================
   THREAD LIST — BASE
========================= */

#forum-thread-list {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

/* Individual thread row */
.forum-thread {
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    position: relative;
}

    .forum-thread:not(:last-child) {
        border-bottom: 1px solid #f1f3f5;
    }

    .forum-thread:hover {
        background: #f8fafc;
    }

    /* Active (opened) thread */
    .forum-thread.active {
        background: #f1f5ff;
        cursor: default;
    }

/* Title */
.forum-thread-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Meta row */
.forum-thread-meta {
    margin-top: 3px;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #6b7280;
}

.forum-thread-meta-right {
    font-weight: 500;
    color: #374151;
}

/* Unread background */
.forum-thread-unread {
    background: rgba(43, 152, 143, 0.04);
}

/* Unread dot */
.forum-unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2B988F;
    flex-shrink: 0;
}

/* Optional NEW badge */
.forum-thread-new-badge {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(43,152,143,0.12);
    color: #2B988F;
    text-transform: uppercase;
}

#forum-thread-header {
    background: #fff;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

    #forum-thread-header h5 {
        font-size: 1.05rem;
        font-weight: 600;
        margin-bottom: 4px;
    }

    #forum-thread-header .small {
        color: #6b7280;
    }

/* =====================================================
   FORUM POSTS — REVIEW-STYLE LAYOUT
===================================================== */

.forum-post {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    position: relative;
}

    /* LEFT COLUMN — AUTHOR */
    .forum-post .forum-author {
        display: flex;
        flex-direction: column;
        align-items: center;
        background: #f8f9fa;
        padding: 1.25rem;
        border-radius: 6px;
        min-width: 180px;
        max-width: 200px;
        flex: 0 0 180px;
        text-align: center;
        max-height: 175px;
    }

        /* Avatar */
        .forum-post .forum-author img {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid #dee2e6;
            box-shadow: 0 1px 3px rgba(0,0,0,0.15);
            margin-bottom: 0.5rem;
        }

        /* Username */
        .forum-post .forum-author .username {
            font-weight: 600;
            font-size: 0.85rem;
            margin-bottom: 0.15rem;
        }

        /* Date */
        .forum-post .forum-author .post-date {
            font-size: 0.78rem;
            color: #6c757d;
        }

    /* RIGHT COLUMN — BODY */
    .forum-post .forum-content {
        flex: 1;
        position: relative;
    }

    /* Body text */
    .forum-post .forum-post-body {
        font-size: .95rem;
        line-height: 1.6;
        color: #212529;
    }

    /* Actions (delete / edit later) */
    .forum-post .forum-post-actions {
        position: absolute;
        top: 0;
        right: 0;
        z-index: 5;
    }

        .forum-post .forum-post-actions .btn-link {
            color: #bb2222;
            padding: 0;
        }

            .forum-post .forum-post-actions .btn-link:hover {
                color: #8b1a1a;
            }


/* =========================
   ORIGINAL THREAD POST
   ========================= */

#forum-thread-header {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 22px;
}


    /* Thread title */
    #forum-thread-header h5 {
        font-size: 1.05rem;
        font-weight: 600;
        margin-bottom: 6px;
    }

    /* Meta line */
    #forum-thread-header .text-muted {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }

    /* Body content */
    #forum-thread-header .forum-post-body {
        font-size: 1rem;
        line-height: 1.65;
        color: #1f2937;
    }

        /* Markdown spacing polish */
        #forum-thread-header .forum-post-body p {
            margin-bottom: 0.7rem;
        }

            #forum-thread-header .forum-post-body p:last-child {
                margin-bottom: 0;
            }

        /* Code blocks stand out more in OP */
        #forum-thread-header .forum-post-body pre {
            background: #0f172a;
            color: #e5e7eb;
            border-radius: 8px;
        }


/* =========================
   ORIGINAL POST (OP)
   ========================= */

.forum-op {
    display: flex;
    gap: 18px;
    padding: 1.25rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #2B988F;
    border-radius: 10px;
    margin-bottom: 24px;
    position: relative;
}

.forum-op-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem;
    border-radius: 6px;
    min-width: 180px;
    max-width: 200px;
    flex: 0 0 180px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    align-self: flex-start;
}


.forum-op-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #dee2e6;
    margin-bottom: 8px;
}

.forum-op-username {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.forum-op-date {
    font-size: 0.75rem;
    color: #6b7280;
}

.forum-op-content {
    flex: 1;
}

    .forum-op-content h5 {
        font-weight: 600;
    }

/* ===== Forum Post Actions (Reply / Quote / Emoji) ===== */

.quoteable {
    position: relative;
}

/* Action container */
.forum-post-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
    padding: 6px;
    border-radius: 10px;
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(0,0,0,0.08);
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    z-index: 5;
}

/* Reveal on hover */
.quoteable:hover .forum-post-actions {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-2px);
}

/* Buttons */
.forum-post-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    background: transparent;
    border-radius: 6px;
    border: none;
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

    /* Icon hover */
    .forum-post-actions button:hover {
        background: rgba(43,152,143,0.12);
        color: #2B988F;
        transform: translateY(-1px);
    }

    /* Active press */
    .forum-post-actions button:active {
        transform: translateY(0);
    }

/* OP variant (slightly flatter) */
.forum-op .forum-post-actions {
    background: rgba(255,255,255,0.92);
}

/* =========================
   FORUM EMOJI PICKER
   ========================= */

#forum-emoji-picker {
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
    background: #fff;
    overflow: hidden;
}

.forum-reply-quote {
    border-left: 3px solid #ddd;
    padding-left: 12px;
    margin: 10px 0;
    opacity: 0.85;
}

.forum-reply-to {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 6px;
}

/* =========================
   FORUM QUOTED TEXT
   ========================= */

.forum-post-body blockquote,
.forum-quote-block,
.forum-reply-quote {
    display: block;
    width: 100%;
    clear: both;
    position: relative;
    margin: 10px 0;
    padding: 10px 22px;
    border-left: 4px solid rgba(0, 0, 0, 0.15);
    background: rgba(0, 0, 0, 0.03);
    border-radius: 4px;
    font-size: 0.95rem;
    color: #444;
}


    /* Chat-sourced quote attribution header */
    .forum-quote-block .fq-attr,
    .forum-reply-quote .fq-attr {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 0.78rem;
        font-weight: 600;
        color: #2b988f;
        margin-bottom: 8px;
        padding-bottom: 7px;
        border-bottom: 1px solid rgba(0,0,0,0.08);
    }

    .fq-icon {
        font-size: 14px !important;
        opacity: 0.85;
    }

    .fq-source {
        font-weight: 400;
        color: #9aa0a8;
        font-size: 0.75rem;
    }

    .forum-quote-block .fq-body,
    .forum-reply-quote .fq-body {
        color: #555;
        line-height: 1.55;
        font-size: 0.93rem;
    }

    /* Subtle quote icon */
    .forum-quote-block::before,
    .forum-reply-quote::before {
        content: "❝";
        position: absolute;
        top: 6px;
        left: 8px;
        font-size: 1.2rem;
        opacity: 0.25;
    }

    /* Nested quotes (replying to replies) */
    .forum-post-body blockquote blockquote,
    .forum-reply-quote blockquote {
        margin-top: 8px;
        margin-left: 8px;
        border-left-color: rgba(0, 0, 0, 0.1);
        background: rgba(0, 0, 0, 0.02);
    }

    /* Keep spoilers readable inside quotes */
    .forum-post-body blockquote .spoiler,
    .forum-reply-quote .spoiler {
        background: #111;
        color: transparent;
        border-radius: 3px;
        padding: 0 4px;
    }

        .forum-post-body blockquote .spoiler.revealed,
        .forum-reply-quote .spoiler.revealed {
            background: none;
            color: inherit;
        }

/* Reply preview above editor */
.forum-reply-preview {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.09);
    border-radius: 6px;
    padding: 8px 12px;
}

.forum-reply-preview .forum-reply-quote {
    max-height: 90px;
    overflow-y: auto;
    font-size: 0.85rem;
    margin: 0;
    padding: 6px 16px;
}

/* Quote header ("Replying to @user") */
.forum-post-body .forum-reply-to {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 6px;
}


/* =====================================================
   FORUM COMPACT MODE
===================================================== */

#forum-root.forum-compact .forum-post {
    padding: 0.75rem;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

    /* Author column */
    #forum-root.forum-compact .forum-post .forum-author {
        padding: 0.5rem;
        min-width: 120px;
        max-width: 130px;
        flex: 0 0 120px;
        align-self: flex-start;
    }


        /* Avatar smaller */
        #forum-root.forum-compact .forum-post .forum-author img,
        #forum-root.forum-compact .forum-op-avatar {
            width: 40px;
            height: 40px;
            margin-bottom: 0.25rem;
        }

    /* Username + date */
    #forum-root.forum-compact .forum-post .username {
        font-size: 0.75rem;
    }

    #forum-root.forum-compact .forum-post .post-date {
        font-size: 0.7rem;
    }

    /* Body text tighter */
    #forum-root.forum-compact .forum-post .forum-post-body {
        font-size: 0.9rem;
        line-height: 1.45;
    }

/* Quotes tighter */
#forum-root.forum-compact .forum-post-body blockquote {
    padding: 6px 10px;
    margin: 6px 0;
    font-size: 0.85rem;
}

/* Actions sit closer */
#forum-root.forum-compact .forum-post-actions {
    top: 6px;
    right: 6px;
    transform: none;
}

/* OP (thread starter) */
#forum-root.forum-compact .forum-op {
    padding: 0.75rem;
    gap: 0.75rem;
}

#forum-root.forum-compact .forum-op-content {
    font-size: 0.95rem;
}

/* Thread list rows */
#forum-root.forum-compact .forum-thread {
    padding: 8px 12px;
}

#forum-root.forum-compact .forum-thread-title {
    font-size: 0.85rem;
}

#forum-root.forum-compact .forum-thread-meta {
    font-size: 0.7rem;
}

.queue-item.current-pick {
    background: #f7faf9;
    border-left: 4px solid #2B988F;
}


.post-date-line {
    font-size: 0.85rem;
    line-height: 1.2;
}

.post-time-line {
    font-size: 0.8rem;
    color: #6c757d;
    line-height: 1.3;
}


.forum-username-link {
    color: inherit;
    text-decoration: none;
}

    .forum-username-link:hover {
        text-decoration: underline;
    }


/* Delete thread button inside action bubble */
.forum-post-actions .delete-thread-btn {
    background: none;
    border: none;
    padding: 4px;
    opacity: 0.5;
    cursor: pointer;
}

    .forum-post-actions .delete-thread-btn:hover {
        opacity: 1;
        color: #dc3545; /* danger red */
    }

/* Thread list delete button */
.thread-list-delete-btn {
    background: none;
    border: none;
    padding: 2px;
    opacity: 0.4;
    cursor: pointer;
}


/* Reply count pill next to thread title */
.forum-reply-pill {
    background: rgba(0, 0, 0, 0.05);
    color: #6b7280;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
    line-height: 1;
    margin-top: 3px;
    text-transform: uppercase;
}

/* Unread accent */
.forum-thread-unread .forum-reply-pill {
    background: rgba(43,152,143,0.12);
    color: #2B988F;
}

.forum-reactions {
    display: flex;
    gap: 10px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.forum-reaction-pill {
    font-size: 13px;
    padding: 3px 9px;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    user-select: none;
    backdrop-filter: blur(10px) saturate(1.4);
    -webkit-backdrop-filter: blur(10px) saturate(1.4);
    background: rgba(255, 255, 255, 0.55);
    border: 1.5px solid rgba(0, 0, 0, 0.07);
    color: #374151;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07),
                inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.15s ease,
                background 0.15s ease;
    will-change: transform;
}

    .forum-reaction-pill:hover {
        background: rgba(255, 255, 255, 0.78);
        box-shadow: 0 5px 16px rgba(0, 0, 0, 0.1),
                    inset 0 1px 0 rgba(255, 255, 255, 0.85);
        transform: translateY(-2px) scale(1.1);
    }

    .forum-reaction-pill:active {
        transform: scale(0.93);
        transition-duration: 0.07s;
    }

    .forum-reaction-pill.active {
        background: rgba(43, 152, 143, 0.15);
        border: 1.5px solid rgba(43, 152, 143, 0.45);
        color: #155e59;
        box-shadow: 0 2px 8px rgba(43, 152, 143, 0.15),
                    inset 0 1px 0 rgba(255, 255, 255, 0.35);
    }

    .forum-reaction-pill.active:hover {
        background: rgba(43, 152, 143, 0.24);
        box-shadow: 0 5px 16px rgba(43, 152, 143, 0.22),
                    inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }

.forum-reaction-tooltip {
    background: #1e293b;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.22);
    position: fixed;
    z-index: 99999;
    pointer-events: none;
}

    .forum-reaction-tooltip::before {
        content: '';
        position: absolute;
        top: -6px;
        left: 50%;
        transform: translateX(-50%);
        border-width: 0 6px 6px 6px;
        border-style: solid;
        border-color: transparent transparent #1e293b transparent;
    }

    .forum-reaction-tooltip .reaction-user {
        white-space: nowrap;
        line-height: 1.3;
    }

.reaction-tooltip {
    position: fixed;
    z-index: 99999;
    background: #1e293b;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 5px 8px;
    border-radius: 4px;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.22);
    transform: translateY(0);
}

.reaction-tooltip-user {
    line-height: 1.6;
    white-space: nowrap;
}


.forum-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

/* Left group: filters */
.forum-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}


    /* OVERRIDE BOOTSTRAP FULL-WIDTH INPUTS */
    .forum-filters .form-control,
    .forum-filters .form-select {
        height: 36px;
        line-height: 1.2;
        padding: 0 12px 0 34px; /* space for icon */
        width: auto;
        min-width: 160px;
        max-width: 220px;
        border-radius: 8px;
        font-size: 0.85rem;
        border: 1px solid #d1d5db;
        background-color: #fff;
        transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }

        .forum-filters .form-control:focus,
        .forum-filters .form-select:focus {
            border-color: #2B988F;
            box-shadow: 0 0 0 2px rgba(43,152,143,0.15);
        }



.forum-toolbar-right {
    display: flex;
    align-items: end;
    gap: 10px;
}


.forum-thread {
    transition: background-color .15s ease, padding-left .15s ease;
}

    .forum-thread:hover {
        background: rgba(0,0,0,.03);
    }

.forum-thread-unread {
    background: rgba(0,123,255,.05);
}

.forum-unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0d6efd;
    display: inline-block;
}

.forum-reply-pill {
  font-size: .75rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f3f5;
  color: #444;
}

.forum-username-link {
    text-decoration: none;
    color: inherit;
}

    .forum-username-link:hover {
        text-decoration: underline;
    }

.forum-thread-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 2px;
}

.forum-thread-meta-date {
    color: #9ca3af;
}

#forum-thread-list > .text-muted {
    text-align: center;
    padding: 24px 12px;
}

/* Search icon */
#forum-thread-search {
    background-image: url("data:image/svg+xml,%3Csvg fill='none' stroke='%239ca3af' stroke-width='2' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='16.65' y1='16.65' x2='21' y2='21'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: 16px;
}

/* Author icon */
#forum-thread-author {
    background-image: url("data:image/svg+xml,%3Csvg fill='%239ca3af' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 12c2.7 0 5-2.3 5-5s-2.3-5-5-5-5 2.3-5 5 2.3 5 5 5zm0 2c-3.3 0-10 1.7-10 5v3h20v-3c0-3.3-6.7-5-10-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: 16px;
}

/* Sort icon */
#forum-thread-sort {
    background-image: url("data:image/svg+xml,%3Csvg fill='%239ca3af' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 18h6v-2H3v2zm0-5h12v-2H3v2zm0-7v2h18V6H3z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: 16px;
}

#forum-mark-all-read {
    height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #555;
    transition: background 0.15s ease, border-color 0.15s ease;
}

    #forum-mark-all-read:hover {
        background: #f0fdfa;
        border-color: #2B988F;
        color: #2B988F;
    }

/* =========================
   Forum dropdown arrows
   ========================= */

.forum-select-arrow {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 1.75rem; /* room for arrow */

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2399a1a7' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    background-size: 10px 6px;
}

    /* Keep focus clean */
    .forum-select-arrow:focus {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%237a8791' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    }

/* =========================
   Forum dropdown chevrons (Font Awesome)
   ========================= */

.forum-select-wrap {
    position: relative;
    display: inline-block;
}

    .forum-select-wrap > select.form-select {
        padding-right: 2rem; /* space for chevron */
    }

.forum-select-icon {
    position: absolute;
    right: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    opacity: 0.65;
    pointer-events: none; /* click goes to select */
}

.forum-thread-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* =========================
   FORUM THREAD ZEBRA STRIPING
========================= */

#forum-thread-list .forum-thread:nth-child(odd) {
    background-color: #ffffff;
}

#forum-thread-list .forum-thread:nth-child(even) {
    background-color: #f5f6f8; /* same light grey as queue */
}

/* Keep hover feeling interactive */
#forum-thread-list .forum-thread:hover {
    background-color: #e9ecef;
}

/* Make unread still stand out on top of striping */
#forum-thread-list .forum-thread-unread {
    border-left: 4px solid #6c5ce7; /* or your theme color */
    padding-left: calc(1rem - 4px);
}

/* =========================
   QUEUE ROW INTERACTIVITY
========================= */

.queue-item {
    transition: background-color 0.15s ease;
}

/* Clickable when NOT editing */
.sortableQueue:not(.editing) .queue-item {
    cursor: pointer;
}

/* Normal cursor when editing */
.sortableQueue.editing .queue-item {
    cursor: default;
}

/* Hover feedback */
.sortableQueue:not(.editing) .queue-item:hover {
    background-color: #e9ecef;
}

@media (max-width: 768px) {
    /* Action buttons: always visible on mobile (no hover on touch) */
    .msg-actions-group {
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    /* react-btn has its own opacity:0 rule in style.css — override it on mobile */
    .chat-messages .react-btn {
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    /* Hide edit, delete, and divider — not useful on mobile */
    .delete-msg-btn,
    .edit-msg-btn,
    .hv {
        display: none !important;
    }
    /* Move action buttons onto their own row below the name/time */
    .msg-meta-row {
        flex-wrap: wrap;
        align-items: baseline;
    }
    .msg-meta-row .msg-actions-group {
        flex-basis: 100%;
        margin-left: 0;
        margin-top: 6px;
    }
    /* Mute timestamp and action icons — always visible on mobile so tone them down */
    .msg-timestamp {
        opacity: 0.55;
    }
    .msg-actions-group .btn-link {
        opacity: 0.4;
    }

    /* ── Forum Quill: collapsible wrapping toolbar (no horizontal scroll) ── */
    .forum-quill-wrap {
        min-width: 0;
    }
    .forum-quill-wrap::before,
    .forum-quill-wrap::after { display: none; }
    .forum-quill-wrap .ql-toolbar.ql-snow,
    .forum-quill-wrap .ql-container.ql-snow { margin-left: 0; }
    .forum-quill-wrap .ql-toolbar.ql-snow {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        row-gap: 2px;
        padding: 4px 36px 4px 6px; /* room for the toggle on the right */
        max-height: 36px;
        overflow: hidden;
        transition: max-height 0.2s ease;
    }
    .forum-quill-wrap.is-toolbar-expanded .ql-toolbar.ql-snow {
        max-height: 240px;
    }
    .forum-quill-wrap .ql-toolbar.ql-snow .ql-formats {
        display: inline-flex;
        align-items: center;
        margin-right: 6px;
        vertical-align: middle;
    }
    .forum-quill-wrap .ql-toolbar-more-btn {
        position: absolute;
        right: 6px;
        top: 4px;
        background: transparent;
        border: 0;
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #555;
        cursor: pointer;
        padding: 0;
        line-height: 0;
        z-index: 2;
    }
    .forum-quill-wrap .ql-toolbar-more-btn .material-icons {
        font-size: 22px;
        transition: transform 0.2s ease;
    }
    .forum-quill-wrap.is-toolbar-expanded .ql-toolbar-more-btn .material-icons {
        transform: rotate(180deg);
    }

    /* ── Forum send row: box full width, Cancel below right-aligned ── */
    .forum-send-row {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    .forum-send-row .forum-thread-send-bar {
        width: 100%;
        margin-left: 0 !important;
    }
    .forum-cancel-mobile {
        align-self: flex-end;
    }
    /* reply send bar (no wrapper) also needs margin reset */
    #forum-reply-box .forum-thread-send-bar {
        margin-left: 0 !important;
    }
    /* Smaller, aligned buttons inside both send bars */
    .forum-thread-send-bar .forum-btn-preview,
    .forum-thread-send-bar .chat-send-btn,
    .forum-cancel-mobile {
        font-size: 0.78rem;
        padding: 0.25rem 0.55rem;
    }

    /* ── Thread list cards ── */
    .forum-thread {
        padding: 12px 14px !important;
        min-height: 56px;
        border-left: 3px solid transparent;
        transition: border-color 0.15s, background 0.15s;
    }
    /* Unread: left accent bar instead of tiny dot */
    .forum-thread-unread {
        border-left-color: #0d6efd !important;
    }
    .forum-thread-unread .forum-unread-dot {
        display: none;
    }
    /* Smaller avatar */
    .forum-thread-avatar {
        width: 32px;
        height: 32px;
    }
    /* Tighten gap */
    .forum-thread .d-flex.gap-3 {
        gap: 10px !important;
    }
    /* Title row: title left, reply pill right */
    .forum-thread .fw-bold.mb-1 {
        flex-wrap: nowrap;
        align-items: flex-start;
        gap: 6px;
    }
    .forum-thread .forum-thread-title {
        font-size: 0.9rem;
        line-height: 1.3;
        flex: 1;
        min-width: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    /* Reply pill: compact, right-aligned */
    .forum-thread .forum-reply-pill {
        flex-shrink: 0;
        font-size: 0.7rem;
        padding: 2px 6px;
        margin-top: 2px;
    }
    /* Meta: stack username and date onto separate lines */
    .forum-thread-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1px;
        font-size: 0.72rem;
    }

    /* ── Forum post cards: collapse to single column ── */

    /* Reply posts */
    .forum-post {
        flex-direction: column;
        gap: 0;
        padding: 12px 14px;
        margin-bottom: 16px;
        border-radius: 6px;
    }

    /* Author sidebar → compact inline header row */
    .forum-post .forum-author {
        flex-direction: row;
        align-items: center;
        min-width: unset;
        max-width: unset;
        flex: none;
        background: transparent;
        border: none;
        padding: 0 0 8px 0;
        text-align: left;
        max-height: unset;
        gap: 8px;
    }

    .forum-post .forum-author img {
        width: 30px;
        height: 30px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .forum-post .forum-author .username {
        font-size: 0.82rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .forum-post .forum-author .post-date {
        color: #9ca3af;
        margin-left: auto;
        text-align: right;
    }
    .forum-post .forum-author .post-date .post-date-line,
    .forum-post .forum-author .post-date .post-time-line {
        font-size: 0.7rem;
        color: #9ca3af;
    }

    /* Content area: flex column so we can re-order body before actions */
    .forum-post .forum-content {
        padding-top: 0;
        display: flex;
        flex-direction: column;
    }

    .forum-post .forum-post-body {
        font-size: 0.9rem;
        order: 1;
    }

    /* Reactions sit between body and actions */
    .forum-post .forum-reactions {
        order: 2;
    }

    /* OP block */
    .forum-op {
        flex-direction: column;
        gap: 0;
        padding: 12px 14px;
        margin-bottom: 16px;
    }

    .forum-op-author {
        flex-direction: row;
        align-items: center;
        min-width: unset;
        max-width: unset;
        flex: none;
        background: transparent;
        border: none;
        padding: 0 0 10px 0;
        text-align: left;
        align-self: auto;
        gap: 8px;
    }

    .forum-op-avatar {
        width: 30px;
        height: 30px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .forum-op-username {
        font-size: 0.82rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .forum-op-date {
        color: #9ca3af;
        margin-left: auto;
        text-align: right;
    }
    .forum-op-date .post-date-line,
    .forum-op-date .post-time-line {
        font-size: 0.7rem;
        color: #9ca3af;
    }

    /* OP content: flex column so order works */
    .forum-op-content {
        display: flex;
        flex-direction: column;
    }

    .forum-op-content h5       { order: 1; }
    .forum-op-content .forum-op-body { order: 2; }
    .forum-op-content .forum-reactions { order: 3; }
    .forum-op-content .forum-post-actions { order: 4; }

    /* ── Action buttons: compact pill at bottom-right, below post body ── */
    .forum-post-actions {
        order: 3;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        position: static;
        /* pill styling */
        display: inline-flex;
        align-self: flex-end;
        background: #f3f4f6;
        border: 1px solid #e5e7eb;
        border-radius: 20px;
        padding: 2px 6px;
        gap: 2px;
        margin-top: 8px;
        box-shadow: none;
    }

    .forum-post-actions button {
        width: 24px;
        height: 24px;
        color: #9ca3af;
        border-radius: 50%;
    }

    .forum-post-actions button .material-icons {
        font-size: 14px;
    }

    .forum-post-actions button:hover {
        background: rgba(43,152,143,0.12);
        color: #2B988F;
        transform: none;
    }

    /* Reply posts: no pill — just bare icon buttons */
    .forum-post .forum-post-actions {
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 4px 0 0 0;
        margin-bottom: 5px;
    }

    /* Disable hover reveal — always show on mobile */
    .quoteable:hover .forum-post-actions {
        transform: none;
    }
}

