/* ================================================================
   Digital Business Ledger — App Stylesheet
   ================================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --dbl-primary:   #0d6efd;
  --dbl-sidebar-w: 260px;
  --dbl-bg:        #f5f7fb;
  --dbl-card-r:    0.75rem;
}

/* ── Base ──────────────────────────────────────────────────── */
body {
  background: var(--dbl-bg);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 0.925rem;
}

/* ── Auth pages ────────────────────────────────────────────── */
.auth-body {
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}
.auth-card {
  border-radius: var(--dbl-card-r);
}

/* ── Layout ────────────────────────────────────────────────── */
#wrapper {
  min-height: calc(100vh - 56px);
}

#sidebar {
  width: var(--dbl-sidebar-w);
  min-height: calc(100vh - 56px);
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  overflow-y: auto;
  z-index: 100;
}

#page-content {
  min-height: calc(100vh - 56px);
  max-width: 1200px;
}

/* ── Sidebar nav links ─────────────────────────────────────── */
#sidebar .nav-link {
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  transition: background 0.15s, color 0.15s;
}
#sidebar .nav-link:hover,
#sidebar .nav-link.active {
  background: #e8f0fe;
  color: var(--dbl-primary) !important;
  font-weight: 600;
}
#sidebar .nav-link.active i {
  color: var(--dbl-primary);
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  border-radius: var(--dbl-card-r);
}

.business-card {
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: default;
}
.business-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.1) !important;
}

.biz-icon {
  width: 44px;
  height: 44px;
  background: #e8f0fe;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hover-lift {
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.hover-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.08) !important;
}

/* ── Tables ────────────────────────────────────────────────── */
.table > :not(caption) > * > * {
  padding: 0.85rem 1rem;
}
.table-hover tbody tr:hover {
  background-color: #f0f4ff;
}

/* ── Badges ────────────────────────────────────────────────── */
.badge {
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ── Breadcrumbs ───────────────────────────────────────────── */
.breadcrumb {
  font-size: 0.85rem;
}

/* ── Font monospace codes ──────────────────────────────────── */
.font-monospace {
  font-family: 'Courier New', monospace;
  font-size: 0.88rem;
}

/* ── Responsive sidebar collapse on mobile ─────────────────── */
@media (max-width: 768px) {
  #sidebar {
    width: 100%;
    min-height: auto;
    position: relative;
    top: 0;
    height: auto;
    border-bottom: 1px solid #dee2e6;
    border-right: none !important;
  }
  #wrapper {
    flex-direction: column;
  }
  #page-content {
    padding: 1rem !important;
  }
}
