/* =========================================================
   EDUBROS 4-COLOR DRAGGABLE STICKY NOTES SYSTEM (DESKTOP + MOBILE + APP)
   ========================================================= */

.eb-sn-launcher-bar {
    position: fixed;
    left: 16px;
    bottom: 90px;
    z-index: 2147483600;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 999px;
    background: rgba(244, 244, 246, 0.96);
    border: 1px solid #e4e4e7;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    user-select: none;
    -webkit-user-select: none;
}

.eb-sn-toggle-btn,
.eb-sn-add-btn {
    border: 0;
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1.2;
    transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.eb-sn-toggle-btn {
    background: #ffffff;
    color: #111827;
    border: 1px solid #e4e4e7;
}

.eb-sn-toggle-btn.is-active {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
}

.eb-sn-add-btn {
    background: #23486a;
    color: #ffffff;
}

.eb-sn-swatches {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 0 4px;
}

.eb-sn-launcher-bar.is-active .eb-sn-swatches {
    display: inline-flex;
}

.eb-sn-swatch {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.eb-sn-swatch.is-selected {
    border-color: #111827;
    transform: scale(1.14);
}

.eb-sn-swatch[data-color="yellow"] { background: #fde047; }
.eb-sn-swatch[data-color="green"]  { background: #6ee7b7; }
.eb-sn-swatch[data-color="pink"]   { background: #f9a8d4; }
.eb-sn-swatch[data-color="blue"]   { background: #7dd3fc; }

.eb-sn-mode-hint {
    display: none;
    font-size: 11px;
    font-weight: 600;
    color: #4b5563;
    padding-right: 6px;
}

.eb-sn-launcher-bar.is-active .eb-sn-mode-hint {
    display: inline-block;
}

/* Line hover highlight while Sticky Note Mode is ON */
html.eb-sn-line-pick-mode p:hover,
html.eb-sn-line-pick-mode li:hover,
html.eb-sn-line-pick-mode h2:hover,
html.eb-sn-line-pick-mode h3:hover,
html.eb-sn-line-pick-mode .edubros-option:hover,
html.eb-sn-line-pick-mode .expl-option-reason:hover {
    outline: 2px dashed #f59e0b !important;
    outline-offset: 3px !important;
    background-color: rgba(254, 240, 138, 0.28) !important;
    border-radius: 6px !important;
    cursor: copy !important;
}

/* Individual Draggable Sticky Note Card (4 Color Themes) */
.eb-sticky-note {
    position: fixed;
    z-index: 2147483610;
    width: 265px;
    min-height: 155px;
    max-width: calc(100vw - 24px);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(15, 23, 42, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: box-shadow 0.18s ease;
    touch-action: none;
}

.eb-sticky-note.is-dragging {
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.28);
    opacity: 0.96;
}

.eb-sticky-note.is-minimized {
    min-height: 0 !important;
    height: auto !important;
    width: 205px;
}

.eb-sticky-note.is-minimized .eb-sticky-note__body {
    display: none !important;
}

/* Color 1: Sunburst Yellow */
.eb-sticky-note[data-color="yellow"] {
    background: linear-gradient(160deg, #fef9c3 0%, #fef08a 100%);
    border: 1px solid #facc15;
    color: #422006;
}
.eb-sticky-note[data-color="yellow"] .eb-sticky-note__head {
    background: rgba(250, 204, 21, 0.35);
    border-bottom: 1px solid rgba(202, 138, 4, 0.2);
}

/* Color 2: Emerald Mint */
.eb-sticky-note[data-color="green"] {
    background: linear-gradient(160deg, #ecfdf5 0%, #a7f3d0 100%);
    border: 1px solid #34d399;
    color: #064e3b;
}
.eb-sticky-note[data-color="green"] .eb-sticky-note__head {
    background: rgba(52, 211, 153, 0.28);
    border-bottom: 1px solid rgba(5, 150, 105, 0.18);
}

/* Color 3: Rose Blossom */
.eb-sticky-note[data-color="pink"] {
    background: linear-gradient(160deg, #fdf2f8 0%, #fbcfe8 100%);
    border: 1px solid #f472b6;
    color: #500724;
}
.eb-sticky-note[data-color="pink"] .eb-sticky-note__head {
    background: rgba(244, 114, 182, 0.25);
    border-bottom: 1px solid rgba(219, 39, 119, 0.18);
}

/* Color 4: Sky Ocean */
.eb-sticky-note[data-color="blue"] {
    background: linear-gradient(160deg, #f0f9ff 0%, #bae6fd 100%);
    border: 1px solid #38bdf8;
    color: #0c4a6e;
}
.eb-sticky-note[data-color="blue"] .eb-sticky-note__head {
    background: rgba(56, 189, 248, 0.25);
    border-bottom: 1px solid rgba(2, 132, 199, 0.18);
}

.eb-sticky-note__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 8px 10px;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.eb-sticky-note__head:active {
    cursor: grabbing;
}

.eb-sticky-note__title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.85;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eb-sticky-note__dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.eb-sticky-note__dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.22);
    padding: 0;
    cursor: pointer;
}
.eb-sticky-note__dot[data-color="yellow"] { background: #fde047; }
.eb-sticky-note__dot[data-color="green"]  { background: #6ee7b7; }
.eb-sticky-note__dot[data-color="pink"]   { background: #f9a8d4; }
.eb-sticky-note__dot[data-color="blue"]   { background: #7dd3fc; }

.eb-sticky-note__btn {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.65);
    color: inherit;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.eb-sticky-note__body {
    padding: 10px 12px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.eb-sticky-note__textarea {
    width: 100%;
    min-height: 105px;
    border: 0;
    outline: 0;
    background: transparent;
    color: inherit;
    font: 600 13px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    resize: vertical;
    padding: 0;
    margin: 0;
    user-select: text !important;
    -webkit-user-select: text !important;
}

@media (max-width: 640px) {
    .eb-sn-launcher-bar {
        left: 10px;
        bottom: 84px;
        padding: 5px 7px;
    }
    .eb-sn-mode-hint {
        display: none !important;
    }
    .eb-sticky-note {
        width: 235px;
        min-height: 140px;
    }
}
