@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');@import url('https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,200..1000;1,200..1000&display=swap');@import url('https://fonts.googleapis.com/css2?family=Luckiest+Guy&family=Mulish:ital,wght@0,200..1000;1,200..1000&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Birthstone&family=Corinthia:wght@400;700&family=Imperial+Script&family=Kumar+One+Outline&family=Londrina+Outline&family=Marck+Script&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Pattaya&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');@import url('https://fonts.cdnfonts.com/css/peralta');@import url('https://fonts.cdnfonts.com/css/impact');@import url('https://fonts.cdnfonts.com/css/lumanosimo');@import url('https://fonts.cdnfonts.com/css/kapakana');@import url('https://fonts.cdnfonts.com/css/handyrush');@import url('https://fonts.cdnfonts.com/css/dasher');@import url('https://fonts.cdnfonts.com/css/brittany-signature');












:root {
    /* Colors */
    --color-purple-100: #f3e8ff;
    --color-purple-200: #e9d5ff;
    --color-purple-300: #d8b4fe;
    --color-purple-400: #c084fc;
    --color-purple-500: #a855f7;
    --color-purple-600: #9333ea;
    --color-purple-700: #7e22ce;
    --color-purple-800: #6b21a8;
    --color-purple-900: #581c87;
  
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
  
    --color-neutral-100: #f5f5f5;
    --color-neutral-200: #e5e5e5;
    --color-neutral-300: #d4d4d4;
    --color-neutral-400: #a3a3a3;
    --color-neutral-500: #737373;
    --color-neutral-600: #525252;
    --color-neutral-700: #404040;
    --color-neutral-800: #262626;
    --color-neutral-900: #171717;
  
    --color-red-100: #fee2e2;
    --color-red-200: #fecaca;
    --color-red-300: #fca5a5;
    --color-red-400: #f87171;
    --color-red-500: #ef4444;
    --color-red-600: #dc2626;
    --color-red-700: #b91c1c;
    --color-red-800: #991b1b;
    --color-red-900: #7f1d1d;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition-all: all 0.2s ease;
  }
/* ========================================
   LAYOUT UTILITIES
   ======================================== */
/* Flexbox utilities */
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.flex-row {
  flex-direction: row;
}
.flex-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
/* Gap utilities */
.gap-1 {
  gap: 0.25rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 0.75rem;
}
.gap-4 {
  gap: 1rem;
}
/* Width/Height utilities */
.w-full {
  width: 100%;
}
.h-full {
  height: 100%;
}
/* ========================================
   ICON UTILITIES
   ======================================== */
.icon-xs {
  width: 0.75rem;
  height: 0.75rem;
}
.icon-sm {
  width: 1rem;
  height: 1rem;
}
.icon-md {
  width: 1.5rem;
  height: 1.5rem;
}
.icon-lg {
  width: 2rem;
  height: 2rem;
}
.icon-margin {
  margin-right: 0.5rem;
}
/* ========================================
   TEXT UTILITIES
   ======================================== */
.text-sm {
  font-size: 0.875rem;
}
.text-base {
  font-size: 1rem;
}
.text-lg {
  font-size: 1.125rem;
}
.font-bold {
  font-weight: 700;
}
.text-gradient {
  background: linear-gradient(to right, var(--color-purple-500), var(--color-purple-300));
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 1.5rem;
  font-weight: 700;
  color: transparent;
}
.text-gradient-purple,
.text-gradient-blue {
  background: linear-gradient(135deg, var(--color-purple-400), var(--color-purple-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* ========================================
   GRID UTILITIES
   ======================================== */
.grid-auto-fit {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.grid-auto-fill {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
/* ========================================
   BACKDROP UTILITIES
   ======================================== */
.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}
.backdrop-blur-md {
  backdrop-filter: blur(8px);
}
.backdrop-blur-lg {
  backdrop-filter: blur(12px);
}
/* ========================================
   SCROLLBAR UTILITIES
   ======================================== */
.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: var(--color-neutral-600) var(--color-neutral-800);
}
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: var(--color-neutral-800);
  border-radius: 3px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: var(--color-neutral-600);
  border-radius: 3px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: var(--color-neutral-500);
}
/* ========================================
   GLASS EFFECT UTILITIES
   ======================================== */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(75, 85, 99, 0.5);
  box-shadow: var(--shadow-lg);
}
/* ========================================
   GLOW EFFECTS
   ======================================== */
.glow-purple {
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.3);
}
.glow-blue {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}
/* ========================================
   BUTTON BASE UTILITIES
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  padding: 0.5rem;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.15);
}
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
  border-radius: 0.75rem 0.75rem 0 0;
  pointer-events: none;
}
.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.3), 0 4px 14px 0 rgba(0, 0, 0, 0.15);
}
.btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.2);
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.1);
}
/* Button variants */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  padding: 0.5rem;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, var(--color-purple-600), var(--color-purple-700), var(--color-purple-800));
  color: white;
  border: 1px solid var(--color-purple-500);
  box-shadow: 0 8px 25px rgba(147, 51, 234, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-purple-500), var(--color-purple-600), var(--color-purple-700));
  box-shadow: 0 12px 35px rgba(147, 51, 234, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}
