:root {
  --bg: #f6f7fb;
  --panel: #ffffff;
  --border: #e5e7eb;
  --text: #0f172a;
  --muted: #64748b;
  --orange: #f97316;
  --primary: #037b90;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: #fff;
  color: var(--text);
}

.top {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 950;
}

.brand i {
  color: var(--primary);
}

.user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.user img {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
}

.shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 64px);
}

.side {
  border-right: 1px solid var(--border);
  padding: 14px;
  background: #fbfbfe;
}

.side a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 900;
  margin-bottom: 8px;
}

.side a.active {
  background: rgba(3, 123, 144, 0.10);
  color: #0f172a;
  border: 1px solid rgba(3, 123, 144, 0.25);
}

.main {
  padding: 18px;
  background: #fff;
}

.card {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.tabs {
  display: flex;
  gap: 18px;
  padding: 12px 16px 0;
  border-bottom: 1px solid var(--border);
}

.tab {
  padding: 10px 2px;
  font-weight: 950;
  color: #64748b;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  text-decoration: none;
}

.tab.active {
  color: var(--text);
  border-bottom-color: var(--primary);
}

.body {
  padding: 16px;
}

.h2 {
  font-weight: 950;
  margin: 0 0 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.72rem;
  font-weight: 900;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.field input,
.field select {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 800;
  outline: none;
}

.actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  background: #fbfbfe;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 950;
  border: 1px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
}

.btn.primary {
  background: var(--primary);
  border-color: rgba(3, 123, 144, 0.5);
  color: white;
}

.btn.ghost {
  background: #fff;
}

.btn.small {
  padding: 8px 12px;
  font-size: 0.85rem;
}

.right-actions {
  display: flex;
  gap: 10px;
}

.kicker {
  color: #94a3b8;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.72rem;
  margin: 0 0 10px;
}

.auth-shell {
  max-width: 780px;
  margin: 24px auto;
  padding: 0 18px;
}

.auth-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}

.auth-title {
  text-align: center;
  font-weight: 950;
  font-size: 1.3rem;
}

.auth-sub {
  text-align: center;
  color: #64748b;
  font-weight: 800;
  margin-top: 6px;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.full {
  grid-column: 1 / -1;
}

.notice {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 800;
  line-height: 1.45;
  margin-top: 10px;
}

@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .side {
    display: none;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .auth-grid {
    grid-template-columns: 1fr;
  }
}

/* Table Styles */
table.data {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 20px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

table.data thead {
  background: #f8fafc;
}

table.data th {
  text-align: left;
  padding: 14px 16px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}

table.data td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
  color: #334155;
  font-weight: 500;
}

table.data tr:last-child td {
  border-bottom: none;
}

table.data tr:hover td {
  background-color: #f8fafc;
}

table.data td i.fa-trash {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

table.data td i.fa-trash:hover {
  background: #ef4444;
  color: white;
}

table.data td i.fa-pen {
  background: rgba(3, 123, 144, 0.1);
  color: var(--primary);
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
}

table.data td i.fa-pen:hover {
  background: var(--primary);
  color: white;
}

/* Skill Chips & Search */
.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: span 2;
  margin-bottom: 5px;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.skill-chip i.fa-times {
  cursor: pointer;
  color: #94a3b8;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.skill-chip i.fa-times:hover {
  color: #ef4444;
}

.suggestions-box {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  max-height: 200px;
  overflow-y: auto;
  z-index: 50;
  margin-top: 4px;
  display: none;
}

.suggestions-box.active {
  display: block;
}

.suggestion-item {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #334155;
  border-bottom: 1px solid #f8fafc;
}

.suggestion-item:hover {
  background: #f1f5f9;
  color: var(--primary);
}