.dashboard-button-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  padding: 20px;
}

.dashboard-button {
  width: 280px;
  height: 180px;
  text-align: center;
  padding: 20px;
  border: 2px solid #2a72d4;
  border-radius: 8px;
  background-color: white;
  color: #004080;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dashboard-button:hover {
  background-color: #2a72d4;
  color: white;
}

.dashboard-button.active {
  background-color: #2a72d4;
  color: white;
}

.dashboard-button-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

.dashboard-card {
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 15px;
  box-sizing: border-box;
}

.dashboard-count {
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--portalThemeColor10);
  font-weight: bold;
  margin-right: 15px;
}

.dashboard-label {
  flex-grow: 1;
  font-size: clamp(1.25rem, 3vw, 2.5rem);
  color: var(--portalThemeColor10);
}

.dashboard-icon {
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--portalThemeColor10);
}

.dashboard-link {
  text-decoration: none;
}

@media (max-width: 576px) {
  .card-body {
    height: auto !important;
    padding: 1rem;
  }

  .card .btn {
    max-width: 100% !important;
    width: 100%;
    font-size: 1rem;
  }

  .tdx-truncate-button-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.card-body {
  display: flex;
  flex-direction: column;
}

.card-body .btn {
  margin-top: auto; 
  align-self: flex-start; 
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(0.95rem, 3.5vw, 1.05rem);
}

@media (max-width: 576px) {
  .card-body .btn {
    bottom: 10px;
    left: 10px;
    font-size: clamp(0.95rem, 3.5vw, 1.05rem); 
    max-width: calc(100% - 20px);
  }
}

@media (max-height: 500px) and (max-width: 900px) {
  .card-body .btn {
    font-size: clamp(0.8rem, 2vw, 0.9rem); 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; 
    max-width: calc(100% - 30px);
  }
}
