/* MarkHTML Frontend Styles */

.markhtml-converter-wrapper {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #e0e0e0;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.markhtml-form-group {
    margin-bottom: 15px;
}

.markhtml-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.markhtml-form textarea.widefat {
    width: 100%;
    box-sizing: border-box;
}

.markhtml-output-section,
.markhtml-preview-link-section {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #eee;
    background-color: #fff;
    border-radius: 3px;
}

.markhtml-output-section h3,
.markhtml-preview-link-section h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.markhtml-html-output {
    white-space: pre-wrap;       /* CSS3 */
    white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
    white-space: -pre-wrap;      /* Opera 4-6 */
    white-space: -o-pre-wrap;    /* Opera 7 */
    word-wrap: break-word;       /* Internet Explorer 5.5+ */
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    padding: 10px;
    max-height: 400px;
    overflow-y: auto;
    font-family: monospace;
}

.markhtml-preview-link-section p a {
    word-break: break-all;
}

.markhtml-preview-link-section .description {
    font-size: 0.9em;
    color: #777;
}

/* WordPress Button Style (if not already inherited) */
.markhtml-form .button.button-primary {
    /* WordPress typically styles these, but can add overrides if needed */
}

/* Word下载按钮样式 */
.markhtml-download-word-section {
    margin-top: 15px;
}

.markhtml-download-word-button {
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.3s;
}

.markhtml-download-word-button:before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M6 2c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8l-6-6H6zm7 1.5L18.5 8H13V3.5zm-2 6V17h-2v-6H7l5-5 5 5h-2v6h-2v-7.5z"/></svg>');
    background-size: contain;
    margin-right: 6px;
}

.markhtml-download-word-button:hover {
    background-color: #0b7dda;
}