﻿.ks-html-editor {
    background: linear-gradient(145deg, #111827, #1f2937);
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 24px 70px rgba(0,0,0,.30);
    border: 1px solid rgba(255,255,255,.12);
}

.ks-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.ks-editor-title {
    color: white;
    font-size: 22px;
    font-weight: 800;
}

.ks-editor-desc {
    color: rgba(255,255,255,.55);
    font-size: 13px;
}

.ks-toolbar {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    background: rgba(255,255,255,.95);
    border-radius: 18px 18px 0 0;
    padding: 12px;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

    .ks-toolbar button,
    .ks-html-btn {
        border: 0;
        background: #f3f4f6;
        color: #111827;
        border-radius: 11px;
        padding: 8px 12px;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
        transition: .18s ease;
    }

        .ks-toolbar button:hover,
        .ks-html-btn:hover {
            background: #2563eb;
            color: white;
            transform: translateY(-1px);
            box-shadow: 0 8px 20px rgba(37,99,235,.30);
        }

    .ks-toolbar span {
        width: 1px;
        background: rgba(0,0,0,.12);
        margin: 3px 5px;
    }

.ks-color {
    width: 38px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    padding: 3px;
    background: #f3f4f6;
    cursor: pointer;
}

.ks-editor-area {
    background: #ffffff;
    color: #111827;
    padding: 26px;
    border-radius: 0 0 18px 18px;
    outline: none;
    overflow-y: auto;
    font-size: 16px;
    line-height: 1.75;
}

    .ks-editor-area:focus {
        box-shadow: inset 0 0 0 2px rgba(37,99,235,.35);
    }

    .ks-editor-area h1 {
        font-size: 32px;
        font-weight: 900;
        margin: 18px 0;
    }

    .ks-editor-area h2 {
        font-size: 24px;
        font-weight: 850;
        margin: 16px 0;
    }

    .ks-editor-area p {
        margin: 10px 0;
    }

    .ks-editor-area a {
        color: #2563eb;
        font-weight: 700;
    }

    .ks-editor-area img {
        max-width: 100%;
    }

.ks-html-source {
    width: 100%;
    min-height: 220px;
    margin-top: 14px;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.15);
    background: #020617;
    color: #e5e7eb;
    font-family: Consolas, monospace;
    font-size: 13px;
    outline: none;
}

@media (max-width: 768px) {
    .ks-html-editor {
        padding: 12px;
        border-radius: 18px;
    }

    .ks-toolbar {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

        .ks-toolbar span {
            display: none;
        }

    .ks-editor-area {
        padding: 18px;
        font-size: 15px;
    }
}
