/* ─── Floating Toolbar Container ─── */
.ppt-floating-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  box-shadow:
    0 12px 30px var(--editor-shadow),
    0 0 0 1px color-mix(in srgb, var(--border) 70%, transparent);
  user-select: none;
  backdrop-filter: blur(16px);
}

/* ─── History (Undo / Redo) Section ─── */
.ppt-floating-toolbar__history {
  display: flex;
  align-items: center;
  gap: 2px;
}

.ppt-floating-toolbar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all 0.15s ease;
}

.ppt-floating-toolbar__btn:hover:not(:disabled) {
  background: var(--accent);
  color: var(--foreground);
}

.ppt-floating-toolbar__btn:active:not(:disabled) {
  background: color-mix(in srgb, var(--accent) 86%, transparent);
}

.ppt-floating-toolbar__btn:disabled {
  color: color-mix(in srgb, var(--muted-foreground) 70%, transparent);
  cursor: not-allowed;
}

/* ─── Divider ─── */
.ppt-floating-toolbar__divider {
  width: 1px;
  height: 22px;
  background: var(--border);
  margin: 0 4px;
}

/* ─── Auto-saving indicator ─── */
.ppt-floating-toolbar__auto-saving {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  white-space: nowrap;
}

/* ─── Spinner animation ─── */
.ppt-floating-toolbar__spinner {
  animation: ppt-toolbar-spin 1s linear infinite;
}

@keyframes ppt-toolbar-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ─── Save button (idle + saving states) ─── */
.ppt-floating-toolbar__save-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.ppt-floating-toolbar__save-btn:hover:not(:disabled) {
  background: color-mix(in srgb, var(--primary) 88%, transparent);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--primary) 35%, transparent);
}

.ppt-floating-toolbar__save-btn:active:not(:disabled) {
  transform: scale(0.97);
}

/* Manual saving state — slightly transparent + disabled look */
.ppt-floating-toolbar__save-btn--saving {
  background: color-mix(in srgb, var(--primary) 80%, transparent);
  opacity: 0.9;
  cursor: not-allowed;
}
