/*
Theme Name: BuddyBoss Child
Theme URI: https://www.buddyboss.com/
Description: A child theme for BuddyBoss.
Author: ASIF JAVED
Author URI: https://asifjaved.work
Template: buddyboss-theme
Version: 1.0.01
Text Domain: buddyboss-child
*/

body .site-header-container #site-logo .site-title img.bb-logo {
    max-height: 76px!important;
    padding: 0;
    margin-top: -5px;
}
body .site-header-container #site-logo.buddypanel_logo_display_on {
    display:block;
    padding-right: 10px;
}
body .site-header .site-header-container {
    height: 86px;
    max-width: 1400px;
}
body.bbp-user-page.single.singular.bbpress.messages.compose #compose-personal-li{
    display: list-item;
}

.bp-error-message {
    color: red;
    font-size: 12px;
    margin-top: 0;
    display: block;
}
#buddypress .profile.edit>#profile-edit-form .editfield .bp-error-message {
    order: 2;
}
#buddypress .profile.edit>#profile-edit-form .editfield .bp-error-message fieldset {
    order: 1;
}
#buddypress .profile.edit .field-visibility-settings-header {
    display: none;
}

span.custom-text-character-limits {
    padding: 10px 0;
    margin: 10px 0;
    display: block;
    text-align: center;
}

.group-book-details > h2 {
    /* display: none; */
}
span.custom-text-remember-me {
    display: block;
    flex: 0 0 100%;
}
.tooltip-message {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    margin-top: 5px;
    z-index: 1000;
}
li.activity-item[data-visibility="community"] .bp-generic-meta.groups-meta .generic-button:first-child::after,
li.activity-item[data-visibility="global"] .bp-generic-meta.groups-meta .generic-button:first-child::after,
li.activity-item[data-visibility="private"] .bp-generic-meta.groups-meta .generic-button:first-child::after {
    content:"Private";
    color: red;
    color: var(--bb-primary-color);
    font-size: 14px;
    font-weight: 600;
    display:inline-block;
    padding: 10px 30px;
}
li.activity-item[data-visibility="community"] .bp-generic-meta.groups-meta .generic-button:first-child::after{
    content:"Community";
}
li.activity-item[data-visibility="global"] .bp-generic-meta.groups-meta .generic-button:first-child::after{
    content:"Global";
}



#buddypress #profile-edit-form span.bp-required-field-label {
    font-size: 0;
}
#buddypress #profile-edit-form span.bp-required-field-label::after {
    content: '*';
    display: inline-block;
    font-size: 20px;
    color: red;
    width: 20px;
    height: 20px;
    
}
#buddypress #profile-edit-form .field-visibility-settings-toggle {
    display: none;
}
.elementor-element.hero-para.elementor-widget.elementor-widget-text-editor {
 background-color: #ffffffe6;
 margin: 0px 0px 0px 0px;
 padding: 15px 15px 15px 15px;
 border-style: none;
}

.elementor-element.hero-para.elementor-widget.elementor-widget-text-editor p {
 margin-bottom: 0;
 color: var(--e-global-color-text);
}

.bb-groups-list.bb-groups-list--active.active ul.item-list {
 display: flex;
 flex-wrap: wrap;
 gap: 10px;
}
.bb-groups-list.bb-groups-list--active.active ul.item-list li {
 list-style: none;
 width: 24%;
 margin: 20px 0px;
 text-align: center;
 border: 1px solid #d6d6d6;
 border-radius: 10px;
 padding: 10px;
}

form#book-submission-form {
 position: relative;
}
.book-suggestions {
 right: -25px;
 list-style: none;
 top: 50px;
 padding: 8px;
 border: 1px solid #ccc;
 background: white;
 position: absolute;
 max-width: 300px;
 z-index: 1000;
 width: 100%;
}
.book-suggestions li {
 padding: 5px;
 cursor: pointer;
 border-bottom: 1px solid #ccc;
}
.book-suggestions li:hover {
 background: #f0f0f0;
}
.book-suggestions li i.fa.fa-plus {
    border: 2px solid var(--bb-body-text-color);
    padding: 2px;
}
.form-group {
 margin: 20px 0;
}
.form-group label {
 min-width: 260px;
 display: inline-block;
 font-weight: bold;
}
div#book_cover_preview {
 display: none;
 width: 280px;
 height: 280px;
 padding: 10px;
 border: 2px solid #519b99;
 margin: 20px 0;
 position: absolute;
 right: -85px;
 top: -20px;
 border-radius: 6px;
}
div#book_cover_preview.active {
 display: block;
}
div#book_cover_preview img {
 width: 100%;
 height: 100%;
 object-fit: scale-down;
}
.book-suggestions li:last-child {
 border-bottom: none;
}
.book_cover_group {
 position: relative;
 min-height: 90px;
}
div#book_cover_file {
 position: absolute;
 left: 0;
 top: 30px;
}
.book-suggestions li.data-from-db {
 background: #3f908e;
 color: #fff;
}
form#book-submission-form span.required {
 color: #ff0000;
 vertical-align: text-bottom;
 font-size: 14px;
 margin: 2px;
}
div#char-count {
 display: none;
 background: #f2f4f5;
 padding: 10px;
 font-size: 12px;
 font-weight: bold;
 text-align: right;
}
.activity-update-form.modal-popup div#char-count {
 display: block;
}
.whats-new-suggestion {
}

