.np-editor-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    color: #0f172a;
}

.np-editor-titlebar {
    padding: 16px 22px 8px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
}

.np-title-input {
    width: 100%;
    border: 0;
    outline: 0;
    font-size: 1.35rem;
    line-height: 1.3;
    font-weight: 750;
    color: #0f172a;
    background: transparent;
}

.np-title-input::placeholder {
    color: #94a3b8;
}

.np-formatbar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.np-toolbar-group {
    display: flex;
    gap: 4px;
    padding-right: 8px;
    margin-right: 8px;
    border-right: 1px solid #e2e8f0;
}

.np-toolbar-group:last-child {
    border-right: none;
}

.np-tool-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    background: transparent;
    border: none;
    color: #475569;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.np-tool-btn:hover {
    background: #f1f5f9;
    color: #2563eb;
}

.np-tool-btn.active {
    background: #2563eb;
    color: white;
}

.np-tool-select {
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #0f172a;
    font-size: 0.8rem;
    cursor: pointer;
    outline: none;
}

.np-editor-content {
    flex: 1;
    padding: 24px;
    outline: none;
    overflow-y: auto;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #0f172a;
    background: #ffffff;
}

.np-editor-content h1,
.np-editor-content h2,
.np-editor-content h3 {
    line-height: 1.25;
    margin: 0.7em 0 0.35em;
}

.np-editor-content blockquote {
    border-left: 3px solid #93c5fd;
    margin: 1em 0;
    padding: 0.2em 0 0.2em 1em;
    color: #475569;
    background: #f8fafc;
}

.np-editor-content pre {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    overflow-x: auto;
    font-family: "Courier New", monospace;
    font-size: 0.92rem;
}

.np-editor-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
}

.np-editor-content td,
.np-editor-content th {
    border: 1px solid #e2e8f0;
    padding: 8px;
    min-width: 72px;
}

.np-editor-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.np-editor-content[contenteditable="true"]:empty:before {
    content: attr(placeholder);
    color: #94a3b8;
    pointer-events: none;
}

.np-editor-footer {
    padding: 8px 16px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #64748b;
}

.np-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Checklist - VERTICAL ALIGNMENT */
.np-checklist-item {
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    width: 100%;
    clear: both;
}

.np-checklist-cb {
    width: 18px;
    height: 18px;
    margin-top: 4px;
    flex-shrink: 0;
}

.np-checklist-text {
    flex: 1;
    outline: none;
}

/* RTL Support in Editor */
.np-editor-content.rtl {
    direction: rtl;
    text-align: right;
}

@media (max-width: 760px) {
    .np-editor-titlebar {
        padding: 12px 14px 8px;
    }

    .np-title-input {
        font-size: 1.15rem;
    }

    .np-formatbar {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .np-toolbar-group {
        flex: 0 0 auto;
        margin-right: 4px;
        padding-right: 4px;
    }

    .np-tool-btn {
        width: 36px;
        height: 36px;
    }

    .np-tool-select {
        max-width: 116px;
        height: 36px;
    }

    .np-editor-content {
        padding: 16px;
        font-size: 1rem;
        line-height: 1.65;
    }

    .np-editor-footer {
        align-items: flex-start;
        gap: 8px;
        padding: 8px 12px;
    }
}
