:root {
    --bg-color: #e8e8e3;
    --main-border: 3px solid #111;
    --hard-shadow: 6px 6px 0px #111;
    --btn-bg: #ffd900;
    --btn-hover: #ffea5c;
    --text-color: #111;
    --accent-color: #ff4a4a;
    --terminal-bg: #1e1e1e;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding: 2rem;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.header h1 {
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.header .subtitle {
    font-family: monospace;
    background: #111;
    color: #fff;
    padding: 2px 8px;
    font-size: 0.85rem;
}

.layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 900px) {
    .layout {
        grid-template-columns: 1fr;
    }
}

.panel {
    background: #fff;
    border: var(--main-border);
    box-shadow: var(--hard-shadow);
    display: flex;
    flex-direction: column;
}

.panel-header {
    background: #111;
    color: #fff;
    padding: 0.5rem 1rem;
    font-family: monospace;
    font-size: 0.9rem;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

label {
    font-weight: 700;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.2rem;
}

textarea {
    width: 100%;
    border: 2px solid #111;
    padding: 0.8rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    background-color: #fafafa;
    resize: vertical;
    outline: none;
    transition: background 0.2s;
}

textarea:focus {
    background-color: #fffbdd;
}

.toolbar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px dashed #ccc;
}

.tool-btn {
    background: #fff;
    border: 2px solid #111;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 2px 2px 0px #111;
    transition: all 0.1s;
}

.tool-btn:hover {
    background: #f0f0f0;
}

.tool-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px #111;
}

.execute-btn {
    background-color: var(--btn-bg);
    color: #111;
    border: var(--main-border);
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 4px 4px 0px #111;
    transition: all 0.1s;
    margin-top: 0.5rem;
}

.execute-btn:hover {
    background-color: var(--btn-hover);
}

.execute-btn:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px #111;
}

.execute-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: 4px 4px 0px #111;
}

.result-block {
    min-height: 300px;
    font-size: 0.95rem;
}

.result-block h1,
.result-block h2,
.result-block h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid #111;
    padding-bottom: 0.2rem;
}

.result-block p {
    margin-bottom: 1rem;
}

.result-block pre {
    background: #111;
    color: #fff;
    padding: 1rem;
    border: 2px solid #111;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.result-block code {
    font-family: 'Courier New', monospace;
}

.result-block p>code {
    background: #eee;
    padding: 2px 4px;
    border: 1px solid #111;
}

.site-footer {
    display: flex;
    justify-content: center;
}

.footer-box {
    background: #fff;
    border: var(--main-border);
    box-shadow: var(--hard-shadow);
    width: 100%;
}

.footer-title {
    background: #111;
    color: #fff;
    padding: 6px 12px;
    font-family: monospace;
    font-size: 0.9rem;
    font-weight: bold;
}

.footer-text {
    padding: 14px;
    font-size: 13px;
    line-height: 1.6;
    color: #333;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}