/* boss-uploads.css — klant-upload module. Hangt op BOSS-tokens
   (--gold, --bg, --border, --text-dim, --radius-sm). */

.uploads-table { width: 100%; }
.uploads-table th { font-weight: 600; }
.uploads-table td { vertical-align: middle; }

/* 8-cijferige code — monospaced, visueel afgebakend. */
.code-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 6px);
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 14px;
  letter-spacing: 0.08em;
  background: rgba(0, 0, 0, 0.12);
}
.code-pill .copy-hint {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  text-transform: uppercase;
  cursor: pointer;
}
.code-pill.copied .copy-hint::after { content: " ✓"; color: var(--gold); }

.upload-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}
.upload-status.active   { background: rgba(45, 141, 99, 0.18);  color: #4ec98a; }
.upload-status.inactive { background: rgba(178, 69, 69, 0.18);  color: #e57777; }
.upload-status.expired  { background: rgba(214, 164, 60, 0.22); color: #f2c057; }

/* Actie-knoppen-rij in tabel — kleiner zodat ze in één regel passen. */
.uploads-table .row-actions {
  display: inline-flex;
  gap: 6px;
  justify-content: flex-end;
}
.uploads-table .row-actions .btn {
  padding: 6px 10px;
  font-size: 12px;
}

.file-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-right: 10px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  color: var(--text-dim);
}
.file-name-cell {
  display: flex;
  align-items: center;
}
.file-name-cell .nm {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 380px;
}

.uploads-toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 10px 18px;
  background: var(--gold);
  color: #1a1409;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 9999;
}
.uploads-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 760px) {
  .uploads-table { font-size: 13px; }
  .uploads-table th:nth-child(4),
  .uploads-table td:nth-child(4),
  .uploads-table th:nth-child(5),
  .uploads-table td:nth-child(5) { display: none; }
  .file-name-cell .nm { max-width: 180px; }
}

/* ── Share-modal (#shareModal) ───────────────────────────────────
   Hangt op de bestaande .modal-overlay / .modal classes uit boss.css —
   alleen content-specifieke styling hier. */

.share-result-lead {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

.share-result-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.share-result-row input {
  flex: 1;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 6px);
  color: var(--text, #fff);
  min-width: 0;
}
.share-result-row input:focus {
  outline: none;
  border-color: var(--gold);
}

.share-active-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.share-active-title {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
}
.share-active-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}
.share-list-empty {
  padding: 14px 12px;
  color: var(--text-dim);
  font-size: 13px;
  text-align: center;
  background: rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-sm, 6px);
}

.share-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 6px);
}
.share-row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.share-row-token {
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.share-row-token code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}
.share-row-token .fa-lock {
  color: var(--gold);
  font-size: 11px;
}
.share-row-meta {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}
.share-row-meta strong { color: var(--text, #fff); font-weight: 600; }

.share-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}
.share-status.is-active    { background: rgba(45, 141, 99, 0.18);  color: #4ec98a; }
.share-status.is-expired   { background: rgba(178, 69, 69, 0.18);  color: #e57777; }
.share-status.is-revoked   { background: rgba(120, 120, 120, 0.18); color: var(--text-dim); }
.share-status.is-exhausted { background: rgba(207, 153, 60, 0.18); color: #e0b562; }

#shareModal .modal-body select,
#shareModal .modal-body input[type="text"],
#shareModal .modal-body input[type="number"] {
  width: 100%;
}
