/* G-Code Art Generator – styles (source of truth from index.html) */

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --bg: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #e0e7ff 100%);
    --panel: #ffffff;
}

body {
    font-family: "Segoe UI", sans-serif;
    background: #eff6ff;
    padding: 20px;
    color: #1e3a5f;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

.panel {
    background: var(--panel);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

h1 {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--primary);
}

.control-group {
    margin-bottom: 12px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.9em;
}

input,
select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Shared elegant input styling (Tailwind-friendly overrides) */
.input-elegant {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    background: #fff;
    color: #1e293b;
    font-size: 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.input-elegant:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    font-size: 1em;
    font-weight: bold;
    margin-top: 10px;
    transition: background 0.2s;
}

button:hover {
    background: var(--primary-hover);
}

button.secondary {
    background: linear-gradient(180deg, #64748b 0%, #475569 100%);
    margin-top: 5px;
}

canvas#previewCanvas {
    max-width: 100%;
    height: auto;
    border: 2px solid #93c5fd;
    border-radius: 0.5rem;
    margin-top: 10px;
    background: linear-gradient(180deg, #e0f2fe 0%, #dbeafe 100%);
    cursor: grab;
    box-shadow: inset 0 1px 2px rgba(37, 99, 235, 0.06);
}

.preview-container {
    text-align: center;
}

.stats {
    margin-top: 15px;
    font-size: 0.85em;
    color: #1e3a5f;
    background: linear-gradient(90deg, #dbeafe 0%, #e0f2fe 100%);
    padding: 10px;
    border-radius: 0.5rem;
    border: 1px solid #bfdbfe;
}

.highlight {
    background: linear-gradient(90deg, #dbeafe 0%, #bfdbfe 100%);
    border-left: 5px solid #2563eb;
    padding: 8px;
    margin-top: 10px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
    background: linear-gradient(90deg, #eff6ff 0%, #e0f2fe 100%);
    padding: 8px;
    border-radius: 4px;
}

.checkbox-group input {
    width: auto;
    margin: 0;
}

.warning {
    background: linear-gradient(90deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e3a8a;
    padding: 10px;
    border-radius: 6px;
    margin-top: 15px;
    border-left: 4px solid #2563eb;
    font-size: 0.9em;
    grid-column: 1 / -1;
}

.info {
    background: linear-gradient(90deg, #e0f2fe 0%, #bae6fd 100%);
    color: #1e3a8a;
    padding: 10px;
    border-radius: 6px;
    margin-top: 15px;
    border-left: 4px solid #0ea5e9;
    font-size: 0.9em;
}
