@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&display=swap');

#crazy_coder-wordcloud-wrapper {
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(circle, #6F79FF 0%, #ffffff 85%);
  padding: 50px 16px;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  box-sizing: border-box;
}

.crazy_coder-container {
  background: rgba(255,255,255,0.3);
  border: 1.5px solid rgba(111,121,255,0.35);
  border-radius: 28px;
  box-shadow: 0 0 40px rgba(111,121,255,0.35);
  padding: 40px 30px;
  width: 100%;
  max-width: 980px;
  text-align: center;
  backdrop-filter: blur(6px);
  animation: cc_fadein 0.6s ease;
}

@keyframes cc_fadein {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.crazy_coder-title {
  font-size: 2.3rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 6px;
}

.crazy_coder-subtitle {
  color: #4a4a4a;
  margin-bottom: 26px;
}

.crazy_coder-section-title {
  text-align: left;
  font-size: 1.12rem;
  font-weight: 600;
  color: #222;
  margin: 16px 0 10px;
  border-left: 4px solid #6F79FF;
  padding-left: 8px;
}

.crazy_coder-input,
.crazy_coder-select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(111,121,255,0.4);
  background: rgba(255,255,255,0.95);
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.crazy_coder-input:focus,
.crazy_coder-select:focus {
  outline: none;
  box-shadow: 0 0 10px rgba(111,121,255,0.55);
  transform: scale(1.01);
}

.crazy_coder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.crazy_coder-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px dashed rgba(111,121,255,0.35);
  background: rgba(255,255,255,0.7);
  text-align: left;
  user-select: none;
}

.crazy_coder-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.crazy_coder-btn,
.crazy_coder-btn-outline {
  position: relative;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 160px;
}

.crazy_coder-btn {
  background: linear-gradient(135deg, #6F79FF, #B4B8FF);
  color: #fff;
  border: none;
  box-shadow: 0 0 18px rgba(111,121,255,0.4);
}
.crazy_coder-btn:hover { transform: translateY(-1px) scale(1.03); }

.crazy_coder-btn-outline {
  background: transparent;
  border: 2px solid #6F79FF;
  color: #6F79FF;
}
.crazy_coder-btn-outline:hover { background: #6F79FF; color: #fff; }

.crazy_coder-loader {
  display: none;
  border: 2px solid rgba(255,255,255,0.35);
  border-top: 2px solid #fff;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  animation: cc_spin 0.7s linear infinite;
  margin-left: 8px;
}
@keyframes cc_spin { to { transform: rotate(360deg); } }

.crazy_coder-preview {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  width: 100%;
}

#crazy_coder-wordcloud-canvas {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 0 20px rgba(111,121,255,0.25);
  width: 100%;
  max-width: 700px;
  height: auto;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
#crazy_coder-wordcloud-canvas:hover {
  transform: scale(1.005);
  box-shadow: 0 0 28px rgba(111,121,255,0.35);
}
