body {
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  padding: 40px;
}

    body {
      font-family: Arial, sans-serif;
      background: #f4f4f4;
      padding: 40px;
    }

    .container {
      max-width: 800px;
      margin: auto;
      background: white;
      padding: 30px;
      border-radius: 12px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    h2 {
      margin-bottom: 10px;
      color: #007BFF;
    }

    .meta {
      color: #777;
      font-size: 0.9em;
      margin-bottom: 30px;
    }

    .content {
      font-size: 1.1em;
      margin-bottom: 40px;
      white-space: pre-wrap;
    }

    .reply-form textarea {
      width: 100%;
      padding: 10px;
      border-radius: 5px;
      border: 1px solid #ccc;
      resize: vertical;
      font-family: inherit;
      font-size: 1em;
      margin-bottom: 12px;
    }

    .reply-form button {
      padding: 12px 24px;
      background: #007BFF;
      color: white;
      border: none;
      border-radius: 8px;
      font-size: 1em;
      cursor: pointer;
    }

    .reply-form button:hover {
      background: #005dc1;
    }

    .reply {
      background: #fff;
      border-left: 4px solid #007BFF;
      padding: 15px 20px;
      border-radius: 10px;
      margin-bottom: 20px;
      box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
      animation: fadeInUp 0.3s ease forwards;
    }

    @keyframes fadeInUp {
      0% {
        opacity: 0;
        transform: translateY(10px);
      }
      100% {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .reply-header-with-icon {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .profile-icon {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background-color: #007bff;
      color: white;
      font-weight: bold;
      font-size: 1rem;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 0 2px rgba(0,0,0,0.2);
    }

    .reply-meta {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .username-badge {
      font-weight: bold;
      color: #007BFF;
    }

    .timestamp {
      font-style: italic;
      color: #999;
    }

    .reply-text {
      font-size: 1.05em;
      line-height: 1.5;
      white-space: pre-wrap;
    }

    .role-badge {
      font-size: 0.75rem;
      padding: 2px 6px;
      margin-left: 0px;
      border-radius: 6px;
      font-weight: 600;
      background-color: #ddd;
      color: #333;
      display: inline-block;
    }

    .role-badge.Member {
      background-color: #e2e8f0;
      color: #1a202c;
    }

    .role-badge.Admin {
      background-color: #dc2626;
      color: white;
      box-shadow: 0 0 4px #dc2626;
    }

    .role-badge.Moderator {
      background-color: #2563eb;
      color: white;
    }

    .role-badge.Founder {
      background-color: #9333ea;
      color: white;
      box-shadow: 0 0 4px #9333ea;
    }

    @media (max-width: 600px) {
      .container {
        padding: 15px;
      }
    }
    .user-tooltip {
      position: absolute;
      z-index: 9999;
      background-color: #fff;
      color: #333;
      border: 1px solid #ccc;
      padding: 8px 12px;
      border-radius: 6px;
      box-shadow: 0 4px 8px rgba(0,0,0,0.15);
      max-width: 250px;
      font-size: 0.85rem;
      pointer-events: none;
      transition: opacity 0.15s ease;
    }

    .user-tooltip.hidden {
      opacity: 0;
      visibility: hidden;
    }

    .user-tooltip.visible {
      opacity: 1;
      visibility: visible;
    }
  
    /* Category Cards Grid */
.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Individual Card Styling */
.category-card {
  background-color: white;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.06);
  transition: background-color 0.2s ease;
  display: block;
  text-decoration: none;
  color: inherit;
}

.category-card:hover {
  background-color: #f3f4f6; /* tailwind's gray-100 */
}

.category-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

.category-card p {
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Login CTA Section */
.login-reminder {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.95rem;
}

/* Optional emoji margin */
.login-reminder .emoji {
  margin-right: 0.25rem;
}

/* Styled Login Button */
.login-btn {
  display: inline-block;
  background-color: #2563eb; /* Tailwind blue-600 */
  color: white;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background-color 0.2s ease, transform 0.1s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.login-btn:hover {
  background-color: #1d4ed8; /* Tailwind blue-700 */
  color: white; /* Ensure white text stays on hover */
  transform: translateY(-1px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.08);
}


.start-thread-button {
  display: inline-block;
  margin-bottom: 2rem;
  background-color: #0087ff;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.2s ease;
}
.start-thread-button:hover {
  background-color: #005fcc;
}

.start-thread-container {
  text-align: center;
  margin-top: 1rem;
}
