/* Hotel Repair & Inventory LIFF System - Modern Styling */

@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&family=Prompt:wght@300;400;500;600;700&display=swap');

:root {
  --font-prompt: 'Prompt', 'Kanit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --accent: #10b981;
  --bg-main: #f8fafc;
}

body {
  font-family: var(--font-prompt);
  background-color: #0f172a;
  color: #1e293b;
  -webkit-tap-highlight-color: transparent;
}

/* Glassmorphism Styles */
.glass-panel {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(51, 65, 85, 0.5);
}

.glass-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.08);
}

/* Mobile Frame Wrapper for Simulator */
.mobile-view-container {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
  background-color: #f8fafc;
  position: relative;
  overflow-x: hidden;
}

.desktop-view-container {
  max-width: 1360px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: #f8fafc;
}

/* Status Badges */
.badge-pending {
  background-color: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}
.badge-assigned {
  background-color: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}
.badge-in_progress {
  background-color: #e0e7ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}
.badge-waiting_parts {
  background-color: #ffedd5;
  color: #c2410c;
  border: 1px solid #fed7aa;
}
.badge-completed {
  background-color: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.badge-cancelled {
  background-color: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

/* Priority Badges */
.priority-urgent {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  animation: pulse-urgent 2s infinite;
}
.priority-high {
  background-color: #f97316;
  color: white;
}
.priority-normal {
  background-color: #0284c7;
  color: white;
}
.priority-low {
  background-color: #64748b;
  color: white;
}

@keyframes pulse-urgent {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.02); }
}

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

/* Bottom Navigation */
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  transition: all 0.2s ease;
}
.bottom-nav-item.active {
  color: #0284c7;
}
.bottom-nav-item.active svg {
  transform: scale(1.15);
  stroke: #0284c7;
}

/* PDF Print Template Styles */
@media print {
  body {
    background: white !important;
    color: black !important;
  }
  .no-print {
    display: none !important;
  }
  .print-only {
    display: block !important;
  }
}

.pdf-preview-box {
  background: white;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border-radius: 8px;
  padding: 32px;
  color: #0f172a;
  font-family: 'Prompt', 'Kanit', sans-serif;
  line-height: 1.5;
}

/* Shimmer Loading Effect */
.shimmer {
  background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
