.scripts-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.script-move-select {
  padding: 3px 6px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  font-size: 0.68rem;
  cursor: pointer;
  max-width: 110px;
}

.script-move-select:hover {
  border-color: var(--accent);
  color: var(--text);
}

.scripts-send-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.scripts-send-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.scripts-send-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.output-card {
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.output-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.output-title {
  font-size: 0.8rem;
  font-weight: 500;
  color: #fff;
}

.output-body {
  padding: 1rem;
  font-family: monospace;
  font-size: 0.75rem;
  line-height: 1.7;
  min-height: 150px;
  max-height: 400px;
  overflow-y: auto;
  white-space: pre-wrap;
  color: #94a3b8;
}

.output-body.loading {
  color: var(--accent);
}

.output-body.success {
  color: var(--green);
}

.output-body.error {
  color: var(--red);
}

.action-btn {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  color: var(--text);
  width: 100%;
}

.action-btn:hover {
  border-color: var(--accent);
  background: rgba(124, 58, 237, 0.1);
}

.action-btn .icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

.action-btn .label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #fff;
  display: block;
}

.action-btn .desc {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 2px;
  display: block;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn-sm {
  padding: 4px 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.15s;
}

.btn-restart {
  background: rgba(249, 115, 22, 0.15);
  color: var(--orange);
}

.btn-logs {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent2);
}

.btn-start {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
}

.btn-stop {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red);
}

.btn-sm:hover {
  opacity: 0.8;
}

/* Toast notifications */
#toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast-delete {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(220, 38, 38, 0.95));
}

.toast-success {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.95), rgba(22, 163, 74, 0.95));
}

.toast-info {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.95), rgba(99, 102, 241, 0.95));
}

.toast-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.toast-msg {
  flex: 1;
  min-width: 0;
}

.toast-close {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.15s;
  margin-left: 6px;
}

.toast-close:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.08);
}
