:root {
    --background-color: #ffffff;
    --text-color: #000000;
    --border-color: #e0e0e0;
    --button-bg: #000000;
    --button-text: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    padding: 2rem;
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2.5rem;
    margin: 0;
}

header p {
    font-size: 1.1rem;
    color: #666;
}

.converter {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

textarea {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    font-size: 1rem;
    resize: vertical;
    box-sizing: border-box;
}

textarea:focus {
    outline: none;
    border-color: #000;
}

#resultText {
    background-color: #f9f9f9;
}

.controls {
    display: flex;
    gap: 0.5rem;
}

select, button {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: #fff;
    cursor: pointer;
}

select {
    flex-grow: 1;
}

button {
    background-color: #f0f0f0; /* Minimal grey */
    color: #000; /* Black text */
    border: 1px solid #ddd;
    padding: 8px 16px; /* Smaller */
    font-weight: 500;
    transition: background-color 0.2s;
    border-radius: 6px;
}

button:hover {
    background-color: #e5e5e5;
}

/* Ensure all buttons look the same */
#clearButton {
    background-color: #f0f0f0;
    color: #000;
}

#clearButton:hover {
    background-color: #e5e5e5;
}

#statistics {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 1rem;
}

footer {
    text-align: center;
    margin-top: 3rem;
    color: #999;
}

footer a {
    color: #000;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    body {
        padding: 1rem;
    }
    .controls {
        flex-direction: column;
    }
    header h1 {
        font-size: 2rem;
    }
}

.mt-5 {
    margin-top: 1rem;
}