.whats-new-suggestion p {
 font-size: 11px;
 line-height: 22px;
 margin: 10px 0 0;
 color: #5a5a5a;
}
div#whats-new-options {
 padding: 5px 10px;
 font-size: 20px;
}

div#whats-new-options label {
 font-size: 14px;
}

div#whats-new-options select {
 font-size: 14px;
}
.buddypress-wrap .item-list.groups-list p.group-total-members span {
 font-size: 12px;
}
.buddypress-wrap
 ul.bp-list.groups-dir-list
 .list-wrap
 .item-meta-wrap
 .item-meta
 + .item-meta.group-total-members:before {
 background-color: #8d8f97;
 border-radius: 100%;
 content: "";
 display: inline-block;
 height: 4px;
 margin: 0 6px;
 vertical-align: middle;
 width: 4px;
}

/* Popup Container */
.custom-popup {
 display: none;
 position: fixed;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background: rgba(0, 0, 0, 0.5);
 z-index: 9999;
 justify-content: center;
 align-items: center;
}

/* Popup Content */
.popup-content {
 background: #fff;
 padding: 40px 20px 20px;
 border-radius: 8px;
 text-align: center;
 box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
 position: relative;
 max-width: 400px;
 width: 95%;
 margin: 30vh auto 0;
}

/* Close Button */
.popup-close {
 position: absolute;
 top: 10px;
 right: 15px;
 font-size: 28px;
 cursor: pointer;
 color: #333;
}

.popup-close:hover {
 color: red;
}
body.bbp-user-page.single #compose-personal-li a:after {
    content: "+";
    background: #067678;
    width: 30px;
    height: 30px;
    border-radius: 20px;
    color: #fff!important;
    padding-top: 5px;
    font-weight: bold!important;
    font-size: 24px!important;
}

.body.bbp-user-page.single bb-template-v2 .messages-wrapper #subnav #compose-action-personal-li .bb_more_options_action:hover{
    
}

#compose-personal-li a:before {
    visibility: hidden;
}
    .books-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        padding: 20px;
    }
    .books-grid.books-groups-grid{
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
        padding: 0px;
    }
    .books-grid .book-card {
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        text-align: center;
        transition: transform 0.3s ease;
        max-width: 300px;
        width: 100%;
        margin: 0 auto;
    }
    .books-grid.books-groups-grid .book-card{
        max-width: 200px;
    }
    .books-grid .book-card:hover {
        transform: translateY(-5px);
    }
    .books-grid .book-cover {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }
    .books-grid .book-info {
        padding: 15px;
    }
    .books-grid .book-title {
        font-size: 18px;
        font-weight: bold;
        margin-bottom: 8px;
    }
    .books-grid.books-groups-grid .book-title {
        font-size: 12px;
        margin-bottom: 0px;
    }
    .books-grid .group-info {
        display: flex;
        margin-top: 10px;
        font-size: 14px;
        color: #555;
        flex-direction: column;
        align-items: center;
    }
    .books-grid.books-groups-grid .group-info{
        margin-top: 0px;
        font-size: 13px;
    }
    .books-grid.books-groups-grid .author-info {
        font-size: 12px;
    }
    .books-grid .group-avatar {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        margin-right: 8px;
    }
    .books-grid .community-btn {
        margin-top: 10px;
    }
    .books-grid.books-groups-grid .community-btn {
        margin-top: 5px;
        font-size: 12px;
    }
    .books-grid .community-btn:hover {
        background: transparent;
        color: var(--bb-primary-button-background-hover);
    }


@media (max-width: 768px) {
 .elementor-element.login-widget-home.elementor-widget.elementor-widget-login {
  position: static;
  margin: 50px auto;
  max-width: 360px;
 }
}
