body {
  font-family: "Inter", sans-serif;
  background-color: #fff;
  margin: 0;
  padding: 0;
  color: #333;
}

.container {
  margin: 5rem auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.token-box {
  font-family: monospace;
  font-size: 2rem;
  background-color: #f5f3f0;
  border: 1px solid #e4e1da;
  padding: 1rem;
  text-align: center;

  letter-spacing: 0.1em;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

input,
select {
  width: 100%;
  padding: 1.2rem;
  border: 1px solid #e4e1da;
  background-color: #faf9f6;
  font-size: 1.8rem;
  color: #333;
  outline: none;
  appearance: none;

  box-sizing: border-box;
}

select {
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23666" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
}

button {
  width: 100%;
  padding: 1.2rem;
  background-color: #88817a;
  color: white;
  border: none;
  font-size: 1rem;

  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: background 0.3s ease;
}

button:hover {
  background-color: #6f6861;
}

a {
  text-align: center;
  display: block;
  margin-top: 2rem;
  color: #888;
  font-size: 0.9rem;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}
.token-wrapper {
  position: relative;
  margin-bottom: 1rem;
}

.token-label {
  position: absolute;
  top: -0.6rem;
  left: 0.75rem;
  font-size: 0.75rem;
  background: #fff;
  padding: 0 0.25rem;
  color: #666;
  font-family: "Inter", sans-serif;
}

.token-box {
  font-family: monospace;
  font-size: 2rem;
  background-color: #fefdfb;
  border: 1px solid #e4e1da;
  padding: 1rem;
  text-align: left;

  letter-spacing: 0.1em;
}

h1 {
  font-size: 2.5rem;
  font-weight: 100;
  text-align: left;
}

/* HEADER */
.header {
  color: #222;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.header h1 {
  font-size: 1.8rem;
  margin: 0;
  font-weight: 300;
}

/* LOGOUT LINK */
.logout {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  background: #88817a;
  padding: 0.5rem 1rem;
  transition: background 0.2s ease;
}

.logout:hover {
  background: #5a534c;
}

/* NAVBAR */
.navbar {
  padding: 0.5rem 2rem;
}

.navbar ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 0;
}

.navbar a:hover {
  color: #111;
}

.content {
  padding: 1.5rem;
  flex: 1;
  animation: slideFromRight 0.3s ease forwards;
}
@keyframes slideFromRight {
  from {
    opacity: 0;
    margin-left: 30px;
  }
  to {
    opacity: 1;
    margin-left: 0;
  }
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 12px 20px;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.3s ease, bottom 0.3s ease;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  bottom: 40px;
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

h2 {
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.token-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.token-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.token-code {
  background: #f5f3f0;
  padding: 0.75rem 1rem;
  font-family: monospace;
  font-size: 1rem;
  border-radius: 4px;
  min-width: 120px;
  text-align: center;
}

.token-date {
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
  color: #777;
}

.token-date-box {
  border: 1px solid #e4e1da;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  background: #fff;
  font-size: 0.95rem;
  margin-top: 0.2rem;
  color: #333;
}

.token-remove {
  background: #88817aad;
  border: none;
  color: white;
  font-size: 1rem;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.token-remove:hover {
  background: #6f6861;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

tr .delete-btn {
  opacity: 0;
  transition: opacity 0.2s ease;
}

tr:hover .delete-btn {
  opacity: 1;
}
.delete-btn {
  opacity: 0;
  transition: opacity 0.2s ease;
}

tr:hover .delete-btn {
  opacity: 1;
}
