/* ----- BODY ----- */
body {
  background: radial-gradient(circle at top, #0a0a12, #0c0c1f);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ----- CONTAINER ----- */
.container {
  max-width: 400px;
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.subtitle {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 2rem;
}

/* ----- CARD ----- */
.card {
  background: #101028;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, opacity 0.4s ease;
  opacity: 1;
}

.card.fade-out {
  opacity: 0;
}

.card:hover {
  transform: scale(1.02);
}

.description {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  min-height: 60px;
}

/* ----- BUTTONS (original blue) ----- */
button {
  background: #4169e1; /* original blue */
  color: white;
  border: none;
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  margin-top: 10px;
}

button:hover {
  background: #537ff1; /* lighter blue on hover */
  box-shadow: 0 0 12px #537ff1;
}

/* ----- HISTORY PANEL ----- */
#showHistoryBtn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10;
  background: #4169e1; /* original blue */
  color: #fff;
  border: none;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

#showHistoryBtn:hover {
  background: #537ff1; /* lighter blue */
  box-shadow: 0 0 10px #537ff1;
}

.historyContainer {
  position: fixed;
  top: 60px;
  right: 20px;
  width: 250px;
  max-height: 400px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1rem;
  z-index: 9;
  display: none;
}

.historyContainer a {
  color: #7fc0ff;
  text-decoration: none;
  font-weight: 500;
}

.historyContainer a:hover {
  text-decoration: underline;
}

.historyContainer div {
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  opacity: 0;
  animation: fadeIn 0.5s forwards;
}

.historyContainer div:last-child {
  border-bottom: none;
}

.historyContainer .timestamp {
  color: #aaa;
  font-size: 0.8rem;
  margin-left: 5px;
}

@keyframes fadeIn {
  to { opacity: 1; }
}


/* Feedback button styling */
.feedback-container {
  margin-top: 20px;
  text-align: center;
}

.feedback-btn {
  display: inline-block;
  background-color: #00bfff; /* Teal/blue */
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.feedback-btn:hover {
  background-color: #009acd; /* Slightly darker on hover */
}
