/* Password Generator Tool Specific Styles */

/* Tool Hero Section */
.tool-hero {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tool-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%2319F57" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.03;
  pointer-events: none;
}

.tool-hero-content {
  position: relative;
  z-index: 1;
}

.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #2563EB 0%, #6366F1 100%);
  color: white;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.tool-title {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.tool-description {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  color: #475569;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.tool-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 0.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #2563EB;
}

.feature-icon {
  width: 20px;
  height: 20px;
  color: #2563EB;
}

/* Tool Section */
.tool-section {
  padding: 4rem 0;
  background: #F8FAFC;
}

.password-container {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

/* Password Display */
.password-display {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.password-output {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.password-output input {
  flex: 1;
  padding: 1rem;
  border: 2px solid #E2E8F0;
  border-radius: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
}

.password-output input:focus {
  outline: none;
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.password-output input.generated {
  animation: pulse 0.3s ease;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.copy-btn {
  padding: 1rem 1.5rem;
  white-space: nowrap;
}

.copy-btn.copied {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

/* Password Strength */
.password-strength {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.strength-bar {
  flex: 1;
  height: 8px;
  background: #E2E8F0;
  border-radius: 4px;
  overflow: hidden;
}

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

.strength-fill.weak {
  background: #EF4444;
}

.strength-fill.fair {
  background: #F59E0B;
}

.strength-fill.good {
  background: #3B82F6;
}

.strength-fill.strong {
  background: #10B981;
}

.strength-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  min-width: 80px;
  text-align: right;
}

.strength-text.weak {
  color: #EF4444;
}

.strength-text.fair {
  color: #F59E0B;
}

.strength-text.good {
  color: #3B82F6;
}

.strength-text.strong {
  color: #10B981;
}

/* Password Options */
.password-options {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.option-group {
  margin-bottom: 2rem;
}

.option-group:last-child {
  margin-bottom: 0;
}

.option-group h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #0F172A;
  margin-bottom: 1rem;
}

.option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.option-row label {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  color: #374151;
}

.length-control {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.length-control input[type="range"] {
  width: 200px;
  height: 6px;
  background: #E2E8F0;
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
}

.length-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: #2563EB;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.length-control input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.length-value {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: #2563EB;
  min-width: 40px;
  text-align: center;
}

/* Checkbox Styles */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  color: #374151;
  transition: color 0.3s ease;
}

.checkbox-label:hover {
  color: #2563EB;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #CBD5E1;
  border-radius: 4px;
  position: relative;
  transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: #2563EB;
  border-color: #2563EB;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 6px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Action Buttons */
.action-buttons {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  min-width: 200px;
}

/* Password History */
.password-history {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.history-list {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 1.5rem;
}

.no-history {
  text-align: center;
  color: #94A3B8;
  font-family: 'Outfit', sans-serif;
  padding: 2rem;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #F1F5F9;
  transition: background 0.3s ease;
}

.history-item:hover {
  background: #F8FAFC;
}

.history-item:last-child {
  border-bottom: none;
}

.history-password {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.history-password input {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid #E2E8F0;
  border-radius: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  background: #F8FAFC;
}

.history-time {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  color: #94A3B8;
  white-space: nowrap;
}

/* Features Section */
.features-section {
  padding: 4rem 0;
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid #E5E7EB;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  border-color: #2563EB;
}

.feature-icon-wrapper {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.feature-icon-wrapper svg {
  width: 32px;
  height: 32px;
  color: #2563EB;
}

.feature-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #0F172A;
  margin-bottom: 1rem;
}

.feature-card p {
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  color: #64748B;
  line-height: 1.6;
}

/* Security Tips Section */
.security-tips {
  padding: 4rem 0;
  background: #F8FAFC;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.tip-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid #E2E8F0;
  transition: all 0.3s ease;
}

.tip-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.tip-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #0F172A;
  margin-bottom: 1rem;
}

.tip-card p {
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  color: #64748B;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .tool-hero {
    padding: 3rem 0;
  }
  
  .tool-title {
    font-size: 2.5rem;
  }
  
  .tool-description {
    font-size: 1.125rem;
    padding: 0 1rem;
  }
  
  .tool-features {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .password-output {
    flex-direction: column;
  }
  
  .length-control input[type="range"] {
    width: 150px;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .tips-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .history-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .history-time {
    align-self: flex-end;
  }
}

@media (max-width: 480px) {
  .tool-title {
    font-size: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .feature-card {
    padding: 1.5rem 1rem;
  }
  
  .password-display,
  .password-options,
  .password-history {
    padding: 1.5rem;
  }
  
  .tip-card {
    padding: 1.5rem;
  }
}

/* Scrollbar Styling */
.history-list::-webkit-scrollbar {
  width: 6px;
}

.history-list::-webkit-scrollbar-track {
  background: #F1F5F9;
  border-radius: 3px;
}

.history-list::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 3px;
}

.history-list::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}
