/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #121212;
  color: #eee;
  line-height: 1.6;
  min-height: 100vh;
  padding: 2rem;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background: #222;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 255, 153, 0.1);
}

h1 {
  text-align: center;
  margin-bottom: 2rem;
  color: #00ff99;
  font-size: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.range-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.range-header label {
  font-weight: 600;
  color: #eee;
}

.range-value {
  color: #00ff99;
  font-weight: 600;
  font-family: monospace;
}

.range-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.range-min,
.range-max {
  color: #bbb;
  font-size: 0.875rem;
  font-family: monospace;
}

.range-input {
  flex: 1;
  height: 6px;
  background-color: #333;
  border-radius: 9999px;
  appearance: none;
  cursor: pointer;
}

.range-input::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  background-color: #00ff99;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s;
}

.range-input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background-color: #00ff99;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s;
}

.range-input::-webkit-slider-thumb:hover {
  background-color: #00cc77;
}

.range-input::-moz-range-thumb:hover {
  background-color: #00cc77;
}

.checkbox-group {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #00ff99;
  cursor: pointer;
}

.checkbox-group label {
  margin-bottom: 0;
  font-weight: 600;
  color: #eee;
  cursor: pointer;
}

button {
  background: #00ff99;
  color: #111;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
  margin-bottom: 0.5rem;
}

button:hover {
  background: #00cc77;
}

#results {
  margin-top: 2rem;
  padding: 1rem;
  background-color: #1f1f1f;
  border-radius: 8px;
  border: 1px solid #333;
}

.password-item {
  background-color: #333;
  padding: 1rem;
  margin-bottom: 0.5rem;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #444;
}

.password-item span {
  font-family: monospace;
  font-size: 1.1rem;
  color: #eee;
  word-break: break-all;
}

.copy-btn {
  background: #00ff99;
  color: #111;
  padding: 0.5rem 1rem;
  width: auto;
  margin-bottom: 0;
  font-size: 0.9rem;
  font-weight: 700;
  min-width: 100px;
}

.copy-btn:hover {
  background: #00cc77;
}

.button-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.button-group button {
  flex: 1;
  margin-bottom: 0;
  min-width: 150px;
}

/* Responsivita */
@media (max-width: 640px) {
  body {
    padding: 1rem;
  }
  
  .container {
    padding: 1rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .button-group {
    flex-direction: column;
  }
  
  .button-group button {
    width: 100%;
  }
  
  .password-item {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }
  
  .copy-btn {
    width: 100%;
  }
}