/* ============================================================
   BookWellNow — Clean Dashboard Hero Mockup CSS
   No sidebar. Data-rich cards: stats, chart, services, day preview
   ============================================================ */

/* ---- Outer Frame ----------------------------------------- */
.bwn-dash {
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow:
    0 24px 64px rgba(87, 0, 180, 0.16),
    0 4px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 10px;
  width: 100%;
  max-width: 580px;
  margin-left: auto;
  border: 1px solid #E8E4F3;
  transform: perspective(1200px) rotateY(-4deg) rotateX(1.5deg);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.hero-mockup-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-mockup-wrapper:hover .bwn-dash {
  transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
}

/* ---- Top Bar --------------------------------------------- */
.bwn-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  height: 32px;
  background: #FFFFFF;
  border-bottom: 1px solid #E8E4F3;
  flex-shrink: 0;
}

.bwn-topbar-brand {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.bwn-topbar-brand span {
  font-size: 8px;
  font-weight: 700;
  color: #1A1025;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.bwn-topbar-brand strong {
  color: #5700B4;
}

.bwn-topbar-nav {
  display: flex;
  gap: 1px;
  flex: 1;
  margin-left: 8px;
}

.bwn-topbar-link {
  font-size: 7px;
  font-weight: 500;
  color: #8B82A7;
  padding: 3px 7px;
  border-radius: 5px;
  cursor: default;
  white-space: nowrap;
}

.bwn-topbar-active {
  background: #F3F0FF;
  color: #5700B4;
  font-weight: 700;
}

.bwn-topbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.bwn-month-sel {
  font-size: 7px;
  color: #4B4564;
  background: #F8F7FF;
  border: 1px solid #E8E4F3;
  border-radius: 5px;
  padding: 2px 7px;
  white-space: nowrap;
}

.bwn-avatar-sm {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5700B4, #7C3AED);
  color: #FFFFFF;
  font-size: 7px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Content Area ---------------------------------------- */
.bwn-content {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #F8F7FF;
  max-height: 430px;
  overflow: hidden;
}

/* ---- Stats Row 1 ----------------------------------------- */
.bwn-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.bwn-scard {
  background: #FFFFFF;
  border: 1px solid #E8E4F3;
  border-radius: 8px;
  padding: 7px 8px 6px;
  position: relative;
  overflow: hidden;
}

.bwn-scard-highlight {
  border-color: rgba(87, 0, 180, 0.2);
  box-shadow: 0 2px 8px rgba(87, 0, 180, 0.08);
}

.bwn-scard-label {
  font-size: 6px;
  font-weight: 500;
  color: #8B82A7;
  line-height: 1.3;
  margin-bottom: 3px;
}

.bwn-scard-val {
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.bwn-scard-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 0 0 8px 8px;
}

/* ---- Stats Row 2 ----------------------------------------- */
.bwn-stats-grid-2 {
  gap: 6px;
}

.bwn-scard2 {
  background: #FFFFFF;
  border: 1px solid #E8E4F3;
  border-radius: 8px;
  padding: 6px 8px;
}

.bwn-scard2-label {
  font-size: 5.5px;
  font-weight: 500;
  color: #8B82A7;
  margin-bottom: 2px;
  line-height: 1.3;
}

.bwn-scard2-val {
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

/* ---- Middle Row: Chart + Services ------------------------- */
.bwn-mid-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 8px;
}

/* ---- Generic Panel --------------------------------------- */
.bwn-panel {
  background: #FFFFFF;
  border: 1px solid #E8E4F3;
  border-radius: 10px;
  padding: 8px 10px;
}

.bwn-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
}

.bwn-panel-title {
  font-size: 8px;
  font-weight: 700;
  color: #1A1025;
}

/* ---- Revenue Chart --------------------------------------- */
.bwn-chart-panel {
  padding-bottom: 6px;
}

.bwn-legend {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 6px;
  color: #8B82A7;
}

.bwn-ldot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.bwn-chart-body {
  display: flex;
  gap: 4px;
  align-items: stretch;
}

.bwn-y-labs {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 5px;
  color: #8B82A7;
  width: 20px;
  flex-shrink: 0;
  text-align: right;
  padding-bottom: 2px;
}

.bwn-svg {
  flex: 1;
  height: 68px;
  width: 100%;
  display: block;
}

.bwn-x-labs {
  display: flex;
  justify-content: space-between;
  font-size: 5px;
  color: #8B82A7;
  padding: 2px 0 0 24px;
}

/* ---- Most Booked Services -------------------------------- */
.bwn-svc-panel {
  display: flex;
  flex-direction: column;
}

.bwn-svc-tbl {
  border: 1px solid #F0EEF8;
  border-radius: 6px;
  overflow: hidden;
  flex: 1;
}

.bwn-svc-head {
  display: flex;
  justify-content: space-between;
  padding: 4px 7px;
  background: #F8F7FF;
  border-bottom: 1px solid #F0EEF8;
  font-size: 5.5px;
  font-weight: 600;
  color: #8B82A7;
}

.bwn-svc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 7px;
  border-bottom: 1px solid #F8F7FF;
  font-size: 7px;
  color: #4B4564;
}

