/* Corniche Tourist Restaurants (مطاعم ومطابخ الكورنيش السياحية) Stylesheet */
@charset "UTF-8";

/* ==========================================================================
   Design Tokens & CSS Variables (ui-ux-pro-max: Light & Dark Mode)
   ========================================================================== */
:root {
  /* Brand Colors */
  --corniche-orange: #EA580C;
  --corniche-orange-hover: #C2410C;
  --corniche-orange-light: #FB923C;
  --corniche-orange-subtle: rgba(234, 88, 12, 0.12);
  --corniche-navy: #0C2D48;
  --corniche-navy-dark: #071927;
  --corniche-blue: #1D70B8;
  --corniche-blue-light: #38BDF8;

  /* Semantic Status */
  --status-success: #10B981;
  --status-success-bg: #ECFDF5;
  --status-success-border: #A7F3D0;
  --status-success-text: #065F46;

  --status-danger: #EF4444;
  --status-danger-bg: #FEF2F2;
  --status-danger-border: #FECACA;
  --status-danger-text: #991B1B;

  --status-warning: #F59E0B;
  --status-warning-bg: #FFFBEB;
  --status-warning-border: #FDE68A;
  --status-warning-text: #92400E;

  /* Light Mode Defaults */
  --bg-app: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-surface-subtle: #F1F5F9;
  --bg-surface-elevated: #FFFFFF;
  --bg-card: #FFFFFF;
  --border-app: #E2E8F0;
  --border-subtle: #CBD5E1;
  --text-main: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-elevated: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

/* Dark Mode Overrides */
html.dark, body.dark {
  --bg-app: #030712;
  --bg-surface: #0B132B;
  --bg-surface-subtle: #111C3D;
  --bg-surface-elevated: #16224A;
  --bg-card: #0F172A;
  --border-app: #1E293B;
  --border-subtle: #334155;
  --text-main: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-elevated: 0 15px 30px -5px rgba(0, 0, 0, 0.7);

  --status-success-bg: rgba(16, 185, 129, 0.15);
  --status-success-border: rgba(16, 185, 129, 0.3);
  --status-success-text: #6EE7B7;

  --status-danger-bg: rgba(239, 68, 68, 0.15);
  --status-danger-border: rgba(239, 68, 68, 0.3);
  --status-danger-text: #FCA5A5;

  --status-warning-bg: rgba(245, 158, 11, 0.15);
  --status-warning-border: rgba(245, 158, 11, 0.3);
  --status-warning-text: #FCD34D;
}

/* ==========================================================================
   Base Styles & Smooth Transitions
   ========================================================================== */
* {
  box-sizing: border-box;
}

html {
  transition: background-color 0.25s ease, color 0.25s ease;
}

body {
  font-family: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg-app);
  color: var(--text-main);
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Number display font */
.font-num {
  font-family: 'JetBrains Mono', 'Segoe UI', Roboto, monospace;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-surface-subtle);
}
::-webkit-scrollbar-thumb {
  background: rgba(234, 88, 12, 0.4);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(234, 88, 12, 0.75);
}

/* ==========================================================================
   Realistic Landscape Tablet Hardware Bezel
   ========================================================================== */
.tablet-bezel-wrapper {
  background: radial-gradient(circle at 50% 20%, #27272a, #09090b);
  border: 14px solid #18181b;
  border-radius: 36px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

html:not(.dark) .tablet-bezel-wrapper {
  box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.tablet-camera-dot {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #27272a;
  border: 1.5px solid #09090b;
  box-shadow: 0 0 3px rgba(0, 200, 255, 0.4) inset;
  z-index: 50;
}

/* ==========================================================================
   Micro-Interactions & UI-UX Pro Max Polish
   ========================================================================== */
button, a, input, select, textarea {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.interactive-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.interactive-card:hover {
  transform: translateY(-2px);
}

/* Pulse animation for live indicators */
.pulse-indicator {
  position: relative;
}
.pulse-indicator::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 9999px;
  background: inherit;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* ==========================================================================
   Toast Notifications System
   ========================================================================== */
#corniche-toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.corniche-toast {
  pointer-events: auto;
  min-width: 300px;
  max-width: 440px;
  padding: 14px 20px;
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-app);
  border-right: 5px solid var(--corniche-orange);
  border-radius: 14px;
  box-shadow: var(--shadow-elevated);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  animation: toastSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* ==========================================================================
   Thermal Receipt Print Styles
   ========================================================================== */
@media print {
  body * {
    visibility: hidden !important;
  }
  #thermal-receipt-printable, #thermal-receipt-printable * {
    visibility: visible !important;
  }
  #thermal-receipt-printable {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    width: 80mm !important;
    margin: 0 !important;
    padding: 8px !important;
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11px !important;
    box-shadow: none !important;
    border: none !important;
  }
  .no-print {
    display: none !important;
  }
}
