/* AutomatixQR - SaaS Platform Styles (Light Theme) */

/* Custom Clean Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f8fafc;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Universal Button Haptic Micro-Interactions & Magnetic Physics */
button, .btn, .tab-btn, .nav-item, .preset-pill, input[type="submit"], input[type="reset"] {
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.15s ease, border-color 0.15s ease;
  will-change: transform;
  user-select: none;
}

button:active, .btn:active, .tab-btn:active, .nav-item:active, .preset-pill:active {
  transform: scale(0.94) translateY(1px) !important;
}

button:hover, .btn:hover {
  transform: translateY(-1px);
}

/* Elegant Luxury Ripple Effect on Every Click */
.ripple-wave {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: rippleAnimation 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  background-color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
  z-index: 10;
}

@keyframes rippleAnimation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* View Panel Dynamic Entry Slide & Fade */
.view-panel:not(.hidden) {
  animation: viewPanelIn 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
}

@keyframes viewPanelIn {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.992);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
}

/* Sidebar Navigation Items (Light Mode) */
.nav-item {
  color: #475569;
  background-color: transparent;
  border: 1px solid transparent;
}

.nav-item:hover {
  color: #0f172a;
  background-color: #f1f5f9;
}

.nav-item.active {
  color: #4338ca;
  background: #ede9fe;
  border-color: #c4b5fd;
  box-shadow: 0 1px 4px rgba(99, 102, 241, 0.1);
}

/* Tab button active & hover states inside Studio */
.tab-btn {
  color: #64748b;
  background-color: transparent;
  border: 1px solid transparent;
}

.tab-btn:hover {
  color: #0f172a;
  background-color: #f1f5f9;
}

.tab-btn.active {
  color: #4338ca;
  background: #f5f3ff;
  border-color: #ddd6fe;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.08);
}

/* Preset pill active styles */
.preset-pill.active {
  border-color: #6366f1 !important;
  background-color: #ede9fe !important;
  color: #4338ca !important;
  font-weight: 600;
}

/* Form input focus glow */
input:focus, textarea:focus, select:focus {
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

/* QR Code Canvas container */
#qr-canvas svg, #qr-canvas canvas {
  max-width: 100%;
  height: auto !important;
  display: block;
  border-radius: 8px;
}

/* Color picker styling */
input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}
input[type="color"]::-webkit-color-swatch {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
}

/* Drag & Drop Zone Dragover Active State */
#drop-zone.drag-active {
  border-color: #6366f1 !important;
  background-color: #f5f3ff !important;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
  transform: scale(1.01);
}

/* Template Card Hover Effects */
.template-card {
  transition: all 0.2s ease-in-out;
}
.template-card:hover {
  transform: translateY(-3px);
  border-color: #818cf8;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

/* RTL Support for Arabic and Urdu */
[dir="rtl"] {
  text-align: right;
}
[dir="rtl"] .text-left {
  text-align: right !important;
}
[dir="rtl"] .text-right {
  text-align: left !important;
}
[dir="rtl"] #lang-dropdown-menu {
  right: auto;
  left: 0;
}

/* ========================================================
   HIGH-END VISUAL DESIGN & MOTION CHOREOGRAPHY (AWWWARDS-TIER)
   ======================================================== */

@keyframes modalSpringIn {
  0% {
    opacity: 0;
    transform: scale(0.84) translateY(32px);
    filter: blur(6px);
  }
  65% {
    transform: scale(1.02) translateY(-2px);
    filter: blur(0px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0px);
  }
}

@keyframes backdropFadeIn {
  0% {
    opacity: 0;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
  }
  100% {
    opacity: 1;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
}

/* Modal Glass Backdrop with Fluid Fade */
.modal-backdrop:not(.hidden) {
  display: flex !important;
  animation: backdropFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-backdrop:not(.hidden) .modal-dialog {
  animation: modalSpringIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Double-Bezel Hardware Architecture */
.double-bezel-shell {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.88) 100%);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 30px 80px -15px rgba(15, 23, 42, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.9) inset;
}

/* Fluid Magnetic Button Physics */
.btn-magnetic {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-magnetic:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 12px 25px -5px rgba(79, 70, 229, 0.35);
}
.btn-magnetic:active {
  transform: scale(0.97);
}


