.text-editor-container {
    max-width: 1400px;
    margin: 0 auto;
    height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
}

.toolbar {
    background-color: #f8f9fa;
    padding: 0.5rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.editor-wrapper {
    flex: 1;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    overflow: hidden;
}

.CodeMirror {
    height: 100%;
    font-size: 16px;
    font-family: 'Consolas', monospace;
}

.status-bar {
    background-color: #f8f9fa;
    padding: 0.5rem;
    border-radius: 4px;
    margin-top: 0.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.status-item {
    color: #6c757d;
    font-size: 0.875rem;
}

/* 查找对话框样式 */
.CodeMirror-dialog {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 0.5rem;
}

.CodeMirror-dialog input {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    margin: 0 0.5rem;
}

.CodeMirror-dialog button {
    background-color: #0d6efd;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
}

.CodeMirror-dialog button:hover {
    background-color: #0b5ed7;
}

/* 匹配高亮样式 */
.CodeMirror-selected {
    background-color: #d1e9ff !important;
}

.CodeMirror-focused .CodeMirror-selected {
    background-color: #b8d7ff !important;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .text-editor-container {
        height: calc(100vh - 150px);
    }

    .toolbar {
        padding: 0.5rem;
    }

    .toolbar .btn-group {
        width: 100%;
    }

    .toolbar .btn {
        padding: 0.5rem;
    }

    .status-bar {
        flex-direction: column;
        gap: 0.25rem;
    }
} 