.gcode-validation-popup-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
}

.gcode-validation-dialog {
    width: min(560px, 100%);
    max-height: min(80vh, 640px);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    background: rgba(20, 20, 20, 0.96);
    color: #f4f4f4;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.gcode-validation-header {
    padding: 18px 22px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(39, 45, 53, 0.95), rgba(20, 20, 20, 0.96));
}

.gcode-validation-header h2 {
    margin: 0;
    font-size: 18px;
    color: #ffffff;
}

.gcode-validation-body {
    padding: 18px 22px;
    overflow: auto;
}

.gcode-validation-message {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 14px;
    line-height: 1.6;
    color: #f3f6fb;
    font-family: inherit;
}

.gcode-validation-message[data-type="warning"] {
    color: #ffd28a;
}

.gcode-validation-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 22px 20px;
}

.gcode-validation-btn {
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.15s ease;
}

.gcode-validation-btn:hover {
    filter: brightness(1.06);
}

.gcode-validation-btn-secondary {
    background: #2a3037;
    color: #eef2f7;
    border-color: #404854;
}

.gcode-validation-btn-primary {
    background: linear-gradient(180deg, #34a9ff, #1686d8);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(22, 134, 216, 0.28);
}
