/* iCode.lk Mobile POS — app.css (LIGHT THEME) */
:root{
  --bg1:#f7f9ff;
  --bg2:#eef2ff;
  --card:rgba(255,255,255,.92);
  --line:rgba(15,23,42,.10);
  --text:#0f172a;
  --muted:rgba(15,23,42,.62);
  --brand:#5b5cff;
  --brand2:#16a34a;

  --shadow: 0 10px 28px rgba(2,6,23,.08);
  --shadow2: 0 18px 40px rgba(2,6,23,.10);
}

/* Page background */
.app-bg{
  background:
    radial-gradient(1100px 800px at 15% 0%, rgba(91,92,255,.18), transparent 60%),
    radial-gradient(900px 700px at 90% 10%, rgba(22,163,74,.12), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
  color: var(--text);
  min-height:100vh;
}

.app-shell{ padding-bottom: 86px; }

/* Top bar */
.app-topbar{
  position: sticky; top:0; z-index: 50;
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(12px);
}

/* Brand */
.brand-dot{
  width: 14px; height: 14px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #60a5fa);
  box-shadow: 0 0 0 4px rgba(91,92,255,.14);
}
.brand-title{ font-weight: 900; letter-spacing: .2px; color: var(--text); }
.brand-sub{ font-size: 12px; color: var(--muted); margin-top: -2px; }

/* Small Ad pill */
.topbar-ad{
  border: 1px solid rgba(15,23,42,.10);
  background: linear-gradient(90deg, rgba(91,92,255,.10), rgba(22,163,74,.08));
  padding: 8px 10px;
  border-radius: 14px;
  color: rgba(15,23,42,.85);
}

/* Max width container */
.app-main{ max-width: 980px; }

/* Cards */
.app-card{
  background: var(--card);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

/* Modal */
.app-modal{
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(15,23,42,.12);
  color: var(--text);
  border-radius: 18px;
  box-shadow: var(--shadow2);
}

/* Inputs */
.form-control, .form-select{
  background: rgba(255,255,255,.96) !important;
  border: 1px solid rgba(15,23,42,.16) !important;
  color: var(--text) !important;
}
.form-control:focus, .form-select:focus{
  box-shadow: 0 0 0 .25rem rgba(91,92,255,.18);
  border-color: rgba(91,92,255,.55) !important;
}
.form-control::placeholder{ color: rgba(15,23,42,.40) !important; }

/* Buttons */
.btn-primary{
  background: linear-gradient(135deg, var(--brand), #60a5fa);
  border: none;
}
.btn-primary:hover{ filter: brightness(1.03); }

.btn-outline-light{
  border-color: rgba(15,23,42,.18) !important;
  color: rgba(15,23,42,.85) !important;
}
.btn-outline-light:hover{
  background: rgba(15,23,42,.06) !important;
}

/* Badges */
.badge-pill{
  border-radius: 999px;
  background: rgba(15,23,42,.06) !important;
  border: 1px solid rgba(15,23,42,.12);
  color: rgba(15,23,42,.88);
}

/* Lists */
.list-group-item{
  border-color: rgba(15,23,42,.10) !important;
  background: transparent !important;
  color: rgba(15,23,42,.92) !important;
}
.list-group-item-action:hover{
  background: rgba(15,23,42,.05) !important;
}

/* KPI cards */
.kpi-card{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 8px 22px rgba(2,6,23,.06);
}
.kpi-label{ color: var(--muted); font-size: 12px; }
.kpi-value{ font-weight: 900; font-size: 20px; letter-spacing: .2px; color: var(--text); }

/* Footer small text */
.app-footer{
  position: fixed;
  left:0; right:0; bottom: 74px;
  padding: 6px 10px;
  color: rgba(15,23,42,.55);
}

/* Bottom nav */
.bottom-nav{
  position: fixed; left: 0; right: 0; bottom: 0;
  height: 74px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(15,23,42,.12);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 80;
  padding-bottom: env(safe-area-inset-bottom);
}

.bn-item{
  text-decoration: none;
  color: rgba(15,23,42,.58);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap: 3px;
  font-size: 12px;
}
.bn-ico{ font-size: 18px; line-height: 1; }

.bn-item.active{
  color: rgba(15,23,42,.95);
}
.bn-item.active .bn-ico{
  filter: drop-shadow(0 6px 16px rgba(91,92,255,.25));
}

/* Code color */
code{ color: #4338ca; }

/* ==============================
   LIGHT THEME FIX PACK
   ============================== */

/* Tell browser we're in LIGHT UI (important) */
html, body {
  color-scheme: light;
}

/* Bootstrap text helpers */
.text-dark,
.text-body,
.text-secondary,
.text-muted,
.small,
.form-text {
  color: rgba(15,23,42,.62) !important;
}

/* Labels */
label,
.form-label,
.col-form-label {
  color: rgba(15,23,42,.88) !important;
}

/* Tables */
.table,
.table td,
.table th {
  color: rgba(15,23,42,.92) !important;
}

/* Select dropdown list options */
select option {
  background: #ffffff;
  color: #0f172a;
}

/* Date/Time inputs */
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"]{
  color: #0f172a !important;
  color-scheme: light;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator{
  filter: none;
}

/* Placeholder */
::placeholder{
  color: rgba(15,23,42,.40) !important;
}

/* Ensure cards/modals/list items are dark text */
.card, .modal, .dropdown-menu, .list-group-item {
  color: rgba(15,23,42,.92) !important;
}
