/* CSS Generator Layout & Global Styles */
.css-generator .section-title {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
  color: var(--primary-color);
}

.generator-layout {
  display: flex;
  gap: 20px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.controls-panel {
  flex: 0 0 35%;
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.preview-panel {
  flex: 1;
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.preview-panel h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
  color: #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Mode Switch Buttons */
.mode-switch {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.mode-switch button {
  flex: 1;
  padding: 10px;
  border: 1px solid #0d6efd;
  background-color: transparent;
  color: #0d6efd;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
}

.mode-switch button.active, .mode-switch button:hover {
  background-color: #0d6efd;
  color: #fff;
}

/* Controls Styling */
.control-group label {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
  font-weight: 600;
  color: #444;
}

.control-group input[type="range"] {
  width: 100%;
  margin-top: 5px;
}

.control-group input[type="color"] {
  height: 40px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
}

.control-group select {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-top: 5px;
  background-color: #fff;
}

.control-group input[type="checkbox"] {
  margin-top: 5px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Live Preview Canvas */
.preview-canvas {
  width: 100%;
  height: 350px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-position: center;
  background-size: cover;
  transition: background 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Canvas Background Options */
.bg-glass-1 {
  background: linear-gradient(45deg, #ff007f, #7f00ff, #00d4ff);
}
.bg-glass-2 {
  background: linear-gradient(135deg, #02aab0 0%, #00cdac 100%);
}
.bg-image-1 {
  background: url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?q=80&w=1000&auto=format&fit=crop') center/cover;
}
.bg-dark {
  background: #121212;
}

/* The Object inside the Canvas */
.preview-object {
  width: 250px;
  height: 250px;
  transition: all 0.1s ease, border-radius 0.2s ease;
}

/* Utilities */
.mt-4 {
  margin-top: 1.5rem;
}

.copy-icon {
  color: #6c757d;
  transition: color 0.3s ease;
}

.copy-icon:hover {
  color: #0d6efd;
}

.ace_editor {
  width: 100%;
  border-radius: 5px;
  border: 1px solid #ddd;
}

@media (max-width: 991px) {
  .generator-layout {
    flex-direction: column;
  }
}