/* ── UNIKLEAN Global Stylesheet ─────────────────────────────────────────────
   Applies consistent look & feel across all pages.
   Import this in every HTML file:
   <link rel="stylesheet" href="/css/global.css"/>
──────────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Instrument+Serif:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ── Variables ───────────────────────────────────────────────────────────── */
:root {
  /* Brand colors */
  --navy:        #0C1A3A;
  --navy-mid:    #122044;
  --navy-light:  #1a2e55;
  --gold:        #E9A84B;
  --gold-light:  #F5C97A;
  --gold-dark:   #C8872A;
  --green:       #2ECC71;
  --green-dark:  #27AE60;
  --cream:       #FAF7F2;
  --cream-dark:  #F0EDE8;
  --white:       #FFFFFF;
  --red:         #E24B4A;
  --muted:       #6B7280;
  --text:        #0C1A3A;

  /* Borders */
  --border:      rgba(12,26,58,0.08);
  --border-mid:  rgba(12,26,58,0.14);

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(12,26,58,0.07), 0 1px 2px rgba(12,26,58,0.04);
  --shadow-md:   0 4px 20px rgba(12,26,58,0.09), 0 2px 8px rgba(12,26,58,0.05);
  --shadow-lg:   0 20px 60px rgba(12,26,58,0.13), 0 8px 24px rgba(12,26,58,0.07);
  --shadow-gold: 0 4px 24px rgba(233,168,75,0.28);

  /* Radii */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   18px;
  --r-xl:   26px;
  --r-full: 999px;

  /* Typography */
  --font-display: 'Instrument Serif', serif;
  --font-ui:      'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Transitions */
  --transition: all .2s cubic-bezier(.4,0,.2,1);
  --transition-slow: all .4s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--cream-dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--font-body); }

/* ── Scrollbar ───────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: rgba(12,26,58,0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(12,26,58,0.25); }

/* ── Typography helpers ──────────────────────────────────────────────────── */
.font-display { font-family: var(--font-display); font-style: italic; }
.font-ui      { font-family: var(--font-ui); }
.font-body    { font-family: var(--font-body); }

/* ── Global Topbar ───────────────────────────────────────────────────────── */
.uk-topbar {
  background: var(--navy);
  padding: 0 32px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.uk-topbar-logo {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 1.5px;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.uk-topbar-logo-mark {
  width: 32px;
  height: 32px;
  background: var(--gold);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  color: var(--navy);
  flex-shrink: 0;
}
.uk-topbar-logo span { color: var(--gold); }
.uk-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.uk-topbar-link {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: var(--r-full);
  transition: var(--transition);
}
.uk-topbar-link:hover { color: var(--white); background: rgba(255,255,255,0.07); }
.uk-topbar-back {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.uk-topbar-back:hover { color: var(--white); }
.uk-topbar-back svg { transition: transform .2s; }
.uk-topbar-back:hover svg { transform: translateX(-3px); }

/* ── Wallet chip ─────────────────────────────────────────────────────────── */
.uk-wallet-chip {
  background: rgba(233,168,75,0.12);
  border: 1px solid rgba(233,168,75,0.2);
  color: var(--gold);
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-ui);
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: .3px;
}
.uk-wallet-chip:hover {
  background: rgba(233,168,75,0.18);
  border-color: rgba(233,168,75,0.35);
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.uk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-full);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .3px;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}
.uk-btn:active { transform: scale(0.98); }
.uk-btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.uk-btn-primary:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.uk-btn-gold {
  background: var(--gold);
  color: var(--navy);
  box-shadow: var(--shadow-gold);
}
.uk-btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(233,168,75,0.38);
}
.uk-btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border-mid);
}
.uk-btn-ghost:hover {
  background: var(--cream);
  border-color: rgba(12,26,58,0.2);
}
.uk-btn-danger {
  background: rgba(226,75,74,0.08);
  color: var(--red);
  border: 1.5px solid rgba(226,75,74,0.15);
}
.uk-btn-danger:hover {
  background: rgba(226,75,74,0.14);
  border-color: rgba(226,75,74,0.3);
}
.uk-btn-sm { padding: 8px 16px; font-size: 12px; }
.uk-btn-lg { padding: 15px 32px; font-size: 15px; }
.uk-btn-full { width: 100%; }
.uk-btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.uk-card {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition-slow);
}
.uk-card:hover { box-shadow: var(--shadow-md); }
.uk-card-head {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
}
.uk-card-body { padding: 20px 22px; }

/* ── Form elements ───────────────────────────────────────────────────────── */
.uk-input, .uk-select, .uk-textarea {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--border-mid);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: var(--transition);
  -webkit-appearance: none;
}
.uk-input:focus, .uk-select:focus, .uk-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(233,168,75,0.12);
}
.uk-input::placeholder { color: rgba(12,26,58,0.25); }
.uk-input:disabled { background: var(--cream); color: var(--muted); cursor: not-allowed; }
.uk-label {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-ui);
  color: rgba(12,26,58,0.45);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
  display: block;
}
.uk-field { display: flex; flex-direction: column; gap: 6px; }

