/* ============================================
   Module Sticky Note - Float Toolbar + Drag&Drop
   ============================================ */

/* --- WRAPPER --- */
.sticky-page-wrap {
    background: linear-gradient(160deg, #f0fdf4 0%, #faf5ff 35%, #eff6ff 65%, #fefce8 100%) !important;
    min-height: 100vh;
    position: relative;
}

/* --- TOOLBAR NEW --- */
.sticky-toolbar-new {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 24px;
    margin-bottom: 10px;
    flex-wrap: nowrap;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

.sticky-tb-left { flex-shrink: 0; display: flex; align-items: center; gap: 10px; }

.sticky-tb-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    justify-content: flex-end;
    overflow: hidden;
}

/* Nút tạo mới — bên trái, gradient + glow */
.sticky-tb-create {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #0f9d4f 0%, #059669 50%, #0d9488 100%);
    box-shadow: 0 4px 16px rgba(15,157,79,.3), 0 0 0 0 rgba(15,157,79,.4);
    transition: all .3s cubic-bezier(.4,0,.2,1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.sticky-tb-create::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity .3s;
}

.sticky-tb-create:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(15,157,79,.35), 0 0 0 3px rgba(15,157,79,.06);
}

.sticky-tb-create:hover::before { opacity: 1; }

.sticky-tb-create-icon {
    font-size: 14px;
    transition: transform .3s cubic-bezier(.4,0,.2,1);
}

.sticky-tb-create:hover .sticky-tb-create-icon {
    transform: rotate(90deg);
}

/* Search box */
.sticky-tb-search {
    position: relative;
    display: flex;
    align-items: center;
}

.sticky-tb-search-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 14px;
    z-index: 1;
    transition: color .25s, transform .25s;
}

.sticky-tb-search:focus-within .sticky-tb-search-icon {
    color: #0f9d4f;
    transform: scale(1.15);
}

.sticky-tb-search input {
    width: 220px;
    padding: 10px 34px 10px 38px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 13px;
    outline: none;
    background: #fff;
    color: #334155;
    transition: all .25s;
    box-shadow: 0 1px 3px rgba(0,0,0,.03);
}

.sticky-tb-search input:focus {
    width: 280px;
    border-color: #0f9d4f;
    box-shadow: 0 0 0 4px rgba(15,157,79,.06), 0 2px 8px rgba(0,0,0,.04);
}

.sticky-tb-search input::placeholder { color: #cbd5e1; }

.sticky-tb-search-clear {
    position: absolute;
    right: 6px;
    border: none;
    background: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 12px;
    padding: 5px 7px;
    border-radius: 8px;
    z-index: 1;
    transition: all .15s;
}

.sticky-tb-search-clear:hover {
    color: #ef4444;
    background: rgba(239,68,68,.06);
}

/* Tag selector */
.sticky-tb-tag-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.sticky-tb-tag-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 12px;
    z-index: 1;
    pointer-events: none;
    transition: color .2s;
}

