/* -----------------------------------------------------------
   Markdown to HTML Converter Pro - Full Modern Design System
   Primary Color: #46757E
----------------------------------------------------------- */

.mthc-wrapper {
    max-width: 1400px;
    margin: 40px auto;
    padding: 32px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
    line-height: 1.6;
    box-sizing: border-box;
}

.mthc-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 20px 0;
    letter-spacing: -0.025em;
    text-align: center;
    border-left: none;
    padding-left: 0;
    position: relative;
    padding-bottom: 16px;
}

.mthc-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #46757E;
    border-radius: 2px;
}

.mthc-description {
    text-align: center;
    font-size: 0.95rem;
    color: #64748b;
    margin: 0 auto 32px auto;
    max-width: 720px;
    line-height: 1.6;
}

.mthc-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px 16px;
    background-color: #f8fafc;
    border-radius: 12px;
}

.mthc-option {
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.mthc-snippet-area {
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.mthc-small-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mthc-snippet-btn {
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 99px;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mthc-snippet-btn:hover {
    border-color: #46757E;
    color: #46757E;
    background-color: #f0f9fa;
    transform: translateY(-1px);
}

.mthc-editor-area {
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
    width: 100%;
}

.mthc-editor-left,
.mthc-editor-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.mthc-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    color: #334155;
}

.mthc-textarea {
    width: 100%;
    height: 550px;
    min-height: 300px;
    padding: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Fira Code', 'Cascadia Code', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.95rem;
    line-height: 1.7;
    background-color: #ffffff;
    color: #1e293b;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
    box-sizing: border-box;
}

.mthc-textarea:focus {
    outline: none;
    border-color: #46757E;
    box-shadow: 0 0 0 4px rgba(70, 117, 126, 0.1);
}

.mthc-textarea::placeholder {
    color: #94a3b8;
}

.mthc-button-group {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.mthc-btn {
    flex: 1;
    padding: 14px 24px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    border-radius: 10px;
    background-color: #46757E;
    color: #ffffff;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(70, 117, 126, 0.2);
    text-align: center;
}

.mthc-btn:hover {
    background-color: #385d65;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(70, 117, 126, 0.3);
}

.mthc-btn:active {
    transform: translateY(0);
}

.mthc-btn-secondary {
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    background: #ffffff;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.mthc-btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.mthc-preview-wrapper {
    border-top: 2px solid #f1f5f9;
    padding-top: 32px;
}

.mthc-preview-title {
    margin: 0 0 16px 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mthc-preview-area {
    min-height: 200px;
    padding: 32px;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.02);
    overflow-x: auto;
}

.mthc-guide-wrapper {
    margin-top: 48px;
    border-top: 2px solid #f1f5f9;
    padding-top: 32px;
}

.mthc-guide-title {
    margin: 0 0 24px 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.025em;
}

.mthc-guide-section {
    background-color: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.mthc-guide-section h4 {
    margin: 0 0 14px 0;
    font-size: 1rem;
    font-weight: 700;
    color: #334155;
}

.mthc-guide-section ol, 
.mthc-guide-section ul {
    margin: 0;
    padding-left: 20px;
}

.mthc-guide-section li {
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
}

.mthc-guide-section li:last-child {
    margin-bottom: 0;
}

.mthc-guide-section code {
    background-color: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85rem;
    color: #0f172a;
    margin: 0 2px;
}

.mthc-guide-section ul ul {
    margin-top: 8px;
    padding-left: 16px;
}

.mthc-guide-section ul ul li {
    margin-bottom: 6px;
    list-style-type: circle;
}

@media screen and (max-width: 1024px) {
    .mthc-wrapper {
        max-width: 95%;
        padding: 24px;
        margin: 20px auto;
    }
}

@media screen and (max-width: 850px) {
    .mthc-editor-area {
        flex-direction: column;
    }
    .mthc-textarea {
        height: 350px;
    }
    .mthc-button-group {
        flex-direction: column;
    }
    .mthc-title {
        font-size: 1.5rem;
    }
}