/* YClients Exact Aesthetic Design System */
:root {
  --yc-bg: #141518;
  --yc-card: #212329;
  --yc-card-hover: #292c34;
  --yc-border: #2c2f38;
  --yc-text: #ffffff;
  --yc-text-muted: #8e95a5;
  --yc-blue: #007aff;
  --yc-blue-hover: #0066d6;
  --yc-yellow: #f5b300;
  --yc-yellow-hover: #e0a300;
  --yc-green-header: #3bb273;
  --yc-green-body: #44c281;
  --yc-green-dark: #2d8a57;
  --yc-red: #ef4444;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--yc-bg);
  color: var(--yc-text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  touch-action: pan-y;
  overscroll-behavior: none;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 0px;
  height: 0px;
}

/* Glass & Card styles */
.yc-card {
  background-color: var(--yc-card);
  border-radius: 16px;
  transition: all 0.15s ease;
}

.yc-card-interactive:active {
  transform: scale(0.985);
  background-color: var(--yc-card-hover);
}

/* Date pills */
.yc-date-square {
  width: 52px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-color: #212329;
  color: #8e95a5;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.yc-date-square:hover {
  background-color: #2a2d36;
}

.yc-date-square.no-slots {
  opacity: 0.6;
}

.yc-date-square.has-slots {
  color: #f1f5f9;
}

.yc-date-square.has-slots .day-num {
  color: #ffffff;
}

.yc-date-square.disabled {
  opacity: 0.35;
}

.yc-date-square.active {
  background-color: var(--yc-blue) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.35);
  opacity: 1 !important;
}

.yc-date-square.active .day-name {
  color: #ffffff !important;
  opacity: 0.9;
}

.yc-date-square.active .day-num {
  color: #ffffff !important;
}

/* Master Calendar Bottom floating bar */
.yc-bottom-daybar {
  background-color: #1e2026;
  border-radius: 16px;
  padding: 4px;
}

.yc-master-day-btn {
  flex: 1;
  padding: 6px 0;
  border-radius: 12px;
  text-align: center;
  font-size: 11px;
  color: #8e95a5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  cursor: pointer;
}

.yc-master-day-btn:hover {
  color: #ffffff;
}

.yc-master-day-btn.active {
  background-color: var(--yc-yellow);
  color: #000000;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(245, 179, 0, 0.3);
}

/* Timeline grid */
.timeline-hour-line {
  position: relative;
  min-height: 52px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 6px;
  padding-bottom: 6px;
}

.timeline-hour-label {
  position: absolute;
  top: -10px;
  left: 0;
  font-size: 12px;
  color: var(--yc-text-muted);
  width: 45px;
}

/* Master appointment block (YClients green card) */
.yc-appointment-block {
  background-color: #3bb273;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  margin-bottom: 6px;
}

.yc-appointment-header {
  background-color: #319e64;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
}

.yc-appointment-body {
  padding: 6px 10px;
  background-color: #3bb273;
  color: #ffffff;
  font-size: 12px;
}

/* Pending appointment block (Amber) */
.yc-pending-block {
  background-color: #d97706;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  margin-bottom: 6px;
}

.yc-pending-header {
  background-color: #b45309;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
}

.yc-pending-body {
  padding: 6px 10px;
  background-color: #d97706;
  color: #ffffff;
  font-size: 12px;
}

/* Slot button pill */
.yc-slot-pill {
  background-color: #212329;
  border-radius: 12px;
  padding: 12px 0;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.12s ease;
  border: 1px solid transparent;
}

.yc-slot-pill:hover {
  background-color: #292c34;
}

.yc-slot-pill:active {
  transform: scale(0.96);
}

.yc-slot-pill.active {
  background-color: var(--yc-blue);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
}

/* Safe bottom container */
.safe-bottom-bar {
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

/* Make time and date inputs open picker when clicked anywhere */
.yc-time-box {
  position: relative;
  cursor: pointer;
}

.yc-time-box input[type="time"],
.yc-time-box input[type="date"],
.yc-time-box input[type="datetime-local"] {
  cursor: pointer;
  width: 100%;
  position: relative;
}

.yc-time-box input[type="time"]::-webkit-calendar-picker-indicator,
.yc-time-box input[type="date"]::-webkit-calendar-picker-indicator,
.yc-time-box input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

