/* ==========================================================================
   ARTOIS TECHNOLOGY LIMITED — CORPORATE EMPLOYEE DIRECTORY (/emp/)
   Clean, Compact, Ultra-Professional Table Design
   ========================================================================== */

/* Compact Hero */
.emp-hero-section {
  position: relative;
  padding: clamp(36px, 5vw, 56px) 0 clamp(24px, 4vw, 36px);
  background: radial-gradient(circle at 15% 15%, rgba(37, 99, 235, 0.12), transparent 45%),
              radial-gradient(circle at 85% 85%, rgba(6, 182, 212, 0.08), transparent 45%),
              var(--navy-950);
  border-bottom: 1px solid var(--border-dark);
}

.emp-hero-content {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.emp-hero-content .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.28);
  color: #93c5fd;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.emp-hero-content .eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: pulse-dot 2s infinite;
}

.emp-hero-title {
  color: #ffffff;
  font-size: clamp(1.8rem, 3.8vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
}

.emp-hero-title span {
  background: linear-gradient(135deg, #60a5fa 20%, #38bdf8 60%, #a5f3fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.emp-hero-description {
  color: #94a3b8;
  font-size: clamp(0.92rem, 1.6vw, 1.02rem);
  line-height: 1.5;
  max-width: 620px;
  margin: 0 auto;
}

/* Registry Section */
.emp-registry-section {
  padding: clamp(28px, 4.5vw, 52px) 0 clamp(48px, 6vw, 72px);
  background: #f8fafc;
  min-height: 520px;
}

.emp-container-narrow {
  max-width: 860px;
  margin: 0 auto;
}

/* Compact Search Bar */
.emp-search-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  background: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
  flex-wrap: wrap;
}

.emp-search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 240px;
}

.emp-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
}

.emp-search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border-radius: var(--radius-pill);
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-size: 0.9rem;
  color: var(--ink-900);
  outline: none;
  transition: all 0.2s ease;
}

.emp-search-input:focus {
  background: #ffffff;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.emp-search-input::placeholder {
  color: #94a3b8;
}

.emp-search-count {
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}

/* Compact Table */
.emp-table-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.emp-compact-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
}

.emp-compact-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 20px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.emp-compact-table th.col-sl {
  width: 54px;
  text-align: center;
}

.emp-compact-table th.col-action {
  text-align: right;
  width: 200px;
}

.emp-compact-table td {
  padding: 14px 20px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  background: #ffffff;
  transition: background 0.15s ease;
}

.emp-compact-table tbody tr {
  transition: background 0.15s ease, transform 0.15s ease;
}

.emp-compact-table tbody tr:hover td {
  background: #f8faff;
}

.emp-compact-table tbody tr:last-child td {
  border-bottom: none;
}

/* Column 1: Serial */
.td-sl {
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* Column 2: Employee Profile (Avatar + Name) */
.emp-cell-profile {
  display: flex;
  align-items: center;
  gap: 14px;
}

.emp-avatar {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  flex-shrink: 0;
}

.emp-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
  display: block;
}

.emp-name-text {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink-950);
  text-decoration: none;
  transition: color 0.15s ease;
}

.emp-name-text:hover {
  color: var(--brand);
}

/* Column 3: Action Button */
.td-action {
  text-align: right;
}

.btn-vfy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff !important;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  cursor: pointer;
}

.btn-vfy-link:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.36);
  color: #ffffff !important;
}

.btn-vfy-link:active {
  transform: translateY(0) scale(0.99);
}

.btn-vfy-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.btn-vfy-link:hover svg {
  transform: translate(2px, -2px);
}

/* Empty State */
.emp-no-results {
  display: none;
  padding: 40px 20px;
  text-align: center;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.emp-no-results svg {
  width: 40px;
  height: 40px;
  color: #94a3b8;
  margin-bottom: 10px;
}

.emp-no-results h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-900);
  margin: 0 0 4px;
}

.emp-no-results p {
  font-size: 0.86rem;
  color: #64748b;
  margin: 0;
}

/* Responsive Table Adaptations */
@media (max-width: 580px) {
  .emp-compact-table th.col-sl,
  .emp-compact-table td.td-sl {
    display: none;
  }

  .emp-compact-table th,
  .emp-compact-table td {
    padding: 12px 14px;
  }

  .emp-avatar {
    width: 38px;
    height: 38px;
  }

  .emp-name-text {
    font-size: 0.9rem;
  }

  .btn-vfy-link {
    padding: 7px 13px;
    font-size: 0.78rem;
    gap: 5px;
  }

  .btn-vfy-link svg {
    width: 12px;
    height: 12px;
  }
}
