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

body {
    font-family: system-ui, sans-serif;
    padding: 20px;
}

header {
    margin-bottom: 20px;
}

header h1 {
    font-size: 1.5rem;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    height: calc(100vh - 120px);
}

.panel {
    display: flex;
    flex-direction: column;
}

.panel h2 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.textarea-wrapper {
    position: relative;
    flex: 1;
}

textarea {
    flex: 1;
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    font-family: monospace;
    font-size: 14px;
    resize: none;
    overflow-y: auto;
}

.textarea-wrapper textarea {
    height: 100%;
}

.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    opacity: 0.6;
    transition: opacity 0.2s;
    z-index: 1;
}

.copy-btn:hover {
    opacity: 1;
    background: #fff;
}

.copy-btn svg {
    width: 16px;
    height: 16px;
}

.copy-btn svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 650px;
    }
    
    textarea {
        height: 300px;
    }
}