.superscript-text-generator {
    margin: 20px auto;
    text-align: center;
}

.superscript-text-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.input-section,
.output-section {
    width: 48%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bordered-section {
    border: 1px solid #ccc;
    border-radius: 2px;
}

.superscript-text-container textarea {
    width: 100%;
    height: 220px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    resize: none;
    height: 80px;
    border: none;
    box-shadow: none !important;
}

/* ASCII text output */
#superscript-text-output {
    font-family: monospace;
    white-space: pre;
    text-align: left;
    background: #f8f8f8;
    padding: 10px;
    width: 100%;
    height: 100%;
    min-height: 220px;
    max-height: 380px;
    border: 1px solid #ccc;
    overflow-x: auto;
    margin: 0;
}

/* Statistics section */
.text-stats {
    text-align: left;
    font-size: 14px;
    width: 100%;
    padding: 5px;
    background: #f1f1f1;
    margin-top: 5px;
    display: flex;
    gap: 14px;
}

.text-stats p {
    margin: 5px 0;
}

/* Make textarea full width on small screens */
@media screen and (max-width: 600px) {
    .superscript-text-container {
        flex-direction: column;
    }

    .input-section,
    .output-section {
        width: 100%;
    }
}

.buttons {
    margin-top: 10px;
    text-align: left;
}

.superscript-text-generator button {
    padding: 10px 15px;
    background: #0073aa;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.superscript-copy-button {
    margin: 5px;
    padding: 3px 8px !important;
    background: #0073aa;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 12px !important;
}

.superscript-text-generator button:hover {
    background: #005177;
}