/* Light, minimal, blue-accent style */
:root { --uc-bg:#f6f9ff; --uc-card:#ffffff; --uc-border:#e6eaf2; --uc-text:#0f172a; --uc-muted:#64748b; --uc-accent:#3b82f6; --uc-success:#16a34a; }
.uc-btn { padding: 12px 16px; border: 1px solid var(--uc-border); border-radius: 12px; cursor: pointer; background: #f8fafc; color: var(--uc-text); transition: .2s ease; box-shadow: 0 1px 1px rgba(15,23,42,0.03); }
.uc-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(2,6,23,0.08); }
.uc-btn.uc-primary { background: var(--uc-accent); border-color: var(--uc-accent); color: #fff; box-shadow: 0 6px 16px rgba(59,130,246,0.35); }
.uc-btn.uc-secondary { background: #eef2ff; color:#1e293b; }
.uc-input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--uc-border); background:#ffffff; color:#0f172a; }
.uc-title { font-size: 22px; margin: 12px 0 16px; color: var(--uc-text); }

.uc-auth { direction: rtl; }
.uc-auth .uc-auth-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.uc-auth .uc-tab { background:#f8fafc; color:#0f172a; border:1px solid var(--uc-border); padding:10px 12px; border-radius:12px; cursor:pointer; }
.uc-auth .uc-tab.active { background:var(--uc-accent); color:#fff; border-color:var(--uc-accent); }
.uc-auth .uc-form { display:flex; flex-direction:column; gap:10px; max-width:520px; background:#ffffff; border:1px solid var(--uc-border); border-radius:18px; padding:18px; box-shadow: 0 12px 32px rgba(2,6,23,.06); }
.uc-form-msg { color:#ef4444; min-height: 18px; }
.uc-tab-content { display:none; }
.uc-tab-content.active { display:block; }

.uc-dashboard { direction: rtl; }
.uc-card-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.uc-card { position:relative; border-radius:18px; overflow:hidden; cursor:pointer; border:1px solid var(--uc-border); background:#fff; box-shadow: 0 8px 20px rgba(2,6,23,.06); }
/* Maintain 11:16 portrait ratio (1100x1600) */
@supports (aspect-ratio: 11 / 16) {
  .uc-card { aspect-ratio: 11 / 16; }
}
@supports not (aspect-ratio: 1) {
  .uc-card::before { content:""; display:block; padding-top: 145.4545%; }
}
.uc-card:hover { transform: translateY(-2px); transition: .2s ease; box-shadow: 0 16px 32px rgba(2,6,23,.08); }
.uc-card-bg { position:absolute; inset:0; background-size:cover; background-position:center center; background-repeat:no-repeat; filter:saturate(1.04) contrast(1.02); }
.uc-card-title { position:absolute; inset-inline:0; bottom:0; background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(2,6,23,.75) 100%); color:#fff; padding:14px 16px; font-weight:700; letter-spacing:.2px; }
/* Used cards: different border and badge with date/time */
.uc-card.uc-card-used { border:2px dashed var(--uc-accent); }
.uc-card-badge { position:absolute; inset-inline-end:10px; top:10px; background:#ffffff; color:#0f172a; border:1px solid var(--uc-border); border-radius:10px; padding:6px 10px; font-size:12px; box-shadow:0 6px 16px rgba(2,6,23,.08); }

.uc-modal { display:none; position:fixed; inset:0; z-index: 99999; }
.uc-modal.active { display:block; }
.uc-modal-backdrop { position:absolute; inset:0; background: radial-gradient(1200px 600px at 30% -10%, #93c5fd 0%, rgba(59,130,246,0.25) 25%, transparent 55%), radial-gradient(1200px 700px at 90% 120%, #c7d2fe 0%, rgba(99,102,241,0.25) 25%, transparent 55%), rgba(2,6,23,0.55); backdrop-filter: blur(4px); }
.uc-modal-dialog { position:relative; margin: 6vh auto; background: #ffffff; border:1px solid var(--uc-border); border-radius:22px; max-width:820px; padding: 22px; box-shadow:0 24px 80px rgba(2,6,23,0.25); color: var(--uc-text); }
.uc-modal-close { position:absolute; inset-inline-end:12px; top:12px; border:0; background:#f1f5f9; color:#0f172a; border:1px solid var(--uc-border); width:36px; height:36px; border-radius:10px; font-size:18px; cursor:pointer; }
.uc-modal-body { padding-top: 14px; }

/* Stepper */
.uc-stepper { margin: 4px 0 16px; }
.uc-stepper ol { list-style:none; display:flex; gap: 28px; align-items:center; justify-content:center; counter-reset: step; position:relative; }
.uc-stepper li { width:36px; height:36px; border-radius:999px; display:flex; align-items:center; justify-content:center; background:#eef2ff; color:#475569; border:1px solid var(--uc-border); position:relative; font-weight:700; }
.uc-stepper li.active { background:var(--uc-accent); color:#fff; border-color:var(--uc-accent); box-shadow:0 6px 16px rgba(59,130,246,.35); }
.uc-stepper li.is-active { background:var(--uc-accent); color:#fff; border-color:var(--uc-accent); box-shadow:0 6px 16px rgba(59,130,246,.35); }
.uc-stepper li.done { background:#e2e8f0; color:#334155; border-color:#dbe0ea; }
.uc-stepper li.is-complete { background:#e2e8f0; color:#334155; border-color:#dbe0ea; }
.uc-stepper li + li::before { content:''; position:absolute; right: -28px; top:50%; width:28px; height:2px; background:#e2e8f0; transform: translateY(-50%); }
.uc-stepper li.done + li::before { background:#93c5fd; }

/* Attribute-driven step state (robust against stale classes) */
.uc-modal[data-step="1"] .uc-stepper li[data-step="1"],
.uc-modal[data-step="2"] .uc-stepper li[data-step="2"],
.uc-modal[data-step="3"] .uc-stepper li[data-step="3"],
.uc-modal[data-step="4"] .uc-stepper li[data-step="4"] {
  background: var(--uc-accent);
  color: #fff;
  border-color: var(--uc-accent);
  box-shadow: 0 6px 16px rgba(59,130,246,.35);
}
.uc-modal[data-step="2"] .uc-stepper li[data-step="1"],
.uc-modal[data-step="3"] .uc-stepper li[data-step="1"],
.uc-modal[data-step="3"] .uc-stepper li[data-step="2"],
.uc-modal[data-step="4"] .uc-stepper li[data-step="1"],
.uc-modal[data-step="4"] .uc-stepper li[data-step="2"],
.uc-modal[data-step="4"] .uc-stepper li[data-step="3"] {
  background:#e2e8f0;
  color:#334155;
  border-color:#dbe0ea;
}

.uc-step-actions { display:flex; gap: 10px; margin-top: 16px; justify-content:flex-end; }
.uc-inline-msg { min-height: 18px; color: #ef4444; margin-top: 6px; }
.uc-availability-summary { margin-top: 12px; border:1px solid var(--uc-border); border-radius:12px; background:#f8fafc; padding:12px 14px; color: var(--uc-muted); font-size:14px; line-height:1.6; direction: rtl; text-align: right; }
.uc-availability-summary strong { color: var(--uc-text); display:block; margin-bottom:6px; font-size:15px; }
.uc-availability-summary ul { margin: 0; padding: 0 18px 0 0; list-style: disc; }
.uc-availability-summary li { margin: 2px 0; }
.uc-availability-summary.empty { background: #fef2f2; border-color: #fecaca; color: #ef4444; }
.uc-time-scroll { display:flex; gap:10px; overflow:auto; padding:8px 0; }
.uc-time { padding:12px 16px; border-radius:12px; border:1px solid var(--uc-border); background:#ffffff; color:#0f172a; cursor:pointer; box-shadow: 0 1px 1px rgba(2,6,23,.03); }
.uc-time.active { background:var(--uc-accent); color:#fff; border-color:var(--uc-accent); box-shadow: 0 8px 20px rgba(59,130,246,.3); }
.uc-loading { opacity: 0.6; pointer-events: none; }
.uc-success { font-size: 16px; background:#ecfdf5; border:1px solid #bbf7d0; padding:14px; border-radius:14px; color:#14532d; }

/* Make sure Persian datepicker appears above modal */
.pwt-datepicker, .pwt-datepicker-container, .pdp, .datepicker-plot-area {
  z-index: 100000 !important;
}

.uc-time[disabled], .uc-time.is-disabled { opacity:.5; cursor:not-allowed; }
