.editor-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 15px;
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.toolbtn {
    width: 40px;
    height: 40px;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toolbtn:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.toolbtn i {
    font-size: 16px;
}

.font-select {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: white;
    cursor: pointer;
}

.color-picker {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
}
.color-picker input[type="color"] {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

#editor {
    width: 97%;
    min-height: 120px;
    max-height: 500px;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.6;
    overflow-y: auto;
    resize: vertical;
    outline: none;
}

#editor table {
    width: 100%;
    margin: 10px 0;
    border-collapse: collapse;
}

#editor td,
#editor th {
    border: 1px solid #ccc;
    padding: 8px;
    min-width: 50px;
}

.save-btn {
    margin-top: 20px;
    padding: 12px 25px;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 16px;
}
.save-btn:hover {
    background: #45a049;
}

/* Modal upload */
.upload-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.upload-modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    text-align: center;
}
.upload-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}
.upload-buttons button {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.upload-buttons button:first-child {
    background: #ccc;
}
.upload-buttons button:last-child {
    background: #4caf50;
    color: #fff;
}
