/**
 * Meligo Demo - Styles & Thermal Receipt Styling
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', Courier, monospace;
}

body {
  font-family: var(--font-sans);
  background-color: #030712;
  color: #f3f4f6;
  overflow-x: hidden;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0b0f19;
}
::-webkit-scrollbar-thumb {
  background: #1f2937;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #374151;
}

/* Glassmorphism Panels */
.glass-panel {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(51, 65, 85, 0.4);
}

.glass-card {
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(75, 85, 99, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

/* Thermal Paper Ticket Simulation */
.thermal-ticket {
  background-color: #ffffff;
  color: #111827;
  font-family: var(--font-mono);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  position: relative;
  border-radius: 4px;
}

/* Sawtooth paper rip effect */
.thermal-ticket::before,
.thermal-ticket::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 8px;
  background-size: 16px 8px;
  background-repeat: repeat-x;
}

.thermal-ticket::before {
  top: -8px;
  background-image: radial-gradient(circle at 8px 8px, transparent 8px, #ffffff 8px);
}

.thermal-ticket::after {
  bottom: -8px;
  background-image: radial-gradient(circle at 8px 0, transparent 8px, #ffffff 8px);
}

/* Toast Notification */
.demo-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: #0f172a;
  border: 1px solid #334155;
  color: #f8fafc;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal Backdrop */
.modal-backdrop {
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px);
}

/* Print simulation */
@media print {
  body * {
    visibility: hidden;
  }
  #thermal-receipt-content,
  #thermal-receipt-content * {
    visibility: visible;
  }
  #thermal-receipt-content {
    position: absolute;
    left: 0;
    top: 0;
    width: 80mm;
    margin: 0;
    box-shadow: none;
  }
}
