/* © HocunityNET. All rights reserved. */
/* Website: www.hocunity.net */
/* Home: dev.hocunity.net */


/* Basis-Styling */
body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #212121, #121212);
  color: #e0e0e0;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Container mit Glassmorphism und relative Position */
.container {
  padding: 40px;
  background: rgba(30, 30, 30, 0.85);
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
  width: 90%;
  max-width: 400px;
  text-align: center;
  margin: 20px;
  position: relative;
  overflow: hidden;
}

/* Home Button oben links */
#homeButton {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 12px;
  font-size: 14px;
  color: #e0e0e0;
  background-color: #4caf50;
  border-radius: 4px;
  text-decoration: none;
  border: 1px solid #444;
  transition: background-color 0.3s, transform 0.2s;
}
#homeButton:hover {
  background-color: #45a049;
  transform: scale(1.05);
}
#homeButton:active {
  transform: scale(0.95);
}

/* Language Selector oben rechts */
#languageSelect {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px;
  border-radius: 4px;
  border: 1px solid #444;
  background-color: #333;
  color: #e0e0e0;
}

/* Überschrift */
h1 {
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 500;
}

/* Slider Styling */
.slider-container {
  margin-bottom: 20px;
}
.slider-container label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}
.slider-container input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: #333;
  outline: none;
}
.slider-container input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #4caf50;
  cursor: pointer;
  border: 2px solid #fff;
}

/* Toggle Switches Styling */
.checkbox-container {
  margin-bottom: 20px;
  text-align: left;
}
.toggle-container {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
.toggle-container .switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  margin-right: 10px;
}
.toggle-container .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-container .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 26px;
}
.toggle-container .slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}
.toggle-container input:checked + .slider {
  background-color: #4caf50;
}
.toggle-container input:checked + .slider:before {
  transform: translateX(24px);
}
.toggle-container span {
  font-size: 14px;
}

/* Passwort-Feld Styling */
.password-field {
  padding: 10px;
  font-size: 16px;
  width: 100%;
  margin-bottom: 10px;
  border: 1px solid #444;
  border-radius: 4px;
  background-color: #333;
  color: #e0e0e0;
  text-align: center;
  box-sizing: border-box;
}

/* Stärkeanzeige Styling */
.strength-meter {
  height: 8px;
  width: 100%;
  background: #444;
  border-radius: 4px;
  margin-bottom: 20px;
}
.strength-bar {
  height: 100%;
  width: 0%;
  background-color: #dc3545;
  border-radius: 4px;
  transition: width 0.5s ease-in-out, background-color 0.5s ease-in-out;
}

/* Button Styling */
.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}
button {
  flex: 1 1 45%;
  padding: 10px;
  font-size: 16px;
  color: #121212;
  background-color: #4caf50;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}
button:hover {
  background-color: #45a049;
  transform: scale(1.02);
}
button:active {
  transform: scale(0.98);
}
.copied {
  background-color: #28a745 !important;
  color: #ffffff !important;
}
.warning {
  background-color: #dc3545 !important;
  color: #ffffff !important;
}

/* Footer Styling */
footer {
  margin-top: 20px;
  font-size: 12px;
  color: #888;
}
footer a {
  color: #4caf50;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

/* Media Query für kleinere Geräte */
@media (max-width: 600px) {
  h1 {
    font-size: 20px;
  }
  .container {
    padding: 20px;
  }
  button,
  .password-field {
    font-size: 14px;
    padding: 8px;
  }
  #languageSelect {
    top: 5px;
    right: 5px;
    font-size: 12px;
  }
}

/* Debug-Klappe: rechts neben dem Generator, initial versteckt */
.debug-panel {
  position: absolute;
  top: 60px;             /* passend zum oberen Rand deines Containers anpassen */
  right: -220px;         /* startet ausgefahren rechts außerhalb */
  width: 200px;
  padding: 15px;
  background: rgba(50, 50, 50, 0.95);
  border: 1px solid #666;
  border-radius: 8px;
  box-shadow: -4px 4px 10px rgba(0,0,0,0.5);
  transition: right 0.3s ease-in-out;
  z-index: 100;
}

/* sichtbar, wenn ausgefahren */
.debug-panel.visible {
  right: 10px;
}

/* Einfache Styling-Anpassungen */
.debug-panel label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}
.debug-panel input {
  width: 100%;
  margin-bottom: 10px;
  padding: 5px;
  box-sizing: border-box;
}
.debug-panel button {
  width: 100%;
  padding: 6px;
  cursor: pointer;
}

/* © HocunityNET. All rights reserved. */
/* Website: www.hocunity.net */
/* Home: dev.hocunity.net */