/* Container Wrapper */
.sw-container {
    border: 1px solid #ccc;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    box-sizing: border-box;
}

/* Toolbar Style */
.sw-toolbar {
    background-color: #f5f5f5;
    border-bottom: 1px solid #ccc;
    padding: 6px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

/* Toolbar Divider */
.sw-separator {
    width: 1px;
    height: 20px;
    background-color: #ccc;
    margin: 0 4px;
}

/* Buttons */
.sw-btn {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 3px;
    cursor: pointer;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, border-color 0.2s;
    outline: none;
}

.sw-btn:hover {
    background-color: #e2e2e2;
    border-color: #adadad;
}

.sw-btn-active {
    background-color: #d5d5d5;
    border-color: #a0a0a0;
}

.sw-btn svg {
    width: 16px;
    height: 16px;
    fill: #333;
}

/* Dropdown Menu */
.sw-select {
    padding: 4px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background-color: #fff;
    font-size: 13px;
    cursor: pointer;
    outline: none;
}

/* Editor Editable Area */
.sw-editor {
    min-height: 200px;
    padding: 12px;
    overflow-y: auto;
    outline: none;
    box-sizing: border-box;
}

.sw-editor[contenteditable="true"]:focus {
    background-color: #fafafa;
}

/* Source View Textarea Mode */
.sw-source {
    width: 100%;
    min-height: 200px;
    padding: 12px;
    font-family: monospace;
    font-size: 13px;
    border: none;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
    display: none;
    background-color: #1e1e1e;
    color: #9cdcfe;
}
