
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

body {
  background: #e8ecf1;
  color: #222;
}

/* LOGIN */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: #2b5aa8;
}

.login-box {
  background: #fff;
  border-radius: 16px;
  padding: 50px 40px;
  width: 380px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.login-box h2 {
  margin-bottom: 30px;
  color: #2b5aa8;
  font-size: 26px;
}

.login-box input {
  width: 100%;
  padding: 14px;
  margin-bottom: 15px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 15px;
}

.login-box button {
  width: 100%;
  padding: 14px;
  background: #2b5aa8;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  margin-top: 10px;
}

.login-box button:hover {
  background: #234a8f;
}

.error {
  display: none;
  color: #dc2626;
  font-size: 14px;
  margin-top: 10px;
}

/* DASHBOARD */
.dashboard {
  display: none;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: #e8ecf1;
}

/* HEADER */
.header {
  background: #2b5aa8;
  color: #fff;
  padding: 20px 20px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.meatball {
  font-size: 24px;
  cursor: pointer;
}

.logo {
  font-size: 16px;
  font-weight: 600;
}

.header-right {
  display: flex;
  gap: 15px;
  align-items: center;
}

.mode-toggle {
  cursor: pointer;
  font-size: 20px;
}

/* MENU */
.menu {
  display: none;
  background: #fff;
  margin: 10px 20px;
  border-radius: 12px;
  padding: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.menu button {
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 12px 15px;
  text-align: left;
  cursor: pointer;
  color: #2b5aa8;
  font-weight: 500;
  border-radius: 8px;
}

.menu button:hover {
  background: #f3f4f6;
}

/* SECTIONS */
.section {
  display: none;
  padding: 20px;
}

/* HOME SECTION */
#homeSection {
  padding: 20px;
}

.user-card {
  background: #2b5aa8;
  color: white;
  margin: 0 20px 20px;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(43, 90, 168, 0.3);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.user-avatar {
  width: 45px;
  height: 45px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #2b5aa8;
}

.user-name {
  font-size: 16px;
  font-weight: 600;
}

.balance-label {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 5px;
}

.balance-amount {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1px;
}

.action-row {
  display: flex;
  gap: 10px;
  margin: 20px 20px 0;
}

.action-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}

.deposit-btn {
  background: #10b981;
  color: white;
}

.transfer-btn {
  background: #2b5aa8;
  color: white;
}

.statement-btn {
  background: #ef4444;
  color: white;
}

.info-section {
  background: white;
  margin: 20px;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  color: #6b7280;
  font-size: 14px;
}

.info-value {
  color: #111827;
  font-weight: 600;
  font-size: 14px;
}

.transactions-section {
  background: white;
  margin: 0 20px 20px;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.download-btn {
  background: #2b5aa8;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 500;
}

.transaction-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
}

.transaction-item:last-child {
  border-bottom: none;
}

.txn-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.txn-type {
  font-size: 13px;
  color: #6b7280;
}

.txn-desc {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
}

.txn-date {
  font-size: 12px;
  color: #9ca3af;
}

.txn-amount {
  font-weight: 600;
  font-size: 14px;
}

.txn-amount.debit {
  color: #dc2626;
}

.txn-amount.credit {
  color: #10b981;
}

/* OTHER SECTIONS */
.form-section {
  background: white;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.form-section h3 {
  color: #2b5aa8;
  margin-bottom: 20px;
  font-size: 20px;
}

.form-section input {
  width: 100%;
  padding: 14px;
  margin-bottom: 15px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 15px;
}

.form-section button {
  width: 100%;
  padding: 14px;
  background: #2b5aa8;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
}

.form-section button:hover {
  background: #234a8f;
}

/* HISTORY TABLE */
.scrollable {
  max-height: 400px;
  overflow-y: auto;
  margin-top: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  border: 1px solid #e5e7eb;
  padding: 12px;
  text-align: left;
  font-size: 14px;
}

th {
  background: #2b5aa8;
  color: white;
  font-weight: 600;
}

/* OTP */
.otp-inputs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.otp-box {
  width: 45px;
  height: 50px;
  text-align: center;
  font-size: 20px;
  border: 2px solid #d1d5db;
  border-radius: 10px;
  font-weight: 600;
}

.otp-box:focus {
  outline: none;
  border-color: #2b5aa8;
}

/* SUCCESS SCREENS */
.success-screen {
  display: none;
  position: fixed;
  inset: 0;
  background: #2b5aa8;
  color: #fff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  z-index: 1000;
}

.close-btn {
  position: absolute;
  top: 25px;
  right: 25px;
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.green-tick {
  font-size: 100px;
  color: #10b981;
  margin-bottom: 20px;
}

.success-icon {
  font-size: 80px;
  margin-bottom: 20px;
}

.zoom {
  animation: zoom 0.4s ease;
}

@keyframes zoom {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

.success-screen h2 {
  font-size: 24px;
  margin-bottom: 15px;
}

.success-screen p {
  font-size: 15px;
  opacity: 0.95;
  margin: 8px 0;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 20px;
  font-size: 13px;
  color: #6b7280;
}

.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: #333;
  width: 300px;
  color: white;
  padding: 16px 24px;
  border-radius: 8px;
  font-size: 15px;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}