.sticky-tb-tag-wrap:hover .sticky-tb-tag-icon { color: #0f9d4f; }

.sticky-tb-tag {
    padding: 9px 14px 9px 34px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 13px;
    background: #fff;
    color: #475569;
    cursor: pointer;
    min-width: 150px;
    outline: none;
    box-shadow: 0 1px 3px rgba(0,0,0,.03);
    appearance: none;
    -webkit-appearance: none;
    transition: all .2s;
}

.sticky-tb-tag:hover { border-color: #cbd5e1; }
.sticky-tb-tag:focus { border-color: #0f9d4f; box-shadow: 0 0 0 3px rgba(15,157,79,.06); }

/* Segment toggle Mở / Lưu trữ */
.sticky-tb-seg {
    display: flex;
    gap: 2px;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 3px;
}

.sticky-tb-seg-btn {
    border: none;
    background: transparent;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all .2s;
    white-space: nowrap;
    font-weight: 500;
}

.sticky-tb-seg-btn i { font-size: 13px; }

.sticky-tb-seg-btn.active {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.sticky-tb-seg-btn:not(.active):hover { color: #334155; }

.sticky-tb-reload {
    width: 36px; height: 36px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
    transition: all .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.03);
    flex-shrink: 0;
}
.sticky-tb-reload:hover { background: #f0fdf4; color: #0f9d4f; border-color: #0f9d4f; }
.sticky-tb-reload:active { transform: rotate(180deg); transition: transform .3s; }

/* --- CmbTag filter --- */
.cmb-tag-wrap { position: relative; display: flex; align-items: center; }
.cmb-tag-select {
    width: 100%; padding: 9px 12px;
    border: 1.5px solid #e2e8f0; border-radius: 10px;
    font-size: 13px; background: #fff; color: #475569;
    cursor: pointer; outline: none;
    box-shadow: 0 1px 3px rgba(0,0,0,.03);
    appearance: none; -webkit-appearance: none;
    transition: border-color .15s;
}
.cmb-tag-select:hover { border-color: #cbd5e1; }
.cmb-tag-select:focus { border-color: #0f9d4f; box-shadow: 0 0 0 3px rgba(15,157,79,.06); }
.cmb-tag-delete {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    border: none; background: none; color: #94a3b8;
    cursor: pointer; font-size: 12px; padding: 3px 5px;
    border-radius: 4px; transition: all .15s; z-index: 1;
}
.cmb-tag-delete:hover { color: #ef4444; background: rgba(239,68,68,.06); }

/* --- CONTENT --- */
.sticky-page-content {
    padding: 0 24px 40px;
}

/* --- EMPTY STATE --- */
.sticky-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: #94a3b8;
    gap: 14px;
}

.sticky-empty-icon {
    width: 80px; height: 80px;
    border-radius: 24px;
    background: rgba(15,157,79,.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticky-empty-icon i {
    font-size: 36px;
    color: #0f9d4f;
    opacity: .5;
}

.sticky-empty p {
    font-size: 15px;
    margin: 0;
    color: #94a3b8;
}

/* --- LOADING --- */
.sticky-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    gap: 12px;
    color: #94a3b8;
    font-size: 14px;
}

.sticky-loading-spinner {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 3px solid rgba(15,157,79,.1);
    border-top-color: #0f9d4f;
    animation: stickySpin .7s linear infinite;
}

@keyframes stickySpin { to { transform: rotate(360deg); } }

/* --- MASONRY GRID --- */
.sticky-masonry {
    columns: 5 250px;
    column-gap: 18px;
}

@media (max-width: 1400px) { .sticky-masonry { columns: 4 230px; } }
@media (max-width: 1100px) { .sticky-masonry { columns: 3 220px; } }
@media (max-width: 768px)  { .sticky-masonry { columns: 2 180px; } }
@media (max-width: 480px)  { .sticky-masonry { columns: 1 100%; } }

/* --- CARD WRAPPER cho drag-drop --- */
.sticky-card-wrap {
    break-inside: avoid;
    margin-bottom: 18px;
    transition: opacity .25s, transform .25s cubic-bezier(.4,0,.2,1), filter .25s;
    cursor: grab;
    position: relative;
}

.sticky-card-wrap:active { cursor: grabbing; }

/* Card đang được kéo — mờ + nhỏ + xoay nhẹ + viền glow */
.sticky-card-wrap.dragging {
    opacity: .25;
    transform: scale(.88) rotate(1.5deg);
    filter: blur(1px);
}

.sticky-card-wrap.dragging .sticky-card {
    box-shadow: 0 0 0 3px rgba(59,130,246,.4), 0 8px 30px rgba(59,130,246,.15) !important;
    border-color: rgba(59,130,246,.5) !important;
}

/* Card là drop target — highlight xanh nổi bật */
.sticky-card-wrap.drag-over {
    transform: scale(1.03);
    z-index: 5;
}

.sticky-card-wrap.drag-over .sticky-card {
    box-shadow: 0 0 0 3px rgba(15,157,79,.5), 0 0 24px rgba(15,157,79,.2), 0 8px 24px rgba(0,0,0,.1) !important;
    border-color: rgba(15,157,79,.6) !important;
    animation: stickyPulseGlow .8s ease-in-out infinite;
}

@keyframes stickyPulseGlow {
    0%, 100% { box-shadow: 0 0 0 3px rgba(15,157,79,.5), 0 0 24px rgba(15,157,79,.2), 0 8px 24px rgba(0,0,0,.1); }
    50% { box-shadow: 0 0 0 5px rgba(15,157,79,.3), 0 0 36px rgba(15,157,79,.35), 0 8px 24px rgba(0,0,0,.1); }
}

.sticky-card-wrap:hover {
    z-index: 1;
}

/* --- CARD --- */
.sticky-card {
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,.06);
    padding: 18px 20px 14px;
    cursor: pointer;
    position: relative;
    transition: all .25s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 2px 8px rgba(0,0,0,.04), 0 0 0 1px rgba(0,0,0,.02);
    pointer-events: auto;
}

.sticky-card:hover {
    box-shadow: 0 10px 32px rgba(0,0,0,.1), 0 0 0 2px rgba(15,157,79,.15);
    transform: translateY(-3px);
}

.sticky-card-pin {
    position: absolute;
    top: 6px;
    right: 10px;
    color: #94a3b8;
    font-size: 14px;
    opacity: .7;
    transition: all .2s;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0,0,0,.06);
}

.sticky-card-pin:hover { opacity: 1; color: #f59e0b; transform: scale(1.2); }

.sticky-card-title {
    font-weight: 650;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 8px;
    padding-right: 24px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -.01em;
}

.sticky-card-body {
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
    white-space: pre-line;
    word-break: break-word;
}

.sticky-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.sticky-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 550;
    color: #374151;
    background: linear-gradient(135deg, rgba(15,157,79,.06), rgba(6,182,212,.04));
    border: 1px solid rgba(15,157,79,.1);
    letter-spacing: .01em;
}
.sticky-card-tag i { font-size: 9px; color: #0f9d4f; opacity: .7; }

.sticky-card-tag-more {
    background: linear-gradient(135deg, rgba(100,116,139,.05), rgba(100,116,139,.03));
    color: #6b7280;
    font-weight: 500;
    border-color: rgba(100,116,139,.08);
}

.sticky-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,.06);
}

.sticky-card-indicators { display: flex; gap: 10px; }

.sticky-card-indicator { font-size: 13px; opacity: .65; transition: opacity .15s; }
.sticky-card-indicator.reminder { color: #f59e0b; }
.sticky-card-indicator.attachment { color: #6366f1; }
.sticky-card-wrap:hover .sticky-card-indicator { opacity: .9; }

.sticky-card-time { font-size: 11px; color: #64748b; font-weight: 500; }

/* --- MENU HOVER --- */
.sticky-card-menu {
    position: absolute;
    bottom: 8px;
    left: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    border: 1px solid rgba(255,255,255,.7);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .2s, transform .2s;
    pointer-events: none;
}

.sticky-card-wrap:hover .sticky-card-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.sticky-card-menu-btn {
    border: none;
    background: none;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 14px;
    color: #64748b;
    cursor: pointer;
    transition: all .15s;
}

.sticky-card-menu-btn:hover { background: rgba(15,23,42,.05); color: #1e293b; }
.sticky-card-menu-btn.danger:hover { background: rgba(239,68,68,.08); color: #ef4444; }

/* Color picker button */
.sticky-card-color-picker {
    position: relative;
}

.sticky-color-btn {
    display: flex !important;
    align-items: center;
    gap: 5px;
    padding: 5px 8px !important;
}

.sticky-color-dot-current {
    width: 14px; height: 14px;
    border-radius: 50%;
    border: 1.5px solid rgba(0,0,0,.1);
    flex-shrink: 0;
}

/* Color popup */
.sticky-color-popup {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    padding: 8px 10px;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0,0,0,.12), 0 0 0 1px rgba(0,0,0,.05);
    z-index: 20;
    animation: stickyColorPopIn .18s cubic-bezier(.4,0,.2,1);
}

@keyframes stickyColorPopIn {
    from { opacity: 0; transform: translateX(-50%) translateY(6px) scale(.9); }
    to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

.sticky-color-popup-dot {
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,.08);
    cursor: pointer;
    padding: 0;
    transition: all .15s;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.sticky-color-popup-dot:hover {
    transform: scale(1.2);
    border-color: rgba(0,0,0,.2);
    box-shadow: 0 3px 10px rgba(0,0,0,.12);
}

.sticky-color-popup-dot.active {
    border-color: #0f9d4f;
    box-shadow: 0 0 0 3px rgba(15,157,79,.15);
}

.sticky-color-popup-reset {
    width: 22px; height: 22px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,.1);
    background: #fff;
    color: #94a3b8;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px;
    padding: 0;
}
.sticky-color-popup-reset:hover { color: #475569; background: #f1f5f9; }

/* Editor color reset */
.sticky-editor-color-reset {
    width: 26px; height: 26px;
    border-radius: 6px;
    border: 1.5px dashed rgba(0,0,0,.12);
    background: #fff;
    color: #94a3b8;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px;
    padding: 0;
    transition: all .15s;
}
.sticky-editor-color-reset:hover { color: #475569; border-color: #94a3b8; }

/* Xoá old color dots style */
.sticky-card-menu-colors { display: none; }
.sticky-card-color-dot { display: none; }

/* --- EDITOR --- */
.sticky-editor-overlay {
    position: fixed; inset: 0; z-index: 1060;
    background: rgba(15,23,42,.5); backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px; overflow-y: auto;
}
.sticky-editor {
    width: 100%; max-width: 900px;
    height: calc(100dvh - 40px); max-height: calc(100dvh - 40px);
    background: #fff; border-radius: 16px;
    box-shadow: 0 28px 72px rgba(0,0,0,.25), 0 0 0 1px rgba(255,255,255,.08);
    display: flex; flex-direction: column; overflow: hidden;
    animation: stickySlideUp .22s cubic-bezier(.4,0,.2,1); margin: auto;
}
@keyframes stickySlideUp { from { opacity:0; transform:translateY(20px) scale(.96); } to { opacity:1; transform:none; } }
.sticky-editor-header {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-bottom: 1px solid #f1f5f9; flex-shrink: 0;
}
.sticky-editor-header-icon {
    width: 32px; height: 32px; border-radius: 9px;
    background: linear-gradient(135deg,#0f9d4f,#0d9488); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; flex-shrink: 0; box-shadow: 0 2px 8px rgba(15,157,79,.2);
}
.sticky-editor-header-text { flex: 1; min-width: 0; }
.sticky-editor-header-text h3 { font-size: 14px; font-weight: 650; margin: 0; color: #0f172a; }
.sticky-editor-header-sub { font-size: 11px; color: #94a3b8; display: flex; align-items: center; gap: 4px; }
.sticky-editor-close {
    border: none; background: none; width: 30px; height: 30px; border-radius: 8px;
    font-size: 15px; color: #94a3b8; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all .15s; flex-shrink: 0;
}
.sticky-editor-close:hover { background: #f1f5f9; color: #475569; }
.sticky-editor-body { flex: 1 1 0; display: flex; min-height: 0; overflow: hidden; max-height: 100%; }
.sticky-editor-main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; padding: 10px 14px; overflow: hidden; }
.sticky-editor-main .sticky-editor-field { padding: 0; }
.sticky-editor-title-field { margin-bottom: 14px !important; flex-shrink: 0; }
.sticky-editor-content-field { flex: 1 1 0; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.sticky-rich-editor,
.sticky-editor-content-field .rich-editor { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.sticky-editor-content-field .rich-editor .re-toolbar { flex-shrink: 0; position: sticky; top: 0; z-index: 2; background: #fff; }
.sticky-editor-content-field .rich-editor .re-editor { flex: 1; overflow-y: auto; min-height: 120px; }
.sticky-editor-loading { flex: 1; display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 13px; }
.sticky-editor-sidebar {
    width: 260px; flex-shrink: 0; overflow-y: auto;
    padding: 14px 18px 14px 14px; border-left: 1px solid #f1f5f9;
    background: rgba(0,0,0,.01); display: flex; flex-direction: column;
}
.sticky-editor-field { padding: 0 0 16px 0; margin-bottom: 4px; border-bottom: 1px solid #e2e8f0; }
.sticky-editor-field:last-child { border-bottom: none; margin-bottom: 0; }
.sticky-editor-sidebar .sticky-editor-field { padding: 8px 0; }
.sticky-editor-sidebar .sticky-editor-field:first-child { padding-top: 0; }
.sticky-editor-sidebar .sticky-editor-field:last-child { padding-bottom: 0; flex: 0 0 auto; }
.sticky-editor-sidebar .sticky-editor-field:last-of-type { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.sticky-editor-label {
    display: flex; align-items: center; gap: 5px;
    font-size: 10.5px; font-weight: 600; color: #94a3b8;
    text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px;
}
.sticky-editor-label i { font-size: 11px; color: #0f9d4f; }
.sticky-editor-label-clickable { cursor: pointer; user-select: none; }
.sticky-editor-title {
    width: 100%; border: 1.5px solid #e2e8f0; border-radius: 9px;
    padding: 8px 12px; font-size: 14px; font-weight: 600;
    color: #0f172a; outline: none; background: #fff;
    transition: border-color .15s; box-sizing: border-box;
}
.sticky-editor-title:focus { border-color: #0f9d4f; box-shadow: 0 0 0 3px rgba(15,157,79,.08); }
.sticky-editor-title::placeholder { color: #cbd5e1; font-weight: 400; }
.sticky-editor-colors { display: flex; gap: 7px; }
.sticky-editor-color-btn {
    width: 26px; height: 26px; border-radius: 7px;
    border: 2px solid rgba(0,0,0,.06); cursor: pointer; padding: 0;
    transition: all .15s; box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.sticky-editor-color-btn.active { border-color: #0f9d4f; box-shadow: 0 0 0 3px rgba(15,157,79,.18); }
.sticky-editor-color-btn:hover { transform: scale(1.15); }
.sticky-editor-tags { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.sticky-editor-tag-chip {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 9px; border-radius: 7px; font-size: 11px; font-weight: 500;
    background: rgba(15,157,79,.07); color: #0f9d4f; border: 1px solid rgba(15,157,79,.1);
}
.sticky-editor-tag-chip button { border: none; background: none; color: inherit; font-size: 13px; cursor: pointer; opacity: .5; padding: 0; line-height: 1; }
.sticky-editor-tag-chip button:hover { opacity: 1; }
.sticky-editor-tag-input { border: 1.5px solid #e2e8f0; border-radius: 7px; padding: 4px 10px; font-size: 11px; outline: none; width: 100px; background: #fff; transition: border-color .15s; }
.sticky-editor-tag-input:focus { border-color: #0f9d4f; }
.sticky-editor-checkbox-hidden { display: none; }
.sticky-editor-repeat-select { display: none; }

.sticky-repeat-group {
    display: flex;
    gap: 3px;
    margin-top: 6px;
}

.sticky-repeat-btn {
    flex: 1;
    padding: 5px 6px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 7px;
    font-size: 10.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    transition: all .15s;
    white-space: nowrap;
}

.sticky-repeat-btn i { font-size: 11px; }

.sticky-repeat-btn:hover {
    border-color: #cbd5e1;
    color: #64748b;
}

.sticky-repeat-btn.active {
    background: linear-gradient(135deg, #0f9d4f, #059669);
    color: #fff;
    border-color: #0f9d4f;
    box-shadow: 0 1px 4px rgba(15,157,79,.2);
}
.sticky-editor-reminder-datetime { display: flex; align-items: center; gap: 6px; background: rgba(245,158,11,.05); padding: 5px 10px; border-radius: 8px; border: 1px solid rgba(245,158,11,.1); }
.sticky-editor-reminder-datetime i { color: #f59e0b; font-size: 13px; }
.sticky-editor-reminder-datetime input { border: none; outline: none; font-size: 12px; color: #92400e; background: transparent; }
.sticky-editor-files { display: flex; flex-direction: column; gap: 6px; }
.sticky-editor-file-input-hidden { display: none; }
.sticky-editor-file-add-btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 8px; font-size: 11px; font-weight: 500; color: #0f9d4f; cursor: pointer; background: rgba(15,157,79,.05); border: 1px dashed rgba(15,157,79,.2); transition: all .15s; width: fit-content; }
.sticky-editor-file-add-btn:hover { background: rgba(15,157,79,.1); border-color: #0f9d4f; }
.sticky-editor-file-list { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; max-height: 120px; overflow-y: auto; }
.sticky-editor-file-item { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 7px; background: #f8fafc; font-size: 11px; }
.sticky-editor-file-item i { font-size: 15px; color: #64748b; }
.sticky-editor-file-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #334155; }
.sticky-editor-file-size { color: #94a3b8; white-space: nowrap; font-size: 10px; }
.sticky-editor-file-remove { border: none; background: none; color: #94a3b8; cursor: pointer; font-size: 12px; padding: 1px 3px; border-radius: 3px; }
.sticky-editor-file-remove:hover { color: #ef4444; }

.sticky-editor-file-download {
    color: #64748b; font-size: 13px; padding: 1px 3px;
    display: flex; align-items: center; text-decoration: none;
    border-radius: 3px; transition: all .15s;
}
.sticky-editor-file-download:hover { color: #0f9d4f; background: rgba(15,157,79,.06); }

/* Reminder InputD */
.sticky-editor-sidebar .inputd-root { width: 100% !important; }
.sticky-editor-sidebar .inputd-input { font-size: 11px !important; padding: 6px 8px !important; }

.sticky-editor-repeat-select {
    width: 100%; padding: 6px 8px;
    border: 1.5px solid #e2e8f0; border-radius: 8px;
    font-size: 11px; color: #475569; background: #fff;
    cursor: pointer; outline: none;
    appearance: none; -webkit-appearance: none;
}
.sticky-editor-repeat-select:focus { border-color: #0f9d4f; }
.sticky-editor-footer { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-top: 1px solid #f1f5f9; flex-shrink: 0; }
.sticky-editor-footer-left { font-size: 11px; color: #94a3b8; display: flex; align-items: center; gap: 4px; }
.sticky-editor-footer-right { display: flex; gap: 6px; }
.sticky-editor-btn-cancel, .sticky-editor-btn-save { padding: 8px 16px; border-radius: 9px; font-size: 12px; font-weight: 550; cursor: pointer; border: none; display: flex; align-items: center; gap: 5px; transition: all .15s; }
.sticky-editor-btn-cancel { background: #f1f5f9; color: #475569; }
.sticky-editor-btn-cancel:hover { background: #e2e8f0; }
.sticky-editor-btn-save { background: linear-gradient(135deg,#0f9d4f,#059669); color: #fff; box-shadow: 0 2px 8px rgba(15,157,79,.2); }
.sticky-editor-btn-save:hover { box-shadow: 0 4px 14px rgba(15,157,79,.3); transform: translateY(-1px); }
.sticky-editor-btn-save:disabled { opacity: .5; transform: none; box-shadow: none; }

/* --- REMINDER POPUP --- */
.reminder-popup-overlay {
    position: fixed; inset: 0; z-index: 2000; pointer-events: none;
    display: flex; justify-content: flex-end; align-items: flex-start;
    padding: 80px 24px 0 0;
}

.reminder-popup {
    pointer-events: auto;
    background: rgba(255,255,255,.96); backdrop-filter: blur(16px);
    border-radius: 14px; box-shadow: 0 16px 48px rgba(0,0,0,.14);
    width: 360px; max-width: 90vw; padding: 18px;
    animation: reminderSlideIn .3s cubic-bezier(.4,0,.2,1);
    position: relative; border: 1px solid rgba(255,255,255,.7);
}

@keyframes reminderSlideIn {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: none; }
}

.reminder-popup-icon {
    position: absolute; top: -14px; right: 22px;
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 14px; box-shadow: 0 4px 12px rgba(245,158,11,.4);
}

.reminder-popup-body { margin-bottom: 14px; padding-right: 30px; }
.reminder-popup-title { font-weight: 650; font-size: 14px; color: #1e293b; margin-bottom: 4px; }
.reminder-popup-text { font-size: 13px; color: #64748b; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.reminder-popup-close { position: absolute; top: 8px; right: 8px; border: none; background: none; color: #94a3b8; cursor: pointer; font-size: 15px; border-radius: 8px; padding: 3px 6px; }
.reminder-popup-close:hover { background: #f1f5f9; color: #475569; }
.reminder-popup-actions { display: flex; gap: 8px; }

.reminder-btn {
    flex: 1; padding: 8px 14px; border-radius: 10px;
    font-size: 12px; font-weight: 550; cursor: pointer; border: none;
    display: flex; align-items: center; justify-content: center; gap: 5px;
    transition: all .15s;
}

.reminder-btn-snooze { background: #f1f5f9; color: #475569; }
.reminder-btn-snooze:hover { background: #e2e8f0; }
.reminder-btn-dismiss { background: #0f9d4f; color: #fff; box-shadow: 0 2px 8px rgba(15,157,79,.25); }
.reminder-btn-dismiss:hover { box-shadow: 0 4px 14px rgba(15,157,79,.35); }
.reminder-popup-time { font-size: 11px; color: #94a3b8; margin-top: 6px; display: flex; align-items: center; gap: 4px; }

/* --- PAGER --- */
.data-pager { display: flex; align-items: center; justify-content: space-between; }
.pager-info { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #64748b; }
.pager-summary-sep { width: 1px; height: 16px; background: #e2e8f0; }
.pager-pages { display: flex; align-items: center; gap: 4px; }

.pager-btn {
    border: 1px solid #e2e8f0; background: #fff;
    padding: 7px 11px; border-radius: 8px;
    font-size: 12px; color: #64748b; cursor: pointer;
    transition: all .15s;
}

.pager-btn:hover:not(:disabled) { background: #f1f5f9; border-color: #cbd5e1; }
.pager-btn:disabled { opacity: .35; cursor: not-allowed; }
.pager-btn.active { background: #0f9d4f; color: #fff; border-color: #0f9d4f; }

.pager-goto { display: flex; align-items: center; gap: 6px; margin-left: 8px; font-size: 12px; color: #94a3b8; }

.pager-goto input {
    width: 48px; text-align: center;
    border: 1px solid #e2e8f0; border-radius: 8px;
    padding: 6px 4px; font-size: 12px;
}
