body {
      background: linear-gradient(135deg,rgb(68, 132, 102),rgb(189, 240, 218));
      color: white;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }
    .top-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 20px;
    }
    .top-bar i {
      font-size: 20px;
      color: white;
      cursor: pointer;
    }
    .leaderboard-podium {
        display: flex;
        justify-content: center;
        align-items: flex-end;
        gap: 25px;
        margin: 30px 10px;
        flex-wrap: wrap;
        font-family: 'Poppins', sans-serif;
    }

    .podium-box {
        width: 120px;
        background: #fff;
        border-radius: 15px;
        text-align: center;
        padding: 20px 12px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        transition: transform 0.3s ease, box-shadow 0.4s ease;
        box-shadow: 0 0 10px rgba(0, 255, 128, 0.2); /* subtle glow */
    }

    .podium-box:hover { 
        transform: translateY(-6px);
        box-shadow: 0 0 18px rgba(0, 255, 128, 0.6); /* brighter glow on hover */
    }

    /* First place taller and brighter */
    .podium-box:nth-child(2) {
        height: 220px;
        box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
    }
    .podium-box:nth-child(2):hover {
        box-shadow: 0 0 24px rgba(255, 215, 0, 0.9);
    }

    /* 2nd and 3rd spacing */
    .podium-box:first-child,
    .podium-box:last-child {
        height: 180px;
        margin-top: 60px;
        margin-bottom: 20px;
    }

    .cup-img {
        width: 50px;
        height: 50px;
        margin: 0 auto 10px auto; /* top=0, left/right=auto (center), bottom=10px */
        display: block; /* Ensure it behaves like a block element */
    }


    .rank-label {
        font-weight: 800;
        font-size: 16px;
        margin-bottom: 6px;
        color: #111;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    }

    .username {
        font-size: 12px;
        font-weight: 400;
        color: #333;
        margin-bottom: 2px;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    }

    .amount {
        font-size: 12px;
        font-weight: 400;
        color: #666;
        text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
    }

/* Parent container that centers content */
    .countdown-container {
        background: rgba(0, 0, 0, 0.6); /* Transparent black */
        padding: 15px 20px;
        border-radius: 12px;
        display: inline-block;
        color: #fff;
        font-family: 'Poppins', sans-serif;
        box-shadow: 0 0 10px rgba(0,0,0,0.4);
        text-align: center;
        margin: 30px auto; /* Centers horizontally */
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }

    .countdown-container h5 {
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 8px;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 6px;
    }

    #countdown {
        font-size: 20px;
        font-weight: bold;
        letter-spacing: 1px;
        color: #00ffb3;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    }

.challenge-actions {
  gap: 20px;
}

.active-btn, .past-reward {
  width: 45%;
  background: white;
  color: #333;
  border-radius: 15px;
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  user-select: none;
  transition: box-shadow 0.2s ease;
}

.active-btn {
  position: relative;
  font-weight: 600;
}

.active-btn .dot {
  width: 12px;
  height: 12px;
  background: orange;
  animation: pulse 2s infinite;
}

.past-reward {
  font-weight: 600;
}

.active-btn.pressed,
.past-reward.pressed {
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.2);
  transform: translateY(2px);
}
    @keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255,165,0, 0.5);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255,165,0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255,165,0, 0);
    }
    }
    .challenge-box.pressed {
        transform: scale(0.97);
        box-shadow:
        inset 0 4px 6px rgba(0, 0, 0, 0.3), /* stronger inset */
        0 2px 4px rgba(0, 0, 0, 0.2); /* subtle outer shadow */
        transition: transform 0.1s ease, box-shadow 0.1s ease;
    }
    .custom-leaderboard {
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
  cursor: pointer;
}

.custom-leaderboard:hover {
  transform: scale(1.01);
  background: #f1f1f1;
}

.rank-box {
  width: 40px;
  height: 40px;
  background-color: #007bff;
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 6px;
}

.username {
  font-weight: 700;
  font-size: 1.2rem;
  color: #333;
}

.amount {
  font-size: 1rem;
  color: green !important;
}
/* Centering and smooth appearance */
.modal-dialog {
  max-width: 500px;
  margin: auto;
  margin-top: 25vh;
}

/* Modal container */
.modal-content {
  background: linear-gradient(135deg, #1e1e2f, #2e2e3f);
  color: #fff;
  border-radius: 15px;
  box-shadow: 0 0 25px rgba(0, 255, 150, 0.2);
}

/* Modal header */
.modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background-color: #2a2a3b;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.modal-title {
  font-weight: 600;
  font-size: 1.5rem;
  color: #00ffd5;
}

/* Close button */
.btn-close-white {
  filter: invert(1);
}

/* Modal body */
.modal-body p {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.modal-body strong {
  color: #00ffae;
}

#modalUsername, #modalSpent, #modalPosition, #modalReward {
  color: #fff;
}

/* Highlight reward */
#modalReward {
  color: #00ffb3;
  font-weight: bold;
}

/* Note */
.modal-body em {
  font-size: 0.9rem;
  color: #aaaaaa;
  display: block;
  margin-top: 1rem;
}

/* Modal footer */
.modal-footer {
  background-color: #2a2a3b;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

/* Button */
.modal-footer .btn-secondary {
  background-color: #00ffa1;
  border: none;
  color: #000;
  font-weight: 500;
  border-radius: 10px;
  padding: 8px 20px;
}

.modal-footer .btn-secondary:hover {
  background-color: #00cc86;
  color: #fff;
}
.modal-content {
  transition: all 0.3s ease;
}
@media (max-width: 600px) {
  .leaderboard-podium {
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 10px;
  }

  .podium-box {
    flex: 0 0 auto;
    width: 100px;
    padding: 15px 10px;
  }

  .podium-box:first-child,
  .podium-box:last-child {
    margin-top: 40px;
    margin-bottom: 10px;
    height: 160px;
  }

  .podium-box:nth-child(2) {
    height: 190px;
  }

  .cup-img {
    width: 40px;
    height: 40px;
  }

  .rank-label,
  .username,
  .amount {
    font-size: 11px;
  }
}
@media (max-width: 600px) {
  .challenge-actions {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap;
  }

  .active-btn, .past-reward {
    width: 48%; /* ensures both fit side-by-side with a little gap */
    font-size: 14px;
    padding: 10px 12px;
  }

  .active-btn .dot {
    width: 10px;
    height: 10px;
  }
}
