/*
 * kurulla-utilities.css
 * Extracted from inline styles across Blade templates.
 * Add new classes here; replace style="" attributes in Blade with these classes.
 * Loaded in app.blade.php, dashboard.blade.php, admin.blade.php.
 */

/* ── Coloured message / status boxes ──────────────────────────────────── */
.k-box{border-radius:10px;padding:14px 16px;margin-top:4px}
.k-box-success{background:#dcfce7;border:1px solid #bbf7d0;color:#15803d}
.k-box-error  {background:#fee2e2;border:1px solid #fecaca;color:#991b1b}
.k-box-info   {background:#eff6ff;border:1px solid #bfdbfe;color:#1e40af}
.k-box-warn   {background:#fef9c3;border:1px solid #fde68a;color:#854d0e}
.k-box-neutral{background:var(--k-surface2,#f8fafc);border:1px solid var(--k-border,#e2e8f0);color:var(--k-text-secondary,#475569)}

.k-box-sm{border-radius:8px;padding:10px 12px;margin-top:4px}
.k-box-lg{border-radius:14px;padding:20px 22px;margin-top:0}

/* ── Typography ────────────────────────────────────────────────────────── */
.k-text-10{font-size:10px}
.k-text-11{font-size:11px}
.k-text-12{font-size:12px}
.k-text-13{font-size:13px}
.k-text-14{font-size:14px}
.k-text-15{font-size:15px}
.k-text-16{font-size:16px}
.k-text-18{font-size:18px}

.k-fw-400{font-weight:400}
.k-fw-500{font-weight:500}
.k-fw-600{font-weight:600}
.k-fw-700{font-weight:700}
.k-fw-800{font-weight:800}

.k-lh-1   {line-height:1}
.k-lh-140 {line-height:1.4}
.k-lh-160 {line-height:1.6}
.k-lh-185 {line-height:1.85}

.k-color-primary  {color:var(--k-primary,#2563eb)}
.k-color-muted    {color:var(--k-text-muted,#94a3b8)}
.k-color-secondary{color:var(--k-text-secondary,#475569)}
.k-color-green    {color:#16a34a}
.k-color-red      {color:#dc2626}
.k-color-amber    {color:#d97706}
.k-color-blue     {color:#1e40af}

/* ── Flex helpers ───────────────────────────────────────────────────────── */
.k-flex           {display:flex}
.k-flex-col       {display:flex;flex-direction:column}
.k-flex-wrap      {flex-wrap:wrap}
.k-items-start    {align-items:flex-start}
.k-items-center   {align-items:center}
.k-items-end      {align-items:flex-end}
.k-justify-start  {justify-content:flex-start}
.k-justify-center {justify-content:center}
.k-justify-between{justify-content:space-between}
.k-justify-end    {justify-content:flex-end}
.k-flex-1         {flex:1}
.k-flex-shrink-0  {flex-shrink:0}
.k-self-end       {margin-left:auto}

.k-gap-4 {gap:4px}
.k-gap-6 {gap:6px}
.k-gap-8 {gap:8px}
.k-gap-10{gap:10px}
.k-gap-12{gap:12px}
.k-gap-14{gap:14px}
.k-gap-16{gap:16px}
.k-gap-20{gap:20px}
.k-gap-24{gap:24px}

/* ── Spacing ────────────────────────────────────────────────────────────── */
.k-mt-0 {margin-top:0}
.k-mt-2 {margin-top:2px}
.k-mt-4 {margin-top:4px}
.k-mt-6 {margin-top:6px}
.k-mt-8 {margin-top:8px}
.k-mt-10{margin-top:10px}
.k-mt-12{margin-top:12px}
.k-mt-14{margin-top:14px}
.k-mt-16{margin-top:16px}
.k-mt-20{margin-top:20px}
.k-mt-24{margin-top:24px}

.k-mb-0 {margin-bottom:0}
.k-mb-2 {margin-bottom:2px}
.k-mb-4 {margin-bottom:4px}
.k-mb-6 {margin-bottom:6px}
.k-mb-8 {margin-bottom:8px}
.k-mb-10{margin-bottom:10px}
.k-mb-12{margin-bottom:12px}
.k-mb-14{margin-bottom:14px}
.k-mb-16{margin-bottom:16px}
.k-mb-20{margin-bottom:20px}
.k-mb-24{margin-bottom:24px}

.k-ml-auto{margin-left:auto}
.k-ml-4  {margin-left:4px}
.k-ml-6  {margin-left:6px}

.k-p-10{padding:10px}
.k-p-12{padding:12px}
.k-p-14{padding:14px}
.k-p-16{padding:16px}
.k-p-20{padding:20px}

/* ── Sizing ──────────────────────────────────────────────────────────────  */
.k-w-full{width:100%}
.k-w-auto{width:auto}
.k-min-w-0{min-width:0}
.k-max-w-420{max-width:420px}
.k-max-w-600{max-width:600px}

/* ── Borders & radius ───────────────────────────────────────────────────── */
.k-rounded-6 {border-radius:6px}
.k-rounded-8 {border-radius:8px}
.k-rounded-10{border-radius:10px}
.k-rounded-12{border-radius:12px}
.k-rounded-14{border-radius:14px}
.k-rounded-full{border-radius:9999px}
.k-border    {border:1px solid var(--k-border,#e2e8f0)}
.k-border-top{border-top:1px solid var(--k-border,#e2e8f0)}
.k-border-b  {border-bottom:1px solid var(--k-border,#e2e8f0)}

/* ── Background ─────────────────────────────────────────────────────────── */
.k-bg-surface {background:var(--k-surface,#fff)}
.k-bg-surface2{background:var(--k-surface2,#f8fafc)}

/* ── Display ────────────────────────────────────────────────────────────── */
.k-block        {display:block}
.k-inline-block {display:inline-block}
.k-hidden       {display:none}

/* ── Overflow ───────────────────────────────────────────────────────────── */
.k-overflow-x-auto{overflow-x:auto;-webkit-overflow-scrolling:touch}
.k-overflow-hidden{overflow:hidden}

/* ── Text utils ─────────────────────────────────────────────────────────── */
.k-nowrap        {white-space:nowrap}
.k-break-word    {word-break:break-word}
.k-line-through  {text-decoration:line-through}
.k-text-center   {text-align:center}
.k-text-right    {text-align:right}
.k-uppercase     {text-transform:uppercase;letter-spacing:.5px}
.k-tabular-nums  {font-variant-numeric:tabular-nums}

/* ── Cursor ─────────────────────────────────────────────────────────────── */
.k-cursor-pointer{cursor:pointer}

/* ── Named semantic components ──────────────────────────────────────────── */

/* Offer accepted next-steps box */
.k-offer-accepted-box{
  background:#dcfce7;border:1px solid #bbf7d0;border-radius:10px;
  padding:14px 16px;margin-top:4px;
}
.k-offer-accepted-box-head{font-weight:700;font-size:13px;color:#15803d;margin-bottom:8px}
.k-offer-accepted-box ol{margin:0;padding-left:18px;font-size:12.5px;color:#166534;line-height:1.85}

/* Offer rejected box */
.k-offer-rejected-box{
  background:#fee2e2;border:1px solid #fecaca;border-radius:10px;
  padding:12px 16px;margin-top:4px;font-size:12.5px;color:#991b1b;
}
.k-offer-rejected-box a{color:#dc2626;font-weight:700;margin-left:6px}

/* Safety reminder (yellow) */
.k-safety-reminder{
  background:#fef9c3;border-radius:10px;padding:14px 16px;margin-top:20px;
}
.k-safety-reminder-title{font-weight:700;font-size:13px;color:#854d0e;margin-bottom:6px}
.k-safety-reminder ul{margin:0;padding-left:16px;color:#713f12;font-size:12px;line-height:1.8}

/* Info blue box (e.g. "what to do next") */
.k-next-steps-box{background:#eff6ff;border-radius:12px;padding:18px 20px;margin-bottom:24px}
.k-next-steps-box-head{font-weight:700;font-size:14px;margin-bottom:10px;color:#1e40af}
.k-next-steps-box ol{margin:0;padding-left:18px;color:#374151;font-size:13px;line-height:1.9}

/* Dashboard onboarding checklist item */
.kd-checklist-item{display:flex;align-items:center;gap:10px;font-size:13px}
.kd-checklist-item.done{opacity:.55}
.kd-checklist-dot{
  width:22px;height:22px;border-radius:50%;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;font-size:12px;
}
.kd-checklist-dot.done{background:#dcfce7;color:#16a34a}
.kd-checklist-dot.pending{background:var(--kd-border,#e2e8f0);color:var(--kd-muted,#94a3b8)}
.kd-checklist-link{margin-left:auto;font-size:11px;font-weight:700;color:#2563eb;white-space:nowrap}

/* Listing submission success banner */
.kd-submit-success{
  background:linear-gradient(135deg,#E8F5E9,#F1F8E9);
  border:1.5px solid #A5D6A7;border-radius:16px;
  padding:24px;margin-bottom:22px;text-align:center;
}

/* Category fields placeholder */
.k-cf-placeholder{
  display:flex;align-items:center;gap:8px;
  padding:12px 14px;
  background:var(--k-surface2,#f8fafc);
  border:1.5px dashed var(--k-border,#e2e8f0);
  border-radius:10px;color:var(--k-text-muted,#94a3b8);font-size:13px;margin-bottom:4px;
}

/* Progress bar (onboarding) */
.kd-progress-bar-track{height:8px;flex:1;max-width:160px;background:var(--kd-border,#e2e8f0);border-radius:99px;overflow:hidden;min-width:80px}
.kd-progress-bar-fill{height:100%;background:#2563eb;border-radius:99px;transition:width .4s}

/* Store nudge card */
.kd-store-nudge{display:flex;align-items:center;gap:16px;background:var(--kd-surface,#fff);border:1px solid var(--kd-border,#e2e8f0);border-radius:14px;padding:18px 20px;margin-bottom:20px;flex-wrap:wrap}
.kd-store-nudge-icon{font-size:32px;flex-shrink:0}
.kd-store-nudge-body{flex:1;min-width:0}
.kd-store-nudge-body strong{display:block;font-size:14px;font-weight:700;margin-bottom:4px}
.kd-store-nudge-body span{font-size:13px;color:var(--kd-muted,#94a3b8)}

/* ── Dark-mode token overrides for semantic components ───────────────────── */
@media(prefers-color-scheme:dark){
  .k-offer-accepted-box{background:#14532d44;border-color:#16a34a44}
  .k-offer-rejected-box{background:#7f1d1d44;border-color:#dc262644}
  .k-next-steps-box    {background:#1e3a8a44}
  .k-safety-reminder   {background:#78350f44}
}
/* Price on request — muted label on listing cards when price is 0 */
.k-price-request{color:var(--k-text-muted,#94a3b8)!important;font-size:12px!important;font-weight:500!important}

:root[data-theme="dark"] .k-offer-accepted-box{background:#14532d44;border-color:#16a34a44}
:root[data-theme="dark"] .k-offer-rejected-box{background:#7f1d1d44;border-color:#dc262644}
:root[data-theme="dark"] .k-next-steps-box    {background:#1e3a8a44}
:root[data-theme="dark"] .k-safety-reminder   {background:#78350f44}
