﻿@import url('./lab-theme.css');

body { display: block; }

.controls-grid {
    max-width: 980px;
    width: calc(100% - 32px);
    margin: 12px auto;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
    border: 1px solid var(--lab-border);
    border-radius: 12px;
    background: var(--lab-surface);
    box-shadow: var(--lab-shadow);
    padding: 14px;
}

.card label {
    display: block;
    margin-bottom: 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 62px;
    height: 34px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #cbd5e1;
    border-radius: 34px;
    transition: 0.2s;
}

.slider::before {
    content: "";
    position: absolute;
    width: 26px;
    height: 26px;
    left: 4px;
    bottom: 4px;
    background: #fff;
    border-radius: 50%;
    transition: 0.2s;
}

.switch input:checked + .slider {
    background-color: var(--lab-primary);
}

.switch input:checked + .slider::before {
    transform: translateX(28px);
}

.status {
    margin-top: 10px;
    color: #334e68;
}

.actions {
    max-width: 980px;
    width: calc(100% - 32px);
    margin: 0 auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.actions button {
    width: auto;
    min-width: 180px;
}

.result-box {
    max-width: 980px;
    width: calc(100% - 32px);
    margin: 12px auto;
    border: 1px dashed #9fb3c8;
    border-radius: 10px;
    background: #f8fbff;
    padding: 10px;
}
