.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-modal-avatar{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  margin-bottom:18px;
}

.user-modal-avatar-preview{
  width:96px;
  height:96px;
  border-radius:50%;
  overflow:hidden;
  background:#f3f4f6;
  color:#6b7280;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:0.85rem;
  box-shadow:0 4px 12px rgba(15,23,42,0.08);
}

.user-modal-avatar-preview img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.user-modal-avatar-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:center;
}

.user-avatar-upload{
  cursor:pointer;
}

.user-avatar-remove{
  background:none;
  border:none;
  color:#dc2626;
  font-weight:600;
  cursor:pointer;
}

.user-avatar-remove:disabled{
  color:#9ca3af;
  cursor:not-allowed;
}

.user-modal-avatar-hint{
  margin:0;
  font-size:0.85rem;
  color:#6b7280;
}

#user-reset-password {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 16px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: linear-gradient(135deg, var(--brand, #1a349b) 75%, var(--accent, #ff0099) 115%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 12px 28px -18px rgba(26, 52, 155, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#user-reset-password:hover,
#user-reset-password:focus-visible {
  background: linear-gradient(135deg, rgba(26, 52, 155, 0.92) 65%, rgba(255, 0, 153, 0.95) 110%);
  box-shadow: 0 16px 34px -18px rgba(26, 52, 155, 0.65);
  transform: translateY(-1px);
  outline: none;
}

#user-reset-password:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px -14px rgba(26, 52, 155, 0.55);
}

