:root {
    --primary: #F39C12;
    --secondary: #FFEAA7;
    --accent: #00CEC9;
    --bg: #1A150A;
    --bg-panel: rgba(43, 34, 15, 0.4);
    --bg-input: rgba(15, 12, 5, 0.8);
    --text-primary: #FEF9E7;
    --text-secondary: #D4AC0D;
    --border: rgba(243, 156, 18, 0.2);
    --error: #E74C3C;
    --success: #2ECC71;
    --border-radius: 12px;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'Fira Code', monospace;
    --transition: 250ms ease;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    background-image:
        radial-gradient(circle at 80% 20%, rgba(243, 156, 18, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(0, 206, 201, 0.03) 0%, transparent 40%);
}

.app-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-header {
    margin-bottom: 2rem;
    text-align: center;
}

.app-header h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-shadow: 0 0 20px rgba(243, 156, 18, 0.2);
}

.app-header p {
    color: var(--text-secondary);
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    gap: 1.5rem;
    flex: 1;
}

.editor-panel {
    grid-column: 1 / -1;
}

.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--secondary);
}

.code-font {
    font-family: var(--font-mono);
    font-size: 0.95rem;
}

textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 1rem;
    resize: vertical;
    transition: all var(--transition);
    min-height: 150px;
}

textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(243, 156, 18, 0.1);
}

.editor-panel textarea {
    min-height: 100px;
    font-size: 1.1rem;
    color: var(--secondary);
}

.select-input {
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.5rem;
    font-family: var(--font-main);
    outline: none;
    cursor: pointer;
}

.btn {
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: #000;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.2);
}

.btn-primary:hover {
    background: #f1c40f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.result-box {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 1.2rem;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: break-all;
    min-height: 120px;
}

.result-box.empty {
    color: rgba(254, 249, 231, 0.3);
    font-style: italic;
    font-size: 1rem;
}

.result-box.success {
    color: var(--success);
    border-color: rgba(46, 204, 113, 0.3);
    background: rgba(46, 204, 113, 0.05);
}

.result-box.failure {
    color: var(--error);
    border-color: rgba(231, 76, 60, 0.3);
    background: rgba(231, 76, 60, 0.05);
}

.error-box {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(231, 76, 60, 0.1);
    border-left: 4px solid var(--error);
    color: #ff9999;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    border-radius: 4px;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glass-panel {
    animation: slideUp 0.5s ease-out backwards;
}

.editor-panel {
    animation-delay: 0.1s;
}

.data-panel {
    animation-delay: 0.2s;
}

.result-panel {
    animation-delay: 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}