/* ═══════════════════════════════════════════════════════════
   EgaMaker Laser Test Generator — Styles
   egamaker.be
═══════════════════════════════════════════════════════════ */

.ega-laser-generator {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 860px;
    margin: 0 auto;
    color: #1a1a2e;
}

.ega-laser-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 28px 32px;
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
}

.ega-laser-header h2 {
    margin: 0 0 8px 0;
    font-size: 1.5em;
    font-weight: 700;
    color: #fff !important;
    border: none !important;
    padding: 0 !important;
}

.ega-laser-header p {
    margin: 0;
    opacity: 0.85;
    font-size: 0.95em;
}

/* ── Sections ── */
.ega-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: none;
    padding: 24px 28px;
    position: relative;
}

.ega-section:last-of-type {
    border-radius: 0 0 12px 12px;
}

.ega-section h3 {
    margin: 0 0 16px 0;
    font-size: 1.05em;
    font-weight: 600;
    color: #2d3748;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.ega-section-engrave h3 { border-bottom-color: #3182ce; }
.ega-section-cut h3     { border-bottom-color: #e53e3e; }

.ega-hint {
    font-size: 0.82em;
    color: #718096;
    margin: -8px 0 16px 0;
    font-style: italic;
}

/* ── Layout ── */
.ega-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.ega-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 120px;
}

.ega-field-group {
    flex: 1;
    min-width: 260px;
}

.ega-field-group > label {
    display: block;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.ega-range-inputs {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.ega-arrow {
    color: #a0aec0;
    font-size: 1.2em;
    padding-bottom: 8px;
}

/* ── Inputs ── */
.ega-laser-generator label {
    font-size: 0.82em;
    font-weight: 500;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ega-laser-generator input[type="text"],
.ega-laser-generator input[type="number"] {
    padding: 9px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 7px;
    font-size: 0.95em;
    color: #2d3748;
    background: #f7fafc;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.ega-laser-generator input:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15);
    background: #fff;
}

/* ── Preview des valeurs calculées ── */
.ega-preview {
    margin-top: 8px;
    min-height: 28px;
    background: #f0fff4;
    border: 1px solid #c6f6d5;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 0.82em;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.ega-section-cut .ega-preview {
    background: #fff5f5;
    border-color: #fed7d7;
}

.ega-preview-label {
    color: #718096;
    font-style: italic;
    margin-right: 4px;
}

.ega-step {
    background: #fff;
    border: 1px solid #c6f6d5;
    border-radius: 4px;
    padding: 2px 7px;
    font-weight: 600;
    color: #276749;
    font-size: 0.9em;
}

.ega-section-cut .ega-step {
    border-color: #fed7d7;
    color: #c53030;
}

/* ── Bouton ── */
.ega-submit-wrap {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: none;
    padding: 24px 28px;
    text-align: center;
    border-radius: 0 0 12px 12px;
}

.ega-btn-generate {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: #fff;
    border: none;
    padding: 14px 36px;
    font-size: 1.05em;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.35);
    letter-spacing: 0.02em;
}

.ega-btn-generate:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.45);
    background: linear-gradient(135deg, #fc5c5c 0%, #e53e3e 100%);
}

.ega-btn-generate:active:not(:disabled) {
    transform: translateY(0);
}

.ega-btn-generate:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ── Erreur ── */
.ega-error {
    margin-top: 12px;
    background: #fff5f5;
    border: 1px solid #fc8181;
    color: #c53030;
    padding: 10px 16px;
    border-radius: 7px;
    font-size: 0.9em;
}

/* ── Footer ── */
.ega-footer-note {
    margin-top: 16px;
    text-align: center;
    font-size: 0.82em;
    color: #a0aec0;
}

.ega-footer-note a {
    color: #3182ce;
    text-decoration: none;
}

.ega-footer-note code {
    background: #edf2f7;
    padding: 1px 5px;
    border-radius: 3px;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .ega-laser-header { padding: 20px 18px; }
    .ega-section { padding: 18px 16px; }
    .ega-row { flex-direction: column; gap: 16px; }
    .ega-range-inputs { flex-direction: column; align-items: stretch; }
    .ega-arrow { display: none; }
    .ega-btn-generate { width: 100%; padding: 14px 20px; }
}
