/*
 * Tampilan Ozami untuk Concord CRM.
 * Dimuat di <head> halaman aplikasi dan login (view custom.includes.head modul Ozami).
 * Variabel warna Concord memakai format "r, g, b" (lihat resources/css/variables.css Concord).
 */

/* Sidebar mode terang: navy Ozami #12336F. Teks sidebar Concord sudah terang
   (neutral-50 = #FAF8F4, kontras 11,5:1; ikon neutral-300 = #CFC7BA, kontras 7,2:1).
   Mode gelap tetap --sidebar-dark-bg-color bawaan (neutral-900 = #121521 dari Theme Style). */
:root {
  --sidebar-bg-color: 18, 51, 111;
}

/* Font Outfit (Google Fonts) di seluruh aplikasi; Inter sebagai cadangan. */
html,
body,
.font-sans,
button,
input,
select,
textarea {
  font-family: 'Outfit', 'Inter var', 'Inter', ui-sans-serif, system-ui, sans-serif;
}

/* Logo login: berkas biru untuk latar terang; di mode gelap diganti versi putih. */
html.dark img[src$='/storage/ozami-logo-biru.png'] {
  content: url('/storage/ozami-logo-putih.png');
}

/* Halaman Ozami (SPA): teks bantuan yang memuat placeholder template. */
.ozami-kode {
  border-radius: 0.25rem;
  background-color: rgba(var(--color-neutral-200), 0.7);
  padding: 0 0.25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85em;
}

.dark .ozami-kode {
  background-color: rgba(var(--color-neutral-700), 0.7);
}

.ozami-cuplikan {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

/* Follow-up Hari Ini: tombol aksi baris minimal 44px di layar sempit (target sentuh ponsel); desktop tetap ringkas. */
@media (max-width: 639px) {
  .ozami-tap {
    min-height: 44px;
  }
}

/* Suhu lead di Follow-up Hari Ini: pil Hot merah, Warm kuning/amber, Cold biru, Belum diisi netral.
   Terang: latar -100 + teks -800; gelap: latar 25% + teks -100 (kontras terbaca di dua tema). */
.ozami-suhu {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1rem;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.ozami-suhu-hot { background-color: #fee2e2; color: #991b1b; }
.ozami-suhu-warm { background-color: #fef3c7; color: #92400e; }
.ozami-suhu-cold { background-color: #dbeafe; color: #1e40af; }
.ozami-suhu-kosong { background-color: #f3f4f6; color: #4b5563; }
.dark .ozami-suhu { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.dark .ozami-suhu-hot { background-color: rgba(239, 68, 68, 0.25); color: #fee2e2; }
.dark .ozami-suhu-warm { background-color: rgba(245, 158, 11, 0.25); color: #fef3c7; }
.dark .ozami-suhu-cold { background-color: rgba(59, 130, 246, 0.25); color: #dbeafe; }
.dark .ozami-suhu-kosong { background-color: rgba(156, 163, 175, 0.2); color: #e5e7eb; }

/* Chip filter suhu. */
.ozami-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(var(--color-neutral-300), 1);
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  color: rgba(var(--color-neutral-700), 1);
  background-color: transparent;
}
.ozami-chip[aria-pressed='true'] {
  border-color: rgba(var(--color-primary-600), 1);
  background-color: rgba(var(--color-primary-600), 1);
  color: #fff;
}
.dark .ozami-chip { border-color: rgba(var(--color-neutral-500), 0.6); color: rgba(var(--color-neutral-200), 1); }
.dark .ozami-chip[aria-pressed='true'] { border-color: rgba(var(--color-primary-500), 1); background-color: rgba(var(--color-primary-500), 1); color: #fff; }
.ozami-chip:focus-visible { outline: 2px solid rgba(var(--color-primary-500), 1); outline-offset: 2px; }
