.exlv-password-generator-container * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.exlv-password-generator-container {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  padding: 20px;
  border-radius: 16px;
  margin: 20px 0;
}

.exlv-passgen-header {
  text-align: center;
  margin-bottom: 2rem;
}

.exlv-passgen-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.exlv-passgen-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #10b981, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.exlv-passgen-header p {
  color: #94a3b8;
  font-size: 1.1rem;
}

.exlv-passgen-card {
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.exlv-passgen-password-display {
  margin-bottom: 1.5rem;
}

#exlv-passwordOutput {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  font-family: "Courier New", monospace;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  color: #f8fafc;
  margin-bottom: 1rem;
}

.exlv-passgen-password-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.exlv-btn-primary {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  flex: 1;
  min-width: 120px;
}

.exlv-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.exlv-btn-secondary {
  background: rgba(148, 163, 184, 0.1);
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.exlv-btn-secondary:hover {
  background: rgba(148, 163, 184, 0.2);
}

.exlv-btn-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.exlv-btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
}

.exlv-passgen-strength-indicator {
  margin-bottom: 1.5rem;
}

.exlv-passgen-strength-bar {
  width: 100%;
  height: 8px;
  background: rgba(148, 163, 184, 0.2);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.exlv-passgen-strength-fill {
  height: 100%;
  transition: all 0.3s ease;
  border-radius: 4px;
}

#exlv-strengthText {
  font-size: 0.9rem;
  color: #94a3b8;
}

.exlv-passgen-controls {
  margin-bottom: 1.5rem;
}

.exlv-passgen-length-control {
  margin-bottom: 1.5rem;
}

.exlv-passgen-length-control label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

#exlv-lengthSlider {
  width: 100%;
  height: 6px;
  background: rgba(148, 163, 184, 0.2);
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
}

#exlv-lengthSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 50%;
  cursor: pointer;
}

.exlv-passgen-options {
  display: grid;
  gap: 0.75rem;
}

.exlv-passgen-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.exlv-passgen-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #10b981;
}

.exlv-passgen-option label {
  cursor: pointer;
  user-select: none;
}

.exlv-passgen-custom-input {
  margin-top: 1rem;
}

.exlv-passgen-custom-input label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

#exlv-customChars {
  width: 100%;
  padding: 0.75rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  color: #f8fafc;
  font-family: "Courier New", monospace;
}

.exlv-passgen-save-section {
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.exlv-passgen-save-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.exlv-passgen-saved-passwords {
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding-top: 1.5rem;
}

.exlv-passgen-saved-passwords h3 {
  margin-bottom: 1rem;
  color: #10b981;
}

.exlv-passgen-password-item {
  background: rgba(15, 23, 42, 0.6);
  padding: 0.75rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.exlv-passgen-password-timestamp {
  color: #94a3b8;
  font-size: 0.8rem;
}

.exlv-passgen-security-tips {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
}

.exlv-passgen-security-tips h3 {
  margin-bottom: 1rem;
  color: #10b981;
}

.exlv-passgen-security-tips ul {
  list-style: none;
  padding-left: 0;
}

.exlv-passgen-security-tips li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.exlv-passgen-security-tips li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

@media (max-width: 640px) {
  .exlv-password-generator-container {
    padding: 10px;
  }

  .exlv-passgen-card {
    padding: 1.5rem;
  }

  .exlv-passgen-password-actions {
    flex-direction: column;
  }

  .exlv-passgen-save-actions {
    flex-direction: column;
  }

  .exlv-passgen-header h2 {
    font-size: 2rem;
  }
}
