/* ============================================================
   DENSITY OS - Design System
   Baseado no NTT DATA 2025 Brand Guidelines v5.2.2
   Cores oficiais: Future Blue #0072BC, Smart Navy #070F26
   Tipografia: Noto Sans (corpo), Noto Serif (titulos, uso limitado)
   ============================================================ */

:root {
  --future-blue: #0072BC;
  --future-blue-150: #005B96;
  --future-blue-50: #19A3FC;
  --smart-navy: #070F26;
  --turquoise: #00DFED;
  --green-a: #00CB5D;
  --yellow-a: #FFC400;
  --orange-a: #FF7A00;
  --text-gray: #2E404D;
  --gray-50: #E8E8E8;
  --gray-100: #949494;
}

body { font-family: 'Noto Sans', Arial, sans-serif; color: var(--text-gray); }
h1, h2, .font-serif-heading { font-family: 'Noto Serif', Georgia, serif; }

/* ---------- Header / App shell ---------- */
.app-header {
  background: #ffffff;
  border-bottom: 1px solid var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 40;
}
.app-header .logo-ntt { height: 28px; }
.app-header .logo-icb { height: 22px; }

.app-sidebar {
  background: var(--smart-navy);
  color: #ffffff;
  width: 15rem;
  min-height: calc(100vh - 57px);
}
.app-sidebar a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1rem;
  color: #cbd5e1;
  border-radius: 0.375rem;
  font-size: 0.85rem;
  transition: background .15s, color .15s;
}
.app-sidebar a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.app-sidebar a.active { background: var(--future-blue); color: #fff; }
.app-sidebar .sidebar-section { font-size: 0.68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-100); padding: 0.75rem 1rem 0.25rem; }

/* ---------- Buttons ---------- */
.btn-primary {
  background: var(--future-blue);
  color: #fff;
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background .15s;
}
.btn-primary:hover { background: var(--future-blue-150); }
.btn-primary:disabled { background: var(--gray-100); cursor: not-allowed; }

.btn-secondary {
  background: #fff;
  color: var(--future-blue);
  border: 1px solid var(--future-blue);
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
}
.btn-secondary:hover { background: #EFF7FC; }

.btn-danger {
  background: #fff;
  color: #B22000;
  border: 1px solid #E42600;
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.85rem;
}
.btn-danger:hover { background: #FEEDEA; }

/* ---------- Cards / badges ---------- */
.card { background: #fff; border: 1px solid var(--gray-50); border-radius: 0.5rem; padding: 1.25rem; }
.kpi-card { background: #fff; border: 1px solid var(--gray-50); border-radius: 0.5rem; padding: 1rem; }
.kpi-value { font-size: 1.75rem; font-weight: 700; color: var(--smart-navy); }
.kpi-label { font-size: 0.75rem; color: var(--gray-100); text-transform: uppercase; letter-spacing: .04em; }

.badge { display: inline-flex; align-items: center; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.72rem; font-weight: 600; }
.badge-blue { background: #E5F1FA; color: var(--future-blue-150); }
.badge-navy { background: #E4E7EE; color: var(--smart-navy); }
.badge-green { background: #E3FBEE; color: #068941; }
.badge-yellow { background: #FFF6DB; color: #8a6400; }
.badge-orange { background: #FFEEE0; color: #B22000; }
.badge-gray { background: var(--gray-50); color: var(--gray-100); }

/* ---------- Forms ---------- */
.form-label { font-size: 0.8rem; font-weight: 600; color: var(--text-gray); margin-bottom: 0.25rem; display: block; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  border: 1px solid var(--gray-50);
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text-gray);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: 2px solid var(--future-blue-50);
  outline-offset: 1px;
  border-color: var(--future-blue);
}

/* ---------- Table ---------- */
.data-table { width: 100%; font-size: 0.85rem; border-collapse: collapse; }
.data-table th { text-align: left; padding: 0.6rem 0.75rem; background: #F7F9FA; color: var(--gray-100); font-size: 0.72rem; text-transform: uppercase; letter-spacing: .03em; border-bottom: 1px solid var(--gray-50); }
.data-table td { padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--gray-50); }
.data-table tr:hover td { background: #FAFCFD; }

/* ---------- Gantt ---------- */
.gantt-row { display: grid; grid-template-columns: 200px 1fr; align-items: center; gap: 0.5rem; }
.gantt-track { position: relative; height: 28px; background: var(--gray-50); border-radius: 4px; }
.gantt-bar { position: absolute; top: 3px; bottom: 3px; background: var(--future-blue); border-radius: 3px; }
.gantt-bar.milestone { background: var(--orange-a); width: 6px !important; }
.gantt-bar.delayed { background: #E42600; }

/* ---------- Progress bar ---------- */
.progress-track { background: var(--gray-50); border-radius: 999px; height: 8px; overflow: hidden; }
.progress-fill { background: var(--future-blue); height: 100%; border-radius: 999px; transition: width .3s; }

/* ---------- Video pill for masterclass ---------- */
.video-item { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; border: 1px solid var(--gray-50); border-radius: 0.5rem; margin-bottom: 0.5rem; }
.video-item.completed { border-color: var(--green-a); background: #F5FDF8; }

/* ---------- Confidentiality tags ---------- */
.confidentiality-tag { font-size: 0.68rem; padding: 0.1rem 0.45rem; border-radius: 3px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--gray-50); border-radius: 4px; }

/* ---------- Utilities ---------- */
.pipe-divider { border-left: 1px solid var(--gray-50); height: 24px; margin: 0 0.75rem; }
.text-truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
