* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f0f2f5;
  color: #333;
}

/* ============= LOGIN PAGE ============= */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #00a651 0%, #1a7a4f 100%);
}

.login-container {
  width: 100%;
  padding: 20px;
}

.login-box {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2);
  max-width: 450px;
  margin: 0 auto;
  text-align: center;
}

.bank-logo {
  font-size: 60px;
  display: block;
  margin-bottom: 20px;
}

.bank-logo img {
  width: 120px;
  height: 120px;
  display: block;
  margin: 0 auto 20px;
}

.header-left .bank-logo {
  font-size: 0;
  display: flex;
  align-items: center;
  margin-bottom: 0;
}

.header-left .bank-logo img {
  width: 50px;
  height: 50px;
  margin: 0;
}

.login-box h2 {
  color: #2c3e50;
  margin-bottom: 10px;
  font-size: 28px;
}

.tagline {
  color: #95a5a6;
  font-size: 14px;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #2c3e50;
  font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="number"]:focus,
.form-group input[type="date"]:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #00a651;
  box-shadow: 0 0 5px rgba(0, 166, 81, 0.3);
}

.form-group.checkbox {
  display: flex;
  align-items: center;
  margin: 15px 0;
}

.form-group.checkbox input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
  cursor: pointer;
}

.form-group.checkbox label {
  margin: 0;
  cursor: pointer;
  font-weight: normal;
}

.btn {
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 16px;
}

.btn-login {
  width: 100%;
  background: linear-gradient(135deg, #00a651 0%, #1a7a4f 100%);
  color: white;
  margin: 20px 0;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 166, 81, 0.4);
}

.error-message {
  color: #e74c3c;
  font-size: 14px;
  margin-top: 10px;
}

.login-links {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #ecf0f1;
}

.login-links p {
  margin: 5px 0;
  color: #95a5a6;
  font-size: 12px;
}


/* ============= DASHBOARD PAGE ============= */
.dashboard-page {
  padding-bottom: 100px;
}

.header {
  background: linear-gradient(135deg, #00a651 0%, #1a7a4f 100%);
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-left .bank-logo {
  font-size: 30px;
  margin: 0;
}

.header h1 {
  font-size: 24px;
  margin: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logout-btn {
  background-color: rgba(231, 76, 60, 0.9);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.logout-btn:hover {
  background-color: #e74c3c;
  transform: translateY(-2px);
}

.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Account Overview */
.overview-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.balance-card {
  background: linear-gradient(135deg, #00a651 0%, #1a7a4f 100%);
  color: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.balance-card h2 {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: 10px;
}

.balance-amount {
  font-size: 48px;
  font-weight: bold;
  margin: 20px 0;
}

.account-name {
  font-size: 18px;
  margin: 10px 0 5px;
}

.account-number {
  font-size: 12px;
  opacity: 0.8;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.info-card h3 {
  font-size: 14px;
  color: #95a5a6;
  margin-bottom: 10px;
}

.card-value {
  font-size: 24px;
  font-weight: bold;
  color: #2c3e50;
}

/* Actions Section */
.actions-section {
  margin-bottom: 30px;
}

.actions-section h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #2c3e50;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.action-btn {
  background: white;
  border: 2px solid #ecf0f1;
  padding: 15px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  color: #2c3e50;
  font-size: 14px;
}

.action-btn:hover {
  border-color: #667eea;
  background: #f9f9f9;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Transactions Section */
.transactions-section {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.transactions-section h3 {
  margin-bottom: 15px;
  color: #2c3e50;
}

.transactions-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.transaction-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: #f9f9f9;
  border-left: 4px solid #95a5a6;
  border-radius: 5px;
  transition: all 0.3s;
}

.transaction-item:hover {
  background: #f0f2f5;
  transform: translateX(5px);
}

.transactionIn {
  border-left-color: #27ae60;
}

.transactionOut {
  border-left-color: #e74c3c;
}

.transaction-desc {
  font-weight: 600;
  color: #2c3e50;
  flex: 1;
}

.transaction-date {
  color: #95a5a6;
  font-size: 12px;
  margin: 0 15px;
}

.transaction-amount {
  font-weight: bold;
  font-size: 16px;
}

.amount-in {
  color: #27ae60;
}

.amount-out {
  color: #e74c3c;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  max-height: 80vh;
  overflow-y: auto;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.close:hover {
  color: #000;
}

.modal-content h2 {
  color: #2c3e50;
  margin-bottom: 20px;
}

.modal-content h4 {
  color: #2c3e50;
  margin-top: 15px;
  margin-bottom: 10px;
}

.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, #00a651 0%, #1a7a4f 100%);
  color: white;
  margin-top: 20px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 166, 81, 0.4);
}

.btn-secondary {
  background: #ecf0f1;
  color: #2c3e50;
  width: 100%;
  margin: 10px 0;
}

.btn-secondary:hover {
  background: #dfe6e9;
}

.contact-info {
  text-align: left;
}

.contact-info p {
  margin: 10px 0;
  line-height: 1.6;
}

.settings-panel {
  text-align: left;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 10px;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: white;
  border-top: 1px solid #ecf0f1;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.nav-item {
  text-decoration: none;
  color: #95a5a6;
  font-size: 12px;
  text-align: center;
  flex: 1;
  padding: 10px 0;
  transition: all 0.3s;
}

.nav-item:hover,
.nav-item.active {
  color: #00a651;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 10px;
  }

  .header-left {
    width: 100%;
  }

  .header h1 {
    font-size: 18px;
  }

  .balance-amount {
    font-size: 32px;
  }

  .actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .transaction-item {
    flex-wrap: wrap;
    gap: 10px;
  }

  .transaction-date {
    order: 3;
    width: 100%;
    margin: 0;
  }
}

@media (max-width: 480px) {
  .login-box {
    padding: 25px;
  }

  .main-content {
    padding: 10px;
  }

  .actions-grid {
    grid-template-columns: 1fr;
  }

  .header-right {
    flex-direction: column;
    gap: 10px;
  }
}