html, body {
  min-height: 100%;
  height: auto;
  position: relative;
  width: 100%;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

body {
  background: white;
  font-family: 'Roboto', Arial, sans-serif;
  margin: 0;
  padding: 0;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #292929;
  color: rgb(255, 255, 255);
}

.recharge-text{
  color: blue;
  cursor: pointer;
  font-weight: bold;
  text-decoration: underline;
}

.material-icons{
  font-size: 1.5rem;
  color: #2196f3;
  vertical-align: middle;
  margin-left: 3px;
  cursor: pointer;
}

.dashboard-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  width: 100%; /* Ensure it fits within the viewport */
  box-sizing: border-box; /* Include padding in width calculations */
}

.glassy-container {
  background: rgba(255, 255, 255, 0.05); /* Reduced alpha for more transparency */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 20px;
  width: 100%; /* Ensure it fits within the parent container */
  max-width: 1200px; /* Limit the maximum width */
  box-sizing: border-box; /* Include padding in width calculations */
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
  padding: 20px;
}

.card {
  background: #f4fafc;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 20px;
  color: #000000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgb(188, 255, 252);
}

.card h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.card p {
  font-size: 1rem;
  margin: 5px 0;
}

.card-icon {
  font-size: 2.2rem;
  color: #2196f3;
  margin-bottom: 8px;
  display: block;
}

.notifications {
  grid-column: span 2;
  background: #edf8ff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 20px;
  color: #000000;
}

.footer {
  text-align: center;
  padding: 20px;
  background-color: #000000;
  color: rgb(255, 255, 255);
  position: fixed;
  bottom: 0;
  width: 100%;
}

.service-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 20px;
  color: #333;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  /* width: 70px; */
}

.service-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 1rem;
  margin: 5px 0;
}

.service-card a {
  font-size: 0.9rem;
  color: #007bff;
  text-decoration: none;
}

.service-card a:hover {
  text-decoration: underline;
}

/* Dashboard Card Redesign */
.dashboard-card {
  display: flex;
  flex-direction: column;
  height: 220px;
  background: #f4fafc;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.dashboard-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 30px rgb(188, 255, 252);
}

.dashboard-card-header {
  background: #0e7dd8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  height: 30%;
  font-size: 1.15rem;
  font-weight: 600;
  border-bottom: 1px solid #e0e0e0;
}

.dashboard-card-title {
  color: #ffffff;
  font-weight: bold;
  font-size: 1.1rem;
}

.dashboard-card-icon {
  font-size: 1.7rem;
  color: #ffffff;
}

#credits{
  color: blue;
  cursor: pointer;
}

.dashboard-resume{
  background-color: rgba(0, 102, 255, 0.030);
}

.dashboard-history{
  background-color: rgba(0, 255, 213, 0.030);
}

.dashboard-active-services{
  background-color: rgba(174, 0, 255, 0.030);
}

.dashboard-card-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 22px;
  height: 70%;
}

.dashboard-card-main {
  font-size: 1.25rem;
  font-weight: 700;
  color: #222;
  line-height: 1.5;
}

/* Modern, centered, elegant h2 header */
.modern-title {
  text-align: center;
  font-size: 2.1rem;
  font-weight: 700;
  color: #2196f3;
  margin: 38px 0 18px 0;
  letter-spacing: 0.01em;
  background: linear-gradient(90deg, #2196f3 30%, #21cbf3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  font-family: 'Roboto', Arial, sans-serif;
  text-shadow: 0 2px 12px rgba(33,150,243,0.08);
}

/* Optional: add a subtle divider below */
.modern-title::after {
  content: '';
  display: block;
  margin: 14px auto 0 auto;
  width: 60px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #2196f3 60%, #21cbf3 100%);
  opacity: 0.18;
}

/* Responsive for mobile */
@media screen and (max-width: 600px) {
  .dashboard-container {
    align-items: flex-start;
    padding: 10px;
  }

  .glassy-container {
    padding: 10px;
    max-width: 100%;
    width: 100%;
    height: auto;
  }

  .dashboard {
    display: block;
    padding: 0;
  }

  .card, .service-card, .notifications {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    margin-bottom: 15px;
    display: block;
  }

  .notifications {
    min-height: 200px; /* Make notifications card taller on small screens */
  }

  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
    padding: 20px;
    align-items: center;
  }

  .dashboard-card {
    height: 160px;
    margin-bottom: 20px;
  }
  .dashboard-card-header, .dashboard-card-body {
    padding: 12px 10px;
  }
  .dashboard-card-main {
    font-size: 1rem;
  }

  #credits{
    color: blue;
  }
}