/* Optional fonts (fallbacks included if WP blocks @import) */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Cinzel:wght@600;700&family=Playfair+Display:wght@700;800&family=Montserrat:wght@700;800&family=Abril+Fatface&display=swap');

#crazy_coder-mono-wrapper {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: #000;
  color: #fff;
  min-height: 100%;
  width: 100%;
  padding: 24px 12px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

#crazy_coder-mono-wrapper .crazy_coder-container {
  background: rgba(20, 20, 20, 0.92);
  border: 1px solid rgba(124, 104, 255, 0.35);
  box-shadow: 0 0 26px rgba(124, 104, 255, 0.35);
  border-radius: 20px;
  padding: 28px 22px;
  width: 100%;
  max-width: 980px;
  box-sizing: border-box;
}

#crazy_coder-mono-wrapper .crazy_coder-title {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 1.9rem;
  text-align: center;
}

#crazy_coder-mono-wrapper .crazy_coder-subtitle {
  margin: 0 0 18px;
  text-align: center;
  color: #bdbdbd;
}

#crazy_coder-mono-wrapper .crazy_coder-inputs { display: grid; gap: 12px; }

#crazy_coder-mono-wrapper .crazy_coder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
}

#crazy_coder-mono-wrapper .crazy_coder-field { display: flex; flex-direction: column; gap: 6px; }
#crazy_coder-mono-wrapper .crazy_coder-row { flex-direction: row; align-items: center; gap: 12px; }

#crazy_coder-mono-wrapper .crazy_coder-label {
  font-size: 0.9rem;
  color: #cfcafc;
}

#crazy_coder-mono-wrapper .crazy_coder-input,
#crazy_coder-mono-wrapper .crazy_coder-select {
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid rgba(124, 104, 255, 0.45);
  background: #0f0f10;
  color: #fff;
  padding: 10px 12px;
  font-size: 0.98rem;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

#crazy_coder-mono-wrapper .crazy_coder-input::placeholder { color: #9a9a9a; text-transform: none; letter-spacing: normal; }
#crazy_coder-mono-wrapper .crazy_coder-select { background: #fff; color: #4A3AFD; font-weight: 600; cursor: pointer; }

#crazy_coder-mono-wrapper .crazy_coder-input:focus,
#crazy_coder-mono-wrapper .crazy_coder-select:focus {
  outline: none;
  border-color: #7C68FF;
  box-shadow: 0 0 10px rgba(124, 104, 255, 0.7);
}

#crazy_coder-mono-wrapper .crazy_coder-color {
  cursor: pointer; height: 44px; width: 54px; padding: 0;
  border-radius: 8px; border: 2px solid #4A3AFD; background: none;
}

#crazy_coder-mono-wrapper .crazy_coder-range { width: 100%; }

#crazy_coder-mono-wrapper .crazy_coder-switch { position: relative; display: inline-block; width: 48px; height: 26px; }
#crazy_coder-mono-wrapper .crazy_coder-switch input { display: none; }
#crazy_coder-mono-wrapper .crazy_coder-switch span {
  position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background: #444; transition: 0.2s; border-radius: 20px;
}
#crazy_coder-mono-wrapper .crazy_coder-switch span:before {
  position: absolute; content: ""; height: 20px; width: 20px; left: 3px; top: 3px;
  background: #fff; transition: 0.2s; border-radius: 50%;
}
#crazy_coder-mono-wrapper .crazy_coder-switch input:checked + span {
  background: linear-gradient(90deg, #4A3AFD, #7C68FF);
}
#crazy_coder-mono-wrapper .crazy_coder-switch input:checked + span:before { transform: translateX(22px); }

#crazy_coder-mono-wrapper .crazy_coder-actions-top { display: flex; gap: 10px; flex-wrap: wrap; }

#crazy_coder-mono-wrapper .crazy_coder-btn {
  padding: 12px 22px; border-radius: 12px; border: none;
  background: linear-gradient(90deg, #4A3AFD, #7C68FF); color: #fff; font-weight: 700; cursor: pointer;
  box-shadow: 0 0 18px rgba(124, 104, 255, 0.6); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#crazy_coder-mono-wrapper .crazy_coder-btn:hover { transform: translateY(-1px) scale(1.02); box-shadow: 0 0 24px rgba(124, 104, 255, 0.9); }

#crazy_coder-mono-wrapper .crazy_coder-btn-outline {
  padding: 10px 16px; border-radius: 10px; background: transparent;
  border: 1px solid rgba(124, 104, 255, 0.6); color: #e9e6ff; cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
#crazy_coder-mono-wrapper .crazy_coder-btn-outline:hover { background: rgba(124, 104, 255, 0.12); transform: translateY(-1px); }

#crazy_coder-mono-wrapper .crazy_coder-output { margin-top: 16px; }
#crazy_coder-mono-wrapper .crazy_coder-canvaswrap {
  background: #0a0a0a; border: 1px dashed rgba(124,104,255,0.35);
  border-radius: 16px; padding: 16px; display: flex; justify-content: center; align-items: center;
}
#crazy_coder-mono-wrapper svg {
  width: 100%; height: auto; max-width: 680px; display: block; background: #0a0a0a; border-radius: 12px;
}

/* Responsive */
@media (max-width: 820px) {
  #crazy_coder-mono-wrapper .crazy_coder-grid { grid-template-columns: 1fr; }
}
