
  
  /* Backdrop Styles */
  .addGoalPopupBackdrop,
  .joinGoalPopupBackdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 1000;
  }
  .input-error {
    border: 2px solid red !important;
  }
  
  .input-error::placeholder {
    color: red;
    opacity: 1; /* ensure it's visible in all browsers */
  }
  
  /* Popup Container */
  .addGoalPopup,
  .joinGoalPopup {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.3s ease;
  }
  
  /* Popup Headings */
  .addGoalPopup h1,
  .joinGoalPopup h1 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #333;
  }
 
  /* Inputs */
  .goalInput,
  .targetAmount,
  .goalItem,
  .joinGoalAmount, 
  .linkToProduct {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
  }
  .joinGoalPopupButtons{
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
  }
  .submitAddGoalButton, .submitJoinGoalButton, .cancelAddGoalButton, .cancelJoinGoalButton {
    background: transparent;
    color: #ff4b2b;
    border: 2px solid #ff4b2b;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
  }
  .submitAddGoalButton, .submitJoinGoalButton{
    color: #55ff2b;
    border: 2px solid #55ff2b;
  }
  .submitJoinGoalButton:hover{
    background-color: #55ff2b;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(43, 255, 61, 0.4);
  }
 .submitAddGoalButton:hover{
    background-color: #55ff2b;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(43, 255, 61, 0.4);
 }
  .cancelJoinGoalButton:hover {
    background-color: #ff4b2b;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 75, 43, 0.4);
  }
  .cancelAddGoalButton:hover{
    background-color: #ff4b2b;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 75, 43, 0.4);
  }
  
  /* Labels */
  .joinGoalPopup label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
  }
  .dropdown-content {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    width: 340px;
    max-height: 250px;
    display: none;
    flex-direction: column;
    border-radius: 5px;
    overflow: hidden;
    z-index: 100;
  }
  
  .dropdown-search {
    padding: 10px;
    border: none;
    border-bottom: 1px solid #ccc;
    outline: none;
  }
  
  .dropdown-options {
    max-height: 200px;
    overflow-y: auto;
  }
  
  .dropdown-option {
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
  }
  
  .dropdown-option:hover {
    background: #f0f0f0;
  }
  
  .dropdown-option img {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 5px;
  }
  .selected {
    background: linear-gradient(120deg, #ffffff, #f1f1f1);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    font-size: 16px;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
  }
  
  .selected:hover {
    background: linear-gradient(120deg, #e8faff, #d2f0ff);
    border-color: #00b4d8;
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.2);
  }
  
  .selected::after {
    content: "▼";
    cursor: pointer;
    font-size: 12px;
    color: #666;
    margin-left: 10px;
    transition: transform 0.3s ease;
  }
  
  .custom-dropdown.open .selected::after {
    transform: rotate(180deg);
  }
  
.addNeedPopupBackdrop{
  position: fixed;
  height: 100%;
  width: 100%;
  background-color: #00000083;
  justify-content: center;
  align-items: center;
  top: 0px;
  left: 0px;
  display: none;
}
.addNeedPopup{
  background-color: white;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  padding: 30px;
  height: auto;
  width: 400px;
}
.addNeedPopup label {
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #444;
}
.addNeedPopupButtonsContainer{
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-around;
}
.addNeedPopup input[type="text"],
.addNeedPopup input[type="date"], 
.addNeedPopup input[type="number"],
.addNeedPopup select {
  width: 90%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.addNeedPopup input:focus {
  border-color: #007BFF;
  outline: none;
}

/* Buttons */
.submitNeedButton,
.cancelAddNeedButton {
  background: transparent;
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid;
  margin-top: 15px;
}

/* Match "Add" style (green) */
.submitNeedButton {
  color: #55ff2b;
  border-color: #55ff2b;
}
.submitNeedButton:hover {
  background-color: #55ff2b;
  color: white;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(43, 255, 61, 0.4);
}

/* Match "Cancel" style (red) */
.cancelAddNeedButton {
  color: #ff4b2b;
  border-color: #ff4b2b;
}
.cancelAddNeedButton:hover {
  background-color: #ff4b2b;
  color: white;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 75, 43, 0.4);
}
.viewNeedPopupBackdrop {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.formGroup {
  width: 100%;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.checkboxInline {
  margin-top: 8px;
  font-size: 0.95rem;
  color: #555;
  display: flex;
  align-items: center;
  gap: 8px;
}

.viewNeedPopup {
  background: white;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.3s ease;
  text-align: left;
}

.viewNeedPopup h1 {
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: #333;
}

.viewNeedPopup p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 10px;
}

.viewNeedButtonsContainer {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.closeViewNeedButton {
  background: transparent;
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #ff4b2b;
  color: #ff4b2b;
}

.closeViewNeedButton:hover {
  background-color: #ff4b2b;
  color: white;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 75, 43, 0.4);
}


/* Responsive tweaks */
@media (max-width: 600px) {
  .addNeedPopup {
    padding: 1.5rem;
  }

  .addNeedPopup button {
    width: 100%;
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
}
  /* Animation */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  