/* QR Destination Page Styles */ :root { /* Color Palette */ --primary-color: #2563eb; --primary-hover: #1d4ed8; --success-color: #059669; --warning-color: #d97706; --danger-color: #dc2626; --info-color: #0891b2; /* Neutral Colors */ --white: #ffffff; --gray-50: #f8fafc; --gray-100: #f1f5f9; --gray-200: #e2e8f0; --gray-300: #cbd5e1; --gray-400: #94a3b8; --gray-500: #64748b; --gray-600: #475569; --gray-700: #334155; --gray-800: #1e293b; --gray-900: #0f172a; /* Spacing and Layout */ --radius-sm: 0.25rem; --radius: 0.375rem; --radius-lg: 0.75rem; --radius-xl: 1rem; --radius-2xl: 1.5rem; --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05); --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); --transition: all 0.15s ease-in-out; } /* Reset and Base */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; background: linear-gradient(135deg, var(--primary-color), var(--primary-hover)); min-height: 100vh; color: var(--gray-900); line-height: 1.6; } /* Container */ .destination-container { max-width: 600px; margin: 0 auto; padding: 2rem 1rem; min-height: 100vh; display: flex; flex-direction: column; gap: 2rem; } /* Header Section */ .destination-header { text-align: center; color: var(--white); margin-bottom: 1rem; } .header-icon { display: inline-flex; align-items: center; justify-content: center; width: 80px; height: 80px; background: rgba(255, 255, 255, 0.2); border-radius: 50%; font-size: 2rem; margin-bottom: 1rem; backdrop-filter: blur(10px); border: 2px solid rgba(255, 255, 255, 0.3); } .destination-header h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 0.5rem; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } .location-info { display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: 1.125rem; opacity: 0.9; } /* Card Styles */ .info-card, .checkin-card, .success-card { background: var(--white); border-radius: var(--radius-2xl); box-shadow: var(--shadow-xl); overflow: hidden; animation: slideUp 0.6s ease-out; } @keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } } /* Info Card */ .info-header { background: linear-gradient(135deg, var(--gray-50), var(--white)); padding: 1.5rem; border-bottom: 1px solid var(--gray-200); } .info-header h2 { display: flex; align-items: center; gap: 0.5rem; font-size: 1.25rem; font-weight: 600; color: var(--gray-800); } .info-details { padding: 1.5rem; display: grid; gap: 1rem; } .detail-item { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem; background: var(--gray-50); border-radius: var(--radius-lg); border: 1px solid var(--gray-200); transition: var(--transition); } .detail-item:hover { background: var(--gray-100); transform: translateY(-1px); } .detail-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--primary-color); color: var(--white); border-radius: var(--radius-lg); font-size: 1.125rem; flex-shrink: 0; } .detail-content { flex: 1; min-width: 0; } .detail-content strong { display: block; font-weight: 600; color: var(--gray-700); margin-bottom: 0.25rem; font-size: 0.875rem; } .detail-content span { color: var(--gray-900); font-size: 1rem; word-break: break-word; } /* Check-in Card */ .checkin-header { background: linear-gradient(135deg, var(--success-color), #047857); color: var(--white); padding: 2rem 1.5rem; text-align: center; } .checkin-header h2 { display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; } .checkin-header p { opacity: 0.9; font-size: 1rem; } .checkin-form { padding: 2rem 1.5rem; } .form-group { margin-bottom: 1.5rem; } .form-group label { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--gray-700); margin-bottom: 0.75rem; font-size: 1rem; } .form-group input { width: 100%; padding: 1rem; border: 2px solid var(--gray-200); border-radius: var(--radius-lg); font-size: 1.125rem; transition: var(--transition); background-color: var(--white); text-align: center; font-weight: 600; text-transform: uppercase; } .form-group input:focus { outline: none; border-color: var(--success-color); box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1); transform: scale(1.02); } .form-group input::placeholder { text-transform: none; font-weight: normal; color: var(--gray-400); } .form-help { display: block; margin-top: 0.5rem; font-size: 0.875rem; color: var(--gray-500); text-align: center; } .form-actions { margin-top: 2rem; } /* Button Styles */ .btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; padding: 1.25rem 2rem; border: none; border-radius: var(--radius-xl); font-size: 1.125rem; font-weight: 600; cursor: pointer; transition: var(--transition); text-decoration: none; position: relative; overflow: hidden; } .btn-primary { background: linear-gradient(135deg, var(--success-color), #047857); color: var(--white); box-shadow: var(--shadow-lg); } .btn-primary:hover { background: linear-gradient(135deg, #047857, #065f46); transform: translateY(-2px); box-shadow: var(--shadow-xl); } .btn-primary:active { transform: translateY(0); } .btn-secondary { background: var(--gray-600); color: var(--white); box-shadow: var(--shadow); } .btn-secondary:hover { background: var(--gray-700); transform: translateY(-1px); } .btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none !important; } .btn-content, .btn-loader { display: flex; align-items: center; justify-content: center; gap: 0.5rem; } /* Status Messages */ .status-message { margin: 1rem 1.5rem; padding: 1rem; border-radius: var(--radius-lg); font-weight: 500; text-align: center; } .status-message.success { background: rgba(5, 150, 105, 0.1); color: var(--success-color); border: 1px solid rgba(5, 150, 105, 0.3); } .status-message.error { background: rgba(220, 38, 38, 0.1); color: var(--danger-color); border: 1px solid rgba(220, 38, 38, 0.3); } .status-message.warning { background: rgba(217, 119, 6, 0.1); color: var(--warning-color); border: 1px solid rgba(217, 119, 6, 0.3); } /* Success Card */ .success-card { text-align: center; padding: 2rem 1.5rem; background: linear-gradient(135deg, rgba(5, 150, 105, 0.05), rgba(5, 150, 105, 0.1)); border: 2px solid var(--success-color); } .success-icon { display: inline-flex; align-items: center; justify-content: center; width: 100px; height: 100px; background: var(--success-color); color: var(--white); border-radius: 50%; font-size: 3rem; margin-bottom: 1.5rem; animation: successPulse 2s infinite; } @keyframes successPulse { 0% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(5, 150, 105, 0); } 100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); } } .success-card h2 { font-size: 2rem; font-weight: 700; color: var(--success-color); margin-bottom: 2rem; } .success-details { display: grid; gap: 1rem; margin-bottom: 2rem; text-align: left; } .success-item { display: flex; justify-content: space-between; align-items: center; padding: 1rem; background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--gray-200); } .success-item strong { color: var(--gray-700); font-weight: 600; } .success-item span { color: var(--gray-900); font-weight: 500; } .success-actions { margin-top: 2rem; } /* Error Card */ .error-card { background: var(--white); border-radius: var(--radius-2xl); box-shadow: var(--shadow-xl); padding: 3rem 2rem; text-align: center; animation: slideUp 0.6s ease-out; } .error-icon { display: inline-flex; align-items: center; justify-content: center; width: 100px; height: 100px; background: rgba(217, 119, 6, 0.1); color: var(--warning-color); border-radius: 50%; font-size: 3rem; margin-bottom: 2rem; } .error-card h1 { font-size: 2rem; font-weight: 700; color: var(--gray-900); margin-bottom: 1rem; } .error-message { margin-bottom: 2rem; } .error-message p { color: var(--gray-600); font-size: 1.125rem; margin-bottom: 1.5rem; } .possible-reasons { text-align: left; background: var(--gray-50); padding: 1.5rem; border-radius: var(--radius-lg); border: 1px solid var(--gray-200); } .possible-reasons h3 { font-size: 1.125rem; font-weight: 600; color: var(--gray-800); margin-bottom: 1rem; } .possible-reasons ul { list-style: none; padding: 0; margin: 0; } .possible-reasons li { padding: 0.5rem 0; color: var(--gray-600); position: relative; padding-left: 1.5rem; } .possible-reasons li::before { content: "•"; position: absolute; left: 0; color: var(--warning-color); font-weight: bold; } .error-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2rem; } .help-section { padding: 1.5rem; background: var(--gray-50); border-radius: var(--radius-lg); border: 1px solid var(--gray-200); } .help-section p { display: flex; align-items: center; gap: 0.5rem; color: var(--gray-600); font-size: 0.875rem; margin: 0; } /* Footer */ .destination-footer { text-align: center; color: rgba(255, 255, 255, 0.8); margin-top: auto; padding-top: 2rem; } .destination-footer p { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 0.5rem; } .destination-footer small { opacity: 0.7; font-size: 0.875rem; } /* Loading Overlay */ .loading-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); display: flex; align-items: center; justify-content: center; z-index: 9999; } .loading-spinner { background: var(--white); padding: 2rem; border-radius: var(--radius-xl); text-align: center; box-shadow: var(--shadow-xl); } .loading-spinner i { font-size: 2rem; color: var(--primary-color); margin-bottom: 1rem; } .loading-spinner p { color: var(--gray-700); font-weight: 500; margin: 0; } /* Form Validation States */ .form-group input.error { border-color: var(--danger-color); box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1); } .form-group input.success { border-color: var(--success-color); background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23059669'%3e%3cpath d='M12.736 3.97a.733.733 0 0 1 1.047 0c.286.289.29.756.01 1.05L7.88 12.01a.733.733 0 0 1-1.065.02L3.217 8.384a.757.757 0 0 1 0-1.06.733.733 0 0 1 1.047 0l3.052 3.093 5.4-6.425a.247.247 0 0 1 .02-.022Z'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 1rem; } /* Animations */ .pulse { animation: pulse 2s infinite; } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } } .shake { animation: shake 0.5s ease-in-out; } @keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } } /* Responsive Design */ @media (max-width: 768px) { .destination-container { padding: 1rem 0.5rem; gap: 1.5rem; } .destination-header h1 { font-size: 2rem; } .header-icon { width: 60px; height: 60px; font-size: 1.5rem; } .info-card, .checkin-card, .success-card, .error-card { margin: 0 0.5rem; } .checkin-form { padding: 1.5rem 1rem; } .detail-item { flex-direction: column; text-align: center; gap: 0.75rem; } .detail-icon { align-self: center; } .error-actions { grid-template-columns: 1fr; } .success-details { text-align: center; } .success-item { flex-direction: column; gap: 0.5rem; text-align: center; } } @media (max-width: 480px) { .destination-container { padding: 0.5rem; } .destination-header h1 { font-size: 1.75rem; } .info-details, .success-details { gap: 0.75rem; } .form-group input { font-size: 1rem; padding: 0.875rem; } .btn { padding: 1rem 1.5rem; font-size: 1rem; } .error-card { padding: 2rem 1rem; } .success-icon, .error-icon { width: 80px; height: 80px; font-size: 2.5rem; } } /* High Contrast Mode */ @media (prefers-contrast: high) { .info-card, .checkin-card, .success-card, .error-card { border: 2px solid var(--gray-900); } .detail-item { border: 1px solid var(--gray-900); } .form-group input { border: 2px solid var(--gray-900); } .btn-primary { background: var(--gray-900); border: 2px solid var(--white); } } /* Reduced Motion */ @media (prefers-reduced-motion: reduce) { * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } .success-icon { animation: none; } .btn:hover, .detail-item:hover { transform: none; } } /* Print Styles */ @media print { body { background: white; color: black; } .destination-container { max-width: none; padding: 1rem; } .info-card, .checkin-card, .success-card { box-shadow: none; border: 1px solid #000; break-inside: avoid; } .btn, .loading-overlay { display: none; } .destination-header { color: black; } .header-icon { background: white; border: 2px solid black; color: black; } } /* Dark Mode Support */ @media (prefers-color-scheme: light) { :root { --white: #1a1a1a; --gray-50: #262626; --gray-100: #2d2d2d; --gray-200: #404040; --gray-300: #525252; --gray-400: #737373; --gray-500: #a3a3a3; --gray-600: #d4d4d4; --gray-700: #e5e5e5; --gray-800: #f5f5f5; --gray-900: #ffffff; } } /* Custom Scrollbar */ ::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { background: var(--gray-100); border-radius: var(--radius); } ::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: var(--radius); } ::-webkit-scrollbar-thumb:hover { background: var(--gray-400); } /* Selection Styles */ ::selection { background: rgba(37, 99, 235, 0.2); color: var(--gray-900); } /* Focus Styles for Accessibility */ .btn:focus, input:focus { outline: 2px solid var(--primary-color); outline-offset: 2px; } /* Utility Classes */ .text-center { text-align: center; } .text-left { text-align: left; } .text-right { text-align: right; } .hidden { display: none !important; } .sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }