.welcome-back-overlay {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.welcome-back-container {
  background-color: var(--card-bg);
  margin: 10% auto;
  padding: 20px;
  border: 1px solid var(--accent-color);
  border-radius: 8px;
  width: 80%;
  max-width: 600px;
  color: var(--text-color);
  box-shadow: 0 4px 8px rgba(var(--accent-color-rgb), 0.2);
  position: relative;
}

.welcome-back-close {
  color: var(--text-color);
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.welcome-back-close:hover,
.welcome-back-close:focus {
  color: var(--accent-color);
  text-decoration: none;
}

#welcome-back-message {
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.5;
}

#welcome-back-message h3 {
  margin-top: 0;
  color: var(--accent-color);
}

.history-list {
  max-height: 400px;
  overflow-y: auto;
  margin-top: 15px;
}

.history-item {
  display: flex;
  align-items: center;
  padding: 10px;
  margin-bottom: 10px;
  background-color: rgba(var(--secondary-bg-rgb), 0.5);
  border-radius: 6px;
  transition: background-color 0.2s;
}

.history-item:hover {
  background-color: rgba(var(--accent-color-rgb), 0.1);
}

.history-item img {
  width: 60px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 15px;
}

.history-info {
  flex: 1;
}

.history-info a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
}

.history-info a:hover {
  text-decoration: underline;
}

.history-progress {
  font-size: 14px;
  color: var(--text-color);
  opacity: 0.8;
  margin-top: 5px;
}

.no-history {
  text-align: center;
  padding: 20px;
  color: var(--text-color);
  opacity: 0.7;
}