/* VinaEditor Styles */

.vnh-editor {
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Toolbar Styles */
.vnh-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
    flex-wrap: wrap;
}

.vnh-toolbar-btn {
    padding: 6px 12px;
    border: 1px solid #ced4da;
    border-radius: 3px;
    background-color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.vnh-toolbar-btn:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.vnh-toolbar-btn:active {
    background-color: #dee2e6;
}

.vnh-toolbar-btn.active {
    background-color: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

.vnh-toolbar-separator {
    width: 1px;
    height: 24px;
    background-color: #dee2e6;
    margin: 0 4px;
}

/* Content Area */
.vnh-content-area {
    padding: 15px;
    min-height: 300px;
    max-height: 600px;
    overflow-y: auto;
}

.vnh-content-area:focus {
    outline: none;
}

/* HTML Block */
.vnh-html-block {
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid transparent;
    border-radius: 3px;
    min-height: 30px;
    line-height: 1.6;
}

.vnh-html-block:focus {
    outline: none;
    border-color: #86b7fe;
    background-color: #f8f9fa;
}

.vnh-html-block p {
    margin: 0;
    padding: 0;
}

.vnh-html-block strong {
    font-weight: bold;
}

.vnh-html-block em {
    font-style: italic;
}

.vnh-html-block a {
    color: #0d6efd;
    text-decoration: underline;
}

/* Image Block */
.vnh-image-block {
    margin: 15px 0;
    text-align: center;
}

.vnh-image-block figure {
    margin: 0;
    display: inline-block;
}

.vnh-image-block img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vnh-image-block .image-caption {
    margin-top: 8px;
    font-size: 14px;
    color: #6c757d;
    font-style: italic;
}

/* View Mode */
.vnh-editor.view-mode .vnh-content-area {
    background-color: #f8f9fa;
}

.vnh-editor.view-mode .vnh-html-block,
.vnh-editor.view-mode .vnh-image-block {
    pointer-events: none;
}

/* Modal Styles */
.vnh-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.vnh-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vnh-modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
}

.vnh-modal-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.vnh-modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: #212529;
}

.vnh-modal-body {
    margin-bottom: 20px;
}

.vnh-form-group {
    margin-bottom: 15px;
}

.vnh-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 14px;
    color: #495057;
}

.vnh-form-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.vnh-form-group input:focus {
    outline: none;
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.vnh-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.vnh-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.vnh-btn-primary {
    background-color: #0d6efd;
    color: #fff;
}

.vnh-btn-primary:hover {
    background-color: #0b5ed7;
}

.vnh-btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.vnh-btn-secondary:hover {
    background-color: #5c636a;
}

/* Empty State */
.vnh-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.vnh-empty-state p {
    margin: 0;
    font-size: 14px;
}
