/**
 * BuddyPress Group Activity Tabs
 * Stylesheet
 here
 */

.community-main-wraper{background: #1d2327; min-height: 700px;}

.bp-group-tabs-container {
    display: flex;
    gap: 30px;
}

.bp-tabs {
    display: flex;
    flex-direction: column;
    width: 30%;
}

.bp-tab {
    padding: 12px 16px;
    cursor: pointer;
    border: none;
    background: transparent;
    transition: all 0.3s;
    font-size: 14px;
    text-align: left;
    color: #ddd;
}

.bp-tab:hover {
    background: #e5f7ff21;
}

.bp-tab.active {
    background: #e5f7ff21;
}

.bp-activity-content {
    min-height: 300px;
    width: 70%;
        background: #212a30;
    padding: 20px;
    border-radius: 10px;
}

.bp-activity-item {
    margin-bottom: 15px;
}

.bp-activity-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.bp-activity-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.bp-activity-meta {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 5px;
}

.bp-activity-author {
    font-weight: 600;
    color: #006995;
    font-size: 15px;
}

.bp-activity-time {
    font-size: 12px;
    color: rgba(255, 255, 255, .4);
    margin-top: 2px;
}

.bp-activity-content-text {
    line-height: 1.6;
    color: #ddd;
}

.bp-activity-actions {
    display: flex;
    gap: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    margin-top: 10px;
    display: none;
}

.bp-reply-button {
    background: none;
    border: none;
    color: #0073aa;
    cursor: pointer;
    padding: 5px 0;
    font-size: 14px;
    font-weight: 500;
}

.bp-reply-button:hover {
    text-decoration: underline;
}

.bp-reply-form {
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
    display: none;
}

.bp-reply-form.active {
    display: block;
}

.bp-reply-textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

.bp-reply-textarea:focus {
    outline: none;
    border-color: #0073aa;
}

.bp-reply-submit {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s;
}

.bp-reply-submit:hover {
    background: #005a87;
}

.bp-reply-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.bp-loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 15px;
}

.bp-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    margin: 10px 0;
    border-left: 4px solid #f5c6cb;
}

.bp-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin: 10px 0;
    border-left: 4px solid #c3e6cb;
}

.bp-no-access {
    text-align: center;
    padding: 40px;
    background: #fff3cd;
    border-radius: 8px;
    color: #856404;
    border: 1px solid #ffeeba;
}

.bp-no-access h3 {
    margin-top: 0;
    color: #856404;
}

.bp-replies {
    margin-top: 15px;
    padding-left: 40px;
    border-left: 3px solid #f0f0f0;
    display: none;
}

.bp-reply-item {
    padding: 10px;
    margin: 10px 0;
    background: #fafafa;
    border-radius: 5px;
    font-size: 14px;
}

.bp-reply-item strong {
    color: #333;
}


.bp-new-post-container textarea{
    background: #e5f7ff21;
    width: 100%;
    height: 60px;
    border-radius: 100vmax;
    resize: none;
    overflow: hidden;
    margin-bottom: 0;
    padding-inline: 60px;
    padding-block: 15px;
    border: none;
    color: #ddd;
}
.bp-new-post-container textarea::placeholder{color: rgba(255, 255, 255, .2);}

.upload-image-wrap, .bp-post-submit{
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    outline: none;

    & img{width: 20px;height: auto;}
}

.upload-image-wrap{
    position: absolute;
    left: 10px;
    top: 10px;
    opacity: .5;
}

.bp-post-submit{
    position: absolute;
    right: 10px;
    top: 10px;
}

/* .bp-post-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    padding-inline: 10px;
    width: 100%;
    top: 10px;
    left: 0;
} */

.bp-new-post-container{position: relative; margin-bottom: 20px;}

.bp-image-thumb {
    position: relative;
}

button.bp-remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    border: none;
    outline: none;
    border-radius: 50%;
    color: red;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .bp-group-tabs-container {
        margin: 10px;
    }

    .bp-tab {
        padding: 10px 15px;
        font-size: 13px;
    }

    .bp-replies {
        padding-left: 20px;
    }
}