/*
 * File: style.css
 * Path: \themes\kadence-child-theme-master\tools\markdown-to-html-converter\style.css
 * (New, isolated CSS for the Markdown to HTML Converter tool)
 */

#markdown-to-html-converter-tool {
    max-width: 900px;
    width: 95%;
    margin: 2rem auto;
    padding: 2.5rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #333;
    text-align: center;
}

#markdown-to-html-converter-tool h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2.5rem;
    color: #333;
    font-weight: 600;
}

/* --- Input Section --- */
.input-section {
    margin-bottom: 2rem;
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 1.1rem;
    color: #555;
    font-weight: 500;
    margin-bottom: 0.6rem;
}

.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.5;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 200px; /* Good initial height for text areas */
}

.form-group textarea:focus {
    border-color: #FF8A08;
    box-shadow: 0 0 0 3px rgba(255, 138, 8, 0.2);
    outline: none;
}

.input-hint {
    font-size: 0.85rem;
    color: #777;
    margin-top: 0.5rem;
    text-align: left;
}

/* --- Action Buttons Container --- */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

/* --- Common Button Styles --- */
.action-btn {
    background-color: #FF8A08; /* Orange */
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 25px; /* Pill-shaped */
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    transition: background-color 0.25s ease, transform 0.1s ease, box-shadow 0.25s ease;
    min-width: 150px;
    box-shadow: 0 4px 8px rgba(255, 138, 8, 0.3);
}

.action-btn:hover {
    background-color: #e67e22; /* Darker orange */
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(255, 138, 8, 0.4);
}

.action-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(255, 138, 8, 0.2);
}

.action-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Specific button styles */
.convert-btn {
    /* Uses default orange */
}
.clear-btn {
    background-color: #6c757d; /* Grey for clear */
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}
.clear-btn:hover {
    background-color: #5a6268;
    box-shadow: 0 6px 12px rgba(108, 117, 125, 0.4);
}
.copy-btn {
    background-color: #007bff; /* Blue for copy */
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
    margin-top: 1rem; /* Space from textarea */
}
.copy-btn:hover {
    background-color: #0056b3;
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.4);
}


/* --- Loading Indicator --- */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
    color: #FF8A08;
    font-weight: bold;
    font-size: 1.1rem;
}

.spinner {
    border: 4px solid rgba(255, 138, 8, 0.2);
    border-top: 4px solid #FF8A08;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-top: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Error Message --- */
#errorMessage {
    color: #dc3545; /* Red for errors */
    margin-top: 1.5rem;
    font-weight: bold;
    font-size: 1.1rem;
    display: none;
    text-align: center;
}

/* --- Output Section --- */
.output-section {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid #eee;
    text-align: left; /* Align output text to the left */
}

.output-section h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: left;
}

/* Ensure output textarea is read-only visually */
#htmlOutput {
    background-color: #f8f8f8;
    color: #555;
    cursor: default;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    #markdown-to-html-converter-tool h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    .action-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    .action-btn {
        width: 100%;
        min-width: auto;
    }
    .form-group textarea {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    #markdown-to-html-converter-tool {
        padding: 1.5rem;
    }
    .form-group textarea {
        min-height: 150px;
    }
}