body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: #0b0b0f;
  color: #eee;

  display: flex;
  flex-direction: column;
  align-items: center;

  padding-top: 3rem;
  padding-bottom: 4rem;
}

header {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}


.top-nav {
  width: 90%;
  max-width: 900px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-nav a {
  padding: 0.8rem 1rem;
  color: #b7e8ff;
  font-weight: bold;
  text-decoration: none;
}

h1 {
  font-size: 2.4rem;
  margin-bottom: 0.25rem;
  text-align: center;
  letter-spacing: 0.03em;
}

p {
  margin-bottom: 2rem;
  opacity: 0.75;
  text-align: center;
  max-width: 700px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.75rem;
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
}


.card {
  position: relative;
  min-height: 132px;
  padding: 2rem;
  border-radius: 14px;
  background: #13131d;
  border: 1px solid #1f1f2e;
  text-align: center;
  color: #eaeaea;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  background: radial-gradient(
    340px circle at var(--x, 50%) var(--y, 50%),
    rgba(118, 199, 255, 0.22),
    transparent 40%
  );
}

.card a {
  position: absolute;
  inset: 0;
  z-index: 1;
  color: #76c7ff;
  font-weight: bold;
  font-size: 1.15rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card:hover {
  background: #1c1c29;
  transform: translateY(-6px);
  border-color: #356b8f;
}

.card:hover::before {
  opacity: 1;
}

/* a {
  color: #76c7ff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: bold;
} */

@media (max-width: 500px) {

  h1 {
    font-size: 1.9rem;
  }

  p {
    font-size: 0.95rem;
    padding: 0 1rem;
  }

  .top-nav {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .logout-button {
    margin-left: 0;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    width: 92%;
    padding: 0;
  }

  .card {
    min-height: 118px;
    padding: 1.5rem;
  }

  .card a {
    font-size: 1.05rem;
    padding: 1.4rem;
    white-space: normal;
  }
}
.logout-button {
  display: inline-block;
  margin-left: 1rem;
  padding: 0.6rem 1rem;
  border: 1px solid #ff3355;
  background: #330000;
  color: #ff6688;
  cursor: pointer;
  font-weight: bold;
  border-radius: 8px;
}

.logout-button:hover {
  background: #550000;
}
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(3px);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: #111;
  padding: 25px;
  width: 90%;
  max-width: 350px;
  border-radius: 10px;
  text-align: center;
  color: white;
  border: 1px solid #444;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  font-family: sans-serif;
}

.modal-content input {
  width: 100%;
  padding: 10px;
  margin: 15px 0;
  border-radius: 6px;
  border: none;
  outline: none;
}

.modal-content button {
  padding: 10px 20px;
  margin: 5px;
  border: none;
  background: #0af;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.modal-content button.cancel {
  background: #555;
}

.error {
  color: #ff5252;
  margin-top: 10px;
  height: 18px;
}


