/* Base Styling */
body {
  background-color: #0e1a2b;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.dashboard-container {
  max-width: 1100px;
  margin: 30px auto;
  padding: 20px;
}

.dashboard-title {
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 25px;
  animation: fadeInDown 0.6s ease-out;
}

/* Card Rows */
.dashboard-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 30px;
}

.top-row .dashboard-card {
  flex: 1 1 calc(25% - 15px);
  background-color: #16253c;
}

.clickable-row {
  justify-content: center;
}

.clickable-row .dashboard-card {
  flex: 1 1 100%;
  max-width: 100%;
  background-color: #1c2e47;
  position: relative;
}

/* Card Styles */
.dashboard-card {
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 0.5s ease-in;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.dashboard-card.clickable {
  cursor: pointer;
}

.dashboard-card.clickable .label,
.dashboard-card.clickable .value {
  color: #ffffff;
}

.dashboard-card.clickable:hover .label,
.dashboard-card.clickable:hover .value {
  color: #ff9900;
}

.icon {
  font-size: 24px;
  margin-bottom: 10px;
  color: #ff9900;
}

.label {
  font-size: 14px;
  color: #ccc;
}

.value {
  font-size: 18px;
  font-weight: bold;
  margin-top: 5px;
}

/* Countdown Timer Section */
.progress-section {
  margin: 30px 0;
  background: #16253c;
  padding: 20px;
  border-radius: 16px;
  text-align: center;
  animation: fadeInDown 0.6s ease-out;
}

.progress-bar-wrapper {
  position: relative;
  width: 100%;
  height: 32px;
  background: #0e1a2b;
  border: 1px solid #ff9900;
  border-radius: 16px;
  overflow: hidden;
  margin: 0 auto;
}

.progress-bar-fill {
  background: linear-gradient(90deg, #f05800, #ff9900);
  width: 0%;
  height: 100%;
  transition: width 1s ease-out;
}

.progress-bar-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-weight: bold;
  z-index: 1;
}

/* Notice Card */
.notice-card {
  background: #16253c;
  color: #fff;
  border-radius: 16px;
  padding: 15px 20px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  animation: fadeInDown 0.6s ease-out;
}

.notice-card .icon {
  margin-right: 10px;
  font-size: 18px;
  color: #ff9900;
}

.notice-card .notice-content {
  flex: 1;
  font-size: 16px;
}

/* Pending Dot */
.pending-dot {
  position: absolute;
  top: 12px;
  right: 12px;
  background: red;
  color: white;
  font-size: 10px;
  padding: 4px 7px;
  border-radius: 50%;
}

/* Mine Button */
.mine-btn {
  margin-top: 20px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #ff9900, #f05800);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

.mine-btn.disabled {
  background: #555;
  cursor: not-allowed;
}

/* Referral Section */
.referral-section {
  margin-top: 40px;
  background: #16253c;
  padding: 20px;
  border-radius: 16px;
}

.referral-section h4 {
  margin-bottom: 10px;
}

.referral-box {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.referral-box input {
  flex: 1;
  padding: 10px;
  border: none;
  background-color: #0e1a2b;
  color: #fff;
  border-radius: 6px;
}

.referral-box button {
  padding: 10px 15px;
  background-color: #ff9900;
  border: none;
  border-radius: 6px;
  color: #000;
  font-weight: 600;
  cursor: pointer;
}

.referral-benefits-title {
  font-weight: bold;
  color: #ccc;
  margin-bottom: 8px;
}

.referral-benefits {
  padding-left: 18px;
  font-size: 14px;
  color: #ddd;
}

.referral-benefits li {
  margin-bottom: 5px;
}

/* Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .top-row {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .clickable-row .dashboard-card {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .referral-box {
    flex-direction: column;
  }

  .referral-box button {
    width: 100%;
  }
}

