* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #f4f6f8;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 10px;
  min-height: 100vh;
}

header {
  width: 100%;
  text-align: center;
  margin-bottom: 30px;
}

.header-logo {
  width: 120px;
  border-radius: 16px;
  margin-bottom: 10px;
}

header h1 {
  font-size: 1.5rem;
  color: #2c3e50;
}

/* Grid layout for the dashboard */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 900px;
  margin-top: 20px;
  padding: 0 10px;
}

/* Icon button container */
.icon-btn {
  background: rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.95);
  text-align: center;
  transition: transform 0.2s, background-color 0.3s ease;
  cursor: pointer;

  /* Ensure image and text stack vertically */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Hover effect */
.icon-btn:hover {
  transform: translateY(-5px);
  background-color: #f0f8ff;
}

/* Icon image styling */
.icon-btn img {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  margin-bottom: 10px;
  display: block;
}

/* Text label under the icon */
.icon-btn span {
  font-size: 0.9rem;
  font-weight: bold;
  color: #ffffff;
  display: block;
  margin-top: 5px;
  text-align: center;
  white-space: normal;
}

/* Footer styling */
footer {
  margin-top: auto;
  padding: 15px;
  font-size: 0.8rem;
  color: #aaa;
  text-align: center;
}

  #customAuthOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: none; /* hidden initially */
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }

  #customAlertBox {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
    text-align: center;
  }


