/* =====================================================
   WashHub — BubblePastel Design System
   CSS: custom animations + overrides for Tailwind
   ===================================================== */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Be+Vietnam+Pro:wght@300;400;500;600&display=swap');

/* ── Material Symbols ── */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.icon-fill { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

/* ── Base ── */
* { box-sizing: border-box; }
body {
  font-family: 'Be Vietnam Pro', sans-serif;
  background: #f5f6f7;
  color: #2c2f30;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
h1,h2,h3,h4,h5,h6 { font-family: 'Plus Jakarta Sans', sans-serif; }

/* ── Scrollbar hide ── */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ── Glass ── */
.glass {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ── Animations ── */
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .6; transform: scale(1.4); }
}
.pulse-dot { animation: pulse-dot 1.5s infinite; }

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.spin-slow { animation: spin-slow 3s linear infinite; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fade-up .4s ease both; }

/* ── Bottom Nav Safe Area ── */
.pb-nav { padding-bottom: 5.5rem; }

/* ── Top Bar ── */
.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  z-index: 50;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.4);
}

/* ── Bottom Nav ── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.4);
  padding: 8px 0 max(12px, env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.06);
}

/* ── Store Card ── */
.store-card {
  background: #eff1f2;
  border-radius: 20px;
  overflow: hidden;
  transition: background .25s, transform .2s, box-shadow .2s;
  cursor: pointer;
}
.store-card:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(32,98,123,0.12);
}
.store-card .card-img {
  height: 192px;
  overflow: hidden;
  background: linear-gradient(135deg,#a3e0fc,#abefe7);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.store-card .card-img img {
  width:100%; height:100%; object-fit:cover;
  transition: transform .5s;
}
.store-card:hover .card-img img { transform: scale(1.05); }

/* ── Machine Card (store detail) ── */
.machine-tile {
  background: white;
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  border: 1.5px solid #e6e8ea;
  transition: border-color .2s, box-shadow .2s;
}
.machine-tile.available { border-color: #abefe7; }
.machine-tile.running   { border-color: #a3e0fc; }
.machine-tile.reserved  { border-color: #ffd1dc; }
.machine-tile.offline,.machine-tile.maintenance { border-color: #dadddf; }

/* ── Service Card ── */
.service-card {
  background: #eff1f2;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background .25s;
}
.service-card:hover { background: #a3e0fc22; }

/* ── Status Pill ── */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.pill-open     { background: #d1fae5; color: #059669; }
.pill-busy     { background: #fee2e2; color: #dc2626; }
.pill-closed   { background: #e6e8ea; color: #595c5d; }
.pill-avail    { background: #abefe7; color: #0c5c56; }
.pill-running  { background: #a3e0fc; color: #005169; }
.pill-reserved { background: #ffd1dc; color: #66454e; }

/* ── Tag Chip ── */
.tag-chip {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.chip-primary  { background: #a3e0fc; color: #005169; }
.chip-secondary{ background: #abefe7; color: #004843; }
.chip-tertiary { background: #ffd1dc; color: #52333c; }

/* ── FAB ── */
.fab {
  position: fixed;
  bottom: 6rem;
  right: 1.25rem;
  width: 56px; height: 56px;
  border-radius: 999px;
  background: #20627b;
  color: #e4f5ff;
  border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(32,98,123,0.35);
  cursor: pointer;
  z-index: 40;
  transition: transform .15s, box-shadow .15s;
}
.fab:hover { transform: scale(1.06); }
.fab:active { transform: scale(0.95); }

/* ── Sidebar (Dashboard) ── */
.dash-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: white;
  border-right: 1px solid #e6e8ea;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
}
.dash-sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #595c5d;
  text-decoration: none;
  transition: background .15s, color .15s;
  margin: 1px 8px;
}
.dash-sidebar-link:hover { background: #eff1f2; color: #20627b; }
.dash-sidebar-link.active { background: #a3e0fc; color: #005169; font-weight: 600; }
.dash-main { flex: 1; min-height: 100vh; overflow-y: auto; background: #f5f6f7; }

/* ── Input Style ── */
.input-bubble {
  width: 100%;
  padding: 14px 20px;
  background: #eff1f2;
  border: none;
  border-radius: 16px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 0.9rem;
  color: #2c2f30;
  outline: none;
  transition: box-shadow .2s;
}
.input-bubble:focus {
  box-shadow: 0 0 0 2px #a3e0fc;
}
.input-bubble::placeholder { color: #abadae; }

/* ── Btn Primary ── */
.btn-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: #20627b;
  color: #e4f5ff;
  border: none;
  border-radius: 999px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
  text-decoration: none;
}
.btn-bubble:hover { opacity: .9; color: #e4f5ff; }
.btn-bubble:active { transform: scale(.97); }
.btn-bubble-outline {
  background: transparent;
  color: #20627b;
  border: 2px solid #20627b;
}
.btn-bubble-outline:hover { background: #a3e0fc22; color: #20627b; }

/* ── Bento Featured ── */
.bento-main {
  border-radius: 20px;
  overflow: hidden;
  background: #a3e0fc;
  min-height: 280px;
  position: relative;
}
.bento-side {
  border-radius: 20px;
  overflow: hidden;
  background: #abefe7;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

/* ── Auth pages ── */
.auth-wrap {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: linear-gradient(135deg, #f0faff 0%, #e8faf8 100%);
}
.auth-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.10);
  width: 100%;
  max-width: 960px;
  min-height: 560px;
  display: flex;
}
.auth-left {
  width: 44%;
  background: linear-gradient(145deg, #20627b, #1c6660 60%, #0891B2);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
}
.auth-right {
  flex: 1;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  max-height: 100dvh;
}
@media (max-width: 700px) {
  .auth-left  { display: none !important; }
  .auth-card  { max-width: 420px; min-height: unset; box-shadow: none; background: transparent; }
  .auth-right { padding: 24px 0; }
  .auth-wrap  { background: linear-gradient(135deg, #f0faff 0%, #e8faf8 100%); }
}

/* ── Promo banner ── */
.promo-strip {
  background: linear-gradient(135deg, #20627b, #1c6660);
  color: white;
  border-radius: 16px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── Date picker pill ── */
.date-pill {
  flex-shrink: 0;
  padding: 10px 20px;
  border-radius: 999px;
  text-align: center;
  cursor: pointer;
  border: 1.5px solid #e6e8ea;
  background: white;
  transition: all .15s;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.date-pill.active {
  background: #20627b;
  border-color: #20627b;
  color: white;
}
.date-pill:hover:not(.active) { border-color: #20627b; }

/* ── Time slot ── */
.time-slot {
  padding: 10px;
  border-radius: 999px;
  text-align: center;
  cursor: pointer;
  border: 1.5px solid #e6e8ea;
  background: white;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all .15s;
}
.time-slot.active { background: #a3e0fc; border-color: #a3e0fc; color: #005169; }
.time-slot:hover:not(.active) { border-color: #20627b; }

/* ── Order tracking steps ── */
.track-step { display: flex; gap: 12px; align-items: flex-start; }
.track-step-dot {
  width: 32px; height: 32px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}
.track-step-dot.done { background: #abefe7; color: #0c5c56; }
.track-step-dot.active { background: #20627b; color: white; }
.track-step-dot.pending { background: #e6e8ea; color: #abadae; }

/* ── Alert ── */
.alert-bubble {
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
}
.alert-success { background: #d1fae5; color: #059669; }
.alert-error   { background: #fee2e2; color: #dc2626; }
.alert-info    { background: #a3e0fc44; color: #005169; }

/* ── Responsive Dashboard ── */
@media (max-width: 1024px) {
  .dash-sidebar {
    position: fixed;
    top: 0; left: -260px;
    z-index: 200;
    transition: left .25s;
    height: 100%;
    box-shadow: 4px 0 24px rgba(0,0,0,.1);
  }
  .dash-sidebar.open { left: 0; }
  .dash-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.3);
    z-index: 199;
    backdrop-filter: blur(2px);
  }
  .dash-overlay.open { display: block; }
}

/* ── Table ── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  background: #eff1f2;
  padding: 10px 14px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #595c5d;
}
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e6e8ea;
  font-size: 0.875rem;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #f5f6f7; }

/* ── Stat Card ── */
.stat-card {
  background: white;
  border-radius: 20px;
  padding: 20px 24px;
}
.stat-card .stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}
.stat-card .stat-label {
  font-size: 0.78rem;
  color: #595c5d;
  margin-top: 4px;
}

/* ── Map placeholder ── */
.map-placeholder {
  width: 100%;
  height: 140px;
  background: linear-gradient(135deg, #a3e0fc44, #abefe744);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
