/* =========================
   ATLAS TOOLKIT CORE
========================= */

.atlas-workspace-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  border: 1px solid rgba(39, 212, 255, .45);
  background: linear-gradient(135deg, rgba(39, 212, 255, .95), rgba(59, 130, 246, .95));
  color: #03111f;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  transition: .15s;
}

.atlas-workspace-btn:hover {
  transform: translateY(-1px);
}

/* =========================
   WORKSPACE PANEL
========================= */

.atlas-workspace {
  position: fixed;
  right: 22px;
  bottom: 82px;
  width: 390px;
  max-width: calc(100vw - 32px);
  max-height: 75vh;
  overflow: auto;
  z-index: 9998;
  display: none;
  background: rgba(15, 23, 42, .96);
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 22px;
  padding: 16px;
  color: #f8fafc;
  box-shadow: 0 26px 80px rgba(0,0,0,.5);
}

.atlas-workspace.open {
  display: block;
}

.atlas-workspace h3 {
  margin: 0 0 6px;
}

.atlas-workspace p {
  margin: 0 0 12px;
  color: #94a3b8;
  font-size: 13px;
}

/* =========================
   INPUTS
========================= */

.atlas-workspace input {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 8px;
  border: 1px solid rgba(148, 163, 184, .24);
  background: rgba(2, 6, 23, .8);
  color: #f8fafc;
  border-radius: 12px;
  padding: 10px 11px;
  outline: none;
}

.atlas-workspace input:focus {
  border-color: rgba(39, 212, 255, .6);
}

/* =========================
   BUTTONS
========================= */

.atlas-workspace .row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.atlas-workspace button,
.atlas-workspace label {
  border: 1px solid rgba(148, 163, 184, .28);
  background: rgba(255,255,255,.06);
  color: #dbeafe;
  border-radius: 11px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.atlas-workspace button.primary {
  background: rgba(39, 212, 255, .16);
  border-color: rgba(39, 212, 255, .4);
}

.atlas-workspace button:hover {
  filter: brightness(1.1);
}

/* =========================
   ACTIVE PROJECT
========================= */

.atlas-active-project {
  border: 1px solid rgba(39, 212, 255, .22);
  background: rgba(39, 212, 255, .07);
  color: #dbeafe;
  border-radius: 14px;
  padding: 10px 12px;
  margin: 10px 0 12px;
  font-size: 13px;
}

/* =========================
   PROJECT LIST
========================= */

.atlas-project-section {
  margin-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, .18);
  padding-top: 12px;
}

.atlas-project-section h4 {
  margin: 0 0 10px;
  font-size: 13px;
  color: #e0f2fe;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.atlas-project-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.atlas-project-card {
  border: 1px solid rgba(148, 163, 184, .2);
  background: rgba(255, 255, 255, .045);
  border-radius: 14px;
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.atlas-project-card strong {
  display: block;
  color: #fff;
  font-size: 13px;
}

.atlas-project-card span {
  display: block;
  color: #94a3b8;
  font-size: 11px;
  margin-top: 2px;
}

.atlas-project-card em {
  display: block;
  color: #67e8f9;
  font-style: normal;
  font-size: 11px;
  margin-top: 4px;
}

/* =========================
   PROJECT ACTIONS
========================= */

.atlas-project-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.atlas-project-actions button {
  padding: 6px 8px;
  border-radius: 9px;
  font-size: 11px;
}

/* =========================
   EMPTY STATE
========================= */

.atlas-empty {
  color: #94a3b8;
  font-size: 12px;
  border: 1px dashed rgba(148, 163, 184, .24);
  border-radius: 12px;
  padding: 10px;
}

/* =========================
   HEALTH PANEL
========================= */

.atlas-health {
  margin-top: 12px;
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: #bbf7d0;
}

.atlas-health .warn {
  color: #fde68a;
}

/* =========================
   TOAST
========================= */

.atlas-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  z-index: 10000;
  background: rgba(2, 6, 23, .96);
  border: 1px solid rgba(39, 212, 255, .35);
  color: #f8fafc;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  pointer-events: none;
  transition: .18s ease;
}

.atlas-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.tool-hint {
  margin-top: 14px;
  display: inline-block;
  border: 1px solid rgba(39, 212, 255, .35);
  background: linear-gradient(135deg, rgba(39, 212, 255, .1), rgba(168, 85, 247, .08));
  color: #dbeafe;
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 750;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.04) inset,
    0 0 28px rgba(39, 212, 255, .14);
}

.tool-hint strong {
  color: #ffffff;
}
/* =========================
   TOOL HINT / GLOW RESTORE
========================= */
.tool-hint {
  margin-top: 14px;
  display: inline-block;
  border: 1px solid rgba(39, 212, 255, .35);
  background: linear-gradient(135deg, rgba(39, 212, 255, .1), rgba(168, 85, 247, .08));
  color: #dbeafe;
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 750;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.04) inset,
    0 0 28px rgba(39, 212, 255, .14);
}

.tool-hint strong {
  color: #ffffff;
}

.atlas-mini-link {
  border: 1px solid rgba(39, 212, 255, .3);
  background: rgba(39, 212, 255, .08);
  color: #dbeafe;
  border-radius: 11px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.atlas-mini-link:hover {
  filter: brightness(1.12);
}
