
/* Forum Custom Styles */

.forum-header-bar {
    background-size: cover;
    background-position: center;
    /* min-height: 220px; */
    padding: 2rem 0 1.5rem 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .forum-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 0.5rem;
  }
  .forum-title {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
  }
  .forum-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 1rem;
  }
  .forum-table-header {
    background:  #bf574d;;
    color: #8C3730;;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 0.7rem 0.7rem 0 0;
  }
  .forum-table-row {
    background: #fff;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.06);
    border-radius: 0.7rem;
    transition: box-shadow 0.2s;
  }
  .forum-table-row:hover {
    box-shadow: 0 4px 16px rgba(44, 62, 80, 0.13);
  }
  .forum-table-cell {
    padding: 1.2rem 1.5rem;
    font-size: 1rem;
    color: #222;
    vertical-align: middle;
  }
  .forum-table-cell:first-child {
    font-weight: 600;
    color: #1E5359;
  }
  .forum-view-btn {
    background: #1E5359;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 1.2rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block;
  }
  .forum-view-btn:hover {
    background: #57a1a9;
  }
  @media (max-width: 700px) {
    .forum-table-header, .forum-table-row, .forum-table-cell {
      font-size: 0.95rem;
      padding: 0.7rem 0.5rem;
    }
    .forum-title {
      font-size: 1.5rem;
    }
  }

  .forum-base-card {
    background: #fff;
    min-height: 70vh;
    border-radius: 1.2rem;
    box-shadow: 0 2px 12px rgba(44, 62, 80, 0.10);
    margin: 2rem auto 0 auto;
    max-width: 1100px;
    padding-bottom: 2rem;
  }
  .forum-base-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    box-shadow: none;
    padding: 1.2rem 2rem 0 2rem;
    position: relative;
    z-index: 10;
  }
  .forum-base-user-info {
    font-size: 1.05rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
  }
  .forum-base-username {
    font-weight: 600;
    color: #1E5359;
    margin: 0 0.3rem;
  }
  .forum-base-settings-link {
    color: #1E5359;
    font-weight: 500;
    text-decoration: none;
    padding: 0.2rem 0.8rem;
    border-radius: 0.4rem;
    transition: background 0.2s, color 0.2s;
  }
  .forum-base-settings-link:hover {
    background: #e8f5e9;
    color: #4a8b92;
  }
  .forum-base-content {
    padding: 0 2.5rem;
  }
  @media (max-width: 700px) {
    .forum-base-card {
      border-radius: 0.5rem;
      margin: 0.5rem;
      padding-bottom: 1rem;
    }
    .forum-base-header {
      flex-direction: column;
      align-items: flex-start;
      padding: 0.7rem 1rem 0 1rem;
    }
    .forum-base-user-info {
      font-size: 0.98rem;
      gap: 0.7rem;
      margin-bottom: 0.5rem;
    }
    .forum-base-content {
      padding: 0 0.5rem;
    }
  }

  /* Forum List Card Layout */
  .forum-list-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
  }
  @media (min-width: 700px) {
    .forum-list-grid {
      grid-template-columns: 1fr 1fr;
    }
  }
  .forum-card {
    background: #fff;
    border-radius: 1.2rem;
    box-shadow: 0 2px 12px rgba(44, 62, 80, 0.10);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    transition: box-shadow 0.2s;
    min-height: 220px;
  }
  .forum-card:hover {
    box-shadow: 0 6px 24px rgba(140, 55, 48, 0.13);
  }
  .forum-card-header {
    margin-bottom: 0.5rem;
  }
  .forum-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1E5359;
    margin-bottom: 0.2rem;
  }
  .forum-card-desc {
    color: #666;
    font-size: 1rem;
    margin-bottom: 0.2rem;
  }
  .forum-card-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
  }
  .forum-card-stat-label {
    color: #1E5359;
    font-weight: 600;
    font-size: 0.98rem;
    margin-right: 0.3rem;
  }
  .forum-card-stat-value {
    color: #222;
    font-weight: 500;
    font-size: 1rem;
    margin-right: 0.7rem;
  }
  .forum-card-lastuser {
    color: #1E5359;
    font-size: 0.98rem;
    margin-left: 0.5rem;
  }
  .forum-card-action {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
  }
  .forum-card-empty {
    text-align: center;
    color: #aaa;
    font-size: 1.1rem;
    padding: 2rem 0;
  }

  /* Forum Topic Detail Page (No Tailwind) */
  .forum-topic-container {

    min-height: 100vh;
    padding-top: 24px;
    padding-bottom: 48px;
    padding-left: 8px;
    padding-right: 8px;
    display: flex;
    justify-content: center;
  }
  .forum-topic-inner {
    max-width: 900px;
    width: 100%;
  }
  .forum-topic-header {
    background: #1E5359;
    color: #fff;
    padding: 18px 32px 10px 32px;
    border-radius: 1.2rem 1.2rem 0 0;
    font-size: 1.4rem;
    font-weight: 700;
    border-bottom: 2px solid #1E5359;
    margin-bottom: 0.5rem;
    position: relative;
  }
  .forum-topic-meta {
    display: block;
    font-size: 0.95rem;
    font-weight: 400;
    color: #f3d3cb;
    margin-top: 4px;
  }
  .forum-posts-list {
    background: #fff;
    border-radius: 0 0 1.2rem 1.2rem;
    box-shadow: 0 2px 12px rgba(44, 62, 80, 0.10);
    margin-bottom: 1.5rem;
    overflow: hidden;
  }
  .forum-post-card {
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid #f3d3cb;
    padding: 1.5rem 2rem;
    gap: 1.5rem;
  }
  .forum-post-card:last-child {
    border-bottom: none;
  }
  .forum-post-avatar {
    width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
  }
  .forum-post-avatar img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    background: #eee;
    margin-bottom: 0.3rem;
    box-shadow: 0 1px 4px rgba(140, 55, 48, 0.10);
  }
  .forum-post-username {
    color: #1E5359;
    font-weight: 700;
    font-size: 1.05rem;
  }
  .forum-post-role {
    color: #aaa;
    font-size: 0.92rem;
  }
  .forum-post-count {
    color: #aaa;
    font-size: 0.92rem;
    margin-top: 0.2rem;
  }
  .forum-post-content {
    flex: 1;
    margin-left: 0.5rem;
  }
  .forum-post-text {
    color: #181d23;
    font-size: 1.08rem;
    margin-bottom: 0.5rem;
  }
  .forum-post-date {
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
  }
  .forum-posts-empty {
    padding: 2rem 0;
    text-align: center;
    color: #aaa;
    font-size: 1.1rem;
  }
  .forum-reply-form {
    border-radius: 0 0 1.2rem 1.2rem;
    padding: 1.5rem 2rem;
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    margin-top: 1.2rem;
  }
  .forum-reply-textarea {
    flex: 1;
    border-radius: 0.7rem;
    border: 1px solid #e5e7eb;
    padding: 0.7rem 1rem;
    font-size: 1rem;
    resize: none;
    background: #fff;
    color: #181d23;
    min-height: 48px;
  }
  .forum-reply-btn {
    background: #1E5359;
    color: #fff;
    border: none;
    border-radius: 0.7rem;
    padding: 0.7rem 1.5rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
  }
  .forum-reply-btn:hover {
    background: #57a1a9;
  }
  .forum-join-container {
    text-align: center;
    color: #888;
    margin-top: 1.5rem;
  }
  .forum-join-form {
    display: inline-block;
    margin-top: 1rem;
  }
  .forum-join-btn {
    background: #1E5359;
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 0.7rem;
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
  }
  .forum-join-btn:hover {
    background: #57a1a9;
  }
  @media (max-width: 700px) {
    .forum-topic-inner {
      max-width: 100%;
      padding: 0 0.5rem;
    }
    .forum-topic-header {
      padding: 14px 10px 8px 10px;
      font-size: 1.1rem;
    }
    .forum-post-card {
      flex-direction: column;
      gap: 0.7rem;
      padding: 1rem 0.7rem;
    }
    .forum-reply-form {
      padding: 1rem 0.7rem;
      flex-direction: column;
      gap: 0.7rem;
    }
  }

  .forum-back-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: #fff;
    color: #1E5359;
    font-weight: 600;
    font-size: 0.97rem;
    box-shadow: 0 1px 4px rgba(140, 55, 48, 0.07);
    z-index: 2;
  }

  .forum-back-btn:hover svg {
    stroke: #fff;
  }
  .forum-back-btn-text {
    margin-left: 0.2rem;
    font-size: 1rem;
    font-weight: 500;
  }

  .forum-delete-btn {
    background: #1E5359;
    color: #fff;
    border: none;
    border-radius: 0.7rem;
    padding: 0.7rem 1.5rem;
  }

  @media (max-width: 700px) {
    .forum-back-btn {
      font-size: 0.95rem;
      padding: 0.25rem 0.7rem 0.25rem 0.5rem;
      margin-top: 0.5rem;
    }
    .forum-back-btn-text {
      display: none;
    }
  }

  .forum-topic-flex {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
  }

  .forum-users-sidebar {
    width: 230px;
    min-width: 180px;
    background: #fff;
    border-radius: 1.2rem;
    box-shadow: 0 2px 12px rgba(140, 55, 48, 0.10);
    padding: 1.5rem 1rem;
    margin-right: 0.5rem;
    height: fit-content;
    align-self: flex-start;
  }

  .forum-users-sidebar h4 {
    color: #1E5359;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    text-align: center;
  }

  .forum-users-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .forum-users-sidebar li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.1rem;
    font-size: 1rem;
    color: #1E5359;
    font-weight: 500;
  }

  .forum-users-sidebar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: #eee;
    box-shadow: 0 1px 4px rgba(140, 55, 48, 0.10);
  }

  @media (max-width: 900px) {
    .forum-topic-flex {
      flex-direction: column;
      gap: 1.5rem;
    }
    .forum-users-sidebar {
      width: 100%;
      margin-right: 0;
      margin-bottom: 1.5rem;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
    }
  }

  .forum-users-avatars-row {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 1.2rem;
    cursor: pointer;
    padding: 0.5rem 0;
  }
  .forum-users-avatars-row img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(140, 55, 48, 0.10);
    transition: transform 0.15s;
  }
  .forum-users-avatars-row img:hover {
    transform: scale(1.08);
  }
  .forum-users-more {
    background: #1E5359;
    color: #fff;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    margin-left: 0.2rem;
  }

  .forum-users-modal {
    position: fixed;
    z-index: 1000;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .forum-users-modal-content {
    background: #fff;
    border-radius: 1.2rem;
    padding: 2rem 2.5rem;
    min-width: 320px;
    max-width: 95vw;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 32px rgba(44, 62, 80, 0.18);
    text-align: center;
  }
  .forum-users-modal-content h4 {
    color: #1E5359;
    margin-bottom: 1.2rem;
  }
  .forum-users-modal-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .forum-users-modal-content li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.1rem;
    font-size: 1.08rem;
    color: #1E5359;
    font-weight: 500;
    justify-content: center;
  }
  .forum-users-modal-content img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    background: #eee;
    box-shadow: 0 1px 4px rgba(140, 55, 48, 0.10);
  }
  .forum-users-modal-close {
    margin-top: 1.5rem;
    background: #1E5359;
    color: #fff;
    border: none;
    border-radius: 0.7rem;
    padding: 0.7rem 1.5rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
  }
  .forum-users-modal-close:hover {
    background: #57a1a9;
  }
