/* Base styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Code block styling */
.code-line {
    display: flex;
    font-family: 'Courier New', Courier, monospace;
    color: #f8f8f2;
    padding: 2px 0;
}

.line-number {
    color: #6c757d;
    min-width: 60px;
    text-align: right;
    padding-right: 8px;
    user-select: none;
}

.zone-a {
    color: #f92672;
    min-width: 40px;
}

.zone-b {
    color: #a6e22e;
    flex-grow: 1;
}

.comment-toggle {
    cursor: pointer;
    color: #66d9ef;
    padding-left: 10px;
}

.code-comment {
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Interactive elements */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #6366f1;
    color: white;
    border: 1px solid #6366f1;
}

.btn-primary:hover {
    background-color: #4f46e5;
}

.btn-outline-primary {
    background-color: transparent;
    color: #6366f1;
    border: 1px solid #6366f1;
}

.btn-outline-primary:hover {
    background-color: #eef2ff;
}

/* Editor styling */
.code-editor {
    border: 1px solid #e5e7eb;
}

.editor-body {
    min-height: 200px;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.line {
    padding: 2px 0;
    position: relative;
    padding-left: 60px;
}

.line::before {
    content: attr(data-line);
    position: absolute;
    left: 0;
    width: 50px;
    text-align: right;
    padding-right: 10px;
    color: #6c757d;
    user-select: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .line-number {
        min-width: 40px;
    }
}