/* ==========================================================================
   Licksipbite (LSB) — Global stylesheet
   Modern, minimal restaurant admin UI with a dark sidebar.
   ========================================================================== */

:root {
  --lsb-sidebar-bg: #14161f;
  --lsb-sidebar-bg-2: #1b1e2b;
  --lsb-sidebar-text: #b7bdd0;
  --lsb-sidebar-text-active: #ffffff;
  --lsb-primary: #e8592b;      /* warm restaurant accent */
  --lsb-primary-600: #cf4a20;
  --lsb-accent: #f5b301;
  --lsb-bg: #f4f6fb;
  --lsb-card-radius: 14px;
  --lsb-sidebar-width: 250px;
}

/* ------------------------------ Layout ---------------------------------- */
body.lsb-app {
  background: var(--lsb-bg);
  min-height: 100vh;
}

.lsb-layout {
  display: flex;
  min-height: 100vh;
}

.lsb-sidebar {
  width: var(--lsb-sidebar-width);
  background: linear-gradient(180deg, var(--lsb-sidebar-bg), var(--lsb-sidebar-bg-2));
  color: var(--lsb-sidebar-text);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease;
  overflow-y: auto;
}

.lsb-content {
  flex: 1;
  margin-left: var(--lsb-sidebar-width);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ------------------------------ Brand ----------------------------------- */
.lsb-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 1.15rem 1.25rem;
  font-weight: 700;
  letter-spacing: .5px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.lsb-brand .logo {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  /* Cream chip: the logo's dark artwork would otherwise disappear against the
     dark sidebar. Matches the logo's own background tone. */
  background: #fcf7ec;
  font-weight: 800;
  flex: 0 0 auto;
  overflow: hidden;
}
.lsb-brand .logo img {
  width: 34px; height: 34px;
  object-fit: contain;
  display: block;
}

/* ------------------------------ Nav ------------------------------------- */
.lsb-nav { padding: .75rem .6rem; flex: 1; }
.lsb-nav .nav-section {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #6b7280;
  padding: 1rem .8rem .35rem;
}
.lsb-nav .nav-link {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--lsb-sidebar-text);
  border-radius: 9px;
  padding: .6rem .8rem;
  margin-bottom: 2px;
  font-size: .92rem;
  transition: background .15s, color .15s;
}
.lsb-nav .nav-link:hover {
  background: rgba(255, 255, 255, .05);
  color: #fff;
}
.lsb-nav .nav-link.active {
  background: var(--lsb-primary);
  color: var(--lsb-sidebar-text-active);
  box-shadow: 0 6px 18px rgba(232, 89, 43, .35);
}
.lsb-nav .nav-link i { width: 20px; text-align: center; }

/* ------------------------------ Topbar ---------------------------------- */
.lsb-topbar {
  height: 64px;
  background: #fff;
  border-bottom: 1px solid #e9edf5;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.4rem;
  position: sticky;
  top: 0;
  z-index: 1020;
}
.lsb-topbar .page-title { font-weight: 600; margin: 0; }

.lsb-main { padding: 1.6rem 1.4rem; }

/* ------------------------------ Cards ----------------------------------- */
.lsb-card {
  background: #fff;
  border: 1px solid #edf0f7;
  border-radius: var(--lsb-card-radius);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.kpi-card { padding: 1.15rem 1.25rem; }
.kpi-card .kpi-label { color: #7b8395; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.kpi-card .kpi-value { font-size: 1.6rem; font-weight: 700; margin-top: .25rem; }
.kpi-card .kpi-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.15rem;
}

/* ------------------------------ Buttons --------------------------------- */
.btn-primary {
  --bs-btn-bg: var(--lsb-primary);
  --bs-btn-border-color: var(--lsb-primary);
  --bs-btn-hover-bg: var(--lsb-primary-600);
  --bs-btn-hover-border-color: var(--lsb-primary-600);
  --bs-btn-active-bg: var(--lsb-primary-600);
}
.text-primary { color: var(--lsb-primary) !important; }
.badge-role { font-weight: 500; text-transform: capitalize; }

/* ------------------------------ Auth screen ----------------------------- */
.lsb-auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(232, 89, 43, .18), transparent),
    linear-gradient(135deg, #14161f, #1b1e2b);
  padding: 1.5rem;
}
.lsb-auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 18px;
  padding: 2.2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 992px) {
  .lsb-sidebar { transform: translateX(-100%); }
  .lsb-sidebar.open { transform: translateX(0); }
  .lsb-content { margin-left: 0; }
}

/* ------------------------------ Auth logo -------------------------------- */
.lsb-auth-logo {
  max-width: 170px;
  height: auto;
  display: inline-block;
}
