/* Bootstrap 5.3-like styling for bbPress with !important on all properties */

/* General Typography */
body.bbpress {
    font-family: 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 1rem !important;
    color: #212529 !important;
    line-height: 1.5 !important;
}

.bbpress p {
    margin-bottom: 1rem !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    color: #212529 !important;
}

.bbpress li {
    margin-bottom: 0.5rem !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    color: #212529 !important;
}

/* Forum Table */
.bbpress table {
    width: 100% !important;
    margin-bottom: 1rem !important;
    border-collapse: collapse !important;
    background-color: #fff !important;
}

.bbpress table th,
.bbpress table td {
    padding: 0.75rem !important;
    vertical-align: top !important;
    border-top: 1px solid #dee2e6 !important;
}

.bbpress table thead th {
    vertical-align: bottom !important;
    border-bottom: 2px solid #dee2e6 !important;
    background-color: #f8f9fa !important;
}

.bbpress table tbody tr:nth-child(odd) {
    background-color: #f9f9f9 !important;
}

/* Forum Links and Buttons */
.bbpress a {
  /*  color: #005C53 !important; */
    text-decoration: none !important;
}

.bbpress a:hover {
    color: #004943 !important;
    text-decoration: underline !important;
}

/* Buttons */
.bbpress .button,
.bbpress input[type="submit"],
.bbpress input[type="button"],
.bbpress input[type="reset"] {
    display: inline-block !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: #fff !important;
    text-align: center !important;
    text-decoration: none !important;
    vertical-align: middle !important;
    cursor: pointer !important;
    padding: 0.75rem 1.25rem !important;
    font-size: 1rem !important;
    border-radius: 0.375rem !important;
    background-color: #005C53 !important;
    border: 1px solid #005C53 !important;
}

.bbpress .button:hover,
.bbpress input[type="submit"]:hover,
.bbpress input[type="button"]:hover,
.bbpress input[type="reset"]:hover {
    background-color: #004943 !important;
    border-color: #004943 !important;
}

/* Checkboxes and Radios */
.bbpress input[type="checkbox"],
.bbpress input[type="radio"] {
    margin-right: 0.5rem !important;
    vertical-align: middle !important;
}

/* Breadcrumbs */
.bbpress .bbp-breadcrumb {
    display: flex !important;
    flex-wrap: wrap !important;
    padding: 0.5rem 1rem !important;
    margin-bottom: 1rem !important;
    list-style: none !important;
    border-radius: 0.375rem !important;
}

.bbp-breadcrumb a {
    color: #005C53 !important;
    text-decoration: none !important;
}

.bbp-breadcrumb a:hover {
    color: #004943 !important;
    text-decoration: underline !important;
}

/* Forum and Topic Titles */
.bbp-forum-title,
.bbp-topic-title {
    font-size: 1.25rem !important;
    font-weight: 500 !important;
    color: #212529 !important;
}

.bbp-forum-title a,
.bbp-topic-title a {
    color: #005C53 !important;
}

.bbp-forum-title a:hover,
.bbp-topic-title a:hover {
    color: #004943 !important;
}

/* Pagination */
.bbp-pagination {
    display: flex !important;
    padding-left: 0 !important;
    list-style: none !important;
    border-radius: 0.375rem !important;
}

.bbp-pagination li {
    margin: 0 0.25rem !important;
}

.bbp-pagination a,
.bbp-pagination span {
    position: relative !important;
    display: block !important;
    padding: 0.5rem 0.75rem !important;
    line-height: 1.25 !important;
    color: #005C53 !important;
    background-color: #fff !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 0.375rem !important;
    text-decoration: none !important;
}

.bbp-pagination a:hover {
    z-index: 2 !important;
    color: #004943 !important;
    background-color: #e9ecef !important;
    border-color: #dee2e6 !important;
}

.bbp-pagination .current {
    z-index: 3 !important;
    color: #fff !important;
    background-color: #005C53 !important;
    border-color: #005C53 !important;
}

/* Forms */
.bbpress form {
    margin-top: 1.5rem !important;
}

.bbpress input[type="text"],
.bbpress input[type="email"],
.bbpress input[type="url"],
.bbpress input[type="password"],
.bbpress textarea {
    display: block !important;
    width: 100% !important;
    padding: 1.25rem !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    color: #212529 !important;
    background-color: #fff !important;
    background-clip: padding-box !important;
    border: 1px solid #ced4da !important;
    border-radius: 0.375rem !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

.bbpress input[type="text"]:focus,
.bbpress input[type="email"]:focus,
.bbpress input[type="url"]:focus,
.bbpress input[type="password"]:focus,
.bbpress textarea:focus {
    color: #212529 !important;
    background-color: #fff !important;
    border-color: #86b7fe !important;
    outline: 0 !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 92, 83, 0.25) !important;
}

/* Alerts */
.bbpress .bbp-template-notice {
  /*  padding: 0.5rem !important; */
    margin-bottom: 1rem !important;
    border: 1px solid transparent !important;
    border-radius: 0.375rem !important;
    background-color: #f8d7da !important;
    color: #842029 !important;
}

.bbpress .bbp-template-notice.info {
    background-color: #cff4fc !important;
    color: #055160 !important;
}

.bbpress .bbp-template-notice.success {
    background-color: #d1e7dd !important;
    color: #0f5132 !important;
}

.bbpress .bbp-template-notice.warning {
    background-color: #fff3cd !important;
    color: #664d03 !important;
}

/* Forum and Topic Containers */
.bbp-forum,
.bbp-topic {
    border: 1px solid #dee2e6 !important;
    padding: 1rem !important;
    margin-bottom: 1rem !important;
    border-radius: 0.375rem !important;
    background-color: #ffffff !important;
}

.bbp-topic .bbp-reply {
    border-top: 1px solid #dee2e6 !important;
    padding-top: 1rem !important;
    margin-top: 1rem !important;
}

/* User Profiles */
.bbpress .bbp-author-avatar {
    border-radius: 50% !important;
    margin-right: 0.5rem !important;
}

.bbpress .bbp-author-name {
    font-weight: bold !important;
    color: #005C53 !important;
}

.bbpress .bbp-author-name:hover {
    color: #004943 !important;
}

.bbpress .bbp-author-role {
    font-size: 0.875rem !important;
    color: #6c757d !important;
}

/* Topic Tags */
.bbpress .bbp-topic-tags {
    margin-top: 0.5rem !important;
}

.bbpress .bbp-topic-tags a {
    display: inline-block !important;
    padding: 0.25rem 0.5rem !important;
    margin: 0 0.25rem 0.25rem 0 !important;
    font-size: 0.875rem !important;
    color: #005C53 !important;
    background-color: #e9ecef !important;
    border-radius: 0.375rem !important;
    text-decoration: none !important;
}

.bbpress .bbp-topic-tags a:hover {
    background-color: #dae0e5 !important;
    color: #004943 !important;
}
