/* ==========================================================================
   Sideband Chat - Frontend Campfire Theme Styling
   Matches Water Cooler & DBJ Projects Campfire Chat aesthetics
   Scaled to fit viewport without vertical page scrolling
   ========================================================================== */

.sideband-chat-wrapper {
    background: #0B0F19;
    color: #e4e4e7;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border-radius: 0;
    padding: 12px 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
    box-sizing: border-box;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

/* Header */
.sc-top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #1f242d;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.sc-header-left #floating-text {
    font-family: 'Oswald', sans-serif !important;
    font-size: 2.625rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    color: #e6f7ff !important;
    -webkit-text-stroke: 1px #000000 !important;
    text-shadow: 
        0 0 1.6px #fff,
        0 0 4px #00d2ff,
        0 0 8px #0066ff,
        0 0 16px #0033cc,
        0 0 28px #001166 !important;
    margin: 0 !important;
    line-height: 1.1 !important;
}

.sc-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sc-participant-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.sc-participant-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #f8fafc;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.sc-user-pill {
    text-align: right;
    font-size: 13px;
    color: #f8fafc;
    font-weight: 700;
}

/* Main Grid Container */
.sc-main-grid {
    flex: 1;
    display: flex;
    flex-direction: row;
    gap: 12px;
    min-height: 0;
    overflow: hidden;
}

.sc-thread-col {
    width: 380px;
    max-width: 45%;
    flex: 0 0 380px;
    border-left: 1px solid #2d333f;
    display: flex;
    flex-direction: column;
}

.sc-thread-header {
    padding: 10px 14px;
    background: #12161f;
    border-bottom: 1px solid #23272d;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    color: #38bdf8;
    flex-shrink: 0;
}

.sc-thread-parent-box {
    padding: 10px 14px;
    background: #181f2b;
    border-bottom: 1px solid #28303d;
    flex-shrink: 0;
}

.sc-thread-trigger-btn {
    background: transparent;
    border: none;
    color: #38bdf8;
    font-size: 10.5px;
    font-weight: 700;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.15s ease;
    margin-left: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.sc-thread-trigger-btn:hover {
    background: rgba(56, 189, 248, 0.15);
    text-decoration: underline;
}

.sc-thread-badge {
    display: inline-block;
    background: rgba(56, 189, 248, 0.18);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.35);
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 6px;
}
.sc-thread-badge:hover {
    background: rgba(56, 189, 248, 0.3);
}

/* Card */
.sc-card {
    background: linear-gradient(145deg, #161b22 0%, #11151c 100%);
    border: 1px solid #2d333f;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    position: relative;
}

.sc-view-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    position: relative;
}

.sc-room-sub {
    padding: 7px 14px;
    background: #12161f;
    border-bottom: 1px solid #23272d;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #00d2ff;
    font-weight: 700;
    flex-shrink: 0;
}

.btn-action-icon {
    background: #272c36;
    border: 1px solid #333842;
    color: #cbd5e1;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s ease;
}
.btn-action-icon:hover {
    background: #374151;
    color: #ffffff;
}

.sc-dot-live {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
    display: inline-block;
}

/* Scrollbox Stream */
.sc-scrollbox {
    flex: 1;
    padding: 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
}

.sc-loading-msg {
    text-align: center;
    color: #64748b;
    font-size: 13px;
    padding: 30px 0;
}

/* Message Bubble */
.sc-msg-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.sc-msg-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid #333842;
    object-fit: cover;
    flex-shrink: 0;
}

.sc-msg-bubble {
    background: #1e2530;
    border: 1px solid #333842;
    border-radius: 10px;
    padding: 8px 12px;
    max-width: 85%;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.sc-msg-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
}

.sc-msg-author {
    font-weight: 700;
    font-size: 12px;
    color: #f8fafc;
}

