
/* ====== TOP BAR ====== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #252a2d;
  color: #fff;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.left-actions {
  display: flex;
  align-items: center;
  gap: 1px;
  flex: 1;
}

/* Hamburger */
.hamburger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}

.hamburger__bar {
  height: 2px;
  background: #7d8489;
  border-radius: 2px;
  transition: transform .18s ease;
}

/* Longest to shortest */
.hamburger__bar--1 { width: 22px; }
.hamburger__bar--2 { width: 21px; }
.hamburger__bar--3 { width: 20px; }
.hamburger__bar--4 { width: 19px; }

.hamburger-btn:hover .hamburger__bar {
  transform: translateX(2px);
}

/* Logo styles */
.logo {
  height: 26px;
  margin-left: -40px; /* keeps it very close to the hamburger */
}

/* Spacer (to keep layout centered) */
.center-spacer {
  flex: 1;
}

/* Right-side actions */
.right-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 20px;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 4px;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  margin-right: 17px;
}

.balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: #383d40;
  border-radius: 5px;
  overflow: hidden;
  font-weight: 600;
  border: 1px solid #3e4346;
  height: 26px;
  padding: 0;
  line-height: 1;
  min-width: 0;
  margin-bottom: 4px;
}

.balance-amount {
  color: #fff;
  padding: 4px 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.deposit-btn {
  background-color: #9be22d;
  color: #000;
  padding: 4px 8px;
  border: none;
  outline: none;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease-in-out;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.deposit-btn:hover {
  background-color: #8ad926;
}

/* RESPONSIVE DESIGN */
@media (max-width: 480px) {
  .balance-pill {
    height: 27px;
    border-radius: 20px;
    gap: 3px;
    top: 10px;
    margin-left: -20px;
  }

  .balance-amount {
    padding: 2px 6px;
    font-size: 14px;
    margin-left: 5px;
  }

  .deposit-btn {
    width: 19px;
    height: 19px;
    font-size: 14px;
    border-radius: 20px;
    margin-right: 4px;
  }

  .deposit-btn strong {
    font-size: 18px;
    margin-bottom: 3px;
  }

  .logo {
    height: 26px;
    margin-left: 1px;
  }
}


#preloader {
  position: fixed;
  top: 0px;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
}

.bar-spinner {
  position: relative;
  margin-top: -30px; /* 30px below your header */
  top: -205px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.bar-spinner div {
  transform-origin: 16px 16px; /* smaller radius = bars closer to center */
  animation: spinFade 1.2s linear infinite;
}

.bar-spinner div:after {
  content: "";
  display: block;
  position: absolute;
  top: 2px;          /* closer to center */
  left: 15px;        /* shorter arm length */
  width: 3px;        /* thinner bar */
  height: 8px;       /* shorter bar */
  border-radius: 6px;
  background: #333;
}

/* keep the same rotation + delay pattern */
.bar-spinner div:nth-child(1)  { transform: rotate(0deg);   animation-delay: -1.1s; }
.bar-spinner div:nth-child(2)  { transform: rotate(30deg);  animation-delay: -1s; }
.bar-spinner div:nth-child(3)  { transform: rotate(60deg);  animation-delay: -0.9s; }
.bar-spinner div:nth-child(4)  { transform: rotate(90deg);  animation-delay: -0.8s; }
.bar-spinner div:nth-child(5)  { transform: rotate(120deg); animation-delay: -0.7s; }
.bar-spinner div:nth-child(6)  { transform: rotate(150deg); animation-delay: -0.6s; }
.bar-spinner div:nth-child(7)  { transform: rotate(180deg); animation-delay: -0.5s; }
.bar-spinner div:nth-child(8)  { transform: rotate(210deg); animation-delay: -0.4s; }
.bar-spinner div:nth-child(9)  { transform: rotate(240deg); animation-delay: -0.3s; }
.bar-spinner div:nth-child(10) { transform: rotate(270deg); animation-delay: -0.2s; }
.bar-spinner div:nth-child(11) { transform: rotate(300deg); animation-delay: -0.1s; }
.bar-spinner div:nth-child(12) { transform: rotate(330deg); animation-delay: 0s; }

@keyframes spinFade {
  0%   { opacity: 1; }
  100% { opacity: 0.25; }
}



/* Container */
.container {
  max-width: 600px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin: 0 auto;
  background-color: white;
  border-radius: 0px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .container {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    top: -25px;
  }
}

.match-5 {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.slide-page {
    position: fixed;
    top: 0;
    right: -100%;        /* start off-screen */
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    transition: right 0.45s ease-in-out; /* smooth slide */
    overflow-y: auto;
}

.slide-page.open {
    right: 0; /* slide into view */
}

.statement-page {
    height: 100vh;
    font-family: Arial, sans-serif;
    padding: 15px;
    background: #f1f1edff;
}

.statement-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.statement-list {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background: #fff;
    padding: 12px;
    border-radius: 0px;
}

.statement-item {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
}

.statement-item:last-child {
    border-bottom: none;
}

.left .label {
    font-size: 13px;
    color: #222;
    margin-left: 6px;
}

.left .code {
    font-weight: bold;
}

.left .date {
    font-size: 13px;
    color: #666;
    margin-top: 3px;
    margin-left: 6px;
}

.right {
    text-align: right;
}

.amount {
    font-size: 13px;
    font-weight: 600;
    margin-right: 6px;
}

.amount.positive {
    color: #8ad926 /* green */
}

.amount.negative {
    color: #cc371b; /* red */
}

.balance {
    font-size: 13px;
    color: #000000;
    margin-top: 3px;
    margin-right: 6px;
}

.balance span {
    font-weight: 600;
}