/* Hospio — stiluri custom mobile-first */
:root {
  --brand: #0F766E;
  --brand-dark: #115E59;
  --accent: #F59E0B;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html { -webkit-tap-highlight-color: transparent; }
body { overscroll-behavior-y: none; }

.pi { width: 1.4em; height: 1.4em; display: inline-block; vertical-align: -0.28em; }

/* Bottom navigation (mobile) */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid #e7e5e4;
  padding-bottom: var(--safe-bottom);
  display: flex; justify-content: space-around;
}
.bottom-nav button {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 0 6px; font-size: 11px; font-weight: 700; color: #78716c;
  transition: color .15s;
}
.bottom-nav button.active { color: var(--brand); }
.bottom-nav button.active .pi { color: var(--brand); }
.bottom-nav .pi { width: 24px; height: 24px; }

/* FAB */
.fab {
  position: fixed; right: 16px; bottom: calc(76px + var(--safe-bottom)); z-index: 41;
  width: 56px; height: 56px; border-radius: 9999px;
  background: var(--accent); color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(245,158,11,.45);
  transition: transform .15s;
}
.fab:active { transform: scale(.92); }
.fab .pi { width: 26px; height: 26px; }

/* Tape chart calendar */
.tape-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tape-grid { display: grid; min-width: max-content; }
.tape-cell {
  border-right: 1px solid #f1f0ee; border-bottom: 1px solid #f1f0ee;
  min-height: 46px; position: relative;
}
.tape-cell.today-col { background: #FFFBEB; }
.tape-cell.weekend { background: #FAFAF8; }
.tape-cell.weekend.today-col { background: #FFFBEB; }
.room-label {
  position: sticky; left: 0; z-index: 10; background: white;
  border-right: 2px solid #e7e5e4; border-bottom: 1px solid #f1f0ee;
  display: flex; flex-direction: column; justify-content: center;
  padding: 4px 8px; min-height: 46px;
}
.day-head {
  position: sticky; top: 0; z-index: 5; background: white;
  text-align: center; font-size: 10px; font-weight: 800;
  border-bottom: 2px solid #e7e5e4; border-right: 1px solid #f1f0ee;
  padding: 6px 0 4px;
}
.day-head.today-col { background: #FEF3C7; color: #92400E; border-radius: 0; }

.booking-bar {
  position: absolute; top: 5px; bottom: 5px; z-index: 8;
  border-radius: 10px; padding: 3px 8px; overflow: hidden;
  font-size: 11px; font-weight: 800; color: white;
  white-space: nowrap; text-overflow: ellipsis;
  display: flex; align-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  cursor: pointer; transition: filter .1s;
}
.booking-bar:active { filter: brightness(.9); }
.bk-confirmata { background: var(--brand); }
.bk-optiune { background: repeating-linear-gradient(45deg, #d6d3d1, #d6d3d1 6px, #c7c2bd 6px, #c7c2bd 12px); color: #44403c; }
.bk-checkedin { background: var(--accent); }
.bk-checkedout { background: #a8a29e; }

/* Modal sheet mobile */
.sheet-backdrop {
  position: fixed; inset: 0; background: rgba(28,25,23,.5); z-index: 50;
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn .18s ease;
}
.sheet {
  background: white; width: 100%; max-width: 560px;
  border-radius: 24px 24px 0 0; max-height: 92vh; overflow-y: auto;
  padding-bottom: calc(16px + var(--safe-bottom));
  animation: slideUp .22s cubic-bezier(.3,1.1,.4,1);
}
@media (min-width: 640px) {
  .sheet-backdrop { align-items: center; padding: 20px; }
  .sheet { border-radius: 24px; }
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes slideUp { from { transform: translateY(60px); opacity: .6 } to { transform: translateY(0); opacity: 1 } }

/* Inputs mari, prietenoase cu degetul */
.inp {
  width: 100%; border: 1.5px solid #e7e5e4; border-radius: 14px;
  padding: 12px 14px; font-size: 16px; font-weight: 600;
  background: #FAFAF9; outline: none; transition: border-color .15s;
}
.inp:focus { border-color: var(--brand); background: white; }
label.lbl { display: block; font-size: 12px; font-weight: 800; color: #57534e; margin: 0 0 4px 2px; text-transform: uppercase; letter-spacing: .03em; }

.btn-primary {
  background: var(--brand); color: white; font-weight: 800;
  border-radius: 14px; padding: 13px 20px; font-size: 16px;
  width: 100%; transition: background .15s, transform .1s;
}
.btn-primary:active { background: var(--brand-dark); transform: scale(.98); }
.btn-accent { background: var(--accent); }
.btn-accent:active { background: #D97706; }

.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 12px; border-radius: 9999px; font-size: 13px; font-weight: 700;
  border: 1.5px solid #e7e5e4; background: white; color: #57534e;
  transition: all .12s;
}
.chip.sel { background: var(--brand); border-color: var(--brand); color: white; }

.card { background: white; border-radius: 18px; border: 1px solid #f0efed; box-shadow: 0 1px 3px rgba(0,0,0,.04); }

/* Scrollbar discret desktop */
.tape-wrap::-webkit-scrollbar { height: 8px; }
.tape-wrap::-webkit-scrollbar-thumb { background: #d6d3d1; border-radius: 4px; }

.status-dot { width: 8px; height: 8px; border-radius: 9999px; display: inline-block; }

/* Notificări */
.notif-badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 17px; height: 17px; padding: 0 4px;
  background: #F59E0B; color: white; border-radius: 999px;
  font-size: 10px; font-weight: 900; line-height: 17px; text-align: center;
  box-shadow: 0 0 0 2px white;
}
.notif-item { border-left: 3px solid transparent; }
.notif-item.unread { border-left-color: #F59E0B; background: #fffbeb; }

/* Buton WhatsApp */
.btn-wa {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: #ecfdf5; color: #047857; border: 1.5px solid #a7f3d0;
  border-radius: 14px; padding: 10px 8px; font-weight: 800; font-size: 12.5px;
  transition: transform .1s;
}
.btn-wa:active { transform: scale(.97); }
