/* ═══════════════════════════════════════════
   DATATALENT — Design System
   Tema: Clean & Corporativo | Light Mode
   Fontes: Plus Jakarta Sans + JetBrains Mono
═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Cores Base */
  --white:       #ffffff;
  --gray-50:     #f8f9fb;
  --gray-100:    #f0f2f5;
  --gray-200:    #e2e6ec;
  --gray-300:    #c9d0db;
  --gray-400:    #9aa3b0;
  --gray-500:    #6b7585;
  --gray-700:    #374151;
  --gray-900:    #111827;

  /* Azul principal */
  --blue-50:     #eff6ff;
  --blue-100:    #dbeafe;
  --blue-500:    #3b82f6;
  --blue-600:    #2563eb;
  --blue-700:    #1d4ed8;

  /* Status */
  --green-50:    #f0fdf4;
  --green-500:   #22c55e;
  --green-600:   #16a34a;
  --amber-50:    #fffbeb;
  --amber-500:   #f59e0b;
  --red-500:     #ef4444;

  /* Semânticos */
  --bg:          var(--gray-50);
  --surface:     var(--white);
  --border:      var(--gray-200);
  --border-md:   var(--gray-300);
  --text:        var(--gray-900);
  --text-md:     var(--gray-700);
  --text-sm:     var(--gray-500);
  --text-xs:     var(--gray-400);
  --accent:      var(--blue-600);
  --accent-light:var(--blue-50);

  /* Sombras */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:   0 12px 32px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.04);
  --shadow-blue: 0 4px 16px rgba(37,99,235,0.20);

  /* Tipografia */
  --font-sans:   'Plus Jakarta Sans', sans-serif;
  --font-mono:   'JetBrains Mono', monospace;

  /* Misc */
  --radius:      8px;
  --radius-lg:   12px;
  --transition:  all 0.18s ease;
}

/* ── RESET & BASE ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: var(--font-sans); cursor: pointer; }
input, select, textarea { font-family: var(--font-sans); }
img { display: block; max-width: 100%; }

/* ── SCROLLBAR ── */
* { scrollbar-width: thin; scrollbar-color: var(--gray-300) transparent; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 99px; }

/* ── UTILITIES ── */
.hidden { display: none !important; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.w-full { width: 100%; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.mono { font-family: var(--font-mono); }

/* ════════════════════════════════
   COMPONENTES GLOBAIS
════════════════════════════════ */

/* LOGO */
.logo {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--gray-900);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--blue-600);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  font-weight: 900;
}
.logo span { color: var(--blue-600); }

/* BOTÕES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue-600);
  color: white;
}
.btn-primary:hover {
  background: var(--blue-700);
  box-shadow: var(--shadow-blue);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--white);
  color: var(--text);
  border: 1.5px solid var(--border-md);
}
.btn-secondary:hover {
  border-color: var(--blue-500);
  color: var(--blue-600);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-sm);
  padding: 8px 14px;
}
.btn-ghost:hover { background: var(--gray-100); color: var(--text); }

.btn-danger {
  background: #fef2f2;
  color: var(--red-500);
  border: 1px solid #fecaca;
}
.btn-danger:hover { background: #fee2e2; }

.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 13px 28px; font-size: 15px; }
.btn-full { width: 100%; }

/* INPUTS */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-md);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  transition: var(--transition);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

.form-input::placeholder { color: var(--gray-400); }
.form-textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M1 4l5 5 5-5' stroke='%236b7585' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

.form-hint { font-size: 12px; color: var(--text-xs); }
.form-error { font-size: 12px; color: var(--red-500); }

/* TAGS INPUT */
.tags-wrap {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 46px;
  cursor: text;
  transition: var(--transition);
}
.tags-wrap:focus-within {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
.tags-wrap input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--text);
  min-width: 140px;
  flex: 1;
  padding: 2px 4px;
}
.tags-wrap input::placeholder { color: var(--gray-400); }

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 99px;
}
.tag-chip-rm {
  cursor: pointer;
  opacity: 0.5;
  font-size: 15px;
  line-height: 1;
  color: var(--blue-600);
}
.tag-chip-rm:hover { opacity: 1; }

/* CARDS */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* BADGES */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
}
.badge-available  { background: var(--green-50); color: var(--green-600); }
.badge-open       { background: var(--amber-50); color: #d97706; }
.badge-closed     { background: var(--gray-100); color: var(--gray-500); }
.badge-blue       { background: var(--blue-50); color: var(--blue-700); }

.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* DIVIDER */
.divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

/* PILL TAG (skill) */
.pill {
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}
.pill-blue {
  background: var(--blue-50);
  color: var(--blue-700);
  border-color: var(--blue-100);
}
.pill-highlight {
  background: #eff6ff;
  color: var(--blue-700);
  border-color: var(--blue-500);
  font-weight: 500;
}

/* UPLOAD AREA */
.upload-zone {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-sm);
}
.upload-zone:hover {
  border-color: var(--blue-500);
  background: var(--blue-50);
  color: var(--blue-600);
}
.upload-icon { font-size: 32px; margin-bottom: 8px; }

/* TOAST */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gray-900);
  color: white;
  font-size: 13px;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transition: opacity 0.3s;
  pointer-events: none;
}

/* SECTION HEADING */
.section-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-xs);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

/* NAV SHARED */
.topnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  height: 64px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-tabs {
  display: flex;
  gap: 2px;
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 3px;
}
.nav-tab {
  font-size: 13px;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--text-sm);
  transition: var(--transition);
}
.nav-tab.active {
  background: var(--white);
  color: var(--blue-600);
  box-shadow: var(--shadow-sm);
}

/* AVATAR */
.avatar {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.avatar-lg { width: 64px; height: 64px; font-size: 24px; border-radius: 16px; }
.avatar-xl { width: 80px; height: 80px; font-size: 30px; border-radius: 20px; }

/* PROFILE TABS */
.profile-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.ptab {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sm);
  padding: 14px 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: var(--transition);
}
.ptab:hover { color: var(--text); }
.ptab.active {
  color: var(--blue-600);
  border-bottom-color: var(--blue-600);
  font-weight: 600;
}

/* STAT BOX */
.stat-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -1px;
}
.stat-label {
  font-size: 12px;
  color: var(--text-sm);
  margin-top: 2px;
}

/* EMPTY STATE */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--text-xs);
  text-align: center;
  gap: 10px;
}
.empty-icon { font-size: 40px; opacity: 0.5; }
.empty-text { font-size: 14px; color: var(--text-sm); }

/* SPINNER */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--blue-600);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ANIMATIONS */
@keyframes fadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
.animate-in { animation: fadeIn 0.25s ease forwards; }

/* GRID HELPERS */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.col-span-2 { grid-column: span 2; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .topnav { padding: 0 20px; }
}
