/* Password Generator — page specific overrides (uses variables from main.css) */
.password-container { 
  padding: 80px 0; 
  min-height: calc(100vh - 200px); 
}

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

.password-header h1 { 
  font-size: 2.2rem; 
  margin-bottom: 8px; 
  color: var(--text); 
}

.password-header p { 
  color: var(--text-light); 
}

.generator-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
  margin-bottom: 60px;
}

.input-section, .results-section {
  display: flex;
  flex-direction: column;
}

.input-card, .results-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  height: 100%;
}

.input-card h2 {
  margin-bottom: 8px;
  color: var(--text);
}

.subtitle {
  color: var(--text-light);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

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

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
}

.input-group input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e5e7eb;
  border-radius: var(--radius);
  background: #fff;
  font-size: 1rem;
  transition: var(--transition);
}

.input-group input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(227,6,19,.1);
}

.input-group small {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-top: 6px;
  display: block;
}

/* Range Slider */
.range-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

input[type="range"] {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: #e5e7eb;
  outline: none;
  -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

#length-value {
  font-weight: 600;
  color: var(--primary);
  min-width: 100px;
}

/* Options Groups */
.options-group {
  margin-bottom: 24px;
}

.options-group h3 {
  margin-bottom: 16px;
  color: var(--text);
  font-size: 1.1rem;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 500;
  color: var(--text);
  padding: 8px 0;
}

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

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #e5e7eb;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.checkmark:after {
  content: "✓";
  color: white;
  font-size: 12px;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.2s;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: var(--primary);
  border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark:after {
  opacity: 1;
}

.checkbox-label:hover .checkmark {
  border-color: var(--primary);
}

/* Buttons */
.generate-btn {
  width: 100%;
  margin-bottom: 12px;
  padding: 14px;
  font-size: 1.05rem;
}

.btn-secondary {
  width: 100%;
}

/* Results Section */
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(227,6,19,.2);
}

.results-header h2 {
  color: var(--text);
  margin: 0;
}

.password-strength {
  display: flex;
  align-items: center;
  gap: 10px;
}

.strength-label {
  font-size: 0.9rem;
  color: var(--text-light);
}

.strength-meter {
  width: 80px;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}

.strength-bar {
  height: 100%;
  border-radius: 3px;
  width: 0%;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-text {
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 60px;
}

/* Password Display */
.password-display {
  margin-bottom: 24px;
}

.password-field {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.password-field input {
  flex: 1;
  padding: 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: var(--radius);
  background: #f8fafc;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text);
}

.copy-btn {
  background: #f8fafc;
  border: 2px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text);
}

.copy-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.password-actions {
  display: flex;
  gap: 10px;
}

.password-actions .btn-secondary {
  flex: 1;
}

/* Password Analysis */
.password-analysis {
  margin-bottom: 24px;
}

.password-analysis h3 {
  margin-bottom: 16px;
  color: var(--text);
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.analysis-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: var(--radius);
  border: 1px solid #e5e7eb;
}

.analysis-label {
  font-size: 0.85rem;
  color: var(--text-light);
}

.analysis-value {
  font-weight: 600;
  color: var(--text);
}

/* Multiple Passwords */
.multiple-passwords h3 {
  margin-bottom: 16px;
  color: var(--text);
}

.password-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.password-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: var(--radius);
  border: 1px solid #e5e7eb;
}

.password-text {
  flex: 1;
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--text);
}

.password-copy {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: var(--transition);
}

.password-copy:hover {
  background: rgba(227,6,19,.1);
}

/* Tips Section */
.tips-section {
  margin-bottom: 60px;
}

.tips-section h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--text);
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.tip-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

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

.tip-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, rgba(227,6,19,.1) 0%, rgba(34,197,94,.1) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
}

.tip-card h3 {
  margin-bottom: 12px;
  color: var(--text);
}

.tip-card p {
  color: var(--text-light);
  line-height: 1.5;
}

/* Info Section */
.info-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

.info-section h2 {
  margin-bottom: 16px;
  color: var(--text);
}

.info-section p {
  margin-bottom: 20px;
  line-height: 1.6;
  color: var(--text);
}

.info-section h3 {
  margin: 24px 0 12px;
  color: var(--primary);
}

.info-section ul, .info-section ol {
  margin-left: 20px;
  margin-bottom: 16px;
}

.info-section li {
  margin-bottom: 8px;
  line-height: 1.6;
  color: var(--text);
}

.disclaimer {
  background: rgba(227,6,19,.05);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 4px;
  margin-top: 24px;
}

.disclaimer h3 {
  margin-top: 0;
  color: var(--primary);
}

.disclaimer p {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 980px) {
  .generator-grid {
    grid-template-columns: 1fr;
  }
  
  .results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .analysis-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .input-card, .results-card, .info-section {
    padding: 20px;
  }
  
  .password-header h1 {
    font-size: 1.8rem;
  }
  
  .analysis-grid {
    grid-template-columns: 1fr;
  }
  
  .password-actions {
    flex-direction: column;
  }
  
  .tips-grid {
    grid-template-columns: 1fr;
  }
}