/* Global body font & background */
body {
  font-family: 'Aptos', 'Inter', 'Segoe UI', Arial, sans-serif;
  background-color: #f2f2f2;
  margin: 0;
  padding: 0;
}

/* Top navigation menu */
.top-menu {
  display: flex;
  justify-content: center;
  background-color: #007BFF;
  padding: 10px 0;
  gap: 15px;
}

.top-menu .menu-link {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.2s;
}

.top-menu .menu-link:hover {
  background-color: #0056b3;
}

/* Main content container */
.container {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  width: 600px;
  margin: 20px auto; /* center */
}

/* Buttons */
button {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  color: #fff;
  background-color:#28A745;
}

#getButton { background-color: #007BFF; }
#postButton { background-color: #28A745; }

button:hover {
  opacity: 0.9;
}

/* Input field */
input[type="text"], 
input[type="password"],
textarea {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

/* Result boxes */
.result {
  background-color: #f9f9f9;
  padding: 10px;
  border-radius: 5px;
  min-height: 40px;
  margin-bottom: 10px;
  font-size: 14px;
  word-wrap: break-word;
}

/* Info page link button */
.link-button {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 15px;
  background-color: #007BFF;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

.link-button:hover {
  background-color: #0056b3;
}

.login-info {
  display: flex;
  justify-content: right; /* aligns items to the left */
  align-items: right;
  background-color: #f9f9f9;
  padding: 10px;
  border-radius: 5px;
  min-height: 40px;
  margin-bottom: 10px;
  gap: 10px; /* space between username and button */
  font-size: 14px;
}

#LogoutButton {
  padding: 5px 10px;
  border: none;
  border-radius: 5px;
  background-color: #dc3545;
  color: white;
  cursor: pointer;
  width: auto;          /* make width fit content */
  min-width: 0;         /* remove inherited min-width if any */
}

#LogoutButton:hover {
  background-color: #c82333;
}

/* Disabled state */
#LogoutButton:disabled {
  background-color: #aaa;      /* gray color */
  cursor: not-allowed;
  opacity: 0.7;
}

ul li {
  margin-bottom: 8px;
}

 table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
  }
  th, td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
  }
  th {
    background-color: #f2f2f2;
  }
