.user-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.user-modal-content {
  background-color: #fff;
  margin: 0 0 0 auto;
  padding: 20px;
  border: 1px solid #ccc;
  width: 420px;
  height: 100%;
  position: relative;
  border-radius: 8px 0 0 8px;
  box-shadow: -2px 0 8px rgba(0,0,0,0.1);
  transform: translateX(100%);
  transition: transform 0.6s ease-out;
}

.user-modal.show .user-modal-content {
  transform: translateX(0);
}

  .user-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #6b7280;
    transition: color 0.2s ease;
  }

  .user-modal-close:hover,
  .user-modal-close:focus-visible {
    color: #dc2626;
    outline: none;
  }

  .user-modal-close:active {
    color: #b91c1c;
  }

  .user-modal-field label {
    display: block;
    font-weight: bold;
  }

  .user-modal-field input {
    width: 82%;
    padding: 5px;
    margin-bottom: 8px;
  }

#user-reset-password {
  margin-top: 15px;
  background-color: var(--brand);
  color: #fff;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
}

#user-modal .logout-button {
  display: block;
  margin-top: 15px;
  text-align: center;
}
