:root {
  /* Core Colors - Professional HR Aesthetic */
  --wf-bg: #f8fafc;
  --wf-surface: #ffffff;
  --wf-text: #1e293b;
  --wf-text-muted: #64748b;
  --wf-primary: #3b82f6;
  --wf-primary-hover: #2563eb;
  --wf-accent: #8b5cf6;
  --wf-border: #e2e8f0;
  --wf-success: #10b981;
  --wf-warning: #f59e0b;
  --wf-danger: #ef4444;
  --wf-ai-glow: rgba(139, 92, 246, 0.15);

  /* Spacing */
  --wf-space-xs: 4px;
  --wf-space-sm: 8px;
  --wf-space-md: 16px;
  --wf-space-lg: 24px;
  --wf-space-xl: 48px;
  --wf-space-2xl: 64px;

  /* Radius */
  --wf-radius: 12px;
  --wf-radius-sm: 6px;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--wf-bg);
  color: var(--wf-text);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Layout Parts */
.app-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background: #0f172a;
  color: white;
  padding: var(--wf-space-lg);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.main-content {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.top-bar {
  height: 64px;
  background: var(--wf-surface);
  border-bottom: 1px solid var(--wf-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--wf-space-lg);
}

.content-wrapper {
  padding: var(--wf-space-lg);
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

/* Components */
.card {
  background: var(--wf-surface);
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-radius);
  padding: var(--wf-space-lg);
  margin-bottom: var(--wf-space-lg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.ai-card {
  border: 1px solid transparent;
  background: linear-gradient(var(--wf-surface), var(--wf-surface)) padding-box,
              linear-gradient(135deg, var(--wf-primary), var(--wf-accent)) border-box;
  position: relative;
}

.ai-badge {
  background: linear-gradient(135deg, var(--wf-primary), var(--wf-accent));
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Typography */
h1, h2, h3, h4 {
  margin: 0 0 var(--wf-space-md) 0;
  font-weight: 700;
  color: #0f172a;
}

.text-muted {
  color: var(--wf-text-muted);
  font-size: 0.875rem;
}

/* Nav */
.nav-list {
  list-style: none;
  padding: 0;
  margin: var(--wf-space-xl) 0;
}

.nav-item {
  margin-bottom: var(--wf-space-sm);
}

.nav-link {
  color: #94a3b8;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: var(--wf-radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
}

.nav-link:hover, .nav-link.active {
  background: rgba(255,255,255,0.1);
  color: white;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--wf-space-lg);
  margin-bottom: var(--wf-space-xl);
}

.stat-card {
  background: var(--wf-surface);
  padding: var(--wf-space-lg);
  border-radius: var(--wf-radius);
  border: 1px solid var(--wf-border);
}

.stat-value {
  font-size: 1.875rem;
  font-weight: 700;
  margin: var(--wf-space-xs) 0;
}

/* Buttons */
.btn {
  padding: 10px 18px;
  border-radius: var(--wf-radius-sm);
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  text-decoration: none;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--wf-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--wf-primary-hover);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--wf-border);
  color: var(--wf-text);
}

/* Table */
.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--wf-border);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--wf-text-muted);
  letter-spacing: 0.05em;
}

td {
  padding: 16px;
  border-bottom: 1px solid var(--wf-border);
  font-size: 0.875rem;
}

/* Badges */
.badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-green { background: #dcfce7; color: #166534; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-orange { background: #ffedd5; color: #9a3412; }

/* AI Integration UI */
.ai-insight {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--wf-ai-glow);
  border-radius: var(--wf-radius-sm);
  margin-top: 12px;
  font-size: 0.875rem;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.ai-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--wf-space-lg);
}

/* Utilities */
.flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }

/* Forms */
.form-group {
  margin-bottom: var(--wf-space-md);
}

.form-label {
  display: block;
  margin-bottom: var(--wf-space-xs);
  font-weight: 500;
  font-size: 0.875rem;
}

.form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-radius-sm);
  font-family: inherit;
}

.form-input:focus {
  outline: 2px solid var(--wf-primary);
  border-color: transparent;
}

/* Profile / Avatar */
.placeholder-avatar {
  width: 36px;
  height: 36px;
  background: #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade {
  animation: fadeIn 0.4s ease forwards;
}
