:root {
    --primary-color: #556;
    --primary-hover: #2a5;
    --background-color: #f8fafc;
    --card-bg: #ffffff;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --border-radius: 2px;
    --shadow: -3px -3px 30px -15px rgb(0 0 255 / .2), 3px 3px 30px -15px rgb(255 0 0 / .2);
    --background-focus: #fffeee;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: start;
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 2rem 0 6rem 0;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

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

h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

p {
    color: var(--text-muted);
}

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

textarea {
    width: 100%;
    height: 15rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s;
    box-sizing: border-box;
    background-color: var(--background-focus);
}

textarea:focus {
    outline: none;
    border-color: var(--primary-hover);
    box-shadow: 0 0 0 3px #0c32;
}

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

select {
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    background-color: white;
    font-size: 1rem;
    cursor: pointer;
    flex-grow: 1;
    outline-color: var(--primary-hover);
}

button {
    padding: 0.75rem 2rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 15rem;
}

button:hover {
    background-color: var(--primary-hover);
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.results-section {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-card {
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    background: #fdfdfd;
}

.result-card.highlight {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.result-card h3 {
    margin-top: 0;
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 600;
}

.result-card p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .controls {
        flex-direction: column;
    }

    .results-section {
        grid-template-columns: 1fr;
    }
}