/* WBV Draw 2 — Auth UI styles */

/* -------- User menu -------- */
.user-menu-wrap { position: relative; margin-left: 4px; flex-shrink: 0; }
.user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #1565c0;
  border: 2px solid #0d47a1;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
  padding: 0;
  letter-spacing: 0;
  pointer-events: all;
}
.user-avatar:hover { background: #0d47a1; }

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid #dce3ea;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
  min-width: 220px;
  z-index: 2000;
  overflow: hidden;
}
.ud-info { padding: 14px 16px 10px; }
.ud-name  { font-size: 13px; font-weight: 600; color: #1c2733; }
.ud-email { font-size: 12px; color: #6b7b8c; margin-top: 2px; }
.ud-sep   { height: 1px; background: #dce3ea; margin: 2px 0; }
.ud-item  {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 9px 16px;
  background: none; border: none; cursor: pointer;
  font-size: 13px; font-family: inherit; color: #1c2733;
  text-align: left;
}
.ud-item svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ud-item:hover { background: #f4f6f8; }
.ud-danger { color: #c62828; }

/* -------- Modals -------- */
.auth-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.auth-modal {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  width: 100%; max-width: 480px;
  max-height: 90vh;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.auth-modal.wide { max-width: 680px; }
.am-head {
  display: flex; align-items: center;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #dce3ea;
  flex-shrink: 0;
}
.am-head h3 { font-size: 16px; font-weight: 600; flex: 1; margin: 0; }
.am-close {
  background: none; border: none; cursor: pointer;
  font-size: 18px; color: #6b7b8c; padding: 2px 6px;
  line-height: 1; border-radius: 4px;
}
.am-close:hover { background: #f4f6f8; }
.am-body { padding: 20px; overflow-y: auto; flex: 1; }
.am-foot {
  padding: 14px 20px;
  border-top: 1px solid #dce3ea;
  display: flex; gap: 8px; justify-content: flex-end;
  flex-shrink: 0;
}

/* Modal form */
.am-field { margin-bottom: 14px; }
.am-field label { display: block; font-size: 12px; font-weight: 600; color: #6b7b8c; margin-bottom: 5px; text-transform: uppercase; letter-spacing: .04em; }
.am-field input, .am-field select {
  width: 100%; padding: 9px 11px;
  border: 1.5px solid #dce3ea; border-radius: 7px;
  font-size: 14px; font-family: inherit; color: #1c2733;
  background: #fff; outline: none;
}
.am-field input:focus, .am-field select:focus { border-color: #1565c0; }
.am-err {
  background: #fdecea; border: 1px solid #f5c6c6;
  color: #c62828; border-radius: 7px;
  padding: 9px 12px; font-size: 13px; margin-bottom: 14px;
  display: none;
}
.am-err.visible { display: block; }
.am-ok {
  background: #e8f5e9; border: 1px solid #a5d6a7;
  color: #2e7d32; border-radius: 7px;
  padding: 9px 12px; font-size: 13px; margin-bottom: 14px;
  display: none;
}
.am-ok.visible { display: block; }

/* Buttons */
.btn-am {
  padding: 9px 18px; border-radius: 7px;
  font-size: 14px; font-family: inherit; font-weight: 600;
  cursor: pointer; border: 1.5px solid transparent;
}
.btn-am-primary { background: #1565c0; color: #fff; border-color: #1565c0; }
.btn-am-primary:hover { background: #0d47a1; }
.btn-am-ghost { background: none; color: #6b7b8c; border-color: #dce3ea; }
.btn-am-ghost:hover { background: #f4f6f8; }
.btn-am-danger { background: none; color: #c62828; border-color: #f5c6c6; }
.btn-am-danger:hover { background: #fdecea; }
.btn-am:disabled { opacity: .6; cursor: not-allowed; }

/* Access list in delen-modal */
.access-list { margin: 0 0 16px; }
.access-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f3f6;
  font-size: 13px;
}
.access-row:last-child { border-bottom: none; }
.access-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: #e3edfa; color: #1565c0;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.access-info { flex: 1; min-width: 0; }
.access-name  { font-weight: 500; color: #1c2733; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.access-email { font-size: 11px; color: #6b7b8c; }
.access-badge {
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px;
  background: #e3edfa; color: #1565c0;
}
.access-badge.owner   { background: #fff3e0; color: #e65100; }
.access-badge.admin   { background: #e8eaf6; color: #3949ab; }
.access-badge.viewer  { background: #f1f8e9; color: #558b2f; }
.access-del {
  background: none; border: none; cursor: pointer;
  color: #c62828; font-size: 16px; padding: 2px 6px; line-height: 1;
  border-radius: 4px;
}
.access-del:hover { background: #fdecea; }

/* Add-user row */
.add-user-row {
  display: flex; gap: 6px; align-items: flex-end;
  margin-top: 4px;
}
.add-user-row input { flex: 1; }
.add-user-row select { width: 100px; }

/* Activiteit lijst */
.activiteit-lijst { font-size: 12px; }
.act-item {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 6px 0;
  border-bottom: 1px solid #f0f3f6;
}
.act-item:last-child { border-bottom: none; }
.act-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #1565c0; flex-shrink: 0; margin-top: 4px;
}
.act-body { flex: 1; }
.act-action { font-weight: 500; color: #1c2733; }
.act-who    { color: #6b7b8c; }
.act-when   { color: #9eaab7; font-size: 11px; margin-top: 1px; }

/* Users table */
.users-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.users-table th { text-align: left; padding: 8px 10px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #6b7b8c; border-bottom: 2px solid #dce3ea; }
.users-table td { padding: 9px 10px; border-bottom: 1px solid #f0f3f6; vertical-align: middle; }
.users-table tr:hover td { background: #f7f9fb; }
.user-active-badge { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #4caf50; }
.user-inactive-badge { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #bdbdbd; }
