@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&family=Tektur:wght@400..900&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
    scroll-behavior: smooth;
  }
  #stockGoalsHeading {
    text-align: center;
    position: relative;
    top: -10px;
    padding: 30px;
    font-size: 25px;
    transition: all 0.3s ease;
  }

  body {
    background: linear-gradient(to right, #eef2f3, #c9d6ff);
    color: #333;
    padding: 20px;
    animation: fadeIn 1.5s ease-in;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  

  
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  /* Grid Section */
  .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
  }
  
  .info-box {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    animation: fadeInBox 0.8s ease forwards;
    opacity: 0;
  }
  
  .info-box:nth-child(1) { animation-delay: 0.3s; }
  .info-box:nth-child(2) { animation-delay: 0.6s; }
  .info-box:nth-child(3) { animation-delay: 0.9s; }
  
  @keyframes fadeInBox {
    to { opacity: 1; transform: scale(1); }
  }
  
  /* Stock Section */
  .stock-section {
    background: #ffffff98;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    animation: fadeIn 1s ease-in;
    backdrop-filter: blur(3px);
    max-height: 700px;
    overflow-y: scroll;
  }
  
  .stock-item {
    margin-bottom: 20px;
  }
  
  .stock-item span {
    display: inline-block;
    margin-right: 15px;
    font-weight: 500;
  }
  
  .progress-bar {
    background: #ddd;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 5px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
  }
  .progress-bar .progressBarCommitted{
    background: linear-gradient(120deg, rgb(0, 83, 151), rgb(0, 174, 255));
  }
  .progress-bar div {
    height: 100%;
    background-color: #00b09b;
    width: 0;
    animation: fillBar 1.5s forwards;
    box-shadow: 0 0 10px black;
  }
  .committed, .donations{
     color: rgb(0, 151, 118);
    border-radius: 15px;
    padding: 3px;
  }

  .committed{
    background: linear-gradient(120deg, rgb(0, 151, 118), rgb(0, 255, 200));
 
  }
  
  @keyframes fillBar {
    to { width: var(--target-width); }
  }
  
  /* Tags Section */
  .unmet-section {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    margin-bottom: 30px;
  }
  
  .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
  }
  
  .tag {
    padding: 10px 15px;
    border-radius: 20px;
    background: #e0e0e0;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
  }
  
  .tag:hover {
    transform: scale(1.05);
    background: #d1d1d1;
  }
  
  .tag.important {
    background: linear-gradient(120deg, rgb(151, 0, 0), red);
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255, 65, 108, 0.4);
  }
  
  /* Buttons */
  /* Info Grid Layout */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px;
}

/* Shared Info Box Style */
.info-box {
  padding: 20px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1.6;
}
.info-box:hover{
  box-shadow: 0 0 10px black;
}

/* Hover effect */