.sc-callsign-badge {
    font-size: 9px;
    font-weight: 700;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    padding: 1px 5px;
    border-radius: 4px;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.sc-msg-time {
    font-size: 10px;
    color: #64748b;
    margin-left: auto;
}

.sc-msg-body {
    font-size: 12.5px;
    color: #e2e8f0;
    line-height: 1.4;
    word-break: break-word;
}

.sc-msg-body a {
    color: #38bdf8 !important;
    text-decoration: underline !important;
    word-break: break-all;
}
.sc-msg-body a:hover {
    color: #7dd3fc !important;
}

/* Emoji Reactions */
.sc-reactions-bar {
    display: flex;
    gap: 5px;
    margin-top: 5px;
    align-items: center;
    flex-wrap: wrap;
}

.sc-reaction-chip {
    background: #151921;
    border: 1px solid #333842;
    border-radius: 10px;
    padding: 1px 6px;
    font-size: 10px;
    cursor: pointer;
    color: #cbd5e1;
    transition: all 0.15s ease;
}

.sc-reaction-chip:hover, .sc-reaction-chip.user-reacted {
    border-color: #00d2ff;
    color: #00d2ff;
    background: rgba(0, 210, 255, 0.1);
}

.sc-add-reaction-btn {
    background: #151921;
    border: 1px solid #333842;
    color: #94a3b8;
    cursor: pointer;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 4px;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 4px;
}

.sc-add-reaction-btn:hover {
    color: #00d2ff;
    border-color: #00d2ff;
    background: rgba(0, 210, 255, 0.12);
}

.sc-delete-msg-btn {
    background: #151921;
    border: 1px solid #333842;
    color: #ef4444;
    cursor: pointer;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 4px;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 4px;
}

.sc-delete-msg-btn:hover {
    color: #f87171;
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

/* Composer Input Bar */
.sc-composer-bar {
    padding: 10px 14px;
    background: #1a202c;
    border-top: 1px solid #2d333f;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.sc-input {
    background: #12161f !important;
    border: 1.5px solid #333842 !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 26px !important;
    flex: 1;
    outline: none !important;
    font-family: inherit !important;
}

.sc-input:focus {
    border-color: #00d2ff !important;
    box-shadow: 0 0 0 3px rgba(0,210,255,0.2) !important;
}

.stx-btn-gold {
    background: #A86C0B !important;
    border: 1px solid #A86C0B !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    cursor: pointer !important;
    font-size: 12.5px !important;
    white-space: nowrap;
    transition: all 0.2s ease !important;
}
.stx-btn-gold:hover {
    background: #c27d0d !important;
    border-color: #c27d0d !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(168,108,11,0.4) !important;
}

.sc-login-prompt {
    font-size: 12.5px;
    color: #94a3b8;
    text-align: center;
    width: 100%;
}

/* ==========================================================================
   Desert Theme (Earth Tones & Natural Sandstone Colors)
   ========================================================================== */
html[data-theme="desert"] .sideband-chat-wrapper,
body.theme-desert .sideband-chat-wrapper {
    background: #E8DFD5;
    color: #2D1E18;
    box-shadow: 0 12px 40px rgba(60, 40, 25, 0.15);
}

html[data-theme="desert"] .sc-top-header,
body.theme-desert .sc-top-header {
    border-bottom-color: #D3C4B4;
}

html[data-theme="desert"] .sc-header-left #floating-text,
body.theme-desert .sc-header-left #floating-text {
    color: #1e3a8a !important;
    -webkit-text-stroke: 1px #0f172a !important;
    text-shadow:
        0 0 1.6px #FFF,
        0 0 4px #4169E1,
        0 0 8px #2563EB,
        0 0 16px #1D4ED8 !important;
}

html[data-theme="desert"] .sc-participant-pill,
body.theme-desert .sc-participant-pill {
    background: #D8CBBF;
    border-color: #C4B3A2;
    color: #3E2B1E;
    box-shadow: 0 1px 3px rgba(60,40,25,0.1);
}

html[data-theme="desert"] .sc-user-pill,
body.theme-desert .sc-user-pill {
    color: #3E2B1E;
}

html[data-theme="desert"] .sc-card,
body.theme-desert .sc-card {
    background: linear-gradient(145deg, #F3ECE2 0%, #E8DFD5 100%);
    border-color: #D5C5B5;
    box-shadow: 0 8px 30px rgba(60,40,25,0.12);
}

html[data-theme="desert"] .sc-room-sub,
body.theme-desert .sc-room-sub {
    background: #DFD4C7;
    border-bottom-color: #D0BFAD;
    color: #A04A28;
}

html[data-theme="desert"] .btn-action-icon,
body.theme-desert .btn-action-icon {
    background: #D5C5B5;
    border-color: #C3B19F;
    color: #3E2B1E;
}

html[data-theme="desert"] .btn-action-icon:hover,
body.theme-desert .btn-action-icon:hover {
    background: #C8B6A4;
    color: #2D1E18;
}

html[data-theme="desert"] .sc-msg-avatar,
body.theme-desert .sc-msg-avatar {
    border-color: #C3B19F;
}

html[data-theme="desert"] .sc-msg-bubble,
body.theme-desert .sc-msg-bubble {
    background: #FAF6F0;
    border-color: #DCD0C0;
    box-shadow: 0 3px 10px rgba(60,40,25,0.08);
}

html[data-theme="desert"] .sc-msg-author,
body.theme-desert .sc-msg-author {
    color: #2D1E18;
}

html[data-theme="desert"] .sc-callsign-badge,
body.theme-desert .sc-callsign-badge {
    color: #A04A28;
    background: rgba(160, 74, 40, 0.1);
    border-color: rgba(160, 74, 40, 0.3);
}

html[data-theme="desert"] .sc-msg-time,
body.theme-desert .sc-msg-time {
    color: #8C7361;
}

html[data-theme="desert"] .sc-msg-body,
body.theme-desert .sc-msg-body {
    color: #3E2B1E;
}

html[data-theme="desert"] .sc-msg-body a,
body.theme-desert .sc-msg-body a {
    color: #C86D49 !important;
    text-decoration: underline !important;
}
html[data-theme="desert"] .sc-msg-body a:hover,
body.theme-desert .sc-msg-body a:hover {
    color: #B85B36 !important;
}

html[data-theme="desert"] .sc-reaction-chip,
body.theme-desert .sc-reaction-chip {
    background: #EDE4D8;
    border-color: #D3C4B4;
    color: #5C4636;
}

html[data-theme="desert"] .sc-reaction-chip:hover,
html[data-theme="desert"] .sc-reaction-chip.user-reacted,
body.theme-desert .sc-reaction-chip:hover,
body.theme-desert .sc-reaction-chip.user-reacted {
    border-color: #C86D49;
    color: #C86D49;
    background: rgba(200, 109, 73, 0.12);
}

html[data-theme="desert"] .sc-add-reaction-btn,
body.theme-desert .sc-add-reaction-btn {
    background: #EDE4D8;
    border-color: #D3C4B4;
    color: #7A6250;
}

html[data-theme="desert"] .sc-add-reaction-btn:hover,
body.theme-desert .sc-add-reaction-btn:hover {
    color: #C86D49;
    border-color: #C86D49;
    background: rgba(200, 109, 73, 0.12);
}

html[data-theme="desert"] .sc-composer-bar,
body.theme-desert .sc-composer-bar {
    background: #DFD4C7;
    border-top-color: #D0BFAD;
}

html[data-theme="desert"] .sc-input,
body.theme-desert .sc-input {
    background: #FAF6F0 !important;
    border-color: #C8B6A4 !important;
    color: #2D1E18 !important;
}

html[data-theme="desert"] .sc-input:focus,
body.theme-desert .sc-input:focus {
    border-color: #C86D49 !important;
    box-shadow: 0 0 0 3px rgba(200, 109, 73, 0.25) !important;
}

html[data-theme="desert"] .stx-btn-gold,
body.theme-desert .stx-btn-gold {
    background: #C86D49 !important;
    border-color: #C86D49 !important;
    color: #FFFFFF !important;
}

html[data-theme="desert"] .stx-btn-gold:hover,
body.theme-desert .stx-btn-gold:hover {
    background: #B85B36 !important;
    border-color: #B85B36 !important;
    box-shadow: 0 4px 12px rgba(200, 109, 73, 0.4) !important;
}

/* ==========================================================================
   Pretty Custom Notification Modal
   ========================================================================== */
.sc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 8, 15, 0.75);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sc-modal-box {
    background: #161b22;
    border: 1px solid #333842;
    border-radius: 12px;
    padding: 24px 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    color: #f8fafc;
    animation: scModalPop 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scModalPop {
    0% { transform: scale(0.85); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.sc-modal-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.sc-modal-text {
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 20px;
    line-height: 1.5;
}

html[data-theme="desert"] .sc-modal-box,
body.theme-desert .sc-modal-box {
    background: #FAF6F0;
    border-color: #D3C4B4;
    color: #2D1E18;
    box-shadow: 0 16px 40px rgba(60, 40, 25, 0.2);
}

html[data-theme="desert"] .sc-modal-text,
body.theme-desert .sc-modal-text {
    color: #3E2B1E;
}

/* ==========================================================================
   Image Thumbnails & Lightbox Preview Modal
   ========================================================================== */
.sc-msg-image-thumb {
    max-width: 225px;
    max-height: 225px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    border: 1.5px solid #333842;
    margin-top: 6px;
    cursor: pointer;
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sc-msg-image-thumb:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 210, 255, 0.3);
    border-color: #00d2ff;
}

.sc-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 7, 13, 0.88);
    backdrop-filter: blur(6px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.sc-lightbox-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 90vh;
    animation: scModalPop 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sc-lightbox-container img {
    max-width: 700px;
    max-height: 700px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    border: 2px solid #333842;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.8);
}

.sc-lightbox-caption {
    margin-top: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(15, 23, 42, 0.8);
    padding: 4px 12px;
    border-radius: 12px;
}

html[data-theme="desert"] .sc-msg-image-thumb,
body.theme-desert .sc-msg-image-thumb {
    border-color: #D3C4B4;
    box-shadow: 0 4px 12px rgba(60, 40, 25, 0.15);
}

html[data-theme="desert"] .sc-msg-image-thumb:hover,
body.theme-desert .sc-msg-image-thumb:hover {
    border-color: #C86D49;
    box-shadow: 0 6px 16px rgba(200, 109, 73, 0.3);
}

html[data-theme="desert"] .sc-lightbox-container img,
body.theme-desert .sc-lightbox-container img {
    border-color: #D3C4B4;
}

/* ==========================================================================
   Jitsi Audio Channel Controls & Movable Widget Styling
   ========================================================================== */
.sc-btn-audio-disabled {
    background: #7f1d1d !important;
    border-color: #991b1b !important;
    color: #fca5a5 !important;
}

.sc-btn-audio-enabled {
    background: #065f46 !important;
    border-color: #047857 !important;
    color: #6ee7b7 !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4) !important;
}

.sc-audio-widget {
    position: fixed;
    top: 80px;
    right: 25px;
    width: 350px;
    background: #161b22;
    border: 1px solid #333842;
    border-radius: 12px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.65);
    z-index: 99999;
    overflow: hidden;
    user-select: none;
    animation: scModalPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sc-audio-widget-header {
    background: #12161f;
    padding: 10px 14px;
    border-bottom: 1px solid #28303d;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
}

.sc-audio-widget-title {
    font-size: 13px;
    font-weight: 700;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sc-audio-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: scPulse 1.5s infinite;
}

@keyframes scPulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

.sc-audio-widget-body {
    padding: 12px 14px;
}

.sc-audio-participants-label {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 6px;
}

.sc-audio-participant-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-height: 85px;
    overflow-y: auto;
    margin-bottom: 12px;
}

.sc-audio-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #1e293b;
    border: 1px solid #334155;
    color: #f8fafc;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.sc-audio-widget-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.sc-vu-container {
    background: #0d1117;
    border: 1px solid #28303d;
    border-radius: 8px;
    padding: 10px;
}

.sc-vu-label {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 4px;
}

.sc-vu-canvas {
    width: 100%;
    height: 30px;
    display: block;
    border-radius: 4px;
    background: #05080f;
}

html[data-theme="desert"] .sc-audio-widget,
body.theme-desert .sc-audio-widget {
    background: #FAF6F0;
    border-color: #D3C4B4;
    color: #2D1E18;
    box-shadow: 0 16px 45px rgba(60, 40, 25, 0.2);
}

html[data-theme="desert"] .sc-audio-widget-header,
body.theme-desert .sc-audio-widget-header {
    background: #DFD4C7;
    border-bottom-color: #D0BFAD;
}

html[data-theme="desert"] .sc-audio-pill,
body.theme-desert .sc-audio-pill {
    background: #D8CBBF;
    border-color: #C4B3A2;
    color: #3E2B1E;
}

html[data-theme="desert"] .sc-vu-container,
body.theme-desert .sc-vu-container {
    background: #E8DFD5;
    border-color: #D3C4B4;
}

html[data-theme="desert"] .sc-vu-canvas,
body.theme-desert .sc-vu-canvas {
    background: #FAF6F0;
}

/* @Mention Badges & Autocomplete Popup */
.sc-mention-badge {
    background: rgba(56, 189, 248, 0.18);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 4px;
    padding: 1px 5px;
    font-weight: 700;
    display: inline-block;
    cursor: pointer;
    transition: all 0.15s ease;
}
.sc-mention-badge:hover {
    background: rgba(56, 189, 248, 0.35);
    color: #ffffff;
    text-shadow: 0 0 6px rgba(56, 189, 248, 0.6);
}

.sc-autocomplete-dropdown {
    position: absolute;
    bottom: calc(100% + 4px);
    left: 10px;
    width: 320px;
    max-height: 240px;
    overflow-y: auto;
    background: #181f2b;
    border: 1px solid #334155;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    z-index: 9999;
    display: none;
}

.sc-autocomplete-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid #232d3f;
}
.sc-autocomplete-item:last-child {
    border-bottom: none;
}
.sc-autocomplete-item:hover,
.sc-autocomplete-item.active {
    background: #2563eb;
    color: #ffffff;
}

