body {
  margin: 0;
  font-family: 'SF Pro Display', sans-serif;
  background: #121212;
  color: #FFFFFF;
  overflow-x: hidden;
}

#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.container {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  padding: 30px 20px;
}

header {
  text-align: center;
  margin-bottom: 30px;
}

h1 {
  font-size: 2rem;
  font-weight: 600;
  color: #FFFFFF;
  animation: fadeIn 1s ease-out;
}

.card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(4px);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

label {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  color: #E0E0E0;
  margin-bottom: 8px;
}

input, select {
  background: #1A1A1A;
  border: 1px solid #2A2A2A;
  border-radius: 6px;
  padding: 8px;
  color: #FFFFFF;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
}

input:focus, select:focus {
  outline: none;
  border-color: #00A3FF;
}

.file-upload {
  position: relative;
  margin-bottom: 15px;
}

.file-label {
  display: inline-block;
  background: #1A1A1A;
  border: 1px solid #2A2A2A;
  border-radius: 6px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.3s ease;

}

.file-label:hover {
  background: #00A3FF;
  border-color: #00A3FF;
}

.file-label span {
  font-size: 0.9rem;
  color: #FFFFFF;
}

input[type="file"] {
  display: none;
}

.handler-command {
  width: 100%;
  max-width: 400px;
}

.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.trigger {
  position: relative;
  padding: 12px;
}

.handler {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px;
  margin: 4px 0;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
}

.handlers {
  margin-bottom: 8px;
}

.btn {
  background: #1A1A1A;
  border: 1px solid #2A2A2A;
  border-radius: 6px;
  padding: 10px 20px;
  color: #FFFFFF;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #00A3FF;
  transform: scale(1.02);
}

.btn.primary {
  background: #00A3FF;
}

.btn.primary:hover {
  box-shadow: 0 0 10px rgba(0, 163, 255, 0.4);
}

.add-handler, .remove-handler, .remove-trigger {
  background: none;
  border: none;
  color: #FF4D4D;
  font-size: 1rem;
  cursor: pointer;
    padding-left: 20px;
}

.preview {
  margin-top: 30px;
}

pre {
  background: #1A1A1A;
  padding: 15px;
  border-radius: 6px;
  font-family: 'SF Mono', monospace;
  font-size: 0.85rem;
  max-height: 350px;
  overflow-y: auto;
  white-space: pre-wrap;
  color: #E0E0E0;
  border: 1px solid #2A2A2A;
}

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

.card, .btn, input, select {
  animation: fadeIn 0.5s ease-out;
}

.sortable .trigger, .sortable .handler {
  cursor: grab;
}

.sortable .trigger.dragging, .sortable .handler.dragging {
  opacity: 0.7;
  transform: scale(0.98);
}