:root {
    --bg-color: #1e1e1e;
    --text-color: #e0e0e0;
    --primary-color: #3a9fff;
    --secondary-color: #2d2d2d;
    --border-color: #4a4a4a;
    --input-bg: #2d2d2d;
    --input-text: #e0e0e0;
    --button-bg: #3a9fff;
    --button-text: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

body, html {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

#app {
    flex: 1 0 auto;
    padding: 20px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: var(--primary-color);
    margin: 0;
}

h2 {
    color: #ffffff;
    margin-bottom: 15px;
}

.container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-section, .output-section {
    background-color: var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow-color);
    padding: 20px;
}

textarea {
    width: 100%;
    height: 300px;
    resize: vertical;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px;
    background-color: var(--input-bg);
    color: var(--input-text);
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.5;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(58, 159, 255, 0.2);
}

.input-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.action-button {
    padding: 8px 16px;
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.tabs {
    margin-top: 20px;
}

.tab-header {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.tab-button {
    padding: 10px 20px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-color);
}

.tab-button.active {
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.tab-content {
    margin-top: 20px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.button-container {
    text-align: center;
    margin-top: 20px;
}

#processButton {
    font-size: 16px;
    height: 40px;
    padding: 0 30px;
    background-color: var(--button-bg);
    color: var(--button-text);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#processButton:hover {
    opacity: 0.8;
}

.output-container {
    position: relative;
}

.copy-button {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    background-color: var(--button-bg);
    color: var(--button-text);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.copy-button:hover {
    opacity: 0.8;
}

footer {
    flex-shrink: 0;
    text-align: center;
    padding: 20px 0;
    color: var(--text-color);
    width: 100%;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

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

@media (min-width: 768px) {
    .container {
        flex-direction: row;
    }

    .input-section, .output-section {
        flex: 1;
    }
}