/* Typography Helpers */
.spintax-header h1 {
    font-size: 2em;
    margin-bottom: 0.5em;
}

.spintax-lead {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 1em;
}

.spintax-content h2 {
    margin-top: 1.5em;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* Tool Interface Styling */
.spintax-tool-container {
    background-color: rgba(0, 0, 0, 0.03); /* Subtle background to separate tool */
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
}

.input-group, .output-group {
    margin-bottom: 20px;
}

.spintax-tool-container label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

/* Textareas inherit font but have fixed styling for usability */
.spintax-tool-container textarea {
    width: 100%;
    height: 150px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: monospace; /* Monospace helps with editing code */
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
}

.spintax-tool-container textarea:focus {
    outline: 2px solid currentColor;
    border-color: transparent;
}

/* Buttons */
.action-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

button.primary-btn, button.secondary-btn {
    cursor: pointer;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1rem;
    transition: opacity 0.2s;
}

/* Primary button attempts to use Theme Highlight color, falls back to blue */
button.primary-btn {
    background-color: var(--theme-primary, #007bff); 
    color: #fff;
}

button.secondary-btn {
    background-color: #e2e6ea;
    color: #333;
}

button:hover {
    opacity: 0.9;
}

/* Utility & Visuals */
.error-msg {
    color: #d9534f;
    font-weight: bold;
    font-size: 0.9em;
}

.spintax-divider {
    border: 0;
    border-top: 1px solid rgba(0,0,0,0.1);
    margin: 40px 0;
}

.example-box {
    background: rgba(0, 0, 0, 0.02);
    padding: 15px;
    border-left: 4px solid var(--theme-primary, #007bff);
    margin: 20px 0;
}

.warning-note {
    background-color: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
}