/* ═══════ MOZinONE Reservas — estilos frontend ═══════ */

/* ── Botão flutuante adaptável (canto inferior direito) ── */
.mozres-fab {
  position: fixed !important;
  bottom: 24px; right: 24px;
  z-index: 99980;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #1A112C;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 22px;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(26,17,44,0.35);
  transition: all .25s;
}
.mozres-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(26,17,44,0.45); background: #E4385C; }

/* ── Overlay do modal ── */
.mozres-overlay {
  display: none;
  position: fixed !important;
  inset: 0;
  z-index: 99991;
  background: rgba(26,17,44,0.6);
  backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.mozres-overlay.open { display: flex; }

.mozres-widget {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  width: 100%;
  max-width: 480px;
  margin: auto;
}
.mozres-widget * { box-sizing: border-box; }

.mozres-card {
  position: relative;
  background: #fff;
  border: none;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.mozres-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border: none; border-radius: 50%;
  background: #F4F4F6; color: #666;
  font-size: 14px; cursor: pointer;
  transition: all .2s;
}
.mozres-close:hover { background: #E4385C; color: #fff; }
.mozres-biz { font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: #E4385C; margin-bottom: 3px; }
.mozres-head { display: flex; align-items: center; gap: 15px; margin-bottom: 24px; padding-right: 30px; }
.mozres-head-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  background: linear-gradient(135deg, #E4385C, #ff6b88);
  color: #fff;
  border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(228,56,92,0.28);
}
.mozres-head-icon svg { width: 26px; height: 26px; }
.mozres-title { font-size: 21px; font-weight: 900; color: #1A112C; letter-spacing: -0.4px; margin: 0; line-height: 1.15; }
.mozres-sub   { font-size: 13px; color: #999; margin: 3px 0 0; line-height: 1.4; }
.mozres-fab-icon { display: inline-flex; }
.mozres-fab-icon svg { width: 17px; height: 17px; }

.mozres-deposit-note {
  background: rgba(250,199,117,0.14); border: 1px solid rgba(196,126,0,0.2);
  border-radius: 10px; padding: 10px 14px; font-size: 13px; color: #8a5a00; margin-bottom: 16px;
}

.mozres-row { margin-bottom: 14px; }
.mozres-row label { display: block; font-size: 13px; font-weight: 600; color: #333; margin-bottom: 6px; }
.mozres-row input, .mozres-row select, .mozres-row textarea {
  width: 100%; padding: 11px 14px;
  border: 1px solid #E6E6E6; border-radius: 10px;
  font-size: 14px; font-family: inherit; color: #1A112C; background: #fff;
  transition: border-color .2s;
}
.mozres-row input:focus, .mozres-row select:focus, .mozres-row textarea:focus {
  outline: none; border-color: #E4385C;
}
.mozres-row select:disabled { background: #F8F8F7; color: #999; cursor: not-allowed; }
.mozres-slots-hint { font-size: 12px; color: #E4385C; margin: 6px 0 0; }

.mozres-submit {
  width: 100%; padding: 14px; margin-top: 8px;
  background: #E4385C; color: #fff; border: none; border-radius: 12px;
  font-size: 15px; font-weight: 800; font-family: inherit; cursor: pointer;
  transition: all .25s;
}
.mozres-submit:hover:not(:disabled) { background: #c62a48; transform: translateY(-1px); }
.mozres-submit:disabled { opacity: .6; cursor: not-allowed; }

.mozres-msg { margin-top: 16px; font-size: 14px; line-height: 1.6; text-align: center; }
.mozres-msg.mozres-ok  { color: #1D9E75; font-weight: 600; padding: 16px; background: rgba(29,158,117,0.08); border-radius: 12px; }
.mozres-msg.mozres-err { color: #E4385C; font-weight: 600; }
.mozres-ref { display: inline-block; margin-top: 6px; font-size: 12px; color: #546E5A; letter-spacing: .5px; }
.mozres-wa-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  background: #25D366; color: #fff; text-decoration: none;
  padding: 12px 22px; border-radius: 12px; font-weight: 800; font-size: 14px;
  transition: all .2s;
}
.mozres-wa-btn:hover { background: #1da851; transform: translateY(-1px); color: #fff; }
.mozres-msg.mozres-pay { color: #1A112C; padding: 18px; background: rgba(55,138,221,0.08); border-radius: 12px; line-height: 1.6; }
.mozres-spinner {
  width: 28px; height: 28px; margin: 14px auto 0;
  border: 3px solid rgba(55,138,221,0.25); border-top-color: #378ADD;
  border-radius: 50%; animation: mozresSpin 0.8s linear infinite;
}
@keyframes mozresSpin { to { transform: rotate(360deg); } }

/* ═══════ Painel da empresa ═══════ */
.mozres-panel {
  font-family: 'Plus Jakarta Sans', sans-serif;
  max-width: 860px;
  margin: 0 auto;
  padding: 8px 16px 40px;
}
.mozres-panel-head h2 { font-size: 28px; font-weight: 900; color: #1A112C; letter-spacing: -0.8px; margin: 0; }
.mozres-panel-head p { font-size: 14px; color: #999; margin: 4px 0 20px; }

/* Estatísticas rápidas */
.mozres-panel-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}
.mozres-stat {
  background: #fff;
  border: 2px solid #ECECEC;
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(26,17,44,0.04);
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
}
.mozres-stat:hover { border-color: #d5d5d5; transform: translateY(-1px); }
.mozres-stat-active { border-color: #1A112C !important; box-shadow: 0 6px 18px rgba(26,17,44,0.12); }
.mozres-stat-num { display: block; font-size: 30px; font-weight: 900; color: #1A112C; line-height: 1; }
.mozres-stat-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #999; margin-top: 8px; }

/* Pesquisa */
.mozres-search {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #E6E6E6;
  border-radius: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  color: #1A112C;
  margin-bottom: 16px;
  transition: border-color .2s;
}
.mozres-search:focus { outline: none; border-color: #E4385C; box-shadow: 0 0 0 4px rgba(228,56,92,0.08); }
.mozres-empty-filter {
  text-align: center; color: #999; font-size: 14px;
  padding: 40px 20px; background: #fff; border: 1px dashed #DDD; border-radius: 14px;
}

.mozres-panel-flash { background: rgba(29,158,117,0.1); color: #1D9E75; font-weight: 700; padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; }
.mozres-panel-login, .mozres-panel-empty {
  background: #fff; border: 1px dashed #DDD; border-radius: 16px; padding: 48px 32px;
  text-align: center; color: #999; font-size: 14px; font-family: 'Plus Jakarta Sans', sans-serif;
}
/* lista com scroll próprio — a página não cresce sem controlo, mesmo com 1000 reservas */
.mozres-panel-list {
  display: flex; flex-direction: column; gap: 14px;
  max-height: 65vh;
  overflow-y: auto;
  padding: 4px 6px 4px 2px;
  -webkit-overflow-scrolling: touch;
}
.mozres-panel-list::-webkit-scrollbar { width: 8px; }
.mozres-panel-list::-webkit-scrollbar-thumb { background: #d8d8d8; border-radius: 8px; }
.mozres-panel-list::-webkit-scrollbar-track { background: transparent; }

/* Cartão de reserva */
.mozres-booking {
  background: #fff;
  border: 1px solid #ECECEC;
  border-radius: 16px;
  padding: 22px 24px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  box-shadow: 0 2px 12px rgba(26,17,44,0.04);
  border-left: 4px solid #F9A825;   /* pendente por defeito */
  transition: box-shadow .2s;
}
.mozres-booking:hover { box-shadow: 0 8px 24px rgba(26,17,44,0.08); }
.mozres-booking:has(.mozres-st-confirmed) { border-left-color: #1D9E75; }
.mozres-booking:has(.mozres-st-cancelled) { border-left-color: #E4385C; }
.mozres-booking:has(.mozres-st-completed) { border-left-color: #546E5A; }

.mozres-booking-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.mozres-booking-ref {
  font-size: 11px; font-weight: 800; color: #888; letter-spacing: 1px;
  background: #F4F4F6; padding: 3px 10px; border-radius: 6px;
}
.mozres-booking-status { font-size: 10.5px; font-weight: 800; padding: 4px 12px; border-radius: 20px; text-transform: uppercase; letter-spacing: .8px; }
.mozres-booking-biz { font-size: 17px; font-weight: 800; color: #1A112C; letter-spacing: -0.3px; }
.mozres-booking-when { font-size: 14px; font-weight: 700; color: #1A112C; margin-top: 6px; }
.mozres-booking-cust, .mozres-booking-svc, .mozres-booking-notes {
  font-size: 13px; color: #666; margin-top: 4px;
}
.mozres-booking-cust a { color: #1D9E75; text-decoration: none; font-weight: 700; }
.mozres-booking-cust a:hover { text-decoration: underline; }

/* Botões de ação — sólidos, texto branco, sempre legíveis */
.mozres-booking-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; justify-content: center; min-width: 130px; }
.mozres-booking-actions form { margin: 0 !important; }
.mozres-booking-actions button {
  width: 100%;
  padding: 10px 18px !important;
  background: var(--mozres-btn, #999) !important;
  border: none !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  color: #fff !important;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.mozres-booking-actions button:hover { transform: translateY(-1px); filter: brightness(1.08); }

@media (max-width: 600px) {
  .mozres-card { padding: 20px; }
  .mozres-booking { flex-direction: column; }
  .mozres-booking-actions { flex-direction: row; flex-wrap: wrap; }
  .mozres-booking-actions button { width: auto; }
}
