/* ── Variáveis ──────────────────────────────────────────────── */
:root {
  --azul:   #01192B;
  --laranja: #EE6D07;
  --laranja-dark: #d4620a;
  --laranja-glow: rgba(238,109,7,0.18);
}

/* ── Auth card ──────────────────────────────────────────────── */
.bk-tab-btn {
  flex: 1;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
  background: transparent;
}
.bk-tab-btn.active {
  background: rgba(238,109,7,0.15);
  color: #EE6D07;
  font-weight: 600;
}

.bk-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.bk-input::placeholder { color: rgba(255,255,255,0.25); }
.bk-input:focus {
  border-color: var(--laranja);
  box-shadow: 0 0 0 3px rgba(238,109,7,0.15);
}

.bk-btn-primary {
  width: 100%;
  background: var(--laranja);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.625rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.bk-btn-primary:hover  { background: var(--laranja-dark); }
.bk-btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }

.bk-alert {
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.bk-alert-danger  { background: rgba(220,38,38,0.12); border: 1px solid rgba(220,38,38,0.25); color: #fca5a5; }
.bk-alert-success { background: rgba(34,197,94,0.1);  border: 1px solid rgba(34,197,94,0.2);  color: #86efac; }

/* ── Tool header ────────────────────────────────────────────── */
.bk-tool-header {
  background: var(--azul);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
}

.bk-logout-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  border-radius: 0.5rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s;
}
.bk-logout-btn:hover { border-color: rgba(255,255,255,0.4); color: #fff; }

/* ── Factor option cards ────────────────────────────────────── */
.factor-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.125rem;
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 0.75rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  background: rgba(255,255,255,0.03);
  transition: border-color 0.12s, background 0.12s;
  color: rgba(255,255,255,0.75);
}
.factor-option:hover {
  border-color: var(--laranja);
  background: rgba(238,109,7,0.07);
  color: #fff;
}
.factor-option.selected {
  border-color: var(--laranja);
  background: rgba(238,109,7,0.12);
  color: #fff;
}

.bk-grade-badge {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: background 0.12s, color 0.12s;
}
.factor-option.selected .bk-grade-badge {
  background: var(--laranja);
  color: #fff;
}

.bk-pts-badge {
  margin-left: auto;
  font-weight: 700;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  flex-shrink: 0;
}
.factor-option.selected .bk-pts-badge {
  color: var(--laranja);
}

/* ── Progress bar ───────────────────────────────────────────── */
.bk-progress-bar {
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.bk-progress-fill {
  height: 100%;
  background: var(--laranja);
  border-radius: 99px;
  transition: width 0.25s ease;
}

/* ── Employee table ─────────────────────────────────────────── */
.bk-table { width: 100%; border-collapse: collapse; }
.bk-table th {
  text-align: left;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.3);
  font-weight: 600;
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  white-space: nowrap;
}
.bk-table td {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
}
.bk-table tr:hover td { background: rgba(255,255,255,0.02); }

.bk-index-badge {
  display: inline-block;
  background: rgba(238,109,7,0.12);
  color: #f28336;
  border: 1px solid rgba(238,109,7,0.25);
  border-radius: 99px;
  padding: 0.2rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
}
.bk-index-badge.out-of-range {
  background: rgba(250,204,21,0.08);
  color: #fbbf24;
  border-color: rgba(250,204,21,0.2);
}

.bk-remove-btn {
  background: transparent;
  border: 1px solid rgba(220,38,38,0.3);
  color: rgba(220,38,38,0.7);
  border-radius: 0.375rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1;
}
.bk-remove-btn:hover { background: rgba(220,38,38,0.1); color: #f87171; }

/* ── Spinner overlay ────────────────────────────────────────── */
.bk-spinner-overlay {
  position: fixed;
  inset: 0;
  background: rgba(1,25,43,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.bk-spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: var(--laranja);
  border-radius: 50%;
  animation: bk-spin 0.7s linear infinite;
}
@keyframes bk-spin { to { transform: rotate(360deg); } }

/* ── Utility ─────────────────────────────────────────────────── */
.hidden { display: none !important; }

/* ── Modals ─────────────────────────────────────────────────── */
.bk-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(1,15,26,0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  padding: 1.5rem;
  backdrop-filter: blur(4px);
}
.bk-modal {
  background: #0d2035;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1rem;
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
}
.bk-modal h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}
.bk-modal p {
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 0.625rem;
}
.bk-modal strong { color: rgba(255,255,255,0.9); }

.bk-modal-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
}
.bk-modal-table th {
  text-align: left;
  color: rgba(255,255,255,0.35);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.bk-modal-table td {
  padding: 0.45rem 0.5rem;
  color: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  vertical-align: top;
}
.bk-modal-table td:first-child {
  color: #f28336;
  font-weight: 600;
  white-space: nowrap;
  padding-right: 0.75rem;
}

.bk-modal-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem 0;
}
.bk-modal-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}
.bk-modal-list li strong {
  display: block;
  color: #f28336;
  font-weight: 600;
  margin-bottom: 0.1rem;
}
.bk-modal-list li:last-child { border-bottom: none; }

.bk-modal-actions {
  display: flex;
  gap: 0.625rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.bk-btn-ghost {
  flex: 1;
  min-width: 90px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  border-radius: 0.5rem;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.bk-btn-ghost:hover { border-color: rgba(255,255,255,0.3); color: #fff; }
.bk-btn-danger {
  flex: 1;
  min-width: 90px;
  background: rgba(220,38,38,0.12);
  border: 1px solid rgba(220,38,38,0.3);
  color: #f87171;
  border-radius: 0.5rem;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.bk-btn-danger:hover { background: rgba(220,38,38,0.22); }
.bk-btn-info {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.5);
  border-radius: 0.5rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.bk-btn-info:hover { border-color: rgba(255,255,255,0.3); color: #fff; }

/* ── Welcome modal — white background, blue text ─────────────── */
.bk-modal-welcome {
  background: #ffffff;
  border-color: rgba(1,25,43,0.12);
}
.bk-modal-welcome h3 { color: #01192B; }
.bk-modal-welcome p  { color: rgba(1,25,43,0.75); }
.bk-modal-welcome strong { color: #01192B; }
