/* Reset & Custom styles for Khidmati App */
:root {
  --rose-primary: #D4737D;
  --rose-dark: #9E3B4B;
  --cream-bg: #FAF7F2;
}

body {
  background-color: #FAF7F2;
  font-family: 'Cairo', system-ui, -apple-system, sans-serif;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Hide scrollbar for category tabs */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Active Category Pill */
.cat-pill.active {
  background: #9E3B4B !important;
  color: #FFFFFF !important;
  border-color: #9E3B4B !important;
  box-shadow: 0 4px 12px rgba(158, 59, 75, 0.25);
}

/* Custom Range Input */
input[type=range] {
  -webkit-appearance: none;
  background: #E8DFD3;
  border-radius: 9999px;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 22px;
  width: 22px;
  border-radius: 50%;
  background: #9E3B4B;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(158, 59, 75, 0.4);
  border: 2px solid #ffffff;
  transition: transform 0.1s ease;
}
input[type=range]::-webkit-slider-thumb:active {
  transform: scale(1.18);
}

/* Card Hover micro-interaction */
.service-card {
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease;
}
@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -8px rgba(158, 59, 75, 0.12);
  }
}

/* Calendar Styles */
.cal-day-cell {
  min-height: 52px;
  border-radius: 1rem;
  transition: all 0.18s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0.35rem 0.2rem;
  cursor: pointer;
  border: 1px solid transparent;
}

@media (min-width: 640px) {
  .cal-day-cell {
    min-height: 64px;
    padding: 0.5rem 0.3rem;
  }
}

.cal-day-cell:hover:not(.disabled) {
  background-color: #FBECEE;
  border-color: rgba(212, 115, 125, 0.3);
  transform: translateY(-1px);
}

.cal-day-cell.selected {
  background: linear-gradient(135deg, #9E3B4B 0%, #D4737D 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(158, 59, 75, 0.3);
  border-color: #9E3B4B !important;
}

.cal-day-cell.selected * {
  color: #FFFFFF !important;
}

.cal-day-cell.today-ring {
  border: 1.5px dashed #9E3B4B;
  background-color: rgba(251, 236, 238, 0.4);
}

.cal-day-cell.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.cal-day-cell.has-booking {
  background-color: #FAF2E3;
}

/* Dot indicator on calendar */
.cal-dot {
  width: 5px;
  height: 5px;
  border-radius: 9999px;
  margin-top: 2px;
}

/* Modal Mini Calendar */
.mini-cal-day {
  height: 34px;
  border-radius: 0.65rem;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.mini-cal-day:hover:not(.disabled) {
  background-color: #FBECEE;
  color: #9E3B4B;
}

.mini-cal-day.selected {
  background-color: #9E3B4B !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(158, 59, 75, 0.3);
}

.mini-cal-day.today {
  border-color: #9E3B4B;
}

.mini-cal-day.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* Time Slot Chips */
.time-slot-btn {
  padding: 0.45rem 0.4rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  transition: all 0.15s ease;
  border: 1.5px solid rgba(158, 59, 75, 0.15);
  background: #FFFFFF;
  color: #282324;
}

.time-slot-btn:hover {
  border-color: #9E3B4B;
  background: #FBECEE;
}

.time-slot-btn.selected {
  background: #9E3B4B;
  color: #FFFFFF;
  border-color: #9E3B4B;
  box-shadow: 0 2px 8px rgba(158, 59, 75, 0.25);
}

/* Calendar Filter Pills */
.cal-filter-pill.active {
  background-color: #9E3B4B !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 6px rgba(158, 59, 75, 0.25);
}

/* Modal Animations */
.animate-in {
  animation: modalPop 0.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes modalPop {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.animate-drawer {
  animation: drawerSlide 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes drawerSlide {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(0);
  }
}

/* Fix RTL for directional controls */
.dir-ltr {
  direction: ltr !important;
}