.pasgen-simple {
  margin: 40px auto;
  margin-top: 25px;
  font-family: Arial, sans-serif;
  padding: 30px;
  max-width: 100%;
  width: 780px;
  border: 1px solid #014282;
  border-radius: 6px;
  box-sizing: border-box;
}

.pasgen-display {
  display: flex;
  margin-bottom: 20px;
  gap: 10px;
  align-items: center;
}

.pasgen-password {
  flex: 1;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 6px;
  background: #f9f9f9;
  text-align: center;
  font-family: monospace;
  letter-spacing: 1px;
  font-size: 16px; /* базовый размер */
  transition: font-size 0.2s ease; /* плавный переход */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pasgen-refresh {
  padding: 12px 16px;
  border: 2px solid #02B0D3;
  border-radius: 6px;
  background: #02B0D3;
  color: white;
  font-size: 18px;
  cursor: pointer;
  height: 48px;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pasgen-refresh:hover {
  background: #0288a3;
  border-color: #0288a3;
}

.pasgen-copy {
  border: 2px solid #528CAA;
  border-radius: 6px;
  background: white;
  color: #528CAA;
  font-size: 14px;
  cursor: pointer;
  height: 48px;
  min-width: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pasgen-copy:hover {
  background: #528CAA;
  color: white;
}

.pasgen-copy-success {
  border-color: #28a745;
  background: white;
  color: #28a745;
}

.pasgen-copy-success:hover {
  background: #28a745;
  color: white;
}

/* Стили для выбора типа пароля */
.pasgen-type-options {
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

.pasgen-type-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.pasgen-type-label {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  background: white;
}

.pasgen-type-label:hover {
  border-color: #02B0D3;
}

.pasgen-type-label input[type="radio"] {
  margin-right: 8px;
}

.pasgen-type-label input[type="radio"]:checked + span {
  font-weight: bold;
  color: #02B0D3;
}

/* Стили для ползунка */
.pasgen-slider-block {
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

.pasgen-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.pasgen-slider-label {
  font-weight: bold;
  color: #333;
  font-size: 14px;
}

.pasgen-slider-value {
  font-weight: bold;
  color: #02B0D3;
  font-size: 16px;
  min-width: 30px;
  text-align: center;
  background: white;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #02B0D3;
}

.pasgen-slider-container {
  position: relative;
  width: 100%;
  margin-bottom: 5px;
}

.pasgen-slider {
  width: 100%;
  height: 6px;
  background: #e9ecef;
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
}

.pasgen-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: #02B0D3;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid white;
}

.pasgen-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #02B0D3;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid white;
}

.pasgen-slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-size: 12px;
  color: #666;
}

.pasgen-slider-min,
.pasgen-slider-max {
  font-size: 12px;
  color: #999;
}

.pasgen-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

.pasgen-option {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  background: white;
}

.pasgen-option:hover {
  border-color: #02B0D3;
}

.pasgen-option input {
  margin-right: 8px;
}



/* Адаптивность */
@media (max-width: 768px) {
  .pasgen-simple {
    padding: 20px;
    margin: 10px auto;
  }
  
  .pasgen-type-group {
    flex-direction: column;
    gap: 10px;
  }
  
  .pasgen-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .pasgen-display {
    flex-direction: column;
    gap: 10px;
  }
  
  .pasgen-password {
    width: 100%;
    min-width: auto;
  }
  
  .pasgen-refresh, .pasgen-copy {
    width: 100%;
    min-width: auto;
  }
  
  .pasgen-type-group {
    flex-direction: column;
  }
  
  .pasgen-options {
    grid-template-columns: 1fr;
  }
  
  .pasgen-slider-header {
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
  }
  
  .pasgen-slider-value {
    align-self: flex-end;
  }
}

/* Стили для скрытых элементов */
.pasgen-options[style*="display: none"],
.pasgen-word-options[style*="display: none"] {
  display: none !important;
}

/* Фокус состояния для доступности */
.pasgen-password:focus,
.pasgen-refresh:focus,
.pasgen-copy:focus,
.pasgen-slider:focus,
.pasgen-option input:focus,
.pasgen-type-label input:focus {
  outline: 2px solid #02B0D3;
  outline-offset: 2px;
}