﻿/* wwwroot/css/editor.css */

.rte-container {
    /*max-width: 900px;*/
    font-family: "Segoe UI", system-ui, sans-serif;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    background-color: #f8f9fa;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

    .toolbar button,
    .toolbar select {
        padding: 6px 10px;
        font-size: 14px;
        border: 1px solid #ccc;
        background-color: #fff;
        border-radius: 4px;
        cursor: pointer;
        transition: background-color 0.2s, transform 0.1s;
    }

        .toolbar button:hover,
        .toolbar select:hover {
            background-color: #e9ecef;
        }

        .toolbar button:active {
            transform: scale(0.96);
        }

    .toolbar select {
        min-width: 100px;
    }

.editable {
    /*min-height: 300px;*/
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 6px;
    text-align: left;
    direction: ltr;
    overflow-y: auto;
}

    .editable:focus {
        outline: 2px solid #0078d4;
        border-color: #0078d4;
    }

    .editable img {
        max-width: 100%;
        height: auto;
    }

    .editable a {
        color: #0078d4;
        text-decoration: underline;
    }

    .editable h1, .editable h2, .editable h3 {
        margin-top: 1rem;
        margin-bottom: 0.5rem;
    }

.toolbar-divider {
    width: 1px;
    background-color: #ccc;
    margin: 0 6px;
}
.toolbar input[type=color] {
    width: 28px;
    height: 28px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0;
    cursor: pointer;
    background-color: transparent;
}

    .toolbar input[type=color]:hover {
        transform: scale(1.05);
    }