:root {
  --navy: #001f3f;
  --navy-light: #003366;
  --gold: #ffcc00;
  --white: #ffffff;
  --gray: #e0e0e0;
  --red: #ff4d4d;
}

body { 
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; 
  background: #f4f7f9; 
  color: #333; 
  padding: 0; 
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

h2 { color: var(--navy); margin-top: 40px; }

.card { 
  background: white; 
  padding: 20px; 
  border-radius: 16px; 
  margin-bottom: 20px; 
  box-shadow: 0 4px 12px rgba(0,0,0,0.05); 
  text-align: left;
  width: 90%;
  max-width: 400px;
}

#login-section, #force-password-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

input, select, textarea { 
  width: 100%; 
  padding: 14px; 
  margin: 10px 0; 
  border-radius: 10px; 
  border: 1px solid #ddd; 
  font-size: 16px; 
  box-sizing: border-box;
  background: #fff;
}

button { 
  width: 100%; 
  padding: 15px; 
  background: var(--navy); 
  color: white; 
  font-weight: 600; 
  border: none; 
  border-radius: 10px; 
  cursor: pointer; 
  margin-top: 10px;
  transition: all 0.3s;
}

button:hover { background: var(--navy-light); transform: translateY(-1px); }
.btn-secondary { background: #6c757d; color: white; margin-top: 20px; }

/* Dashboard Styles */
#dashboard {
  width: 100%;
  max-width: 500px;
  padding: 20px;
  box-sizing: border-box;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-img-container {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold);
  cursor: pointer;
}

.profile-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-text h4 { margin: 0; color: var(--navy); font-size: 1.1rem; }
.user-text small { color: #666; font-size: 0.8rem; }

.icon-btn {
  background: none;
  color: #666;
  width: auto;
  padding: 10px;
  font-size: 1.2rem;
  margin: 0;
}

/* Balance Card */
.balance-card {
  background: var(--navy);
  color: white;
  padding: 25px;
  border-radius: 20px;
  position: relative;
  margin-bottom: 25px;
  background-image: linear-gradient(135deg, var(--navy) 0%, #004080 100%);
  box-shadow: 0 10px 20px rgba(0,31,63,0.2);
}

.balance-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  opacity: 0.8;
  font-size: 0.9rem;
}

#balanceToggle { cursor: pointer; padding: 5px; }

.balance-card h1 {
  margin: 0;
  font-size: 2.2rem;
  letter-spacing: 1px;
}

.account-info { margin-top: 15px; opacity: 0.6; font-size: 0.8rem; }

/* Nav Grid */
.nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 25px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.nav-icon {
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 1.2rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}

.nav-item:hover .nav-icon { transform: scale(1.05); color: var(--gold); }
.nav-item span { font-size: 0.75rem; font-weight: 500; color: #555; }

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.stat-card {
  width: auto;
  margin-bottom: 0;
  padding: 15px;
  border-left: 4px solid var(--gold);
}

.stat-card small { color: #666; }
.stat-card h2 { margin: 5px 0 0 0; font-size: 1.1rem; color: var(--navy); }

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 1000;
}

.overlay-content {
  background: white;
  width: 100%;
  max-width: 500px;
  border-radius: 25px 25px 0 0;
  padding: 30px;
  box-sizing: border-box;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #999;
  cursor: pointer;
  width: auto;
  padding: 0;
  margin: 0;
}

.profile-edit-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-img-large {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--gold);
  margin-bottom: 15px;
}

.profile-img-large img { width: 100%; height: 100%; object-fit: cover; }

.custom-upload-btn {
  background: #f0f0f0;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #555;
}

.user-details-list { width: 100%; margin-top: 25px; }
.detail-item { border-bottom: 1px solid #eee; padding: 12px 0; }
.detail-item label { font-size: 0.8rem; color: #888; display: block; }
.detail-item p { margin: 5px 0 0 0; font-weight: 500; color: var(--navy); }

.bank-box { 
  background: #fff; 
  padding: 15px; 
  border-radius: 12px; 
  font-size: 0.85em; 
  margin-top: 25px; 
  text-align: left; 
  border-left: 4px solid var(--navy);
}

.text-red { color: var(--red) !important; }