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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 40px 20px;
}

.container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  padding: 40px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

header {
  text-align: center;
  margin-bottom: 40px;
}

h1 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 8px;
  font-weight: 700;
}

.subtitle {
  color: #7f8c8d;
  font-size: 1.1rem;
  font-weight: 300;
}

.password-output {
  margin-bottom: 30px;
}

.password-list {
  min-height: 60px;
  max-height: 300px;
  overflow-y: auto;
  padding: 2px 0;
}

.password-item {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  position: relative;
}

.password-item:hover {
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.password-text {
  font-family: "Courier New", monospace;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  flex: 1;
  margin-right: 15px;
  word-break: break-all;
}

.copy-btn {
  background: #667eea;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  font-weight: 500;
}

.copy-btn:hover {
  background: #5a6fd8;
  transform: translateY(-1px);
}

.copy-btn.copied {
  background: #27ae60;
}

.controls {
  margin-bottom: 30px;
}

.control-group {
  margin-bottom: 20px;
}

.control-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2c3e50;
}

.control-group input[type="number"] {
  width: 100%;
  padding: 12px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.control-group input[type="number"]:focus {
  outline: none;
  border-color: #667eea;
}

.validation-hint {
  display: block;
  margin-top: 5px;
  font-size: 0.85rem;
  color: #6c757d;
  font-style: italic;
}

.character-options {
  margin-bottom: 25px;
}

.character-options h3 {
  margin-bottom: 15px;
  color: #2c3e50;
  font-size: 1.2rem;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.option {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 12px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.option:hover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.05);
}

.option input[type="checkbox"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  accent-color: #667eea;
}

.generate-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.generate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

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

.strength-indicator {
  text-align: center;
  margin-top: 20px;
}

.strength-bar {
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  margin-bottom: 8px;
  overflow: hidden;
  position: relative;
}

.strength-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--strength-width, 0%);
  background: var(--strength-color, #e74c3c);
  transition: all 0.3s ease;
}

.strength-text {
  font-weight: 600;
  color: var(--strength-color, #e74c3c);
  font-size: 0.9rem;
}

/* SEO Content Section */
.seo-content {
  margin-top: 40px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.seo-content h2 {
  color: #2c3e50;
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-weight: 700;
  text-align: center;
}

.seo-content h3 {
  color: #34495e;
  font-size: 1.3rem;
  margin-bottom: 15px;
  margin-top: 25px;
  font-weight: 600;
}

.seo-content p {
  color: #5d6d7e;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: justify;
}

.seo-content ul {
  margin-left: 20px;
  margin-bottom: 20px;
}

.seo-content li {
  color: #5d6d7e;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 8px;
  padding-left: 5px;
}

.seo-content li::marker {
  color: #667eea;
}

/* Footer */
footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(102, 126, 234, 0.2);
  text-align: center;
}

footer p {
  color: #7f8c8d;
  font-size: 0.9rem;
  font-style: italic;
}

/* Responsive design */
@media (max-width: 768px) {
  body {
    padding: 20px 10px;
  }

  .container {
    padding: 20px;
    margin: 0 auto;
  }

  h1 {
    font-size: 2rem;
  }

  .options-grid {
    grid-template-columns: 1fr;
  }

  .password-item {
    flex-direction: column;
    align-items: stretch;
  }

  .password-text {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .seo-content {
    padding: 20px;
    margin-top: 30px;
  }

  .seo-content h2 {
    font-size: 1.5rem;
  }

  .seo-content h3 {
    font-size: 1.2rem;
  }

  .seo-content p,
  .seo-content li {
    font-size: 0.9rem;
  }
}

/* Animation for password generation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.password-item {
  animation: fadeIn 0.5s ease-out;
}

/* Custom scrollbar for password list */
.password-list::-webkit-scrollbar {
  width: 6px;
}

.password-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.password-list::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.password-list::-webkit-scrollbar-thumb:hover {
  background: #555;
}
