/* Gradient background */
body {
  margin: 0;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: linear-gradient(135deg, #a1c4fd, #c2b6ff);
  color: #333;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 1rem;
}

/* Centering container */
.container {
  width: 100%;
  max-width: 500px;
}

/* Main content card */
.white-box {
  background: white;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  margin-top: 1rem;
}

/* Title */
h1, h2 {
  text-align: center;
  color: #4b4b4b;
}

/* Forms */
form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
}

/* Inputs and buttons */
input[type="text"],
button {
  padding: 0.8rem;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  box-sizing: border-box;
}

input[type="text"] {
  background: #f3f3f3;
}

button {
  background: #a78bfa;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: #8b5cf6;
}

/* Position changelog button inside card */
/* === MODAL BACKDROP === */
.changelog-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.changelog-modal.hidden {
  display: none;
}

/* === MODAL BOX === */
.changelog-content {
  background: #fff;
  border-radius: 16px;
  max-width: 600px;
  width: 80%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  padding: 1.5rem 1.8rem;
  position: relative;
}

/* === HEADER === */
.changelog-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.changelog-header-top h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
}

#close-changelog {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: #e53935;
  cursor: pointer;
  transition: color 0.3s ease;
}

#close-changelog:hover {
  color: #b71c1c;
}

/* === ENTRY STYLING === */
#changelog-entries {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.entry {
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.entry:nth-child(even) {
  background-color: #f4f4f4;
}

.entry:nth-child(odd) {
  background-color: #eaeaea;
}

.entry-date {
  font-weight: bold;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.4rem;
}

.entry-text {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #333;
}
