/* === Grundlayout === */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
  color: #e0e0e0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: 1.5rem;
  margin: 0;
}

/* === Container für alles === */
.container {
  background: #1a1a1a;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 380px;
}

/* === Datei-Upload Styling === */
.file-upload-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.file-upload-wrapper input[type="file"] {
  position: absolute;
  opacity: 0;
  width: auto;
  height: auto;
  cursor: pointer;
}

.file-upload-label img {
  width: 24px;
  height: 24px;
}

.file-upload-label {
  gap: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px;
  font-size: 16px;
  background: #333;
  border-radius: 6px;
  text-align: center;
  border-color: #666;
}

.file-upload-label:hover {
  background: #1f1f1f;
  border-color: #666;
}

/* === Eingabeelemente === */
.input-box {
  width: 100%;
}

input[type="password"],
input[type="text"],
select {
  padding: 0.6rem;
  width: 100%;
  background: rgba(28, 28, 28, 0.85);
  border: 1px solid #444;
  border-radius: 8px;
  color: #bbb;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

input:focus,
select:focus {
  border-color: #555;
  background: rgba(34, 34, 34, 0.9);
}

/* === Passwortfeld + Buttons nebeneinander === */
.password-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.password-wrapper input {
  flex: 1;
  padding: 0.6rem;
}

.password-actions {
  display: flex;
  gap: 0.3rem;
}

.password-actions button {
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #555;
  background: #2a2a2a;
  transition: background 0.3s ease, border-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-actions button:hover {
  background: #1f1f1f;
  border-color: #666;
}

.password-actions button img {
  width: 18px;
  height: 18px;
}

/* === Einstellungen für Passwort-Generierung === */
.settings-menu {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

#strength {
  width: 100%;
  padding: 0.6rem;
  background: rgba(28, 28, 28, 0.85);
  border: 1px solid #444;
  border-radius: 8px;
  color: #bbb;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

#generateBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem;
  background: linear-gradient(135deg, #222424, #2a2a2a);
  color: #e0e0e0;
  font-size: 1rem;
  font-weight: 500;
  border: 1px solid #343636;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#generateBtn:hover {
  background: #1f2020;
  border: 1px solid #444;
}

#generateBtn img {
  width: 18px;
  height: 18px;
}

/* === Upload-Button === */
.upload-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem;
  background: linear-gradient(135deg, #222424, #2a2a2a);
  color: #e0e0e0;
  font-size: 1rem;
  font-weight: 500;
  border: 1px solid #343636;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-btn img {
  width: 24px;
  height: 24px;
}

.upload-btn:hover {
  background: #1f2020;
}

/* === Fortschrittsbalken === */
.bar-container {
  width: 100%;
  background: #222;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 1px 4px #111;
}

.bar {
  height: 16px;
  width: 0%;
  background: linear-gradient(90deg, #444, #555);
  transition: width 0.5s ease-in-out;
}

#status {
  margin-top: 0.8rem;
  text-align: center;
  font-size: 0.9rem;
  color: #888;
}

.text-container {
  max-width: 400px;
  margin: 40px auto;
  background: #1a1a1a;
  padding: 10px 15px;
  font-family: sans-serif;
  line-height: 1.0;
}

.stats-container {
  background: #1a1a1a;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 380px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 6px;
}

.stat-box {
  background: #333;
  padding: 6px;
  border-radius: 5px;
  font-size: 12px;
}

.stats-list {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

.stats-list li {
  background: #333;
  padding: 6px;
  margin: 4px 0;
  border-radius: 5px;
  font-size: 12px;
}
