﻿body {
    background: #0a0a0a;
    color: #fff;
    font-family: "Segoe UI", Arial;
}

.config-container {
    max-width: 1000px;
    margin: 30px auto;
}

/* Header */
.config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header-actions .btn {
    margin-left: 8px;
}

/* Card */
.card {
    background: #111;
    border: 1px solid #222;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

    .card h3 {
        margin-bottom: 15px;
    }

/* Card header (preview section) */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding:0 0 0 0;
}

/* Form */
.form-group {
    margin-bottom: 15px;
}

    .form-group label {
        display: block;
        margin-bottom: 5px;
        color: #ccc;
    }

input, select, textarea {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #333;
    background: #0f0f0f;
    color: #fff;
}

.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

/* Buttons */
.btn {
    padding: 6px 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #fff;
    color: #000;
}

.btn-secondary {
    background: #333;
    color: #fff;
}

.btn-light {
    background: transparent;
    border: 1px solid #444;
    color: #fff;
}

/* Preview */
.preview-box {
    background: #000;
    border: 1px dashed #333;
    padding: 15px;
    min-height: 120px;
}


/* style for CKeditor */
/* ===== CKEditor Dark Theme ===== */

.ck-editor__editable {
    min-height: 250px;
    background: #0f0f0f !important;
    color: #fff !important;
    border: 1px solid #333 !important;
    border-radius: 6px !important;
}

/* Toolbar */
.ck-toolbar {
    background: #111 !important;
    border: 1px solid #333 !important;
    border-bottom: none !important;
    border-radius: 6px 6px 0 0 !important;
}

/* Editor container */
.ck-editor__main {
    border-radius: 0 0 6px 6px !important;
    overflow: hidden;
}

/* Buttons */
.ck-button {
    color: #ccc !important;
}

    .ck-button:hover {
        background: #222 !important;
        color: #fff !important;
    }

    /* Active button */
    .ck-button.ck-on {
        background: #fff !important;
        color: #000 !important;
    }

/* Dropdown */
.ck-dropdown__panel {
    background: #111 !important;
    border: 1px solid #333 !important;
    color: #fff !important;
}

/* Input inside editor (link popup etc) */
.ck-input {
    background: #0f0f0f !important;
    color: #fff !important;
    border: 1px solid #333 !important;
}

/* Placeholder */
.ck-placeholder::before {
    color: #666 !important;
}

/* Content inside editor */
.ck-content p {
    color: #eee;
}

/* Scrollbar (optional đẹp hơn) */
.ck-editor__editable::-webkit-scrollbar {
    width: 6px;
}

.ck-editor__editable::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

/* end style CKeditor */

/* style for preview */
/* full width container */
.preview-container {
    background: #0f0f0f;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 10px;
}

/* bỏ mobile frame cũ */
.preview-full {
    width: 100%;
    color: #fff;
    font-family: Segoe UI, Arial;
}

/* header row */
.preview-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

/* left */
.header-left {
    flex: 1;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 3px;
}

.product-desc {
    font-size: 13px;
    color: #aaa;
}

/* right (contact) */
.header-right {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

/* contact button nhỏ gọn */
.contact-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #fff;
    color: #000;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 12px;
    text-decoration: none;
}

    /* icon nhỏ */
    .contact-btn img {
        width: 16px;
        height: 16px;
    }

/* section */
.preview-section-block {
    margin-top: 10px;
}

.section-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #ddd;
}

/* content */
.preview-content {
    font-size: 14px;
    line-height: 1.5;
}

    .preview-content img {
        max-width: 100%;
        border-radius: 6px;
        margin: 8px 0;
    }
    /* end preview container */