/* =========================
   Employees V3.1 - "Nexus Card" Enhanced
   ========================= */

:root {
  --nex-bg: #f8fafc;
  --nex-surface: #ffffff;
  --nex-primary: #0f172a;
  --nex-accent: #3b82f6;
  --nex-text: #475569;
  --nex-muted: #94a3b8;
  --nex-border: #e2e8f0;
  --nex-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  --nex-radius: 20px;
  
  /* Gradients */
  --grad-1: linear-gradient(135deg, #6366f1 0%, #55f7d4 100%);
  --grad-2: linear-gradient(135deg, #3b82f6 0%, #2dd4bf 100%);
  --grad-surface: linear-gradient(to bottom, #ffffff, #f8fafc);
}

.dark {
  --nex-bg: #0f172a;
  --nex-surface: #1e293b;
  --nex-primary: #ffffff;
  --nex-accent: #60a5fa;
  --nex-text: #cbd5e1;
  --nex-muted: #64748b;
  --nex-border: rgba(255,255,255,0.05);
  --nex-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  --grad-surface: linear-gradient(to bottom, #1e293b, #0f172a);
}

/* Page Layout */
.nexus-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.nexus-header {
  text-align: center;
  margin-bottom: 4rem;
}

.nexus-title {
  font-family: 'PT Serif', serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--nex-primary);
  margin-bottom: 0.5rem;
  background: var(--grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.nexus-subtitle {
  color: var(--nex-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Card Grid (Employees List) */
.nexus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2.5rem;
}

.nexus-card {
  background: var(--nex-surface);
  border-radius: var(--nex-radius);
  border: 1px solid var(--nex-border);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.nexus-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -5px rgba(0,0,0,0.1);
  border-color: var(--nex-accent);
}

/* Card Visuals */
.nc-cover {
  height: 120px;
  background: var(--grad-1);
  position: relative;
  opacity: 0.9;
}

.dark .nc-cover {
  opacity: 0.8;
}

.nc-avatar-wrapper {
  position: absolute;
  bottom: -40px;
  left: 1.5rem;
}

.nc-avatar {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  border: 4px solid var(--nex-surface);
  background: var(--nex-surface);
  object-fit: cover;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.nc-content {
  padding: 3rem 1.5rem 1.5rem; /* Space for avatar */
  flex: 1;
  display: flex;
  flex-direction: column;
}

.nc-name {
  font-family: 'PT Serif', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--nex-primary);
  margin-bottom: 0.25rem;
}

.nc-role {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--nex-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

/* Tags & Timeline within Card */
.nc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.nc-tag {
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
  background: var(--nex-bg);
  color: var(--nex-text);
  border-radius: 8px;
  font-weight: 600;
}

.nc-timeline-preview {
  margin-bottom: 1.5rem;
}

.nc-timeline-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--nex-muted);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.nc-timeline-item {
  font-size: 0.85rem;
  color: var(--nex-text);
  padding-left: 10px;
  border-left: 2px solid var(--nex-border);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nc-action {
  margin-top: auto;
}

.btn-nexus {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.9rem;
  background: var(--nex-primary);
  color: var(--nex-bg);
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.dark .btn-nexus {
  background: var(--nex-accent);
  color: white;
}

.btn-nexus:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.15);
}

/* =========================
   Profile / Dossier View
   ========================= */
.dossier-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 3rem;
  align-items: start;
}

/* Left Sidebar Card */
.dossier-sidebar {
  background: var(--nex-surface);
  border-radius: var(--nex-radius);
  border: 1px solid var(--nex-border);
  padding: 0; /* padding moved inner */
  text-align: center;
  position: sticky;
  top: 2rem;
  overflow: hidden;
  box-shadow: var(--nex-shadow);
}

.dossier-cover-mini {
  height: 120px;
  background: var(--grad-2);
  width: 100%;
}

.dossier-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-top: -70px;
  margin-bottom: 1rem;
  border: 5px solid var(--nex-surface);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  background: var(--nex-surface);
}

.dossier-inner {
  padding: 0 2rem 2.5rem;
}

.dossier-name {
  font-family: 'PT Serif', serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--nex-primary);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.dossier-role {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: var(--nex-bg);
  color: var(--nex-accent);
  font-weight: 700;
  border-radius: 99px;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  border: 1px solid var(--nex-border);
}

.dossier-data-row {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--nex-border);
  font-size: 0.9rem;
  text-align: left;
}

.dossier-data-row:last-child {
  border-bottom: none;
}

.dossier-label {
  color: var(--nex-muted);
  font-weight: 600;
}

.dossier-value {
  color: var(--nex-primary);
  font-weight: 700;
  text-align: right;
}

/* Fancy Department Tags */
.dept-pill-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.dept-pill {
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(168, 85, 247, 0.1));
  color: var(--nex-primary);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  font-weight: 700;
  transition: all 0.2s;
}

.dept-pill:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #3b82f6, #55f7d4);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

/* Right Content Area */
.dossier-main {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.dossier-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--nex-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dossier-section-title span {
  background: linear-gradient(120deg, var(--nex-accent) 0%, #559bf7 100%);
  height: 4px;
  width: 24px;
  border-radius: 4px;
  display: block;
}

.dossier-bio {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--nex-text);
  background: var(--nex-surface);
  padding: 2.5rem;
  border-radius: var(--nex-radius);
  border: 1px solid var(--nex-border);
  box-shadow: var(--nex-shadow);
  position: relative;
  overflow: hidden;
}

.dossier-bio::before {
  content: '"';
  position: absolute;
  top: 1rem;
  right: 2rem;
  font-family: 'PT Serif', serif;
  font-size: 8rem;
  color: var(--nex-accent);
  opacity: 0.05;
  pointer-events: none;
}

.dossier-timeline {
  list-style: none;
  padding: 0;
}

.dossier-timeline li {
  position: relative;
  padding-left: 2.5rem;
  padding-bottom: 2.5rem;
  border-left: 2px solid var(--nex-border);
}

.dossier-timeline li::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--nex-surface);
  border: 3px solid var(--nex-accent);
}

.dossier-timeline li:last-child {
  border-left: 2px solid transparent;
}

.dossier-timeline-text {
  font-size: 1rem;
  color: var(--nex-text);
  background: var(--nex-surface);
  padding: 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--nex-border);
  margin-top: -0.5rem;
  box-shadow: 0 4px 6px -2px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}

.dossier-timeline-text:hover {
  transform: translateX(5px);
  border-color: var(--nex-accent);
}

/* Responsive */
@media (max-width: 900px) {
  .dossier-grid {
    grid-template-columns: 1fr;
  }
  .dossier-sidebar {
    position: relative;
    top: 0;
  }
}

/* Unique NFC Elements */
.nfc-verified-badge {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 700;
  margin-bottom: 2rem;
  box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.4);
}
