/* ==========================================================================
   We Nails — Custom Stylesheet
   Primary: #c2185b (pink/rose)
   ========================================================================== */

/* ── Fonts & Root ─────────────────────────────────────────────────────────── */
:root {
  --wn-primary:       #c2185b;
  --wn-primary-dark:  #880e4f;
  --wn-primary-light: #f8bbd0;
  --wn-primary-bg:    #fce4ec;
  --wn-accent:        #e91e63;
  --wn-text:          #2d2d2d;
  --wn-text-muted:    #6c757d;
  --wn-border:        #e0e0e0;
  --wn-shadow:        0 2px 8px rgba(0,0,0,.08);
  --wn-radius:        10px;
  --wn-nav-height:    58px;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  background-color: #f7f8fc;
  color: var(--wn-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Utility ──────────────────────────────────────────────────────────────── */
.text-pink        { color: var(--wn-primary) !important; }
.bg-pink          { background-color: var(--wn-primary) !important; }
.border-pink      { border-color: var(--wn-primary) !important; }
.bg-pink-light    { background-color: var(--wn-primary-bg) !important; }
.bg-green-light   { background-color: #e8f5e9 !important; }
.bg-blue-light    { background-color: #e3f2fd !important; }
.bg-yellow-light  { background-color: #fffde7 !important; }
.bg-gray-light    { background-color: #f5f5f5 !important; }
.bg-danger-light  { background-color: #ffebee !important; }
.table-pink-light { background-color: #fff0f5 !important; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn-wn {
  background: var(--wn-primary);
  border-color: var(--wn-primary);
  color: #fff;
  font-weight: 500;
  border-radius: 8px;
  transition: background .2s, transform .1s;
}
.btn-wn:hover, .btn-wn:focus {
  background: var(--wn-primary-dark);
  border-color: var(--wn-primary-dark);
  color: #fff;
  transform: translateY(-1px);
}
.btn-wn:active   { transform: translateY(0); }
.btn-wn:disabled { opacity: .65; transform: none; }

.btn-outline-pink {
  border-color: var(--wn-primary);
  color: var(--wn-primary);
  border-radius: 8px;
  font-weight: 500;
}
.btn-outline-pink:hover {
  background: var(--wn-primary);
  border-color: var(--wn-primary);
  color: #fff;
}

/* ── Badges ───────────────────────────────────────────────────────────────── */
.wn-badge-pink,
.wn-member-badge {
  background: var(--wn-primary);
  color: #fff;
  border-radius: 30px;
  padding: 4px 12px;
  font-size: .75rem;
  font-weight: 600;
}
.wn-role-badge {
  background: rgba(255,255,255,.2);
  color: #fff;
  font-size: .65rem;
  border-radius: 4px;
  padding: 2px 6px;
}

/* ── Navbar ───────────────────────────────────────────────────────────────── */
.wn-navbar {
  background: linear-gradient(135deg, var(--wn-primary) 0%, var(--wn-primary-dark) 100%);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  height: var(--wn-nav-height);
  padding: 0 1rem;
}
.wn-navbar .navbar-brand {
  font-size: 1.25rem;
  letter-spacing: .5px;
}
.wn-navbar .nav-link {
  color: rgba(255,255,255,.85) !important;
  font-size: .85rem;
  padding: .45rem .75rem;
  border-radius: 6px;
  transition: background .15s;
}
.wn-navbar .nav-link:hover,
.wn-navbar .nav-link.active {
  background: rgba(255,255,255,.15);
  color: #fff !important;
}
.wn-navbar .dropdown-menu {
  border: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  border-radius: 10px;
  padding: 6px;
  min-width: 200px;
}
.wn-navbar .dropdown-item {
  border-radius: 6px;
  font-size: .85rem;
  padding: .45rem .75rem;
}
.wn-navbar .dropdown-item:hover { background: var(--wn-primary-bg); }

/* ── Flash Messages ───────────────────────────────────────────────────────── */
.wn-flash-container {
  position: sticky;
  top: 0;
  z-index: 1040;
}
.wn-flash {
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
  margin-bottom: 0;
  font-size: .9rem;
}

/* ── Main Content ─────────────────────────────────────────────────────────── */
.wn-main {
  flex: 1;
  padding-top: .5rem;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.wn-footer {
  background: #fff;
  border-top: 1px solid var(--wn-border);
  padding: 1rem 1.5rem;
  margin-top: auto;
}

/* ── Auth Pages ───────────────────────────────────────────────────────────── */
.wn-auth-body {
  background: linear-gradient(135deg, var(--wn-primary-bg) 0%, #fff 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wn-auth-wrapper {
  width: 100%;
  max-width: 460px;
  padding: 1rem;
}
.wn-auth-card {
  border-radius: 16px;
  overflow: hidden;
}
.wn-auth-header {
  background: linear-gradient(135deg, var(--wn-primary) 0%, var(--wn-primary-dark) 100%);
  padding: 2rem 1.5rem 1.5rem;
  color: #fff;
}
.wn-auth-logo {
  font-size: 3rem;
  margin-bottom: .5rem;
}
.wn-auth-brand {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 1px;
}
.wn-auth-tagline {
  opacity: .8;
  font-size: .85rem;
  margin: 0;
}

/* ── Cards & Stats ────────────────────────────────────────────────────────── */
.card {
  border-radius: var(--wn-radius);
  transition: box-shadow .2s;
}
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1) !important; }

.wn-stat-card   { border-radius: var(--wn-radius); }
.wn-stat-icon   {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.wn-stat-value  { font-size: 1.5rem; font-weight: 700; }
.wn-stat-label  { font-size: .75rem; color: var(--wn-text-muted); }

/* KPI cards (owner) */
.wn-kpi-card .wn-kpi-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.wn-kpi-value { font-size: 1.4rem; font-weight: 700; line-height: 1; }
.wn-kpi-label { font-size: .7rem; color: var(--wn-text-muted); margin-top: 2px; }

/* ── Loyalty / Points ─────────────────────────────────────────────────────── */
.wn-points-card {
  background: linear-gradient(135deg, var(--wn-primary-bg) 0%, #fff 100%);
}
.wn-points-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--wn-primary);
  line-height: 1;
}

/* VIP card */
.wn-vip-card {
  background: linear-gradient(135deg, #fff8e1 0%, #fffde7 100%);
  border: 2px solid #ffd700 !important;
}
.wn-vip-banner {
  background: linear-gradient(135deg, #fff8e1, #fffde7);
  border: 2px solid #ffd700;
  border-radius: var(--wn-radius);
}

/* ── Booking Steps ────────────────────────────────────────────────────────── */
.wn-booking-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 1.5rem;
}
.wn-step {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.wn-step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #e0e0e0;
  color: var(--wn-text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  font-weight: 600;
  flex-shrink: 0;
}
.wn-step.active .wn-step-num {
  background: var(--wn-primary);
  color: #fff;
}
.wn-step.done .wn-step-num {
  background: #4caf50;
  color: #fff;
}
.wn-step-label {
  font-size: .8rem;
  font-weight: 500;
  color: var(--wn-text-muted);
}
.wn-step.active .wn-step-label { color: var(--wn-primary); font-weight: 600; }
.wn-step.done .wn-step-label   { color: #4caf50; }
.wn-step-divider {
  height: 2px;
  width: 40px;
  background: #e0e0e0;
  margin: 0 8px;
  flex-shrink: 0;
}
.wn-step-divider.active { background: var(--wn-primary); }

/* ── Service Cards (booking step 1) ──────────────────────────────────────── */
.wn-service-card {
  cursor: pointer;
  border-radius: var(--wn-radius);
  transition: border-color .2s, box-shadow .2s, transform .15s;
  border-color: var(--wn-border) !important;
}
.wn-service-card:hover {
  border-color: var(--wn-primary) !important;
  box-shadow: 0 4px 12px rgba(194,24,91,.15) !important;
  transform: translateY(-2px);
}
.wn-service-card.wn-service-selected {
  border-color: var(--wn-primary) !important;
  background-color: var(--wn-primary-bg);
}
.wn-service-selected-check { opacity: 0; transition: opacity .2s; }
.wn-service-card.wn-service-selected .wn-service-selected-check { opacity: 1; }

.wn-accordion-btn {
  color: var(--wn-text);
  font-weight: 600;
  border-radius: var(--wn-radius) !important;
}
.wn-accordion-btn:not(.collapsed) { color: var(--wn-primary); }
.accordion-button:focus { box-shadow: none; }

/* ── Time Slot Grid ───────────────────────────────────────────────────────── */
.wn-time-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.wn-time-slot {
  font-size: .8rem;
  padding: .35rem .7rem;
  border-radius: 8px;
  border-color: var(--wn-border);
  transition: all .15s;
  min-width: 80px;
  text-align: center;
}
.wn-time-slot:hover   { border-color: var(--wn-primary); color: var(--wn-primary); }
.wn-time-slot.btn-wn  { font-weight: 600; }

/* ── Booking Summary ──────────────────────────────────────────────────────── */
.wn-booking-summary { border-radius: var(--wn-radius); }
.wn-summary-block {
  background: var(--wn-primary-bg);
  border-radius: 10px;
  padding: 1rem .75rem;
}

/* ── Inspiration Dropzone ────────────────────────────────────────────────── */
.wn-dropzone {
  border: 2px dashed var(--wn-border);
  border-radius: var(--wn-radius);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: #fafafa;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.wn-dropzone:hover, .wn-dropzone-hover {
  border-color: var(--wn-primary);
  background: var(--wn-primary-bg);
}
.wn-inspiration-preview {
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
}
.wn-inspiration-thumbnail {
  cursor: zoom-in;
  transition: transform .2s;
}
.wn-inspiration-thumbnail:hover { transform: scale(1.02); }

/* ── Cash Drawer ──────────────────────────────────────────────────────────── */
.wn-drawer-status {
  border-radius: 50%;
  width: 100px; height: 100px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  margin: 0 auto;
}
.wn-drawer-open  { background: #e8f5e9; color: #388e3c; }
.wn-drawer-closed{ background: #f5f5f5; color: #9e9e9e; }

/* ── Bar Chart (owner dashboard) ─────────────────────────────────────────── */
.wn-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 200px;
  padding: 0 8px;
  border-left: 2px solid var(--wn-border);
  border-bottom: 2px solid var(--wn-border);
}
.wn-bar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}
.wn-bar {
  width: 100%;
  max-width: 60px;
  background: linear-gradient(180deg, var(--wn-accent), var(--wn-primary));
  border-radius: 6px 6px 0 0;
  min-height: 4px;
  transition: height .4s ease;
  cursor: pointer;
}
.wn-bar:hover { filter: brightness(1.1); }
.wn-bar-value {
  font-size: .6rem;
  color: var(--wn-primary);
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
}
.wn-bar-label {
  font-size: .7rem;
  color: var(--wn-text-muted);
  margin-top: 4px;
  text-align: center;
}

/* ── Staff Schedule Cards ─────────────────────────────────────────────────── */
.wn-schedule-card {
  border-radius: var(--wn-radius);
  transition: box-shadow .2s;
}
.wn-schedule-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1) !important; }

/* ── Agreement Page ───────────────────────────────────────────────────────── */
.wn-agreement-body {
  font-size: .9rem;
  line-height: 1.7;
}
.wn-agreement-body h6 { margin-top: 1.5rem; font-size: .9rem; }

/* ── Spinner Wheel ────────────────────────────────────────────────────────── */
.wn-spinner-page { background: #fff; }
.wn-spinner-container {
  display: inline-block;
  position: relative;
}
.wn-spinner-arrow {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
}
#spinnerWheel {
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
  max-width: 100%;
}
@keyframes wn-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.wn-spinning { animation: wn-spin 0.1s linear infinite; }

/* Confetti pieces */
.wn-confetti {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: hidden;
}
.wn-confetti-piece {
  position: absolute;
  top: -20px;
  border-radius: 2px;
  opacity: 0;
  animation: wn-confetti-fall linear forwards;
}
@keyframes wn-confetti-fall {
  0%   { opacity: 1; transform: translateY(0) rotate(0deg); }
  80%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(400px) rotate(720deg); }
}

/* Winner modal */
.wn-winner-modal {
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff0f7, #fff);
}
.wn-winner-trophy {
  animation: wn-bounce .6s ease infinite alternate;
}
@keyframes wn-bounce {
  from { transform: translateY(0); }
  to   { transform: translateY(-12px); }
}

/* ── Error Pages ──────────────────────────────────────────────────────────── */
.wn-error-code {
  font-size: 6rem;
  font-weight: 800;
  color: var(--wn-primary);
  line-height: 1;
  opacity: .15;
}

/* ── Tables ───────────────────────────────────────────────────────────────── */
.table > :not(caption) > * > th,
.table > :not(caption) > * > td {
  padding: .65rem .75rem;
  vertical-align: middle;
}
.table-light th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--wn-text-muted); }

/* ── Form controls ────────────────────────────────────────────────────────── */
.form-control:focus, .form-select:focus {
  border-color: var(--wn-primary);
  box-shadow: 0 0 0 .2rem rgba(194,24,91,.15);
}
.form-check-input:checked {
  background-color: var(--wn-primary);
  border-color: var(--wn-primary);
}
.form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(194,24,91,.15); }

/* ── Accordion ────────────────────────────────────────────────────────────── */
.accordion-button:not(.collapsed) {
  color: var(--wn-primary);
  background-color: var(--wn-primary-bg);
  box-shadow: none;
}

/* ── Mobile responsive ────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
  .wn-booking-steps { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .5rem; }
  .wn-step-label    { display: none; }
  .wn-bar-chart     { height: 120px; }
  .wn-points-number { font-size: 2.25rem; }
  .wn-kpi-value     { font-size: 1.1rem; }
  .container-fluid  { padding-left: .75rem; padding-right: .75rem; }
}

@media (max-width: 575.98px) {
  .wn-auth-wrapper { padding: .5rem; }
  #spinnerWheel    { width: 300px; height: 300px; }
}

/* ── Print Styles ─────────────────────────────────────────────────────────── */
@media print {
  .wn-navbar,
  .wn-flash-container,
  .wn-footer,
  .btn,
  .nav,
  .breadcrumb,
  #reportForm,
  #printReportBtn   { display: none !important; }

  body { background: #fff !important; }
  .card {
    border: 1px solid #ddd !important;
    box-shadow: none !important;
    break-inside: avoid;
  }
  .table { font-size: .8rem; }
  .wn-main { padding-top: 0; }
  h2, h6 { color: #000 !important; }

  @page { margin: 1cm; }
}
