:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --light: #ecf0f1;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, var(--light) 0%, #fff 100%);
    color: var(--primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

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

h1 {
    color: var(--secondary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.converter-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 2rem;
}

.input-group {
    margin-bottom: 2rem;
}

textarea {
    width: 100%;
    height: 150px;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    font-family: monospace;
}

.button-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

button {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.1s ease;
}

button:hover {
    transform: translateY(-2px);
}

.result-section h2 {
    margin-bottom: 1rem;
    color: var(--primary);
}

#result {
    white-space: pre-wrap;
    padding: 1rem;
    background: var(--light);
    border-radius: 8px;
}

@media (max-width: 768px) {
    .button-group {
        grid-template-columns: 1fr;
    }
}