.editor-container {
    max-width: 100%;
    margin: 0 auto;
    margin-top: 2rem; /* reduced for mobile friendliness */
    background: #fff;
    border-radius: 8px;
    box-sizing: border-box;
}

/* Toolbar */
.toolbar {
    background: #e9ecef;
    border-bottom: 1px solid #dee2e6;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
}

.toolbar-group {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    padding: 0 5px;
}

.toolbar-btn,
.check-spelling-btn,
.zoom-btn {
    flex: 0 0 auto;
    padding: 6px 10px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #ced4da;
    background: #fff;
    cursor: pointer;
    transition: background 0.2s;
}

.toolbar-btn:hover,
.zoom-btn:hover {
    background: #dee2e6;
}

.check-spelling-btn {
    background: #007bff;
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 8px 14px;
}

.check-spelling-btn:hover {
    background: #0056b3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .editor-container {
        margin-top: 1rem;
    }

    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-group {
        justify-content: space-between;
        width: 100%;
        flex-wrap: wrap;
    }

    .editor-content {
        padding: 15px;
        min-height: 250px;
        font-size: 14px;
    }

    .editor-header h1 {
        font-size: 1.4em;
    }

    .status-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .toolbar-btn,
    .check-spelling-btn,
    .zoom-btn {
        flex: 1 1 auto; /* buttons expand full width */
        font-size: 12px;
        padding: 8px;
        margin-bottom: 4px;
    }

    .toolbar-select,
    .color-picker {
        width: 100%;
        margin-bottom: 6px;
    }

    .editor-content {
        font-size: 13px;
        padding: 12px;
    }

    .modal-content {
        width: 95%;
        margin-top: 30%;
        padding: 15px;
    }
}