.btn-primary:active {
  background: linear-gradient(135deg, var(--color-purple-700), var(--color-purple-800), var(--color-purple-900));
  box-shadow: 0 6px 20px rgba(147, 51, 234, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  padding: 0.5rem;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, var(--color-purple-200), var(--color-purple-300), var(--color-purple-400));
  color: var(--color-neutral-700);
  border: 1px solid var(--color-purple-300);
  box-shadow: 0 8px 25px rgba(147, 51, 234, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-secondary:hover {
  background: linear-gradient(135deg, var(--color-purple-100), var(--color-purple-200), var(--color-purple-300));
  box-shadow: 0 12px 35px rgba(147, 51, 234, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  padding: 0.5rem;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(64, 64, 64, 0.3);
  color: var(--color-neutral-300);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  padding: 0.5rem;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  border: 2px solid var(--color-purple-500);
  color: var(--color-purple-400);
  box-shadow: 0 8px 25px rgba(147, 51, 234, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.btn-outline:hover {
  background: linear-gradient(135deg, var(--color-purple-500), var(--color-purple-600));
  color: white;
  border-color: var(--color-purple-400);
  box-shadow: 0 12px 35px rgba(147, 51, 234, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  padding: 0.5rem;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, var(--color-red-600), var(--color-red-700), var(--color-red-800));
  color: white;
  border: 1px solid var(--color-red-500);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.btn-danger:hover {
  background: linear-gradient(135deg, var(--color-red-500), var(--color-red-600), var(--color-red-700));
  box-shadow: 0 12px 35px rgba(239, 68, 68, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}
.btn-danger:active {
  background: linear-gradient(135deg, var(--color-red-700), var(--color-red-800), var(--color-red-900));
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-purple-600), var(--color-purple-700));
  color: white;
  border: 1px solid var(--color-purple-500);
  box-shadow: 0 4px 14px rgba(147, 51, 234, 0.25);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-purple-500), var(--color-purple-600));
  box-shadow: 0 8px 25px rgba(147, 51, 234, 0.35);
}
/* ========================================
   INPUT UTILITIES
   ======================================== */
.input {
  width: 100%;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid var(--color-neutral-600);
  background-color: var(--color-neutral-800);
  color: var(--color-neutral-100);
  transition: var(--transition-all);
}
.input::placeholder {
  color: var(--color-neutral-400);
}
.input:focus {
  outline: none;
  border-color: var(--color-purple-500);
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}
.input-dark {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--color-neutral-700);
  border: 1px solid var(--color-neutral-600);
  border-radius: 0.5rem;
  color: var(--color-neutral-100);
  font-size: 0.875rem;
  transition: var(--transition-all);
}
.input-dark:focus {
  outline: none;
  border-color: var(--color-purple-500);
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}
/* ========================================
   CARD UTILITIES
   ======================================== */
.card {
  background: var(--color-neutral-800);
  border: 1px solid var(--color-neutral-700);
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: var(--shadow-md);
}
.twick-editor-main-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  gap: 6px;
}
.twick-editor-view-section {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  height: 100%;
}
.twick-editor-timeline-section {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background-color: #252525;
  border-radius: 10px;
  overflow-x: hidden;
}
.twick-editor-container {
  position: relative;
  height: 80dvh;
  overflow: hidden;
  border-radius: 10px;
  background-color: #000;
  color: #fff;
}
.twick-editor-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.twick-editor-canvas {
  width: 100%;
  height: 100%;
}
.twick-editor-loading-overlay {
  position: absolute;
  z-index: 30;
  background-color: rgba(0, 0, 0, 0.5);
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
}
.twick-editor-loading-spinner {
  width: 48px;
  height: 48px;
  border: 6px solid #444;
  border-top: 6px solid #fff;
  border-radius: 50%;
  animation: twick-editor-spin 1s linear infinite;
  margin: auto;
}
@keyframes twick-editor-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}.twick-timeline-scroll-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
}
/* Timeline Container Styles */
.twick-timeline-container {
  display: flex;
  height: 2.75rem;
  position: relative;
}

