/* ============ ZAPISANO CLIENT PWA APP STYLES ============ */

:root {
  --paper: #F4F6EC;
  --sage: #E9EDDE;
  --ink: #16261D;
  --ink2: #46584C;
  --green: #1F6B4E;
  --green-d: #16513B;
  --lime: #CDF463;
  --lime-d: #B4E34A;
  --tang: #FF7A45;
  --rose: #FFD3DC;
  --sky: #C7E3FF;
  --sun: #FFE08A;
  --mint: #CDEED7;
  --white: #FFFDF7;
  --line: rgba(22, 38, 29, .14);
  --sh: 5px 5px 0 var(--ink);
  --sh-sm: 3px 3px 0 var(--ink);
  --r: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: 'Golos Text', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(22, 38, 29, .06) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
}

h1, h2, h3, h4, .disp {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  line-height: 1.1;
}

button, input, select {
  font-family: inherit;
}

/* APP WRAPPER */
.client-app {
  max-width: 680px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-left: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
  position: relative;
  z-index: 1;
  box-shadow: 0 0 40px rgba(22, 38, 29, .08);
}

@media (max-width: 680px) {
  .client-app {
    border-left: none;
    border-right: none;
  }
}

/* APP HEADER */
.client-header {
  background: var(--white);
  border-bottom: 2px solid var(--ink);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 20;
}

.client-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
}

.client-logo-mk {
  width: 32px;
  height: 32px;
  background: var(--lime);
  border: 2px solid var(--ink);
  border-radius: 9px;
  display: grid;
  place-items: center;
  box-shadow: 2px 2px 0 var(--ink);
  font-weight: 700;
}

.client-brand b {
  font-family: 'Unbounded', sans-serif;
  font-size: 16px;
}

.client-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* PWA INSTALL BANNER */
.pwa-banner {
  background: var(--lime);
  border-bottom: 2px solid var(--ink);
  padding: 10px 16px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
}

.pwa-banner.show {
  display: flex;
}

.notif-banner {
  background: var(--sky);
  border-bottom: 2px solid var(--ink);
  padding: 10px 16px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
}

.notif-banner.show {
  display: flex;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font: 600 13px 'Golos Text', sans-serif;
  padding: 8px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--sh-sm);
  transition: transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn-lime {
  background: var(--lime);
}

.btn-ink {
  background: var(--ink);
  color: var(--lime);
}

.btn-ghost {
  background: transparent;
}

.btn-sm {
  padding: 6px 11px;
  font-size: 11.5px;
  box-shadow: 2px 2px 0 var(--ink);
}

/* MAIN CONTENT */
.client-content {
  flex: 1;
  padding: 18px 16px 80px;
}

/* SEARCH & CATEGORIES */
.search-input-wrap {
  position: relative;
  margin-bottom: 12px;
}

.search-input-wrap input {
  width: 100%;
  padding: 12px 36px 12px 38px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  font: 500 14px 'Golos Text', sans-serif;
  background: var(--white);
  box-shadow: var(--sh-sm);
}

.search-ic {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  opacity: .7;
}

.search-clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  display: none;
}

.cat-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 16px;
  -webkit-overflow-scrolling: touch;
}

.cat-pill {
  flex: 0 0 auto;
  padding: 6px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform .15s ease, background .15s ease;
}

.cat-pill.active {
  background: var(--lime);
  box-shadow: none;
  transform: translate(1px, 1px);
}

/* BUSINESS CARDS IN CATALOG */
.biz-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.biz-card {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--r);
  box-shadow: var(--sh);
  padding: 14px;
  display: flex;
  gap: 14px;
  cursor: pointer;
  transition: transform .15s ease;
}

.biz-card:hover {
  transform: translate(-1.5px, -1.5px);
}

.biz-card img {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
  border: 1.5px solid var(--ink);
  flex-shrink: 0;
}

.biz-card-info {
  flex: 1;
  min-width: 0;
}

.biz-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}

.biz-card-top h4 {
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.biz-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--lime);
  white-space: nowrap;
}

.biz-card-meta {
  font-size: 12px;
  color: var(--ink2);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* EMPTY STATE */
.empty-box {
  background: var(--white);
  border: 2px dashed var(--ink);
  border-radius: 18px;
  padding: 36px 18px;
  text-align: center;
  box-shadow: var(--sh-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.empty-box .ic {
  font-size: 42px;
}

.empty-box h3 {
  font-size: 17px;
}

.empty-box p {
  font-size: 13px;
  color: var(--ink2);
  max-width: 360px;
}

/* BOOKING FLOW MODAL / SCREEN */
.booking-view {
  display: none;
}

.booking-view.show {
  display: block;
}

.booking-back-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.step-indicator {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.step-item {
  flex: 1;
  height: 6px;
  background: var(--sage);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
}

.step-item.active {
  background: var(--lime);
}

.step-panel {
  display: none;
}

.step-panel.active {
  display: block;
  animation: fadeIn .18s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* SERVICE SELECTION */
.srv-select-item {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform .15s ease;
}

.srv-select-item:hover {
  transform: translate(-1px, -1px);
}

.srv-select-item.selected {
  background: var(--lime);
}

/* DATES & SLOTS */
.date-pill-scroller {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 16px;
  -webkit-overflow-scrolling: touch;
}

.client-date-pill {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 12px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
  min-width: 60px;
}

.client-date-pill.selected {
  background: var(--lime);
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

@media (max-width: 480px) {
  .slots-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.slot-btn {
  padding: 9px 4px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--white);
  font: 600 13px 'Golos Text', sans-serif;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
  text-align: center;
}

.slot-btn:disabled {
  opacity: .4;
  background: #e8e8e8;
  cursor: not-allowed;
  box-shadow: none;
  text-decoration: line-through;
}

.slot-btn.selected {
  background: var(--lime);
  transform: translate(1px, 1px);
  box-shadow: none;
}

/* FORM INPUTS */
.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 5px;
}

.field input {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  font: 500 14px 'Golos Text', sans-serif;
  background: var(--white);
  box-shadow: 2px 2px 0 var(--ink);
}

/* SUCCESS PANEL */
.success-card {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 20px;
  padding: 28px 18px;
  text-align: center;
  box-shadow: var(--sh);
}

.success-ck {
  width: 70px;
  height: 70px;
  background: var(--lime);
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  font-size: 32px;
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--ink);
}

/* BOTTOM NAVIGATION BAR */
.client-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 680px;
  background: var(--white);
  border-top: 2px solid var(--ink);
  display: flex;
  justify-content: space-around;
  padding: 8px 10px;
  z-index: 30;
}

.c-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink2);
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 10px;
}

.c-nav-btn.active {
  background: var(--lime);
  color: var(--ink);
}

.c-nav-btn .ic {
  font-size: 18px;
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 74px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--ink);
  color: var(--lime);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13.5px;
  border: 2px solid var(--lime);
  box-shadow: var(--sh-sm);
  z-index: 200;
  opacity: 0;
  transition: all .25s ease;
  pointer-events: none;
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
