/* ResinApp - abas superiores de projetos
   Esta camada é apenas visual/navegação: não apaga nem altera dados salvos. */
.rap-project-tabs-shell{
  position:fixed;
  top:58px;
  left:calc(320px + 12px);
  right:calc(320px + 12px);
  min-height:42px;
  z-index:36;
  display:flex;
  align-items:center;
  pointer-events:none;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.rap-project-tabs-inner{
  width:100%;
  max-width:100%;
  display:flex;
  align-items:center;
  gap:8px;
  overflow-x:auto;
  overflow-y:hidden;
  padding:6px 8px;
  border-radius:14px;
  background:rgba(255,255,255,.97);
  border:1px solid rgba(226,232,240,.98);
  box-shadow:0 8px 24px rgba(15,23,42,.08);
  backdrop-filter:blur(14px);
  pointer-events:auto;
  scrollbar-width:thin;
  scroll-behavior:smooth;
}
.rap-project-tabs-inner::-webkit-scrollbar{height:5px}
.rap-project-tabs-inner::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:999px}
.rap-project-tab{
  flex:0 0 auto;
  max-width:190px;
  min-width:96px;
  height:34px;
  border:1px solid #e4e4ef;
  background:#fff;
  color:#334155;
  border-radius:11px;
  padding:0 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  line-height:1;
  font-weight:850;
  cursor:pointer;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  gap:8px;
  transition:.16s ease;
  box-shadow:0 2px 8px rgba(15,23,42,.03);
}
.rap-project-tab:hover{border-color:#a78bfa;color:#5b21b6;background:#faf7ff;transform:translateY(-1px)}
.rap-project-tab.is-active{background:linear-gradient(135deg,#7c3aed,#db2777);border-color:transparent;color:#fff;box-shadow:0 8px 18px rgba(124,58,237,.22)}
.rap-project-tab.is-template{
  order:-10;
  background:linear-gradient(135deg,#fff7ed,#ffedd5);
  border-color:#fb923c;
  color:#9a3412;
  box-shadow:0 6px 16px rgba(249,115,22,.16);
}
.rap-project-tab.is-template:hover{background:linear-gradient(135deg,#ffedd5,#fed7aa);border-color:#f97316;color:#7c2d12}
.rap-project-tab.is-template.is-active{background:linear-gradient(135deg,#f97316,#db2777);border-color:transparent;color:#fff;box-shadow:0 8px 20px rgba(234,88,12,.24)}
.rap-project-tab.is-template-source{border-color:#f59e0b;background:#fffbeb}
.rap-project-tab-badge{
  flex:0 0 auto;
  padding:3px 5px;
  border-radius:999px;
  background:rgba(249,115,22,.14);
  color:inherit;
  font-size:7px;
  font-weight:950;
  letter-spacing:.04em;
}
.rap-project-tab.is-template.is-active .rap-project-tab-badge{background:rgba(255,255,255,.22)}
#proj-name-input.rap-template-name-locked{
  background:#fff7ed!important;
  border-color:#fdba74!important;
  color:#9a3412!important;
  cursor:not-allowed!important;
}
.rap-project-tab.is-loading{opacity:.72;cursor:wait;pointer-events:none}
.rap-project-tab.is-deleting{opacity:.55;cursor:wait;pointer-events:none}
.rap-project-tab-text{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:150px}
.rap-project-tab-remove{
  flex:0 0 auto;
  width:20px;
  height:20px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  background:rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.28);
  font-size:17px;
  line-height:1;
  font-weight:800;
  cursor:pointer;
  transition:.16s ease;
}
.rap-project-tab-remove:hover,
.rap-project-tab-remove:focus-visible{
  background:#fff;
  color:#dc2626;
  border-color:#fff;
  outline:none;
  transform:scale(1.08);
}
.rap-project-tabs-empty{color:#64748b;font-size:12px;font-weight:750;padding:0 10px}
.rap-project-tabs-count{
  flex:0 0 auto;
  min-width:30px;
  height:28px;
  border-radius:999px;
  background:#f1f5f9;
  color:#64748b;
  border:1px solid #e2e8f0;
  font-size:10px;
  font-weight:900;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.rap-tabs-pulse .rap-project-tabs-inner{animation:rapTabsPulse .78s ease}
@keyframes rapTabsPulse{
  0%{box-shadow:0 0 0 0 rgba(124,58,237,.0)}
  35%{box-shadow:0 0 0 5px rgba(124,58,237,.18),0 8px 24px rgba(15,23,42,.08)}
  100%{box-shadow:0 8px 24px rgba(15,23,42,.08)}
}
@media(max-width:1280px){
  .rap-project-tabs-shell{left:246px;right:246px;top:58px}
  .rap-project-tab{max-width:160px;min-width:90px;font-size:11px;padding:0 12px}
}
@media(max-width:1020px){
  .rap-project-tabs-shell{left:16px;right:16px;top:58px;z-index:38}
  .rap-project-tabs-inner{gap:7px;padding:6px;border-radius:14px}
  .rap-project-tab{height:32px;max-width:165px;font-size:10.5px;padding:0 11px}
}
@media(max-width:640px){
  .rap-project-tabs-shell{left:8px;right:8px;top:58px;min-height:40px}
  .rap-project-tabs-inner{border-radius:12px;gap:6px;padding:5px}
  .rap-project-tab{height:30px;max-width:138px;min-width:82px;font-size:10px;padding:0 10px;border-radius:10px}
  .rap-project-tab-remove{width:19px;height:19px;font-size:16px}
  .rap-project-tabs-count{height:26px;min-width:28px}
}
@media print{.rap-project-tabs-shell{display:none!important}}
