/* General styles */
body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.home {
  display: flex;
  /*min-height: 100vh;*/
}

.main-content {
  flex: 1;
  transition: margin-left 0.3s ease;
}

.sidebar-hidden {
  margin-left: 70px; /* Adjust based on sidebar width */
  margin-top: 60px;

}

.sidebar-visible {
  margin-left: 300px; /* Adjust based on sidebar width */
  margin-top: 60px;

}

/* Welcome Section */
.welcome-section {
  background: white;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
}

.welcome-text {
  font-size: 24px;
  font-weight: 700;
  color: #111;
}

.sub-text {
  font-size: 14px;
  color: #333;
}
.welcome-message{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* Cards Section */
.cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
  justify-content: flex-start;
}

.survey-card, .stats-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  width: calc(34% - 21px);
  box-sizing: border-box;
}

.survey-card .card-title {
  font-size: 16px;
  font-weight: 700;
}

.survey-card .card-details {
  font-size: 12px;
  color: #333;
}
.card-details-time {
  color: transparent;
  background: linear-gradient(90deg, #F9BC33 0%, #FE346E 15%);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: 12px;
  font-weight: 600;
  /*color: #333;*/
}
.flag-dropdown{
  border-radius: 10px 0 0 10px !important;
}
.participate-btn {
  background: linear-gradient(90deg, #00BDA9 0%, #00C0FC 100%);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
}

.stats-card {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  height: 100px;
}

.points-info {
  background: #FFAA1A;
  color: white;
  padding: 20px;
  border-radius: 16px;
}

.points-title  {
  font-size: 32px;
  font-weight: 700;
}
.stats-value {
  font-size: 32px;
  font-weight: 700;
}
.stats-title {
  font-size: 16px;
  font-weight: 600;
}

.survey-title {
  font-size: 20px;
  font-weight: 700;
  color: #00BDA9;
  margin-bottom: 10px;
}

.survey-item {
  background: white;
  border-radius: 16px;
  padding: 8px 0px;
  /*margin-bottom: 10px;*/
  position: relative;
  display: flex;
  gap: 2%;
}
.survey-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  width: calc(33% - 20px);
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction:column;
  width: 100%;
}
.points-badge {
  position: absolute; /* Positions the badge relative to the .survey-image-container */
  top: 18px; /* Adjust this value as needed to position the badge vertically */
  color: white; /* White text color */
  padding: 3px 4px; /* Padding inside the badge */
  border-radius: 5px; /* Rounded corners for the badge */
  background: #00BDA9;
}
.points-badgeFG {
  background: #00BDA9;
  color: white; /* White text color */
  padding: 3px 4px; /* Padding inside the badge */
  border-radius: 5px; /* Rounded corners for the badge */
}
.points-badge-home {
  position: absolute; /* Positions the badge relative to the .survey-image-container */
  top: 14px; /* Adjust this value as needed to position the badge vertically */
  left: 6px;
  color: white; /* White text color */
  padding: 3px 4px; /* Padding inside the badge */
  border-radius: 5px; /* Rounded corners for the badge */
  background: #00BDA9;
}
.divider {
  width: 100%;
  height: 1px;
  background-color: #ddd;  /* Light gray divider color */
  margin: 10px 0;  /* Space between surveys */
}

.survey-image {
  width: 244px;
  height: 186px;
  border-radius: 10px;
}

.survey-name {
  font-size: 16px;
  font-weight: 700;
  color: #111;
}

.survey-details {
  font-size: 12px;
  color: #333;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* CTA Section */
.cta-section {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cta-link {
  font-size: 14px;
  color: black;
  /*color: #00BDA9;*/
  font-weight: 600;
  text-decoration: none;
}

.cta-link:hover {
  text-decoration: underline;
}

/* Quick Survey Section */
.quick-survey {
  margin-top: 16px;
  background: white;
  padding: 18px;
  border-radius: 16px;
}
/* Right side of survey item */
.survey-image-container {
  /*position: absolute;*/
  /*right: 20px;*/
  top: 20px;
}

.survey-image {
  width: 114px;
  height: 80px;
  background: linear-gradient(0deg, #D9D9D9 0%, #D9D9D9 100%);
  border-radius: 10px;
}
/* Responsive Design */
@media (max-width: 1200px) {
  .cards-container {
    flex-direction: column;
  }

  .survey-card, .stats-card {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .main-content {
    padding: 0;
  }

  .welcome-section {
    text-align: center;
  }

  .cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .survey-card, .stats-card {
    width: 100%;
  }

  .cta-section {
    flex-direction: column;
    align-items: center;
  }

  .cta-link {
    margin-top: 10px;
  }
  .lsb{
    display: none;
  }
}

@media (max-width: 480px) {
  .survey-card, .stats-card {
    width: 100%;
  }

  .points-info {
    font-size: 14px;
  }

  .survey-item {
    padding: 10px;
  }
}



/* Apply background color to the table header using a custom class */
.custom-table-header .ant-table-thead > tr > th {
  background-color: #666666 !important;  /* Your desired header background color */
  color: white !important; /* Set the text color to white */
  height: 24px !important;
}
.custom-table-header .ant-table-thead > tr > th {
  background-color: #666666 !important;  /* Your desired header background color */
  color: white !important; /* Set the text color to white */
  height: 24px !important;
  border-radius: 0px !important;
  padding: 8px !important;
}
.custom-table-header ant-table-cell ant-table-cell-fix-left{
  border-radius: 0px !important;
}