/* Quick-note popup */

.notes-quick-host {
    position: relative;
}

.notes-quick-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 25;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #3b82f6;
    color: #fff;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
    font-size: 18px;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}

.notes-quick-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.notes-quick-popup {
    position: fixed;
    right: 20px;
    bottom: 76px;
    z-index: 9997;
    width: 350px;
    height: 500px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
    animation: notes-quick-popup-in 0.16s ease-out;
}

.notes-quick-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
}

.notes-quick-heading {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.notes-quick-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
}

.notes-quick-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.notes-quick-title {
    width: 100%;
    padding: 12px 14px 6px;
    border: none;
    outline: none;
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
}

.notes-quick-save-status {
    height: 16px;
    padding: 0 14px;
    font-size: 11px;
    line-height: 16px;
    color: #94a3b8;
}

.notes-quick-save-status.saving {
    color: #f59e0b;
}

.notes-quick-save-status.saved {
    color: #10b981;
}

.notes-quick-save-status.error {
    color: #ef4444;
}

.notes-quick-editor-wrap {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.notes-quick-editor-wrap .ql-toolbar.ql-snow {
    flex-shrink: 0;
    border: none;
    border-top: 1px solid #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    padding: 5px 10px;
    background: #fff;
}

.notes-quick-editor-wrap .ql-toolbar button {
    width: 26px;
    height: 26px;
}

.notes-quick-editor-wrap .ql-container.ql-snow {
    flex: 1;
    overflow-y: auto;
    border: none;
    font-family: inherit;
    font-size: 13px;
}

.notes-quick-editor-wrap .ql-editor {
    min-height: 280px;
    padding: 12px 14px 24px;
    line-height: 1.65;
    color: #334155;
}

.notes-quick-editor-wrap .ql-editor.ql-blank::before {
    left: 14px;
    right: 14px;
    color: #cbd5e1;
    font-style: normal;
}

@keyframes notes-quick-popup-in {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
