body {
  background-color: #fef3c7 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #212529;
}

/* Container */
.forum-thread {
  max-width: 800px;
  margin: 3rem auto;
  padding: 2rem;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.forum-title h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.forum-meta {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 1.5rem;
}

.forum-question {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.thread-upvotes {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 2rem;
}

.vote-icon {
  font-size: 1rem;
  margin: 0 0.25rem;
}

/* Replies Container */
.forum-replies {
  margin-top: 2rem;
}

.forum-replies h2 {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.5rem;
}

.reply-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.reply-item {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: row;
}

.reply-container {
  display: flex;
  width: 100%;
}

.reply-sidebar {
  width: 100px;
  text-align: center;
  margin-right: 20px;
  flex-shrink: 0;
  position: relative;
}

.reply-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ddd;
  margin-bottom: 10px;
}

.reply-user .username {
  font-weight: bold;
  color: #0073aa;
  font-size: 0.95rem;
  display: block;
}

.user-role {
  font-size: 0.75rem;
  background: #e9ecef;
  color: #495057;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-block;
  margin-top: 2px;
}

.user-reputation {
  font-size: 0.85rem;
  color: #f59e0b;
  margin-top: 5px;
}

.reply-vote {
  margin-top: 6px;
  font-size: 0.85rem;
  color: #333;
}

.reply-content-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.reply-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 8px;
}

.reply-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 0.75rem;
}

.reply-footer {
  text-align: right;
  border-top: 1px solid #eee;
  padding-top: 0.5rem;
  margin-top: auto;
}

.reply-link {
  color: #0073aa;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.2s ease;
}

.reply-link:hover {
  color: #005580;
}

.reply-number {
  margin-left: 8px;
  font-weight: bold;
}

.reply-share {
  cursor: pointer;
}

/* Online indicator */
.reply-avatar::after {
  content: '';
  position: absolute;
  bottom: 6px;
  right: 14px;
  width: 12px;
  height: 12px;
  background: #28a745;
  border: 2px solid #fff;
  border-radius: 50%;
}

/* Login CTA Box */
.login-cta {
  display: flex;
  align-items: center;
  background: #fef3c7; /* Match page background */
  border-left: 4px solid #0073aa;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin: 1.5rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  font-size: 0.95rem;
  color: #333;
  justify-content: space-between;
  flex-wrap: wrap;
}

.login-cta .lock-icon {
  margin-right: 0.5rem;
  color: #0073aa;
  font-size: 1.2rem;
}

.login-cta .login-text {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 200px;
}

.login-cta .login-button {
  background: #0073aa;
  color: #fff;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
  margin-left: 1rem;
  white-space: nowrap;
}

.login-cta .login-button:hover {
  background: #005c88;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .login-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .login-cta .login-button {
    margin: 0.75rem 0 0 0;
  }
}
