/* ==========================================================================
   Photobooth Frame Generator Studio Styles
   Modern, Sleek, Glassmorphic UI with High Polish
   ========================================================================== */

:root {
  --primary: #ec4899;
  --primary-hover: #db2777;
  --primary-light: #fdf2f8;
  --accent: #8b5cf6;
  --bg-dark: #0f172a;
  --bg-card-dark: #1e293b;
  --border-dark: #334155;
  --text-dark: #f8fafc;
  --text-muted: #94a3b8;
  --sidebar-w: 420px;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.7);
}

/* Checkered Transparency Background for Canvas Workspace */
.checker-bg {
  background-color: #ffffff;
  background-image: linear-gradient(45deg, #f1f5f9 25%, transparent 25%),
                    linear-gradient(-45deg, #f1f5f9 25%, transparent 25%),
                    linear-gradient(45deg, transparent 75%, #f1f5f9 75%),
                    linear-gradient(-45deg, transparent 75%, #f1f5f9 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.checker-bg-dark {
  background-color: #1e293b;
  background-image: linear-gradient(45deg, #0f172a 25%, transparent 25%),
                    linear-gradient(-45deg, #0f172a 25%, transparent 25%),
                    linear-gradient(45deg, transparent 75%, #0f172a 75%),
                    linear-gradient(-45deg, transparent 75%, #0f172a 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.dark .glass-panel {
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Smooth Interactive Cards */
.interactive-card {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.interactive-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}
.interactive-card:active {
  transform: translateY(0);
}

/* Tab navigation animations */
.tab-btn.active {
  color: #ec4899;
  border-color: #ec4899;
  background: rgba(236, 72, 153, 0.08);
}

/* Color swatch ring */
.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.color-swatch:hover {
  transform: scale(1.15);
}
.color-swatch.active {
  outline: 2px solid #ec4899;
  outline-offset: 2px;
}

/* Slot List Item Card */
.slot-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  background: #ffffff;
  transition: all 0.2s ease;
}
.dark .slot-item {
  border-color: #334155;
  background: #1e293b;
}
.slot-item.selected {
  border-color: #ec4899;
  box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.25);
}

/* Shimmer animation for Randomize Button */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.btn-magic-gradient {
  background: linear-gradient(90deg, #ec4899 0%, #8b5cf6 50%, #3b82f6 100%);
  background-size: 200% 100%;
  animation: shimmer 4s infinite linear;
}

.btn-magic-gradient:hover {
  filter: brightness(1.1);
}

/* Canvas Shadow Container */
.canvas-shadow-wrapper {
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 0, 0, 0.05);
}

/* Custom Tooltips */
[data-tooltip] {
  position: relative;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #f8fafc;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}
[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

/* ==========================================================================
   Interactive Button States (High Contrast & Clear Visibility)
   ========================================================================== */

/* Slot Count Buttons (1, 2, 3, 4, 6) */
.btn-slot-count {
  transition: all 0.15s ease;
  color: #0f172a;
  background-color: #ffffff;
  border: 1.5px solid #fbcfe8;
  font-weight: 700;
  cursor: pointer;
}

.dark .btn-slot-count {
  color: #f8fafc;
  background-color: #1e293b;
  border-color: #831843;
}

.btn-slot-count:hover {
  background-color: #fdf2f8;
  border-color: #ec4899;
  color: #db2777;
}

.dark .btn-slot-count:hover {
  background-color: #831843;
  color: #ffffff;
}

/* ACTIVE / SELECTED SLOT COUNT: Bold vibrant pink with crisp white text & shadow */
.btn-slot-count.active,
.btn-slot-count.is-selected {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%) !important;
  color: #ffffff !important;
  border-color: #9d174d !important;
  box-shadow: 0 4px 10px rgba(236, 72, 153, 0.45) !important;
  transform: scale(1.08);
}

/* Layout Style Buttons Active State */
.btn-layout-style.active {
  border-color: #ec4899 !important;
  background-color: #fdf2f8 !important;
  color: #be185d !important;
  box-shadow: 0 0 0 1.5px #ec4899 !important;
}

.dark .btn-layout-style.active {
  background-color: rgba(236, 72, 153, 0.2) !important;
  color: #f472b6 !important;
}

/* Slot Shape Buttons Active State */
.btn-slot-shape.active {
  border-color: #ec4899 !important;
  background-color: #fdf2f8 !important;
  color: #be185d !important;
  box-shadow: 0 0 0 1.5px #ec4899 !important;
}

.dark .btn-slot-shape.active {
  background-color: rgba(236, 72, 153, 0.2) !important;
  color: #f472b6 !important;
}



