/* ============================================================
   ITRSimple — App window mockups (Home hero + Screenshots)
   ============================================================ */

.app {
  background: #fff;
  border-radius: 18px;
  border: 1px solid #E1E6F0;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-size: 13px;
  color: var(--ink);
}

/* title bar */
.app__bar {
  display: flex; align-items: center; gap: 12px;
  height: 42px; padding: 0 15px;
  background: #FBFCFE; border-bottom: 1px solid #EAEEF6;
}
.app__dots { display: flex; gap: 7px; }
.app__dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.app__dots i:nth-child(1) { background: #FF5F57; }
.app__dots i:nth-child(2) { background: #FEBC2E; }
.app__dots i:nth-child(3) { background: #28C840; }
.app__title { font-size: 12.5px; font-weight: 500; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.app__badge {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Geist Mono', monospace; font-size: 11px; font-weight: 500;
  color: var(--green-600); background: rgba(34,197,94,0.1); padding: 4px 9px; border-radius: 7px;
}
.app__badge .d { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulseDot 2s ease-in-out infinite; }

.app__body { display: grid; grid-template-columns: 184px 1fr; min-height: 420px; }

/* sidebar */
.app__side { background: #FAFBFE; border-right: 1px solid #EAEEF6; padding: 14px 12px; display: flex; flex-direction: column; }
.app__client {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px;
  background: #fff; border: 1px solid #E7ECF6; box-shadow: var(--shadow-sm); margin-bottom: 14px;
}
.app__client .av { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 12px; }
.app__client .nm { font-weight: 600; font-size: 12.5px; line-height: 1.2; }
.app__client .fy { font-size: 10.5px; color: var(--muted); font-family: 'Geist Mono', monospace; }
.app__navlbl { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #9AA6BC; padding: 6px 10px 4px; }
.app__nav { display: flex; flex-direction: column; gap: 2px; }
.app__nav a { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 9px; color: var(--ink-soft); font-weight: 500; font-size: 12.5px; }
.app__nav a svg { width: 15px; height: 15px; opacity: 0.8; }
.app__nav a.on { background: rgba(37,99,235,0.1); color: var(--blue); }
.app__side .upgrade { margin-top: auto; background: linear-gradient(135deg, #EEF3FF, #F6FAFF); border: 1px solid #DCE6FB; border-radius: 12px; padding: 12px; }
.app__side .upgrade b { font-size: 12px; }
.app__side .upgrade p { margin: 4px 0 9px; font-size: 11px; color: var(--muted); }
.app__side .upgrade .b { display: block; text-align: center; background: var(--blue); color: #fff; border-radius: 8px; padding: 7px; font-size: 11.5px; font-weight: 500; }

/* main */
.app__main { padding: 18px 20px; background: #fff; overflow: hidden; }
.app__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.app__head h4 { font-size: 16px; font-weight: 600; }
.app__head .sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.app__chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 500; padding: 6px 11px; border-radius: 8px; border: 1px solid #E7ECF6; color: var(--ink-soft); }

/* stat row */
.app__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.app__stat { border: 1px solid #EAEEF6; border-radius: 12px; padding: 12px 13px; }
.app__stat .k { font-size: 10.5px; color: var(--muted); font-weight: 500; letter-spacing: 0.02em; }
.app__stat .v { font-family: 'Geist Mono', monospace; font-size: 18px; font-weight: 600; margin-top: 5px; letter-spacing: -0.02em; }
.app__stat .v.pos { color: var(--green-600); }
.app__stat .v.neg { color: #E11D48; }
.app__stat .t { font-size: 10px; margin-top: 4px; display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }

/* transactions table */
.app__tbl { border: 1px solid #EAEEF6; border-radius: 12px; overflow: hidden; }
.app__tr { display: grid; grid-template-columns: 1fr 92px 96px; align-items: center; gap: 10px; padding: 9px 13px; border-bottom: 1px solid #F1F4FA; }
.app__tr:last-child { border-bottom: none; }
.app__tr.h { background: #FAFBFE; font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: #9AA6BC; font-weight: 600; }
.app__tr .desc { display: flex; align-items: center; gap: 9px; min-width: 0; }
.app__tr .desc .ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.app__tr .desc .nm { font-weight: 500; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app__tr .desc .dt { font-size: 10.5px; color: var(--muted); font-family: 'Geist Mono', monospace; }
.app__tag { font-size: 10.5px; font-weight: 500; padding: 4px 9px; border-radius: 999px; text-align: center; white-space: nowrap; }
.tag-income { background: rgba(34,197,94,0.12); color: var(--green-600); }
.tag-expense { background: rgba(244,63,94,0.1); color: #E11D48; }
.tag-tax { background: rgba(37,99,235,0.1); color: var(--blue); }
.tag-transfer { background: rgba(100,116,139,0.12); color: var(--muted); }
.app__amt { font-family: 'Geist Mono', monospace; font-size: 12.5px; font-weight: 500; text-align: right; }
.app__amt.pos { color: var(--green-600); }
.app__amt.neg { color: var(--ink); }
.ic-income { background: rgba(34,197,94,0.12); color: var(--green-600); }
.ic-expense { background: rgba(244,63,94,0.1); color: #E11D48; }
.ic-tax { background: rgba(37,99,235,0.1); color: var(--blue); }
.ic-transfer { background: rgba(100,116,139,0.12); color: var(--muted); }
.app__tr .ic svg { width: 14px; height: 14px; }

/* floating cards on hero */
.float-card {
  position: absolute; background: #fff; border: 1px solid #E7ECF6;
  border-radius: 14px; box-shadow: var(--shadow-lg); padding: 14px 16px; z-index: 3;
}
.float-card .lbl { font-size: 11px; color: var(--muted); font-weight: 500; }
.float-card .big { font-family: 'Geist Mono', monospace; font-size: 22px; font-weight: 600; margin-top: 3px; letter-spacing: -0.02em; }

/* compute mini-window variant */
.app--compute .app__main { background: #fff; }
.compute-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #F1F4FA; font-size: 13px; }
.compute-row:last-child { border-bottom: none; }
.compute-row .l { color: var(--ink-soft); }
.compute-row .r { font-family: 'Geist Mono', monospace; font-weight: 500; }
.compute-row.total { border-top: 2px solid #EAEEF6; border-bottom: none; margin-top: 4px; padding-top: 14px; }
.compute-row.total .l { font-weight: 600; color: var(--ink); }
.compute-row.total .r { font-size: 17px; font-weight: 600; color: var(--blue); }

@media (max-width: 720px) {
  .app__body { grid-template-columns: 1fr; }
  .app__side { display: none; }
  .app__stats { grid-template-columns: 1fr 1fr; }
  .float-card { display: none; }
}