.twick-timeline-header-container {
  position: sticky;
  left: 0;
  z-index: 30;
}

.twick-seek-track-container {
  display: flex;
  position: relative;
  min-width: 100%;
  height: 2rem;
  width: 100%;
}

.twick-seek-track-container-no-scrollbar {
  display: flex;
  position: relative;
  min-width: 100%;
  height: 2rem;
  width: 100%;
  /* Hide scrollbar for all browsers */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.twick-seek-track-container-no-scrollbar::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.twick-seek-track-empty-space {
  position: sticky;
  left: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 0;
  min-width: 40px;
  height: 34px;
  background-color: #171717;
}

.twick-seek-track {
  position: relative;
  width: 100%;
  border-top: 1px solid #262626;
  border-bottom: 1px solid #262626;
  background-color: #171717;
}

.twick-seek-track-canvas {
  min-width: 100%;
  height: 2rem;
}

.twick-seek-track-playhead {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 30;
  cursor: ew-resize;
}

.twick-seek-track-pin {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 30;
  width: 1.5px;
  background-color: #FFFFFF;
}

.twick-seek-track-handle {
  position: absolute;
  top: 0;
  left: 0;
  width: 0.75rem;
  height: 0.75rem;
  transform: translate(-50%, -50%);
  background-color: #FFFFFF;
  border-radius: 25%;
}

.twick-track-element {
  position: absolute;
  height: 100%;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.2s ease-in-out;
}

.twick-track-element-selected {
  border: 2px solid #FFFFFF;
  z-index: 10;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.8);
}

.twick-track-element-default {
  border: 1px solid #d1d1d1;
}

.twick-track-element-dragging {
  border: 1px solid #ffffff;
}

.twick-track-element-content {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  cursor: grab;
  transition: background-color 0.2s ease-in-out;
  padding: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.twick-track-element-handle {
  position: absolute;
  width: 2px;
  height: 60%;
  cursor: ew-resize;
  transition: background-color 0.2s ease-in-out;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: #FFFFFF;
  border-radius: 25%;
  z-index: 10;
}

.twick-track-element-handle-start {
  left: 0px;
}

.twick-track-element-handle-end {
  right: -2px;
}

.twick-track-element-frame-effect {
  position: absolute;
  flex: 1;
  top: 0;
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  font-size: 0.75rem;
  opacity: 0.5;
}

.twick-track-header {
  display: flex;
  flex: none;
  position: relative;
  width: 40px;
  height: 100%;
  background-color: #171717;
  border-right: 1px solid #262626;
  align-items: center;
}


.twick-track-header-selected {
  border: 2px solid #FFFFFF;
  z-index: 10;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.8);
  outline: 2px solid #FFFFFF;
}

.twick-track-header-default {
  border: 1px solid #404040;
}

.twick-track-header-lock {
  position: absolute;
  top: 14px;
  right: 2px;
  width: 16px;
  height: 16px;
  z-index: 20;
  color: #333;
}

.twick-track-header-content {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0 0.5rem;
}

.twick-track-header-grip {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  width: 20px;
  height: 20px;
  cursor: grab;
}

.twick-track-header-name {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0 0.5rem;
}

