/* ATS Resume Checker — floating chat FAB (hub pages) */

.ats-resume-fab {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  max-width: calc(100vw - 2rem);
  font-family: var(--brand-font, 'Hind Siliguri', system-ui, sans-serif);
}

.ats-fab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 7.5rem;
  height: 2.75rem;
  padding: 0 1.15rem;
  box-sizing: border-box;
  border-radius: 999px;
  border: none;
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  background: linear-gradient(135deg, #0f6e56, #0c2340);
  box-shadow: 0 4px 20px rgba(15, 110, 86, 0.38);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ats-fab-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(15, 110, 86, 0.48);
}

.ats-fab-btn[aria-expanded="true"] {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35), 0 6px 24px rgba(15, 110, 86, 0.45);
}

.ats-fab-icon {
  display: inline-flex;
  width: 1.15rem;
  height: 1.15rem;
  color: #5dcaa5;
}

.ats-fab-icon svg {
  width: 100%;
  height: 100%;
}

.ats-resume-panel {
  width: 320px;
  max-width: calc(100vw - 2rem);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(12, 35, 64, 0.12);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(12, 35, 64, 0.16);
  padding: 1rem 1.15rem 1.15rem;
  animation: atsFabPanelIn 0.2s ease;
}

.ats-resume-panel[hidden] {
  display: none;
}

@keyframes atsFabPanelIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

[data-theme="dark"] .ats-resume-panel {
  background: rgba(14, 28, 48, 0.96);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.ats-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
}

.ats-panel-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-navy, #0c2340);
}

[data-theme="dark"] .ats-panel-title {
  color: #e8f0f7;
}

.ats-panel-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--brand-text3, #7a7a74);
  padding: 0 0.25rem;
}

.ats-panel-bubble {
  margin: 0.55rem 0 0;
  padding: 0.75rem 0.85rem;
  border-radius: 12px 12px 12px 4px;
  background: rgba(15, 110, 86, 0.08);
  border: 1px solid rgba(15, 110, 86, 0.14);
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--brand-text2, #444);
}

[data-theme="dark"] .ats-panel-bubble {
  background: rgba(15, 110, 86, 0.18);
  border-color: rgba(93, 202, 165, 0.25);
  color: #c8d6e4;
}

.ats-panel-privacy {
  margin: 0.65rem 0 0.85rem;
  font-size: 0.78rem;
  color: var(--brand-text3, #7a7a74);
  line-height: 1.45;
}

.ats-panel-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.6rem;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  color: #fff;
  background: var(--brand-teal, #0f6e56);
  transition: background 0.2s ease, transform 0.15s ease;
}

.ats-panel-open:hover {
  background: #0c5a47;
  transform: translateY(-1px);
}
