/* NIVTO POS System - Modern UI Styles */

/* Custom animations for the animated background */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes glow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Product card hover effects */
.product-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(6, 182, 212, 0.3);
}

/* Cart item animations */
.cart-item {
  animation: slideIn 0.3s ease-out;
}

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

/* Payment button hover effects */
.payment-btn {
  position: relative;
  overflow: hidden;
}

.payment-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.payment-btn:hover::before {
  left: 100%;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(6, 182, 212, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(6, 182, 212, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(6, 182, 212, 0.5);
}

/* Loading animation for currency display */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

#currencyDisplay {
  animation: pulse 2s infinite;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .product-card:hover {
    transform: none;
  }
}

@media (max-width: 768px) {
  .stars-container > div {
    display: none;
  }
}

/* Print Receipt Styles */
@media print {
  body * {
    visibility: hidden;
  }
  
  .print-only,
  .print-only * {
    visibility: visible !important;
  }
  
  .print-only {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100%;
  }
  
  #printReceipt, #printReceipt * {
    visibility: visible !important;
  }
  
  #printReceipt {
    position: relative;
    left: 0;
    top: 0;
  }
  
  .no-print {
    display: none !important;
  }
  
  @page {
    margin: 10mm;
  }
}

.receipt-container {
  max-width: 320px;
  margin: 0 auto;
  font-family: 'Courier New', monospace;
  background: white;
  color: black;
  padding: 20px;
  border: 1px solid #ddd;
  line-height: 1.4;
}

.receipt-header {
  text-align: center;
  border-bottom: 2px double #000;
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.receipt-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.receipt-store {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 6px;
}

.receipt-store-details {
  font-size: 10px;
  margin: 2px 0;
  color: #333;
}

.receipt-info {
  font-size: 11px;
  margin: 3px 0;
}

.receipt-section-title {
  font-size: 11px;
  font-weight: bold;
  margin: 8px 0 4px 0;
  text-transform: uppercase;
}

.receipt-divider {
  border-top: 1px dashed #000;
  margin: 10px 0;
}

.receipt-items {
  margin: 10px 0;
}

.receipt-item {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin: 6px 0;
}

.receipt-item-name {
  flex: 1;
}

.receipt-item-details {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #555;
  margin-left: 10px;
}

.receipt-subtotal-line {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin: 4px 0;
  padding: 2px 0;
}

.receipt-total {
  border-top: 2px double #000;
  border-bottom: 2px double #000;
  padding: 8px 0;
  margin: 8px 0;
  font-size: 15px;
  font-weight: bold;
}

.receipt-total-line {
  display: flex;
  justify-content: space-between;
  margin: 2px 0;
}

.receipt-footer {
  text-align: center;
  border-top: 2px dashed #000;
  padding-top: 10px;
  margin-top: 10px;
  font-size: 10px;
}

.receipt-return-badge {
  background: #dc2626;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: bold;
  display: inline-block;
  margin: 10px 0;
}

/* Restaurant Mode Styles */
#restaurantControls {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.table-card {
  transition: all 0.3s ease;
}

.table-card:hover {
  transform: scale(1.05);
}

#restaurantInfo {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Table status indicators */
.table-available {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.table-occupied {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
}

.table-reserved {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

/* Order type badges */
.order-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s;
}

.order-type-dine-in {
  background: #dbeafe;
  color: #1e40af;
}

.order-type-takeout {
  background: #fef3c7;
  color: #92400e;
}

.order-type-delivery {
  background: #dcfce7;
  color: #166534;
}

/* Hospitality Mode Styles */
#hospitalityControls {
  animation: slideDown 0.3s ease-out;
}

.room-card {
  transition: all 0.3s ease;
}

.room-card:hover {
  transform: scale(1.05);
}

#hospitalityInfo {
  animation: fadeIn 0.3s ease-out;
}

/* Room status indicators */
.room-available {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.room-occupied {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
}

.room-cleaning {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.room-maintenance {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

/* Service type badges */
.service-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s;
}

.service-type-room-service {
  background: #dbeafe;
  color: #1e40af;
}

.service-type-restaurant {
  background: #fef3c7;
  color: #92400e;
}

.service-type-bar {
  background: #fce7f3;
  color: #9f1239;
}

.service-type-spa {
  background: #f3e8ff;
  color: #6b21a8;
}

.service-type-laundry {
  background: #e0f2fe;
  color: #075985;
}

.service-type-minibar {
  background: #fef9c3;
  color: #713f12;
}