/*
 * Kopia 1:1 stylów strony konfiguracyjnej firmware SuplaDeviceGUI (biblioteka supla-device).
 * Źródło: krycha88/SuplaDeviceGUI, lib/supla-device/extras/resources/css_for_cfg_page.css
 * (main 7cc2dba, ostatnia zmiana pliku 67a6be8), skopiowano 2026-09-25.
 * Nie edytować ręcznie — zmiany wyglądu buildera tylko w style.css (nakładka).
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html:focus-within {
  scroll-behavior: smooth;
}
html,
body,
h1,
h2,
h3,
h4,
p {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
}

body {
  line-height: 1.5;
  font-size: 14px;
  background: #00d151;
  color: #fff;
}

h1,
h3 {
  margin: 10px 0;
  font-weight: 300;
  font-size: 23px;
}

input,
button,
textarea,
select {
  font: inherit;
}

.wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
}

.content {
  text-align: center;
  padding: 20px 10px;
}

#logo {
  display: inline-block;
  height: 155px;
  background: #00d151;
}

.box {
  background: white;
  color: black;
  border-radius: 10px;
  padding: 5px 10px;
  margin: 10px 0;
  box-shadow: 0 5px 6px rgba(0, 0, 0, .3);
}

.box h3 {
  margin: 0 0 5px;
}

.form {
  text-align: left;
  max-width: 500px;
  margin: -80px auto 0;
  padding: 70px 10px 10px;
}

#form_content {
  display: none;
}

.form-field {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-top: 1px solid #00d150;
  margin: 0 -10px;
}

.box > .form-field:first-of-type {
  border-top: 0;
}

.form-field label {
  width: 250px;
  margin-right: 5px;
  color: #00d150;
}

@media (max-width: 530px) {
  .form-field {
    flex-direction: column;
  }

  .form-field label {
    width: 100%;
    margin: 3px 0;
  }
}

.form-field>div {
  width: 100%;
}

.form-field input:not([type=range]),
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 3px 8px;
  background: white;
}

textarea {
  resize: vertical;
}

.form-field select {
  padding-left: 3px;
}

.form-field.checkbox label {
  width: 100%;
  color: black;
  display: flex;
  align-items: center;
  gap: 5px;
}

.form-field.right-checkbox label:last-child {
  width: 100%;
  text-align: center;
}

.hint {
  font-size: .8em;
  opacity: .8;
  margin-top: 2px;
}

.hint.warn,
.hint.error {
  opacity: 1;
  border-radius: 6px;
  padding: 4px 6px;
}

.hint.warn {
  background: #fff3cd;
  color: #5c4300;
}

.hint.error {
  background: #f8d7da;
  color: #5c0008;
}

a.wide-link,
button {
  display: block;
  color: white;
  background: black;
  text-align: center;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 10px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  font-size: 1.3em;
  margin-top: 15px;
  box-shadow: 0 5px 6px rgba(0, 0, 0, .3);
}

#msg {
  background: #ffe836;
  position: fixed;
  width: 100%;
  padding: 40px;
  color: #000;
  top: 0;
  left: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  text-align: center;
  font-size: 26px;
}

.box.collapsible h3 {
  cursor: pointer;
}

.box.collapsible h3:after {
  content: '↑';
  float: right;
}

.box.collapsible.collapsed h3:after {
  content: '↓';
}

.box.collapsible.collapsed .form-field {
  display: none;
}

.switch {
  position: relative;
  display: inline-block;
  width: 51px;
  height: 25px;
}

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

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

.slider:before {
  position: absolute;
  content: "";
  height: 17px;
  width: 17px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: #00d151;
}

input:focus+.slider {
  box-shadow: 0 0 1px #00d151;
}

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

.range-slider {
  -webkit-appearance: none;
  padding-top:10px;
  width: 100%;
  height: 15px;
  border-radius: 5px;
  background: #d3d3d3;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  margin-top: -5px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #00d151;
  cursor: pointer;
}

.range-slider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #00d151;
  cursor: pointer;
}

.card{background:#fff;border-radius:10px;box-shadow:0 1px 3px rgba(0,0,0,.06);padding:12px;color:#333;text-align:left}
header{display:flex;align-items:center;gap:12px;margin-bottom:10px}
table{width:100%;border-collapse:collapse;font-size:13px}
thead th{border-bottom:2px solid #e6e8eb;padding:8px}
td{padding:10px 8px;border-bottom:1px solid #f0f1f3;vertical-align:middle}

.sensitive {
  transition: filter .15s ease;
}

.privacy-mode .sensitive {
  filter: blur(7px);
  pointer-events: none;
  user-select: none;
}

#privacy-toggle {
  position: fixed;
  right: 12px;
  top: 12px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #222;
  box-shadow: 0 2px 8px rgb(0 0 0 / .3);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

#privacy-toggle svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#privacy-toggle .icon-eye-off {
  display: none;
}

#privacy-toggle[aria-pressed="true"] .icon-eye {
  display: none;
}

#privacy-toggle[aria-pressed="true"] .icon-eye-off {
  display: block;
}

#privacy-toggle:active {
  transform: scale(.94);
}

/* Nakładka SuplaDeviceGUI (src/src/html/device_parameter.cpp) */
.box .form-field:first-of-type { border-top: 0; }
