/* 🔹 Base Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: #f4f4f4;
  color: #333;
  line-height: 1.6;
}
   /* copyright */
   #copyright-message {
  font-size: 0.80em;            /* 🔧 Uchepetsa size ya mawu */
  font-weight: 400;             /* 🔧 Mawu asakhale a bold (400 = normal) */
  font-style: italic;           /* 🔧 Mawu apange style ya italic (kapenanso onjezere ngati mukufuna) */
  color: #666;                  /* 🔧 Mtundu wa mawu — osakhala wakuda kwambiri */
  text-align: center;
  margin-top: 60px;
  padding: 10px 14px;
  background-color: #f3f3f3;   
  font-family: "Segoe UI", sans-serif;  /* 🔧 Font yokongola ya UI */
 }

   /* Logo Above Menu */
 .logoAboveMenu {
  display: flex;
  justify-content: left; /* left the logo */
  align-items: left;
  margin-top: 2px;
  padding-left: 20px;
  background-color: transparent;
  }
  .logoAboveMenu img {
     height: 60px; /* Small logo */
  }	

/* 🔹 Header */
header {
  background: #2c3e50;
  color: white;
  padding: 1rem;
  text-align: center;
  font-size: 1.8rem;
  font-weight: bold;
  letter-spacing: 1px;
}


/* 🔹 Main Container */
main {
  padding: 1rem;
  max-width: 600px;
  margin: 2rem auto;
  background: white;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-radius: 8px;
}

/* 🔹 Form Styling */
form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

label {
  font-weight: bold;
  margin-bottom: 0.2rem;
}

input, select {
  padding: 0.6rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

input:focus, select:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 3px #3498db;
}

/* 🔹 Buttons */
button {
  padding: 0.7rem;
  font-size: 1rem;
  background: #E07B71;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: #2980b9;
}

button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* 🔹 Error & Success Messages */
.error {
  color: red;
  font-size: 0.9rem;
}

#sendMoneySuccess {
  font-size: 0.95rem;
  font-weight: bold;
}

/* 🔹 Dashboard Header */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #ddd;
}

#balance {
  font-size: 1.2rem;
  font-weight: bold;
  background: #E07B71;
  color: white;
}

/* 🔹 Notification Icon */
#notificationIcon {
  cursor: pointer;
  position: relative;
  font-size: 1.5rem;
}

#notificationIcon::after {
  content: attr(data-count);
  position: absolute;
  top: -8px;
  right: -10px;
  background: red;
  color: white;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 50%;
  font-weight: bold;
}

/* 🔹 Messages Box */
#messages {
  margin-bottom: 1rem;
  background: #f9f9f9;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}

#messages div {
  margin-bottom: 0.5rem;
  padding: 0.4rem;
  background: #eef;
  border-radius: 4px;
}

/* 🔹 Section Titles */
h2, h3 {
  margin-bottom: 1rem;
  color: #2c3e50;
}

password-wrapper {
 position: relative;
}

password-wrapper input {
 width: 100%;
 padding-right: 40px;
 box-sizing: border-box;
 height: 45px;
 font-size: 16px;
 border: 1px solid #ccc;
 border-radius: 6px;
}

toggle-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
  color: #555;
  user-select: none;
}

 #refreshDashboardBtn {
  background: #f39c12;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

#refreshDashboardBtn:hover {
  background: #e67e22;
}
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  border: 2px solid #ccc;
  border-top: 2px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
} 
 

/* 🔹 Responsive Design */
@media (max-width: 600px) {
  main {
    margin: 1rem;
    padding: 1rem;
  }

  header {
    font-size: 1.5rem;
  }

  button {
    font-size: 0.95rem;
  }
  p { 
  text-align: center;
  font-size: 1.8rem;
  font-weight: bold;
  letter-spacing: 1px;
} 
