@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f0f4f8;
  color: #1a1a2e;
  min-height: 100vh;
}

#lockScreen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
}

.lock-wrapper {
  width: 100%;
  max-width: 380px;
  padding: 16px;
}

.lock-header {
  text-align: center;
  margin-bottom: 28px;
  color: white;
}

.lock-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 8px;
  color: #4cc9f0;
}

.lock-bank-name {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 4px;
}

.lock-tagline {
  font-size: 12px;
  letter-spacing: 2px;
  opacity: 0.6;
  text-transform: uppercase;
  margin-bottom: 0;
}

.lock-box {
  background: white;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.lock-label {
  font-size: 14px;
  font-weight: 500;
  color: #555;
  margin-bottom: 16px;
}

.pin-dots-row {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.pin-dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #ccc;
  background: transparent;
  transition: all 0.15s ease;
}

.pin-dot.filled {
  background: #0f3460;
  border-color: #0f3460;
}

.keypad-grid {
  max-width: 240px;
  margin: 0 auto;
}

.keypad-btn {
  padding: 14px 8px;
  font-size: 18px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #f8f9fa;
  color: #333;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.keypad-btn:hover {
  background: #e8edf5;
  border-color: #0f3460;
}

.keypad-btn:active {
  transform: scale(0.93);
  background: #d0d8e8;
}

.keypad-clear {
  background: #fff0f0;
  border-color: #ffcccc;
  color: #dc3545;
  font-size: 16px;
}

.keypad-clear:hover {
  background: #ffe0e0;
}

.keypad-enter {
  background: #f0fff4;
  border-color: #b3e6c3;
  color: #198754;
  font-size: 16px;
}

.keypad-enter:hover {
  background: #d4f5e2;
}

.pin-error-text {
  font-size: 13px;
  color: #dc3545;
  min-height: 20px;
  margin-bottom: 0;
  font-weight: 500;
}

.pin-hint-text {
  font-size: 12px;
  color: #999;
  margin-top: 10px;
  margin-bottom: 0;
}

.pin-hint-text strong {
  color: #0f3460;
  letter-spacing: 2px;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-8px); }
  75%       { transform: translateX(8px); }
}

.shake {
  animation: shake 0.35s ease;
}

.atm-nav {
  background-color: #0f3460;
  border-bottom: 3px solid #4cc9f0;
  padding: 10px 0;
}

.atm-brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  color: white !important;
}

.atm-label {
  font-size: 11px;
  letter-spacing: 3px;
  color: #4cc9f0;
  margin-left: 6px;
  vertical-align: middle;
  font-weight: 400;
}

.nav-clock {
  text-align: right;
  color: white;
  line-height: 1.2;
}

.nav-clock span:first-child {
  display: block;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Courier New', monospace;
  color: #4cc9f0;
}

.nav-date-text {
  font-size: 11px;
  opacity: 0.7;
}

.acc-card-header {
  background: linear-gradient(135deg, #0f3460, #4cc9f0);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.balance-label-text {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.balance-num {
  font-size: 36px;
  font-weight: 700;
  color: #0f3460;
  margin-bottom: 4px;
  transition: color 0.3s;
}

.balance-num.updated-positive { color: #198754; }
.balance-num.updated-negative { color: #dc3545; }

.acc-detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
}

.acc-detail-row:last-child {
  border-bottom: none;
}

.acc-detail-label {
  color: #888;
}

.acc-detail-value {
  font-weight: 600;
  color: #333;
}

.op-tab-row {
  border-bottom: 2px solid #e9ecef;
  gap: 0;
}

.op-tab-btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #888;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.op-tab-btn.active {
  color: #0f3460;
  border-bottom-color: #0f3460;
  font-weight: 600;
}

.op-tab-btn:hover:not(.active) {
  color: #444;
  background: #f8f9fa;
}

.amount-input {
  font-size: 22px !important;
  font-weight: 600;
  letter-spacing: 1px;
}

.preset-chip {
  border: 1px solid #dee2e6;
  background: #f8f9fa;
  color: #555;
  border-radius: 20px;
  padding: 3px 14px;
  font-size: 12px;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.15s;
}

.preset-chip:hover {
  background: #0f3460;
  border-color: #0f3460;
  color: white;
}

.status-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  font-size: 13px;
  border-top: 1px solid transparent;
}

.status-alert.success {
  background: #d1f2e0;
  border-color: #a3d9b8;
  color: #155724;
}

.status-alert.error {
  background: #fde8e8;
  border-color: #f5c6c6;
  color: #721c24;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.status-alert:not(.d-none) {
  animation: slideDown 0.25s ease;
}

.txn-list-body {
  max-height: 420px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.txn-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  border-radius: 8px;
  margin-bottom: 6px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  font-size: 13px;
  /* New items slide in from the left */
  animation: slideInLeft 0.25s ease;
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

.txn-icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.txn-icon-circle.deposit  { background: #d1f2e0; color: #198754; }
.txn-icon-circle.withdraw { background: #fde8e8; color: #dc3545; }

.txn-info {
  flex: 1;
  min-width: 0;
}

.txn-type-label {
  font-weight: 600;
  color: #333;
  display: block;
  font-size: 12px;
}

.txn-time-label {
  font-size: 10px;
  color: #999;
}

.txn-amount-text {
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}

.txn-amount-text.deposit  { color: #198754; }
.txn-amount-text.withdraw { color: #dc3545; }

.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
}

.receipt-row:last-child { border-bottom: none; }
.receipt-row-label { color: #777; }
.receipt-row-value { font-weight: 600; }

.receipt-amount-highlight {
  text-align: center;
  padding: 18px;
  border-radius: 10px;
  margin: 12px 0;
}

.receipt-amount-highlight.deposit  { background: #d1f2e0; }
.receipt-amount-highlight.withdraw { background: #fde8e8; }

.receipt-amt-label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.receipt-amt-value {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 0;
}

.receipt-amount-highlight.deposit  .receipt-amt-label,
.receipt-amount-highlight.deposit  .receipt-amt-value  { color: #198754; }
.receipt-amount-highlight.withdraw .receipt-amt-label,
.receipt-amount-highlight.withdraw .receipt-amt-value  { color: #dc3545; }

footer {
  background: white;
  color: #888;
}

@media (max-width: 576px) {
  .balance-num   { font-size: 28px; }
  .lock-bank-name { font-size: 22px; }
  .keypad-btn    { padding: 12px 6px; font-size: 16px; }
  .atm-brand     { font-size: 15px; }
}