body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #f4f7f6;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 25px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 10px;
}

p {
    text-align: center;
    color: #555;
    margin-bottom: 25px;
}

.io-area {
    margin-bottom: 20px;
    position: relative; /* Needed for absolute positioning of copy button */
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #34495e;
}

textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    font-size: 1rem;
    resize: vertical; /* Allow vertical resizing */
}

textarea#output-text {
    background-color: #ecf0f1;
    cursor: default;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    justify-content: center;
}

button {
    padding: 10px 18px;
    border: none;
    border-radius: 5px;
    background-color: #3498db;
    color: white;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #2980b9;
}

button#btn-clear {
    background-color: #e74c3c;
}

button#btn-clear:hover {
    background-color: #c0392b;
}

button#btn-copy {
    position: absolute;
    bottom: 10px; /* Position inside the textarea */
    right: 10px;
    padding: 5px 10px;
    background-color: #95a5a6;
    font-size: 0.8rem;
}

button#btn-copy:hover {
    background-color: #7f8c8d;
}

button#btn-copy i {
    margin-right: 5px;
}

.back-link {
    text-align: center;
    margin-top: 30px;
}

.back-link a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.back-link a:hover {
    text-decoration: underline;
}