:root {
    --primary-color: #6c5ce7;
    --secondary-color: #a29bfe;
    --dark-color: #2d3436;
    --light-color: #f5f6fa;
    --success-color: #00b894;
    --error-color: #d63031;
    --warning-color: #fdcb6e;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa;
    color: var(--dark-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeIn 1s ease;
}

.title {
    font-family: 'Roboto Mono', monospace;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.subtitle {
    color: #636e72;
    font-weight: 300;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.editor-section {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    animation: slideUp 0.8s ease;
}

.toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 15px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-family: 'Roboto Mono', monospace;
    font-weight: 700;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

.primary {
    background-color: var(--primary-color);
    color: white;
}

.success {
    background-color: var(--success-color);
    color: white;
}

.code-editor,
.code-output {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
    resize: vertical;
    background-color: #f8f9fa;
    margin-bottom: 15px;
    transition: var(--transition);
}

.code-editor:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.2);
}

.code-output {
    background-color: #2d3436;
    color: #f5f6fa;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.output-container {
    position: relative;
}

.copy-btn {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--dark-color);
    color: white;
    border-radius: 0 var(--border-radius) 0 0;
}

.copy-status {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--success-color);
    color: white;
    padding: 5px 10px;
    border-radius: var(--border-radius);
    font-size: 12px;
    opacity: 0;
    transition: var(--transition);
}

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

.reference-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    animation: fadeIn 1s ease;
}

.reference-card h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reference-card.extended {
    border-top: 5px solid var(--warning-color);
}

.table-container {
    overflow-x: auto;
}

.reference-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.reference-table th,
.reference-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.reference-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 700;
}

.reference-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.reference-table tr:hover {
    background-color: #f1f2f6;
}

.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: #636e72;
    font-size: 14px;
}

.footer i {
    color: var(--error-color);
}

.btn[title]:hover:after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-color);
    color: white;
    padding: 5px 10px;
    border-radius: var(--border-radius);
    font-size: 12px;
    white-space: nowrap;
    z-index: 1;
}

@media (min-width: 992px) {
    .main-content {
        grid-template-columns: 2fr 1fr;
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }

    .btn {
        padding: 8px 12px;
        font-size: 14px;
    }

    .reference-table th,
    .reference-table td {
        padding: 8px 10px;
        font-size: 14px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

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