.twick-track {
  min-width: 100%;
  position: relative;
  height: 2.5rem;
  margin-top: 2px;
  background-color: #474747;
}
:root {
    /* Colors */
    --color-purple-100: #f3e8ff;
    --color-purple-200: #e9d5ff;
    --color-purple-300: #d8b4fe;
    --color-purple-400: #c084fc;
    --color-purple-500: #a855f7;
    --color-purple-600: #9333ea;
    --color-purple-700: #7e22ce;
    --color-purple-800: #6b21a8;
    --color-purple-900: #581c87;
  
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
  
    --color-neutral-100: #f5f5f5;
    --color-neutral-200: #e5e5e5;
    --color-neutral-300: #d4d4d4;
    --color-neutral-400: #a3a3a3;
    --color-neutral-500: #737373;
    --color-neutral-600: #525252;
    --color-neutral-700: #404040;
    --color-neutral-800: #262626;
    --color-neutral-900: #171717;
  
    --color-red-100: #fee2e2;
    --color-red-200: #fecaca;
    --color-red-300: #fca5a5;
    --color-red-400: #f87171;
    --color-red-500: #ef4444;
    --color-red-600: #dc2626;
    --color-red-700: #b91c1c;
    --color-red-800: #991b1b;
    --color-red-900: #7f1d1d;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition-all: all 0.2s ease;
  }

/* ========================================
   LAYOUT UTILITIES
   ======================================== */

/* Flexbox utilities */

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

.flex-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

/* Gap utilities */

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

/* Width/Height utilities */

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

/* ========================================
   ICON UTILITIES
   ======================================== */

.icon-xs {
  width: 0.75rem;
  height: 0.75rem;
}

.icon-sm {
  width: 1rem;
  height: 1rem;
}

.icon-md {
  width: 1.5rem;
  height: 1.5rem;
}

.icon-lg {
  width: 2rem;
  height: 2rem;
}

.icon-margin {
  margin-right: 0.5rem;
}

/* ========================================
   TEXT UTILITIES
   ======================================== */

.text-sm {
  font-size: 0.875rem;
}

.text-base {
  font-size: 1rem;
}

.text-lg {
  font-size: 1.125rem;
}

.font-bold {
  font-weight: 700;
}

.text-gradient {
  background: linear-gradient(to right, var(--color-purple-500), var(--color-purple-300));
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 1.5rem;
  font-weight: 700;
  color: transparent;
}

.text-gradient-purple,
.text-gradient-blue {
  background: linear-gradient(135deg, var(--color-purple-400), var(--color-purple-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   GRID UTILITIES
   ======================================== */

.grid-auto-fit {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.grid-auto-fill {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* ========================================
   BACKDROP UTILITIES
   ======================================== */

.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}

.backdrop-blur-md {
  backdrop-filter: blur(8px);
}

.backdrop-blur-lg {
  backdrop-filter: blur(12px);
}

/* ========================================
   SCROLLBAR UTILITIES
   ======================================== */

.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: var(--color-neutral-600) var(--color-neutral-800);
}

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: var(--color-neutral-800);
  border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: var(--color-neutral-600);
  border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: var(--color-neutral-500);
}

/* ========================================
   GLASS EFFECT UTILITIES
   ======================================== */

.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(75, 85, 99, 0.5);
  box-shadow: var(--shadow-lg);
}

/* ========================================
   GLOW EFFECTS
   ======================================== */

.glow-purple {
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.3);
}

.glow-blue {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* ========================================
   BUTTON BASE UTILITIES
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  padding: 0.5rem;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.15);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
  border-radius: 0.75rem 0.75rem 0 0;
  pointer-events: none;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.3), 0 4px 14px 0 rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.2);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.1);
}

