/* Trust Search - Internal Team Tool */

/* ── Password Gate ── */
.ts-password-gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ts-password-card {
  background: rgba(30, 30, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
  max-width: 400px;
  width: 100%;
  backdrop-filter: blur(20px);
}

.ts-lock-icon {
  color: var(--accent-primary, #D4AF37);
  margin-bottom: 20px;
}

.ts-password-card h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--text-primary, #fff);
  margin-bottom: 8px;
}

.ts-password-card p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.ts-password-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ts-password-form input {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.ts-password-form input:focus {
  border-color: var(--accent-primary, #D4AF37);
}

.ts-password-form button {
  padding: 14px;
  background: var(--accent-primary, #D4AF37);
  color: #000;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.ts-password-form button:hover {
  opacity: 0.9;
}

.ts-password-error {
  color: #ef4444;
  font-size: 0.85rem;
  margin-top: 12px;
}

/* ── Main Container ── */
.ts-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 80px;
}

.ts-header {
  text-align: center;
  margin-bottom: 28px;
}

.ts-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--text-primary, #fff);
  margin-bottom: 4px;
}

.ts-header p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* ── Tabs ── */
.ts-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 4px;
}

.ts-tab {
  flex: 1;
  padding: 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.ts-tab.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.ts-tab:hover:not(.active) {
  color: rgba(255, 255, 255, 0.7);
}

/* ── Filters ── */
.ts-filters {
  margin-bottom: 16px;
}

.ts-filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ts-input,
.ts-select {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  flex: 1;
  min-width: 120px;
  transition: border-color 0.2s;
}

.ts-input:focus,
.ts-select:focus {
  border-color: var(--accent-primary, #D4AF37);
}

.ts-select {
  cursor: pointer;
}

.ts-select option {
  background: #1a1a1a;
  color: #fff;
}

.ts-search-btn {
  padding: 10px 24px;
  background: var(--accent-primary, #D4AF37);
  color: #000;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.ts-search-btn:hover {
  opacity: 0.9;
}

.ts-clear-btn {
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.ts-clear-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* ── Results Count ── */
.ts-results-count {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

/* ── Table ── */
.ts-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.ts-table thead th {
  text-align: left;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.ts-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s;
}

.ts-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.ts-table tbody td {
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.85);
  vertical-align: middle;
  white-space: nowrap;
}

/* ── Thumbnail ── */
.ts-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.2s, border-color 0.2s;
}

.ts-thumb:hover {
  transform: scale(1.08);
  border-color: var(--accent-primary, #D4AF37);
}

/* ── Download Button ── */
.ts-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.2s;
}

.ts-download-btn:hover {
  background: var(--accent-primary, #D4AF37);
  color: #000;
}

/* ── FedEx Actions ── */
.ts-fedex-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ts-fedex-link {
  color: var(--accent-primary, #D4AF37);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  transition: opacity 0.2s;
}

.ts-fedex-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.ts-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s;
}

.ts-copy-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.ts-copy-btn.ts-copied {
  background: #22c55e;
  color: #fff;
}

.ts-tracking-cell {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

/* ── Empty, Loading & Placeholder States ── */
.ts-loading,
.ts-empty,
.ts-error,
.ts-placeholder {
  text-align: center;
  padding: 48px 20px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.95rem;
}

.ts-placeholder strong {
  color: rgba(255, 255, 255, 0.6);
}

.ts-error code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* ── Lightbox ── */
.ts-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ts-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}

.ts-lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.ts-lightbox-content img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.ts-lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.ts-lightbox-close:hover {
  opacity: 1;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .ts-container {
    padding: 16px 12px 60px;
  }

  .ts-header h1 {
    font-size: 1.5rem;
  }

  .ts-filter-row {
    flex-direction: column;
  }

  .ts-input,
  .ts-select {
    min-width: 100%;
  }

  .ts-table {
    font-size: 0.82rem;
  }

  .ts-thumb {
    width: 44px;
    height: 44px;
  }

  .ts-table thead th,
  .ts-table tbody td {
    padding: 6px 8px;
  }
}
