/* DesignForge AI Studio Styling */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-main: #080B11;
  --bg-surface: #0E131F;
  --bg-card: #141B2D;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(99, 102, 241, 0.4);
  --brand-primary: #6366f1;
  --brand-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-main);
  color: #f1f5f9;
}

code, pre, textarea.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(14, 19, 31, 0.6);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.5);
}

/* Active Mode & Device Buttons */
.mode-btn.active-mode {
  background-color: rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.2);
}

.device-btn.active-device {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.tab-btn.active-tab {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
}

/* Responsive Iframe Transitions */
#iframeWrapper {
  transition: max-width 0.35s cubic-bezier(0.16, 1, 0.3, 1), height 0.35s ease;
}

/* Color Swatches */
.color-swatch {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.color-swatch:hover {
  transform: scale(1.15);
  border-color: #ffffff;
}

/* Gradient Text */
.text-gradient {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Shimmer pulse for generation */
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.animate-shimmer {
  position: relative;
  overflow: hidden;
}
.animate-shimmer::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.8s infinite;
}

/* Inspector Floating Badge */
.inspector-highlight {
  outline: 2px dashed #6366f1 !important;
  outline-offset: 3px !important;
  cursor: pointer !important;
}

.inspector-selected {
  outline: 2px solid #a855f7 !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.4) !important;
}
