:root {
  --card-radius: 16px;
  --shadow-soft: 0 10px 28px rgba(10, 20, 60, 0.08);
  --shadow-lift: 0 18px 42px rgba(10, 20, 60, 0.14);
  --border-soft: rgba(20, 30, 60, 0.10);
  --text-muted: rgba(30, 40, 70, 0.65);

  --grad-a: rgba(13, 110, 253, 1);
  --grad-b: rgba(79, 70, 229, 1);
  --bg-soft-1: rgba(13,110,253,.10);
  --bg-soft-2: rgba(79,70,229,.10);
}

.bg-soft {
  background: radial-gradient(1200px circle at 10% 10%, rgba(13,110,253,.10), transparent 40%),
              radial-gradient(900px circle at 90% 20%, rgba(25,135,84,.10), transparent 45%),
              radial-gradient(900px circle at 60% 90%, rgba(220,53,69,.08), transparent 45%),
              #f6f7fb;
  color: #0b1220;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: row;
}

.app-main {
  flex: 1 1 auto;
}

.app-content {
  max-width: 1200px;
}

/* Sidebar */
.app-sidebar {
  width: 270px;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 10;
  box-shadow: 0 12px 30px rgba(13,110,253,.20);
}

.app-main {
  padding-left: 0;
}

@media (min-width: 992px) {
  .app-main {
    padding-left: 270px;
  }
}

.app-sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.app-sidebar-brand {
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.app-sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  gap: 6px;
}

.app-navlink {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(255,255,255,.86);
  text-decoration: none;
  transition: background .15s ease, color .15s ease, transform .15s ease;
  font-weight: 500;
}

.app-navlink:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}

.app-navlink.active {
  background: rgba(255,255,255,.18);
  color: #fff;
}

.app-sidebar-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: auto;
}

.app-sidebar-offcanvas .app-sidebar-inner {
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  color: #fff;
}

.app-topbar {
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(20,30,60,.08);
  position: sticky;
  top: 0;
  z-index: 5;
}

.card {
  border: 0;
  border-radius: var(--card-radius);
}

.card.shadow-soft {
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

.app-card {
  border-radius: var(--card-radius);
}

.app-card-title-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(13,110,253,.12);
  border: 1px solid rgba(13,110,253,.18);
}

.form-control, .form-select {
  border-radius: 12px;
  border-color: rgba(20, 30, 60, 0.14);
}

.form-control:focus, .form-select:focus {
  border-color: rgba(13, 110, 253, 0.55);
  box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .12);
}

.btn {
  border-radius: 12px;
}

.btn-primary {
  box-shadow: 0 10px 18px rgba(13,110,253,.22);
}

.btn-outline-secondary, .btn-outline-danger, .btn-outline-primary {
  background: rgba(255,255,255,.65);
}

.table {
  background: white;
  border-radius: var(--card-radius);
  overflow: hidden;
}

.table thead th {
  font-size: .85rem;
  letter-spacing: .02em;
  text-transform: none;
}

.table-hover tbody tr:hover {
  background: rgba(13,110,253,.04);
}

.badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 8px;
}

.kpi {
  transition: transform .15s ease, box-shadow .15s ease;
}
.kpi:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.text-muted {
  color: var(--text-muted) !important;
}

.app-footer {
  color: rgba(255,255,255,.78);
  background: linear-gradient(135deg, rgba(13,110,253,1), rgba(79,70,229,1));
}

.app-footer a {
  color: rgba(255,255,255,.9);
  text-decoration: none;
}
.app-footer a:hover {
  text-decoration: underline;
}

.transaction-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: flex-end;
}

.transaction-mobile-card .card-body {
  padding: 1rem;
}

.transaction-mobile-meta {
  display: grid;
  gap: 10px;
}

.transaction-mobile-meta div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

@media (max-width: 767.98px) {
  .transaction-filters {
    margin-bottom: 1rem;
  }

  .transaction-summary {
    justify-content: flex-start;
    margin-top: .25rem;
  }

  .transaction-mobile-card .badge-dot {
    margin-right: 0;
  }
}