.bwn-svc-row:last-child {
  border-bottom: none;
}

.bwn-sbadge {
  font-size: 5.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ---- Day Preview ----------------------------------------- */
.bwn-dp-panel {
  padding-bottom: 8px;
}

.bwn-dp-tabs {
  display: flex;
  gap: 0;
  border: 1px solid #E8E4F3;
  border-radius: 6px;
  overflow: hidden;
}

.bwn-dp-tab {
  font-size: 6px;
  font-weight: 500;
  padding: 3px 8px;
  color: #8B82A7;
  cursor: default;
}

.bwn-dp-active {
  background: #5700B4;
  color: #FFFFFF;
  font-weight: 700;
}

.bwn-dp-filters {
  display: flex;
  gap: 5px;
  margin-bottom: 7px;
  flex-wrap: wrap;
}

.bwn-dp-fil {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 6.5px;
  color: #4B4564;
  background: #F8F7FF;
  border: 1px solid #E8E4F3;
  border-radius: 5px;
  padding: 2px 6px;
}

/* Timeline */
.bwn-dp-timeline {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bwn-dp-labels {
  display: flex;
  justify-content: space-between;
  font-size: 6px;
  color: #8B82A7;
}

.bwn-dp-track {
  position: relative;
  height: 24px;
}

.bwn-dp-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1.5px;
  background: #E8E4F3;
  border-radius: 2px;
  transform: translateY(-50%);
}

.bwn-dp-pin {
  position: absolute;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
}

.bwn-dp-badge {
  font-size: 5.5px;
  font-weight: 700;
  background: #EF4444;
  color: #FFFFFF;
  padding: 1.5px 5px;
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(239, 68, 68, 0.4);
}

.bwn-dp-stem {
  width: 1.5px;
  height: 7px;
  background: #EF4444;
}

.bwn-dp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #EF4444;
  border: 1.5px solid #FFFFFF;
  box-shadow: 0 0 0 1.5px #EF4444;
}

.bwn-dp-user {
  display: flex;
  align-items: center;
  padding-top: 3px;
}

.bwn-dp-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(87, 0, 180, 0.08);
  border: 1.5px solid rgba(87, 0, 180, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Responsive ------------------------------------------ */
@media (max-width: 1200px) {
  .bwn-dash {
    max-width: 100%;
    transform: none;
  }
  .hero-mockup-wrapper:hover .bwn-dash {
    transform: none;
  }
}

@media (max-width: 1024px) {
  .bwn-topbar-nav { display: none; }
  .bwn-content { max-height: none; }
}

@media (max-width: 768px) {
  .bwn-mid-row { grid-template-columns: 1fr; }
  .bwn-stats-grid, .bwn-stats-grid-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .bwn-dash {
    transform: scale(0.85);
    transform-origin: center top;
    margin-bottom: -15%;
  }
  .hero-mockup-wrapper:hover .bwn-dash {
    transform: scale(0.85);
  }
}
