/* ==================== Enhanced Edit User Modal ==================== */

/* Enhanced Form Styling */
.edit-user-form-enhanced {
  padding: 10px 0;
}

.form-group.enhanced {
  margin-bottom: 25px;
  position: relative;
}

.form-group.enhanced label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: #334155;
  margin-bottom: 8px;
}

.form-group.enhanced label i {
  color: #667eea;
  font-size: 16px;
}

.optional-label {
  font-size: 12px;
  font-weight: 400;
  color: #94a3b8;
  font-style: italic;
  margin-left: 5px;
}

.form-group.enhanced input[type="text"],
.form-group.enhanced input[type="email"],
.form-group.enhanced input[type="password"],
.form-group.enhanced select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: #f8fafc;
}

.form-group.enhanced input:focus,
.form-group.enhanced select:focus {
  outline: none;
  border-color: #667eea;
  background: var(--card-background);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Validation States */
.form-group.enhanced input.valid {
  border-color: #10b981 !important;
  background: #f0fdf4 !important;
}

.form-group.enhanced input.invalid {
  border-color: #ef4444 !important;
  background: #fef2f2 !important;
}

.validation-message {
  display: block;
  font-size: 12px;
  margin-top: 6px;
  font-weight: 500;
  min-height: 18px;
}

.validation-message.error {
  color: #ef4444;
}

.validation-message.success {
  color: #10b981;
}

/* Password Input Wrapper */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper input {
  padding-right: 50px !important;
}

.toggle-password-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border-radius: 6px;
}

.toggle-password-btn:hover {
  color: #667eea;
  background: rgba(102, 126, 234, 0.1);
}

.toggle-password-btn i {
  font-size: 16px;
}

/* Password Strength Indicator */
.password-strength {
  margin-top: 10px;
}

.strength-bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 6px;
}

.strength-bar-fill {
  height: 100%;
  transition: all 0.4s ease;
  border-radius: 10px;
}

.strength-bar-fill.weak {
  background: linear-gradient(90deg, #ef4444, #f87171);
  width: 33%;
}

.strength-bar-fill.medium {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  width: 66%;
}

.strength-bar-fill.strong {
  background: linear-gradient(90deg, #10b981, #34d399);
  width: 100%;
}

.strength-text {
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

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

.strength-text.medium {
  color: #f59e0b;
}

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

/* Enhanced Form Actions */
.form-actions.enhanced {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #f1f5f9;
}

.form-actions.enhanced .btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-actions.enhanced .btn i {
  font-size: 14px;
}

.form-actions.enhanced .btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.form-actions.enhanced .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.form-actions.enhanced .btn-primary:active {
  transform: translateY(0);
}

.form-actions.enhanced .btn-secondary {
  background: #f1f5f9;
  color: #64748b;
  border: 2px solid #e2e8f0;
}

.form-actions.enhanced .btn-secondary:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .form-actions.enhanced {
    flex-direction: column;
  }
  
  .form-actions.enhanced .btn {
    width: 100%;
  }
}

/* Animation for validation messages */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.validation-message {
  animation: slideIn 0.3s ease;
}

