﻿.linq-container {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
    font-family: 'Segoe UI', sans-serif;
}

.linq-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.linq-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    overflow: hidden;
}

.linq-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #eee;
}

.linq-card-body {
    padding: 16px;
}

.linq-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.linq-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr 1fr auto;
    gap: 10px;
    margin-bottom: 10px;
}

.linq-row.compact {
    grid-template-columns: 1fr auto auto;
}

input, select {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

input:focus, select:focus {
    outline: none;
    border-color: #4f46e5;
}

/* Buttons */
linq-button {
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
}

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

.linq-btn-success {
    background: #16a34a;
    color: white;
}

.linq-btn-secondary {
    background: #64748b;
    color: white;
}

.linq-btn-dark {
    background: #111827;
    color: white;
}

.linq-btn-danger {
    background: #ef4444;
    color: white;
}

/* Chips */
.linq-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.linq-chip {
    background: #f1f5f9;
    border-radius: 20px;
    padding: 6px 12px;
    cursor: pointer;
}

.linq-chip input {
    display: none;
}

.linq-chip input:checked + span {
    color: #4f46e5;
    font-weight: 600;
}

/* Actions */
.linq-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    position: sticky;
    bottom: 0;
    background: white;
    padding-top: 10px;
}

.linq-editor-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 300px;
}

.split-container {
    display: flex;
    height: 90vh;
}

.split-left {
    width: 45%;
    overflow: auto;
    border-right: 1px solid #ddd;
}

.split-right {
    width: 55%;
    background: #0f172a;
    color: white;
    padding: 10px;
    overflow: auto;
}

.preview-box pre {
    background: #111827;
    padding: 10px;
}