.sc-autocomplete-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.sc-autocomplete-name {
    font-size: 12.5px;
    font-weight: 600;
}

html[data-theme="desert"] .sc-mention-badge,
body.theme-desert .sc-mention-badge {
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
    border-color: rgba(37, 99, 235, 0.3);
}

html[data-theme="desert"] .sc-autocomplete-dropdown,
body.theme-desert .sc-autocomplete-dropdown {
    background: #FAF6F0;
    border-color: #D3C4B4;
    color: #2D1E18;
    box-shadow: 0 10px 30px rgba(60, 40, 25, 0.2);
}

html[data-theme="desert"] .sc-autocomplete-item,
body.theme-desert .sc-autocomplete-item {
    border-bottom-color: #E8DFD5;
}

html[data-theme="desert"] .sc-autocomplete-item:hover,
html[data-theme="desert"] .sc-autocomplete-item.active,
body.theme-desert .sc-autocomplete-item:hover,
body.theme-desert .sc-autocomplete-item.active {
    background: #2563eb;
    color: #ffffff;
}

/* Active Discussions & PM Badges Dock (Right Side) */
.sc-active-dock {
    width: 220px;
    max-width: 240px;
    flex: 0 0 220px;
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.sc-active-dock-header {
    padding: 10px 14px;
    background: #1e293b;
    border-bottom: 1px solid #334155;
    font-size: 11px;
    font-weight: 800;
    color: #38bdf8;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.sc-active-dock-items {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    flex: 1;
}

.sc-dock-badge-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: #182234;
    border: 1px solid #293548;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #e2e8f0;
    font-size: 12px;
}

.sc-dock-badge-item:hover,
.sc-dock-badge-item.active {
    background: #2563eb;
    border-color: #60a5fa;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.sc-dock-badge-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.sc-dock-badge-exit {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 12px;
    cursor: pointer;
    padding: 2px 4px;
    line-height: 1;
    border-radius: 4px;
    transition: color 0.15s ease, background 0.15s ease;
    margin-left: 4px;
}

.sc-dock-badge-exit:hover {
    color: #f87171;
    background: rgba(239, 68, 68, 0.2);
}


