:root {
    --primary: #2962ff;
    --primary-dark: #0039cb;
    --success: #28a745;
    --bg: #f8f9fa;
    --border: #dee2e6;
    --text: #212529;
    --code-bg: #1e1e1e;
    --code-text: #d4d4d4;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

h1 {
    text-align: center;
    color: var(--primary);
    margin: 2rem 0;
    font-size: 2.5rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.code-area {
    flex: 1;
    min-width: 350px;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

select {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 2px solid var(--border);
    font-size: 1rem;
    min-width: 150px;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s;
}

select:focus {
    border-color: var(--primary);
    outline: none;
}

textarea,
pre {
    width: 100%;
    height: 400px;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.5;
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid var(--border);
}

textarea {
    resize: vertical;
    background: white;
}

textarea:focus {
    border-color: var(--primary);
    outline: none;
}

pre {
    background: var(--code-bg);
    color: var(--code-text);
    overflow: auto;
    margin: 0;
}

button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s;
}

button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .container {
        gap: 1rem;
    }

    .code-area {
        padding: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    textarea,
    pre {
        height: 300px;
    }
}

.footer {
    margin-top: 3rem;
    padding: 1rem;
    background: white;
    border-top: 1px solid var(--border);
    text-align: center;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.copyright {
    color: #6c757d;
    font-size: 0.9rem;
}

.social-links {
    margin: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    text-decoration: none;
    margin: 0 1rem;
    transition: .3s;
}

.social-links a:hover {
    color: var(--primary);
}

.social-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .footer {
        padding: 1rem;
        margin-top: 2rem;
    }

    .social-links a {
        margin: 0 0.5rem;
    }
}