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

:root {
  --color-bg: #f3f4f6; /* Light gray background */
  --color-sidebar: #ffffff; /* White sidebar */
  --color-card: #ffffff; /* White cards */
  --color-border: #e5e7eb; /* Light border */
  --color-brand: #0d9488; /* Medical teal accent */
  --color-brand-hover: #0f766e;
  font-family: 'Cairo', sans-serif;
}

body {
  background-color: var(--color-bg);
  color: #1f2937;
  overflow-x: hidden;
  direction: rtl;
}

/* Custom Scrollbar for Light Theme */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-brand);
}

/* Glow effects matching teal theme */
.brand-glow {
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.06);
}

.brand-gradient {
  background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
  border: 1px solid #ccfbf1;
}

.brand-highlight-gradient {
  background: linear-gradient(90deg, #0d9488 0%, #0f766e 100%);
}

.text-brand {
  color: #0d9488;
}

.bg-brand {
  background-color: #0d9488;
}

.border-brand {
  border-color: #0d9488;
}

/* Micro-animations */
.hover-scale {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.hover-scale:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

/* Sidebar Active Nav Item matching outline style */
.active-nav-item {
  background-color: #f0fdfa !important;
  color: #0d9488 !important;
  border: 1px solid #0d9488 !important;
  font-weight: 800 !important;
}

/* Print Invoice styles */
@media print {
  body * {
    visibility: hidden;
  }
  #print-receipt-modal, #print-receipt-modal * {
    visibility: visible;
  }
  #print-receipt-modal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
  .demo-version-toaster {
    display: none !important;
  }
}

/* Permanent Demo Version Toaster */
.demo-version-toaster {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  direction: rtl;
  pointer-events: auto;
  font-family: 'Cairo', sans-serif;
  animation: slideUpToaster 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.demo-toaster-content {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(13, 148, 136, 0.15);
  padding: 10px 16px 10px 20px;
  border-radius: 16px;
  box-shadow: 0 10px 30px -5px rgba(13, 148, 136, 0.1), 
              0 0 0 1px rgba(13, 148, 136, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.demo-toaster-content:hover {
  transform: translateY(-2px) scale(1.02);
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(13, 148, 136, 0.3);
  box-shadow: 0 12px 35px -5px rgba(13, 148, 136, 0.15), 
              0 0 0 1px rgba(13, 148, 136, 0.1);
}

.demo-icon-wrapper {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
  border: 1px solid #ccfbf1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.demo-text-wrapper {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.demo-title-container {
  display: flex;
  align-items: center;
  gap: 6px;
}

.demo-title {
  font-size: 13px;
  font-weight: 800;
  color: #0f766e;
  letter-spacing: -0.01em;
}

.demo-pulse-container {
  position: relative;
  display: inline-flex;
  height: 8px;
  width: 8px;
}

.demo-pulse-ring {
  position: absolute;
  display: inline-flex;
  height: 100%;
  width: 100%;
  border-radius: 9999px;
  background-color: #0d9488;
  opacity: 0.65;
  animation: demoPing 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.demo-pulse-dot {
  position: relative;
  display: inline-flex;
  border-radius: 9999px;
  height: 8px;
  width: 8px;
  background-color: #0d9488;
}

.demo-subtitle {
  font-size: 9px;
  color: #6b7280;
  font-weight: 600;
  margin-top: 1px;
}

@keyframes slideUpToaster {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

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