/* Clean Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8f9fa;
    color: #212529;
    line-height: 1.6;
    padding: 20px;
}

/* Main App Wrapper */
.container {
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

header h1 {
    font-size: 28px;
    color: #343a40;
    margin-bottom: 8px;
}

code {
    background: #f1f3f5;
    padding: 2px 6px;
    border-radius: 4px;
    color: #d63384;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.9em;
}

/* Layout for the text boxes */
.app-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

/* Desktop Layout */
@media (min-width: 768px) {
    .app-layout {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

label {
    font-weight: 600;
    color: #495057;
}

textarea {
    width: 100%;
    height: 300px;
    padding: 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Courier New", monospace;
    font-size: 14px;
    resize: vertical;
    background-color: #fdfdfd;
    transition: border-color 0.2s, box-shadow 0.2s;
}

textarea:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

textarea[readonly] {
    background-color: #f8f9fa;
    cursor: default;
}

/* Counters & Options styling */
.meta-info {
    font-size: 13px;
    color: #6c757d;
    margin-top: 6px;
    font-weight: 500;
}

.options-container {
    margin-top: 15px;
    margin-bottom: 5px;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #495057;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Buttons */
button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 15px;
    transition: background-color 0.2s, color 0.2s;
}

.btn-primary {
    background-color: #0d6efd;
    color: white;
}

.btn-primary:hover {
    background-color: #0b5ed7;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5c636a;
}

/* Clear Text Link Style */
.btn-link {
    display: inline;
    width: auto;
    margin: 0;
    padding: 0;
    background: none;
    color: #dc3545;
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
}

.btn-link:hover {
    color: #bd2130;
}

/* SEO Content Section */
.seo-content {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
    color: #495057;
}

.seo-content h2, .seo-content h3 {
    color: #343a40;
    margin-top: 20px;
    margin-bottom: 10px;
}

.seo-content p, .seo-content ol {
    margin-bottom: 15px;
}

.seo-content ol {
    padding-left: 20px;
}