.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #282828;
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #4a4a4a;
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Glow layer (dibikin via JS) */
.output-glow-layer {
  filter: blur(18px);
  transform: scale(1.08);
}

/* tombolnya harus relative biar pseudo-element nempel */
.btn-cancel-ring {
  position: relative;
  isolation: isolate;
}

/* ring hijau muter */
.btn-cancel-ring::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 9999px;
  padding: 3px;
  background: conic-gradient(from 0deg,
      transparent 0 65%,
      #1DB954 75%,
      transparent 100%);
  animation: spin 1.1s linear infinite;
  z-index: -1;

  /* WebKit */
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;

  /* Standard */
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* biar animasi angle halus */
@property --a {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.btn-cancel-snake {
  border: 3px solid transparent;
  border-radius: 9999px;

  /* layer 1 = isi tombol (merah) | layer 2 = ring conic (hijau segment) */
  background:
    linear-gradient(#ef4444 0 0) padding-box,
    conic-gradient(from var(--a),
      transparent 0 60%,
      #1DB954 65%,
      #1DB954 95%,
      transparent 100%) border-box;

  animation: snakeSpin 1.0s linear infinite;
}

.btn-cancel-snake:hover {
  background:
    linear-gradient(#dc2626 0 0) padding-box,
    conic-gradient(from var(--a),
      transparent 0 60%,
      #1DB954 65%,
      #1DB954 95%,
      transparent 100%) border-box;
}

@keyframes snakeSpin {
  to {
    --a: 360deg;
  }
}

/* CSS Overrides for Dashboard (Tailwind Missing Classes Fix) */
.rounded-3xl {
  border-radius: 1.5rem !important;
  /* 24px */
}

.rounded-2xl {
  border-radius: 1rem !important;
  /* 16px */
}

.mb-10 {
  margin-bottom: 2.5rem !important;
  /* 40px */
}

.mb-8 {
  margin-bottom: 2rem !important;
  /* 32px */
}




.pl-8 {
  padding-left: 2rem !important;
  /* 32px to clear rounded-3xl */
}

.h-30 {
  height: 7.5rem !important;
  /* 120px - User requested h-30 */
}

.h-15 {
  height: 5.3rem !important;
  /* ~85px - Slightly smaller as requested */
}

@media (max-height: 800px) {
  .h-30 {
    height: auto !important;
    min-height: 6rem;
  }

  .h-15 {
    height: auto !important;
    min-height: 4.5rem;
  }
}

.self-start {
  align-self: flex-start !important;
}

.self-end {
  align-self: flex-end !important;
}

/* Holographic Dashboard Buttons */
.holographic-btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform: scale(1);
  isolation: isolate;
  border-width: 1px !important;
  border-color: #22c55e !important;
  /* green-500 */
  color: #ffffff !important;
  box-shadow: var(--shadow-1);
}

/* Make only Generate buttons text dark */
#btn-generate,
#btn-flux-generate,
#btn-qwen-generate {
  color: #1a1a1a !important;
}

.holographic-btn::before {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(34, 197, 94, 0.4) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
  pointer-events: none;
}

.holographic-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.5), var(--shadow-1-hover);
}

.holographic-btn:hover::before {
  opacity: 1;
  animation: holoScan 1.5s linear infinite;
}

@keyframes holoScan {
  0% {
    top: -100%;
  }

  100% {
    top: 100%;
  }
}

/* Utility to hide scrollbar but keep functionality */
.no-scrollbar {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* 3D Card Effect - Reduced to flat solid as requested */
.card-3d {
  background: #282828;
  /* Solid dark color */
  border: none;
  transition: all 0.3s ease;
  color: #ececec;
  box-shadow: none;
}

.dark .card-3d {
  background: #282828;
  border: none;
}

.card-3d:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
}

:root {
  --shadow-1:
    inset 0 1px 2px #ffffff20,
    0 1px 2px #00000030,
    0 2px 4px #00000015;
  --shadow-1-hover:
    inset 0 1px 2px #ffffff2a,
    0 6px 12px #00000035,
    0 10px 24px #00000020;
}

.shadow-custom {
  box-shadow: var(--shadow-1) !important;
  transition: box-shadow 0.3s ease, transform 0.3s ease !important;
}

.shadow-custom:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-1-hover) !important;
}

/* Creative Production Studio Specific styles */
.studio-canvas-bg {
  background-color: #080a0c !important;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px) !important;
  background-size: 14px 14px !important;
}

.preview-frame-active {
  box-shadow: 
    0 0 0 1px rgba(36, 230, 168, 0.15),
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(36, 230, 168, 0.08) !important;
}

.processing-overlay {
  background: 
    radial-gradient(circle at center, rgba(36, 230, 168, 0.15), transparent 60%),
    rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: blur(1px);
}