.profile-section {
  display: flex;
  min-height: calc(100vh - 70px);
  margin-top: 20px;
}

.sidebar {
  width: 250px;
  position: fixed;
  top: 70px;
  left: 0;
  bottom: 0;
  background-color: #f4f4f4;
  padding: 20px 0;
  border-right: 1px solid #ddd;
}

.menu-list {
  list-style: none;
  padding: 0;
}

.menu-item {
  padding: 15px 20px;
  cursor: pointer;
  font-size: 16px;
  color: #333;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
}

.menu-item i {
  margin-right: 10px;
}

.menu-item.open {
  background-color: #199A8E;
  color: white;
}

.menu-item:hover {
  background-color: #e0e0e0;
}

.content-wrapper {
  margin-left: 250px;
  padding: 20px;
  flex-grow: 1;
}

.section-content {
  display: none;
}

.section-content.open {
  display: block;
}

.user-info {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.user-info h2 {
  margin-top: 0;
  color: #199A8E;
}

.user-details p {
  margin: 10px 0;
  font-size: 16px;
}

.edit-profile-form, .add-card-form, .top-up-form, .edit-location-form {
  margin-top: 20px;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.edit-profile-form input, .add-card-form input, .top-up-form input, .edit-location-form input {
  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.edit-profile-form button, .add-card-form button, .top-up-form button, .edit-location-form button {
  padding: 8px 16px;
  margin: 5px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.edit-profile-btn, .add-card-toggle-btn, .top-up-toggle-btn, .edit-location-btn {
  display: inline-block;
  border: 2px solid #199A8E;
  border-radius: 10px;
  padding: 10px 20px;
  background-color: #fff;
  font-weight: 700;
  font-size: 14px;
  color: #199A8E;
  margin-top: 10px;
  transition: all 0.3s ease;
}

.edit-profile-btn:hover, .add-card-toggle-btn:hover, .top-up-toggle-btn:hover, .edit-location-btn:hover {
  background-color: #199A8E;
  color: #fff;
  cursor: pointer;
}

.save-profile-btn, .top-up-btn, .save-location-btn {
  background-color: #4CAF50;
  color: white;
}

.cancel-edit-btn, .cancel-add-card-btn, .cancel-top-up-btn, .cancel-location-btn {
  background-color: #f44336;
  color: white;
}

.save-profile-btn:hover, .top-up-btn:hover, .save-location-btn:hover {
  background-color: #45a049;
}

.cancel-edit-btn:hover, .cancel-add-card-btn:hover, .cancel-top-up-btn:hover, .cancel-location-btn:hover {
  background-color: #da190b;
}

.loading-animation {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #199A8E;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 1001;
}

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

.logout-btn {
  border-radius: 10px;
  border: 2px solid red;
  font-size: 18px;
  font-weight: 700;
  transition: all 0.3s ease;
  padding: 5px 10px;
  color: red;
  background-color: #fff;
}

.logout-btn i {
  margin-left: 5px;
}

.logout-btn:hover {
  color: #fff;
  background-color: red;
  cursor: pointer;
}

.logout-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.logout-modal-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  width: 300px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.logout-modal-content p {
  font-size: 18px;
  margin-bottom: 20px;
}

.logout-modal-buttons {
  display: flex;
  justify-content: space-around;
}

.logout-modal-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
}

.logout-modal-btn.yes {
  background-color: #f44336;
  color: white;
}

.logout-modal-btn.no {
  background-color: #199A8E;
  color: white;
}

.logout-modal-btn:hover {
  opacity: 0.9;
}

/* Edit password form */
.edit-password-form {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-top: 25px;
  max-width: 500px;
}

.edit-password-form h3 {
  color: #199A8E;
  margin-bottom: 15px;
  text-align: center;
}

.password-input-group {
  position: relative;
  margin-bottom: 15px;
}

.password-input-group input {
  width: 100%;
  padding: 10px 40px 10px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  cursor: pointer;
  transition: color 0.3s;
}

.toggle-password:hover {
  color: #199A8E;
}

.save-password-btn, .cancel-password-btn {
  padding: 8px 16px;
  margin-right: 10px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.save-password-btn {
  background-color: #199A8E;
  color: white;
}

.cancel-password-btn {
  background-color: #f44336;
  color: white;
}

.save-password-btn:hover {
  background-color: #157a6e;
}

.cancel-password-btn:hover {
  background-color: #da190b;
}

.edit-password-btn {
  display: inline-block;
  border: 2px solid #199A8E;
  border-radius: 10px;
  padding: 10px 20px;
  background-color: #fff;
  font-weight: 700;
  font-size: 14px;
  color: #199A8E;
  margin-top: 10px;
  transition: all 0.3s ease;
}

.edit-password-btn:hover {
  background-color: #199A8E;
  color: #fff;
  cursor: pointer;
}