/* ── Badges ──────────────────────────────────────────────────────────────── */
.uk-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-ui);
  letter-spacing: .2px;
}
.uk-badge-blue    { background: rgba(55,138,221,0.1);  color: #185FA5; }
.uk-badge-gold    { background: rgba(233,168,75,0.12); color: #B8822A; }
.uk-badge-green   { background: rgba(29,158,117,0.1);  color: #0F6E56; }
.uk-badge-navy    { background: rgba(12,26,58,0.08);   color: var(--navy); }
.uk-badge-red     { background: rgba(226,75,74,0.1);   color: #A32D2D; }
.uk-badge-purple  { background: rgba(83,74,183,0.1);   color: #534AB7; }

/* ── Status badges ───────────────────────────────────────────────────────── */
.status-booked        { background: rgba(55,138,221,0.1);  color: #185FA5; }
.status-assigned      { background: rgba(233,168,75,0.12); color: #B8822A; }
.status-picked-up     { background: rgba(83,74,183,0.1);   color: #534AB7; }
.status-at-laundry    { background: rgba(83,74,183,0.1);   color: #534AB7; }
.status-ready         { background: rgba(29,158,117,0.1);  color: #0F6E56; }
.status-out-delivery  { background: rgba(29,158,117,0.1);  color: #0F6E56; }
.status-delivered     { background: rgba(39,174,96,0.1);   color: #1a7a40; }
.status-cancelled     { background: rgba(226,75,74,0.1);   color: #A32D2D; }
.status-paid          { background: rgba(29,158,117,0.1);  color: #0F6E56; }
.status-pending       { background: rgba(233,168,75,0.12); color: #B8822A; }

/* ── Stat cards ──────────────────────────────────────────────────────────── */
.uk-stat-card {
  background: var(--white);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  padding: 20px;
  transition: var(--transition);
}
.uk-stat-card:hover { box-shadow: var(--shadow-sm); }
.uk-stat-label {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-ui);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
}
.uk-stat-value {
  font-size: 28px;
  font-weight: 800;
  font-family: var(--font-ui);
  color: var(--navy);
  line-height: 1;
}

/* ── Section helpers ─────────────────────────────────────────────────────── */
.uk-page { max-width: 900px; margin: 0 auto; padding: 28px 20px 80px; }
.uk-page-wide { max-width: 1200px; margin: 0 auto; padding: 28px 24px 80px; }
.uk-page-title {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--navy);
  margin-bottom: 4px;
}
.uk-page-sub { font-size: 14px; color: var(--muted); margin-bottom: 28px; }

/* ── Messages ────────────────────────────────────────────────────────────── */
.uk-msg {
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  display: none;
  margin-top: 10px;
}
.uk-msg-success { background: rgba(39,174,96,0.09);  color: #1a7a40; border: 1px solid rgba(39,174,96,0.15); }
.uk-msg-error   { background: rgba(226,75,74,0.08);  color: #A32D2D; border: 1px solid rgba(226,75,74,0.12); }
.uk-msg-info    { background: rgba(55,138,221,0.08); color: #185FA5; border: 1px solid rgba(55,138,221,0.12); }

/* ── Timeline ────────────────────────────────────────────────────────────── */
.uk-timeline { display: flex; flex-direction: column; }
.uk-timeline-item {
  display: flex;
  gap: 16px;
  position: relative;
  padding-bottom: 20px;
}
.uk-timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 22px;
  bottom: 0;
  width: 1.5px;
  background: var(--border-mid);
}
.uk-timeline-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border-mid);
  background: var(--white);
  flex-shrink: 0;
  margin-top: 2px;
  z-index: 1;
  transition: var(--transition);
}
.uk-timeline-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(233,168,75,0.15);
}
.uk-timeline-dot.done {
  background: var(--navy);
  border-color: var(--navy);
}
.uk-timeline-content { flex: 1; }
.uk-timeline-status {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 2px;
}
.uk-timeline-time { font-size: 12px; color: var(--muted); }
.uk-timeline-note { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ── Loading state ───────────────────────────────────────────────────────── */
.uk-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  color: var(--muted);
  font-size: 14px;
  gap: 10px;
}
.uk-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-mid);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: uk-spin .7s linear infinite;
}
@keyframes uk-spin { to { transform: rotate(360deg); } }

/* ── Empty state ─────────────────────────────────────────────────────────── */
.uk-empty {
  text-align: center;
  padding: 56px 24px;
}
.uk-empty-icon { font-size: 40px; margin-bottom: 16px; opacity: .5; }
.uk-empty-title {
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.uk-empty-desc { font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 24px; }

/* ── Scroll reveal ───────────────────────────────────────────────────────── */
.uk-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.uk-reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Animations ──────────────────────────────────────────────────────────── */
@keyframes uk-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes uk-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes uk-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
@keyframes uk-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.06); opacity: .8; }
}

.uk-float { animation: uk-float 3s ease infinite; }
.uk-pulse { animation: uk-pulse 2s ease infinite; }

/* ── Responsive helpers ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .uk-topbar { padding: 0 18px; }
  .uk-page, .uk-page-wide { padding: 20px 16px 60px; }
  .uk-hide-mobile { display: none !important; }
}
@media (min-width: 769px) {
  .uk-hide-desktop { display: none !important; }
}
