.header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0;
    flex-shrink: 1;
}

.nav-container {
    padding: 0 10px;
}

.main-content {
    display: flex;
    flex-direction: row;
    overflow: hidden;
    flex-grow: 1;
}

.editor-container {
    border: 0px solid #dcdfe6;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
}

.editor-toolbar {
    padding: 2px 5px;
    background-color: #f5f5f5;
    border-bottom: 0px solid #ddd;
    flex-shrink: 1;
}

.preview-container mark.custom-highlight {
    padding: 2px;
    transition: background-color 0.3s;
}

.preview-container mark.custom-highlight.highlight-pink {
    background-color: #fcbed5 !important;
    color: inherit !important;
}

.preview-container mark.custom-highlight.highlight-blue {
    background-color: #bedef5 !important;
    color: inherit !important;
}

.preview-container mark.custom-highlight.highlight-yellow {
    background-color: #fff082 !important;
    color: inherit !important;
}

.preview-container mark.custom-highlight.highlight-green {
    background-color: #d7fa9b !important;
    color: inherit !important;
}

.preview-container mark.custom-highlight.highlight-purple {
    background-color: #e7ceff !important;
    color: inherit !important;
}

.preview-container[data-highlight-mode="false"] mark.custom-highlight {
    background-color: transparent !important;
}

.main-content.content-note {
    display: flex;
    position: relative;
    flex-direction: row;
}

.main-content.content-note .preview-container {
    flex-grow: 2;
}

.main-content.content-note .editor-container {
    flex-grow: 1;
}

.button-container-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.progress-text {
    color: #909399;
    font-size: 14px;
    width: 40px;
    margin-left: 5px;
    padding: 0px;
    text-align: right;
}

.title-container {
    display: flex;
    align-items: center;
    min-width: 0;
    flex-grow: 1;
}

.nav-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto;
}

.top-row-view {
    display: flex;
    flex-direction: row;
}

.preview-container-out {
    flex: 2;
    overflow: hidden;
    height: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.preview-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    min-width: 0;
    background-color: white;
    display: flex;
}

.content-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    min-width: 0;
}

.catalog-control {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    background: #409EFF;
    color: white;
    padding: 8px 4px;
    border-radius: 0 4px 4px 0;
}

.catalog-control .is-active {
    transform: rotate(180deg);
}

.catalog-container {
    width: 250px;
    flex-shrink: 0;
    background: #f5f7fa;
    border-right: 1px solid #e6e6e6;
    height: 100%;
    overflow-y: auto;
    position: relative;
    z-index: 2;
}

.md-catalog {
    height: 100%;
    padding: 10px;
}

.zoomButton {
    margin-left: 2px !important; 
}

.highlight-color-button {
    width: 18px;
    height: 18px;
    border: 1px solid #dcdfe6;
    border-radius: 12px;
    margin: 0 2px;
    cursor: pointer;
    transition: all 0.3s;
}

.highlight-color-button:hover {
    transform: scale(1.1);
}

.highlight-color-button.pink {
    background-color: #fcbed5;
}

.highlight-color-button.blue {
    background-color: #bedef5;
}

.highlight-color-button.yellow {
    background-color: #fff082;
}

.highlight-color-button.green {
    background-color: #d7fa9b;
}

.highlight-color-button.purple {
    background-color: #e7ceff;
}

.highlight-color-button.active {
    border: 2px solid #409EFF;
}

.context-menu {
    position: fixed;
    background: white;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .1);
    z-index: 9999;
    width: auto;
    padding: 4px;
    pointer-events: auto;
}

.context-menu-item {
    padding: 4px;
    cursor: default;
    white-space: nowrap;
    user-select: none;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.context-menu-buttons {
    display: flex;
    gap: 4px;
    align-items: center;
}

.context-menu-button {
    width: 24px;
    height: 24px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    background-color: #f5f7fa;
}

.context-menu-button:hover {
    background-color: #e4e7ed;
    transform: scale(1.1);
}

.context-menu-button .el-icon {
    font-size: 14px;
    color: #606266;
}

.popup {
    margin: 2px;
    position: fixed;
    width: 200px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    font-size: 12px;
    z-index: 9999;
    padding: 8px;
}

.el-button {
    padding: 8px 12px;
}

.el-button-group .el-button {
    padding: 8px 12px;
}

@media screen and (max-width: 768px) {
    .main-content.content-note {
        flex-direction: column;
    }
    .el-table .cell {
        padding: 2px !important;
    }
}
