/* Password type button styling */
.password-type-btn {
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
}

.password-type-btn:hover {
  border-color: #1e1e2f;
  background: #eef2ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.password-type-btn.active {
  border-color: #1e1e2f;
  background: #1e1e2f;
  color: #00dfd8;
}

/* Preset button styling */
.preset-btn {
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
}

.preset-btn:hover {
  border-color: #1e1e2f;
  background: #f9fafb;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.preset-btn:active {
  transform: translateY(0);
}

/* Range slider styling */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1e1e2f;
  cursor: pointer;
  transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  background: #1e1e2f;
  transform: scale(1.2);
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #00dfd8;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

input[type="range"]::-moz-range-thumb:hover {
  background: #111827;
  transform: scale(1.2);
}

/* Checkbox styling */
input[type="checkbox"] {
  cursor: pointer;
  accent-color: #1e1e2f;
}

/* Button animations */
button {
  transition: all 0.2s ease;
}

button:active {
  transform: scale(0.98);
}

button:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Modal styling */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.modal-overlay.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Password display styling */
#generated-password {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.5px;
}

/* Strength bar animation */
#strength-bar {
  transition: width 0.5s ease, background-color 0.5s ease;
}

/* History item hover effect */
.group:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Scrollbar styling */
#password-history::-webkit-scrollbar,
#bulk-results::-webkit-scrollbar {
  width: 8px;
}

#password-history::-webkit-scrollbar-track,
#bulk-results::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

#password-history::-webkit-scrollbar-thumb,
#bulk-results::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

#password-history::-webkit-scrollbar-thumb:hover,
#bulk-results::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Gradient animation for header */
.bg-gradient-to-r {
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Focus effects */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .text-4xl {
    font-size: 2rem;
  }

  .text-3xl {
    font-size: 1.5rem;
  }

  #generated-password {
    font-size: 1.25rem;
    padding: 1rem;
  }

  .grid-cols-2 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

/* Prose styling for blog content */
.prose {
  color: #374151;
  max-width: 90%;
}

.prose h2 {
  color: #111827;
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3;
}

.prose h3 {
  color: #1f2937;
  font-weight: 600;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  line-height: 1.4;
}

.prose h4 {
  color: #374151;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.prose p {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  line-height: 1.75;
}

.prose strong {
  color: #111827;
  font-weight: 600;
}

.prose ul {
  list-style-type: disc;
  padding-left: 1.625em;
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  padding-left: 0.375em;
}

/* Copy button pulse animation */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

button:active {
  animation: pulse 0.3s ease;
}
