/* Change Password Modal Styles */
.change-password-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.change-password-modal-content {
  position: relative;
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.change-password-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.change-password-close:hover,
.change-password-close:focus {
  color: black;
  text-decoration: none;
}

.change-password-modal-title {
  margin-top: 0;
  margin-bottom: 20px;
  color: #333;
  font-size: 1.5em;
}

.change-password-form .form-group {
  margin-bottom: 15px;
}

.change-password-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.change-password-form input[type="password"] {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #f8f8f8;
  font-size: 14px;
}

.change-password-form input[type="password"]:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.password-strength-meter {
  margin-bottom: 15px;
  background-color: #eee;
  height: 5px;
  position: relative;
  border-radius: 3px;
  overflow: hidden;
}

.password-strength-bar {
  height: 100%;
  width: 0;
  background-color: #dc3545;
  transition: width 0.3s, background-color 0.3s;
}

.password-strength-text {
  font-size: 12px;
  margin-top: 5px;
  text-align: right;
}

.change-password-message {
  margin: 10px 0;
  padding: 10px;
  border-radius: 4px;
  display: none;
}

.change-password-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}

.change-password-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}

.form-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.form-buttons button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
}

.form-buttons .submit-button {
  background-color: #28a745;
  color: white;
}

.form-buttons .submit-button:hover {
  background-color: #218838;
}

.form-buttons .cancel-button {
  background-color: #6c757d;
  color: white;
}

.form-buttons .cancel-button:hover {
  background-color: #5a6268;
}

/* Button Styles */
.change-password-button,
.logout-button {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  cursor: pointer;
}

.change-password-button-block,
.logout-button-block {
  display: block;
  width: 100%;
}

.change-password-button:focus,
.logout-button:focus {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.elementor-editor-preview .change-password-modal {
  position: relative;
  display: block;
  z-index: 1;
  background-color: transparent;
  pointer-events: none;
}

.elementor-editor-preview .change-password-modal-content {
  margin: 20px 0;
  pointer-events: none;
}
