:root {
  --frost-deep: #0b3d57;
  --frost-mid: #12557a;
  --frost-ice: #5fc9d8;
  --frost-bg: #f2f8fa;
  --frost-card: #ffffff;
  --frost-text: #16323f;
  --frost-warn: #e0793a;
}

body {
  background: var(--frost-bg);
  color: var(--frost-text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.app-navbar {
  background: linear-gradient(90deg, var(--frost-deep), var(--frost-mid));
  box-shadow: 0 2px 8px rgba(11,61,87,0.25);
}
.app-navbar .navbar-brand { color: #fff; letter-spacing: .3px; }

.app-wrapper { display: flex; min-height: calc(100vh - 56px); }

.app-sidebar {
  width: 230px;
  flex-shrink: 0;
  background: var(--frost-deep);
  min-height: calc(100vh - 56px);
}
.app-sidebar .nav-link {
  color: rgba(255,255,255,.78);
  border-radius: 8px;
  padding: .55rem .8rem;
  margin-bottom: 2px;
  font-size: .93rem;
}
.app-sidebar .nav-link i { width: 20px; display: inline-block; }
.app-sidebar .nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.app-sidebar .nav-link.active {
  background: var(--frost-ice);
  color: var(--frost-deep);
  font-weight: 600;
}

.app-content { flex-grow: 1; min-width: 0; }

@media (max-width: 991.98px) {
  .app-sidebar {
    position: fixed;
    z-index: 1030;
    left: -230px;
    transition: left .2s ease;
    top: 56px;
  }
  .app-sidebar.open { left: 0; }
}

.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(11,61,87,0.08);
}

.stat-card {
  border-radius: 14px;
  color: #fff;
  padding: 1.2rem 1.4rem;
}
.stat-card .stat-value { font-size: 1.8rem; font-weight: 700; }
.stat-card .stat-label { font-size: .82rem; opacity: .85; }
.stat-card.bg-frost1 { background: linear-gradient(135deg, var(--frost-deep), var(--frost-mid)); }
.stat-card.bg-frost2 { background: linear-gradient(135deg, #1c7a8c, var(--frost-ice)); }
.stat-card.bg-frost3 { background: linear-gradient(135deg, #b9541f, var(--frost-warn)); }
.stat-card.bg-frost4 { background: linear-gradient(135deg, #6d3fa0, #a678d8); }

.btn-primary {
  background-color: var(--frost-mid);
  border-color: var(--frost-mid);
}
.btn-primary:hover { background-color: var(--frost-deep); border-color: var(--frost-deep); }

.table thead th {
  background: #eaf4f7;
  color: var(--frost-deep);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .4px;
  border-bottom: none;
}

.badge-expiry-soon { background: var(--frost-warn) !important; }
.badge-expiry-critical { background: #c0392b !important; }
.badge-low-stock { background: #c0392b !important; }

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--frost-deep), var(--frost-mid) 60%, var(--frost-ice));
}
.login-card {
  width: 100%;
  max-width: 380px;
  border-radius: 16px;
  padding: 2.2rem;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.login-card .icon-badge {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--frost-mid);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 1rem;
}

.pos-item-btn {
  border: 1px solid #dde8ec;
  border-radius: 10px;
  background: #fff;
  padding: .7rem;
  text-align: left;
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.pos-item-btn:hover { border-color: var(--frost-ice); box-shadow: 0 2px 8px rgba(95,201,216,.35); }
.pos-item-btn .pname { font-weight: 600; font-size: .88rem; }
.pos-item-btn .pprice { color: var(--frost-mid); font-size: .82rem; }

@media print {
  .app-navbar, .app-sidebar, .no-print { display: none !important; }
  .app-content { width: 100%; }
}