/* Custom Styles Per Box Type */
.hours-box {
  background: linear-gradient(to right, #dff9fb, #c7ecee);
  color: #2d3436;
}

.announcements-box {
  background: linear-gradient(to right, #ffeaa7, #fab1a0);
  color: #2d3436;

  
  position: relative;
  transition: all 0.4s ease;
  max-height: 60px; /* collapsed height */
  padding: 1rem;
  cursor: pointer;
}
.announceHeader{
  position: relative;
  top: -8px;
  text-align: center;
  transition: all 0.3s ease;
}
.announceHeader:hover{
  transform: scale(1.1);
}


/* Optional animation for inner content */
.announcements-box p {
  background-color: rgba(0, 0, 0, 0.548);
  border-radius: 10px;
  margin-top: 5px;
  color: white;
  padding: 10px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}


.info-guide-box {
  background: linear-gradient(to right, #a29bfe, #81ecec);
  color: #2d3436;
  overflow: hidden;
  position: relative;
  transition: all 0.4s ease;
  max-height: 60px; /* collapsed height */
  padding: 1rem;
  cursor: pointer;
}

.info-guide-box p {
  opacity: 0;
  transition: all 0.3s ease;
  margin-top: 5px;
  padding: 8px 0;
}
.announcementsPopupBackdrop{
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #00000079;
  width: 100%;
  height: 100%;
  left: 0px;
  top: 0px;
  z-index: 100;
  display: none;
}
.announcementsPopup{
  background-image: linear-gradient(150deg, white, rgba(145, 145, 145, 0.541));
  border-radius: 10px;
  color: black;
  padding: 60px;
  height: 900px;
  min-width: 700px;
  position: relative;
  backdrop-filter: blur(3px);
  overflow-y: scroll;
}
.addAnnouncementBackdrop{
  width: 100%;
  height: 100%;
  position: absolute;
  backdrop-filter: blur(3px);
  justify-content: center;
  align-items: center;
  display: none;
}
.addAnnouncementPopup{
  background-color: white;
  border-radius: 10px;
  height: 500px;
  width: 350px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.addAnnouncementPopup input{
  width: 80%;
 
}
.announcementMessage{
  width: 300px;
  height: 150px;
  padding: 10px;
  font-size: 16px;
  color: black;
  background-color: white;
  border: 1px solid #333;
  box-sizing: border-box;
  display: block;
 }
 .sendMessageButton{
  background: linear-gradient(120deg, green, rgb(0, 230, 0));
  color: white;
  border-radius: 10px;
  padding: 10px;
  width: 90%; 
  position: absolute;
  bottom: 10px;
  border: none;
  cursor: pointer;
  font-size: 20px;
  transition: all 0.1s ease;
 }
 .usersContainer{
  height: 200px;
  width: 90%;
  border-radius: 10px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: top;
  align-items: center;
 }
 .usersContainer li{
  background-color: rgb(187, 187, 187);
  border-radius: 5px;
  margin-top: 5px;
  display: flex;
  justify-content: space-between;
  width: 90%;
 }
 .usersContainer li input{
  height: 20px;
  width: 20px;
  border-radius: 50%;
 }
 .usersContainer li span{
  display: flex;
  align-items: center;
 }
 .checkAllContainer{
  display: flex;
  align-items: center;
  justify-content: left;
  position: relative;
  left: -140px;
 }
 .checkAllInput {
  width: 10px;
  height: 10px;
}

 .usersContainer li{
  list-style-type: none;
 }
 .sendMessageButton:hover{
  transform: scale(1.056);
  box-shadow: 0 0 10px black;
 }
.announcementsPopup::-webkit-scrollbar {
  width: 10px;
}

.announcementsPopup::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 10px;
}

.announcementsPopup::-webkit-scrollbar-thumb {
  background: linear-gradient(120deg, #999, #333);
  border-radius: 10px;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

.announcementsPopup::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(120deg, #666, #000);
}

.announcementsPopup p {
  background-color: rgb(255, 255, 255);
  border-radius: 10px;
  margin-top: 6px;
  padding: 30px;
  position: relative;
  box-shadow: 5px 5px 10px black;
}

.addAnnouncementButton{
  position: absolute;
  bottom: 5px;
  right: 5px;
  box-shadow: 5px 5px 10px black;
  border: none;
  background: linear-gradient(120deg, green, rgb(0, 230, 0));
  color: black;
  border-radius: 5px;
  height: 50px;
  width: 50px;
  cursor: pointer;
}
.addAnnouncementButton svg{
  width: 40px;
  height: 40px;
  fill: white;
}

.announcementsPopup p span{
  position: absolute;
  bottom: 5px;
  right: 5px;
  margin-right: 5px;
}
.announcementsPopup p span svg{
  fill: black;
}
.closeAddAnnouncementsButton, .closeAnnouncementsButton{
  background-color: none;
  border: none;
 
}
.closeAddAnnouncementsButton svg:hover{
  transform: scale(1.1);
  fill: red;
}
.closeAnnouncementsButton svg:hover{
  transform: scale(1.1);
  fill: red;
}
.closeAddAnnouncementsButton svg, .closeAnnouncementsButton svg{
  fill: black;
  position: absolute;
  top: 5px;
  right: 5px;
  transition: all 0.3s ease;
  cursor: pointer;
  }
.hours-box {
  background: linear-gradient(to right, #dff9fb, #c7ecee);
  color: #2d3436;
  overflow: hidden;
  position: relative;
  transition: all 0.4s ease;
  max-height: 60px; /* collapsed state */
  padding: 1rem;
  cursor: pointer;
}

/* Expand on hover */


/* Animate paragraph appearance */
.hours-box p {
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  margin-top: 5px;
  padding: 8px 0;
}

/* Reveal text smoothly */


.userPostedBy{
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 500;
}
.userPostedBy svg{
  fill: white;
  margin-right: 5px;
}
.info-guide-box {
  background: linear-gradient(to right, #a29bfe, #81ecec);
  color: #2d3436;
 }
.leaveGoalButton, .joinGoalButton, .addNeedButton, .addGoalButton{
  background: linear-gradient(120deg, green, rgb(0, 230, 0));
  border: none;
  height: 30px;
  width: 140px;
  font-size: 18px;
  border-radius: 10px;
  color: white;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-top: 5px;
}
.leaveGoalButton{
  background: linear-gradient(120deg, rgb(151, 0, 0), red);
  width: 80px;
  margin-top: 10px;
}
.joinGoalButton{
  width: 80px;
 background: linear-gradient(120deg, green, rgb(0, 230, 0));
}
.leaveGoalButton:hover, .joinGoalButton:hover{
  box-shadow: 0 0 10px black;
}
.addGoalButton:hover{
    box-shadow: 0 0 10px black;
}
.addNeedButton:hover{
  box-shadow: 0 0 10px black;
}
.committedContainer {
  position: relative;
  display: inline-block;
  width: 230px;
}

.committedSummary {
  background: #f5f5f5;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  color: rgb(0, 83, 151);
}
.checkUserCompleteGoal{
  border: none;
  background-color: #00cecb00;
  margin-left: 5px;
  cursor: pointer;
 }
.checkUserCompleteGoal svg {
  color: rgb(134, 134, 134);
  text-shadow: 0 0 10px black;
  transition: all 0.3s ease;
}
.checkUserCompleteGoal:hover svg{
  transform: scale(1.5);
  color: rgb(0, 255, 0);
}
.no-hover svg{
  fill: rgb(0, 255, 0) ;
}
.no-hover:hover svg {
  transform: none;
  color: inherit;
  cursor: default;
  color: rgb(0, 255, 0);
}
.userCount{
  display: flex;
  align-items: center;
  justify-content: center;
}
.userCount svg{
  position: relative;
  top: 5px;
  fill: black;
}

.committedList {
  position: absolute;
  top: 110%; /* Below the button */
  left: 0;
  background: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-radius: 10px;
  padding: 10px;
  opacity: 0;
  z-index: 10;
  transition: all 0.3s ease;
}

.committedList li {
  padding: 5px 10px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: last baseline;
}
.committedList li svg{
  margin-right: 6px;
}

.committedContainer.active .committedList {
  opacity: 1;
}





/* Responsive Font Scaling */
@media (max-width: 500px) {
  .info-box {
    font-size: 0.95rem;
    padding: 15px;
  }
  .stock-section{
    max-height: 420px;
  }
  .announcements-box, .info-guide-box, .hours-box{
    right: 20px;
  }
}
