/* Accessible Tools Lite – autor: Łukasz Stasiak */

.accessible-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #fff;
  border: 2px solid #ccc;
  padding: 10px;
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: sans-serif;
  z-index: 9999;
}

.accessible-panel button {
  padding: 6px 10px;
  font-size: 16px;
  font-weight: bold;
  background-color: #fff;
  color: #000;
  border: 1px solid #333;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.accessible-panel button:hover,
.accessible-panel button:focus {
  background-color: #f0f0f0;
  outline: 3px solid #005fcc;
  outline-offset: 2px;
  box-shadow: 0 0 3px rgba(0,0,0,0.3);
}

/* Ikony – tryb normalny */
body[data-theme="normal"] .btn-dark,
body:not([data-theme]) .btn-dark {
  color: #000;
}
body[data-theme="normal"] .btn-yellow,
body:not([data-theme]) .btn-yellow {
  color: #cc9900;
}
body[data-theme="normal"] .btn-high,
body:not([data-theme]) .btn-high {
  color: #000;
  background: #fff;
  border-color: #999;
}
body[data-theme="normal"] .btn-normal,
body:not([data-theme]) .btn-normal {
  color: #207daf;
}

/* Motywy */
body[data-theme="dark"] *:not(.accessible-panel):not(script):not(style) {
  background: #000 !important;
  color: #fff !important;
}
body[data-theme="dark"] a {
  color: #4fc3f7 !important;
}

body[data-theme="yellow"] *:not(.accessible-panel):not(script):not(style) {
  background: #fff700 !important;
  color: #000 !important;
}
body[data-theme="yellow"] a {
  color: #0033cc !important;
  font-weight: bold;
}

body[data-theme="high"] *:not(.accessible-panel):not(script):not(style) {
  background: #000 !important;
  color: #ffff00 !important;
}
body[data-theme="high"] a {
  color: #00ffff !important;
}

/* 📱 Mobilny układ */
@media (max-width: 768px) {
  .accessible-panel {
    flex-direction: column;
    align-items: flex-start;
    padding: 6px;
  }

  .accessible-toggle {
    display: inline-block;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 6px;
  }

  .accessible-buttons {
    display: none;
  }

  .accessible-panel.open .accessible-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
  }
}
