/* style.css */

/* Basic reset and general styles */
* {
  margin: 0; 
  padding: 0; 
  box-sizing: border-box;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
  background: #f1f3f6;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  background: #002D5A; /* A deep navy blue */
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bank-logo {
  height: 40px;
  width: 40px;
  object-fit: contain;
}

header h1 {
  font-size: 1.5rem;
  color: #fff;
  margin: 0;
}

/* Make the bottom nav fixed to the bottom of the viewport */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  background-color: #fff;
  border-top: 1px solid #ccc;
  z-index: 999; /* Ensures it's on top of other elements */
}

/* Give the bottom nav a clear height to avoid overlapping content */
.nav-link {
  flex: 1;
  text-align: center;
  padding: 0.75rem 0;
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
}

/* Main content */
/* Add bottom padding to main so content isn't hidden behind the nav */
main {
  flex: 1;
  padding: 1rem;
  padding-bottom: 5rem; /* enough space for the fixed nav */
}
/* Balance / transactions / pin reveal sections */
section {
  background-color: #fff;
  border-radius: 8px;
  margin-bottom: 1rem;
  padding: 1rem 1.2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Balance Section */
.balance h2 {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.current-balance {
  font-size: 1.3rem;
  margin-top: 0.5rem;
}

/* Transactions */
.transactions h2 {
  margin-bottom: 0.8rem;
}

.transactions ul {
  list-style: none;
}

.transactions li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.transactions .amount {
  font-weight: bold;
}

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

.amount.positive {
  color: #5cb85c; /* green */
}

/* Notification subscribe */
.notification-subscribe {
  text-align: center;
}

#subscribeButton {
  margin-top: 0.5rem;
  padding: 0.75rem 1.2rem;
  background-color: #002D5A;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

#subscribeButton:hover {
  background-color: #014080;
}

/* PIN Reveal */
.pin-reveal h2 {
  margin-bottom: 1rem;
  font-weight: 500;
}

.pin-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pin-container input {
  width: 70px;
  padding: 0.5rem;
  font-size: 1.2rem;
  text-align: center;
  letter-spacing: 0.2rem;
  border: 2px solid #ccc;
  border-radius: 4px;
  color: #333;
  background-color: #fafafa;
}

.pin-container button {
  padding: 0.5rem 0.8rem;
  background-color: #002D5A;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.pin-instructions {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #777;
}

/* Bottom navigation bar */
.bottom-nav {
  display: flex;
  justify-content: space-around;
  background-color: #fff;
  border-top: 1px solid #ccc;
}

.nav-link {
  flex: 1;
  text-align: center;
  padding: 0.75rem 0;
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
}

.nav-link:hover {
  background-color: #f7f7f7;
}

.nav-link.active {
  background-color: #002D5A;
  color: #fff;
}