/* Button variants */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  padding: 0.5rem;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, var(--color-purple-600), var(--color-purple-700), var(--color-purple-800));
  color: white;
  border: 1px solid var(--color-purple-500);
  box-shadow: 0 8px 25px rgba(147, 51, 234, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-purple-500), var(--color-purple-600), var(--color-purple-700));
  box-shadow: 0 12px 35px rgba(147, 51, 234, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-primary:active {
  background: linear-gradient(135deg, var(--color-purple-700), var(--color-purple-800), var(--color-purple-900));
  box-shadow: 0 6px 20px rgba(147, 51, 234, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  padding: 0.5rem;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, var(--color-purple-200), var(--color-purple-300), var(--color-purple-400));
  color: var(--color-neutral-700);
  border: 1px solid var(--color-purple-300);
  box-shadow: 0 8px 25px rgba(147, 51, 234, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--color-purple-100), var(--color-purple-200), var(--color-purple-300));
  box-shadow: 0 12px 35px rgba(147, 51, 234, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  padding: 0.5rem;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(64, 64, 64, 0.3);
  color: var(--color-neutral-300);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  padding: 0.5rem;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  border: 2px solid var(--color-purple-500);
  color: var(--color-purple-400);
  box-shadow: 0 8px 25px rgba(147, 51, 234, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn-outline:hover {
  background: linear-gradient(135deg, var(--color-purple-500), var(--color-purple-600));
  color: white;
  border-color: var(--color-purple-400);
  box-shadow: 0 12px 35px rgba(147, 51, 234, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  padding: 0.5rem;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, var(--color-red-600), var(--color-red-700), var(--color-red-800));
  color: white;
  border: 1px solid var(--color-red-500);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-danger:hover {
  background: linear-gradient(135deg, var(--color-red-500), var(--color-red-600), var(--color-red-700));
  box-shadow: 0 12px 35px rgba(239, 68, 68, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-danger:active {
  background: linear-gradient(135deg, var(--color-red-700), var(--color-red-800), var(--color-red-900));
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-purple-600), var(--color-purple-700));
  color: white;
  border: 1px solid var(--color-purple-500);
  box-shadow: 0 4px 14px rgba(147, 51, 234, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-purple-500), var(--color-purple-600));
  box-shadow: 0 8px 25px rgba(147, 51, 234, 0.35);
}

/* ========================================
   INPUT UTILITIES
   ======================================== */

.input {
  width: 100%;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid var(--color-neutral-600);
  background-color: var(--color-neutral-800);
  color: var(--color-neutral-100);
  transition: var(--transition-all);
}

.input::placeholder {
  color: var(--color-neutral-400);
}

.input:focus {
  outline: none;
  border-color: var(--color-purple-500);
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

.input-dark {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--color-neutral-700);
  border: 1px solid var(--color-neutral-600);
  border-radius: 0.5rem;
  color: var(--color-neutral-100);
  font-size: 0.875rem;
  transition: var(--transition-all);
}

.input-dark:focus {
  outline: none;
  border-color: var(--color-purple-500);
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

/* ========================================
   CARD UTILITIES
   ======================================== */

.card {
  background: var(--color-neutral-800);
  border: 1px solid var(--color-neutral-700);
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: var(--shadow-md);
}

/* Player Controls */

.player-controls {
  height: 3rem;
  background-color: var(--color-neutral-800);
  border-top: 1px solid var(--color-neutral-600);
  padding: 0 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Edit Controls */

.edit-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.playback-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Control Buttons */

.control-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  background: transparent;
  border: none;
  color: var(--color-neutral-400);
  transition: var(--transition-all);
  cursor: pointer;
}

.control-btn:hover {
  color: var(--color-neutral-100);
  background-color: var(--color-neutral-700);
}

.control-btn:active {
  transform: scale(0.95);
  background-color: var(--color-neutral-600);
}

.control-btn.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  color: var(--color-neutral-600);
}

/* Specific Button Styles */

.delete-btn {
  color: var(--color-red-400);
}

.delete-btn:hover {
  color: var(--color-red-300);
}

.split-btn {
  color: var(--color-purple-400);
}

.split-btn:hover {
  color: var(--color-purple-300);
}

.play-pause-btn {
  padding: 0.75rem;
  color: white;
}

/* Time Display */

.time-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-neutral-400);
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

.current-time {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-neutral-200);
}

.time-separator {
  color: var(--color-neutral-600);
}

.total-time {
  font-size: 0.875rem;
  color: var(--color-neutral-500);
}

/* Zoom Controls */

.twick-track-zoom-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.zoom-level {
  font-size: 0.875rem;
  color: var(--color-neutral-400);
  font-weight: 500;
  min-width: 3rem;
  text-align: center;
}

/* Icon sizes */

.icon-md {
  width: 1.25rem;
  height: 1.25rem;
}

.icon-lg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Animation */

.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Undo/Redo Controls */

.undo-redo-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}