/* Custom GELLONA Studio Clean & Minimalist Styles */

/* Thermal Receipt (80mm) & Official Invoice (A4/A5) Print Styles */
@media print {
  body * {
    visibility: hidden;
  }
  .printable-area, .printable-area * {
    visibility: visible;
  }
  .printable-area {
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
  .print-thermal {
    width: 80mm !important;
    padding: 8px !important;
    font-family: 'Courier New', Courier, monospace !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
  }
  .print-invoice {
    width: 100% !important;
    max-width: 210mm !important;
    padding: 24px !important;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  }
  .no-print {
    display: none !important;
  }
}

/* Subtle, clean modern scrollbars */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Pulse animation for real live indicators */
@keyframes pulse-subtle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.08); }
}
.live-dot {
  animation: pulse-subtle 2s infinite ease-in-out;
}

/* Keyboard focus visibility (WCAG 2.4.7) */
:focus-visible {
  outline: 2px solid #9333ea;
  outline-offset: 2px;
}

button:not(:disabled),
[role="button"]:not(:disabled),
select:not(:disabled),
a[href] {
  cursor: pointer;
}

/* Form input focus transitions */
input, select, textarea {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: #9333ea !important;
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.12) !important;
}

/* Respect user reduced-motion accessibility settings */
@media (prefers-reduced-motion: reduce) {
  .live-dot,
  .animate-spin,
  .animate-pulse,
  .animate-ping,
  .animate-bounce {
    animation: none !important;
  }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Hide scrollbar for clean horizontal swipes */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Touch-action and tap highlight hygiene */
* {
  -webkit-tap-highlight-color: transparent;
}

/* Safe area insets for mobile notched devices */
.pb-safe {
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 5rem);
}
