:root {
    --primary-color: #4267B2;
    --secondary-color: #8b9dc3;
    --light-gray: #f0f2f5;
    --medium-gray: #dadde1;
    --dark-gray: #65676b;
    --white: #ffffff;
}

.small-btn {
    padding: 4px 10px !important;
    font-size: 13px !important;
    border-radius: 4px !important;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Main Content */
.main-content {
    margin-left: 0px;
    padding: 20px;
    transition: margin-left 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Posts Container */
.posts-container {
    width: 100%;
    max-width: 680px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Tab Bar Styles */
.posts-tab-bar {
    width: 100%;
    max-width: 680px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.tab-nav {
    display: flex;
    justify-content: space-around;
    padding: 0;
    margin: 0;
    list-style: none;
}

.tab-item {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
    color: #6c757d;
    font-weight: 500;
}

.tab-item:hover {
    background-color: rgba(0, 0, 0, 0.03);
    color: #333;
}

.tab-item.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.05);
}

.tab-icon {
    font-size: 18px;
    margin-bottom: 4px;
}

.tab-label {
    font-size: 13px;
}

/* Post Card Styles */
.post-card {
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    width: 100%;
    max-width: 680px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.post-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    padding: 0px 0px 0;
}

.post-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
}

.post-user-info {
    flex: 1;
    text-align: left;
}

.post-user-name {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin-bottom: 2px;
}

.post-meta {
    /* display: flex; */
    align-items: center;
    gap: 12px;
}

.group-badge {
    background: white;
    border-radius: 14px;
    padding: 5px 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.group-avatar-small {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid white;
}

.group-name-small {
    font-size: 12px;
    font-weight: 500;
    color: #333;
}

.post-time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #6c757d;
}

.post-content {
    font-size: 15px;
    line-height: 1.4;
    color: #333;
    margin-bottom: 16px;
    padding: 0 0px;
    text-align: left;
}

.post-image-grid {
    margin-bottom: 16px;
    padding: 0 16px;
}



.post-actions {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid var(--border-color);
    padding: 8px 16px;
}

.action-btn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    color: #6c757d;
    font-weight: 500;
    transition: all 0.2s;
    border-radius: 6px;
}

.action-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.action-btn.liked {
    color: var(--primary-color);
}

.youtube-embed {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    position: relative;
}

.youtube-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.youtube-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.youtube-play-btn {
    width: 60px;
    height: 60px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.youtube-logo {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff0000;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
}

/* Image Grid Styles */
.image-grid-1 {
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
}

.image-grid-2 {
    height: 200px;
    display: flex;
    gap: 2px;
    border-radius: 12px;
    overflow: hidden;
}

.image-grid-3 {
    height: 250px;
    display: flex;
    gap: 2px;
    border-radius: 12px;
    overflow: hidden;
}

.grid-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    border-radius: 0;
    cursor: pointer;
    transition: transform 0.2s;
}

.grid-image:hover {
    transform: scale(1.02);
}

.grid-image:first-child:last-child {
    border-radius: 12px;
}

.grid-image:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.grid-image:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}





.post-card {
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    border: none;
    margin-bottom: 20px;
    background-color: var(--white);
}





.dropdown button {
    padding: 5px;
}




.image-grid {
    padding: 0 15px 15px;
}

.image-grid-single img {
    width: 100%;
    border-radius: 8px;
    max-height: 500px;
    object-fit: cover;
}

.image-grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    border-radius: 8px;
    overflow: hidden;
}

.image-grid-two img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.image-grid-three {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 5px;
    border-radius: 8px;
    overflow: hidden;
}

.image-grid-three img:first-child {
    grid-column: 1 / 3;
    height: 250px;
    width: 100%;
    object-fit: cover;
}

.image-grid-three img:not(:first-child) {
    height: 150px;
    width: 100%;
    object-fit: cover;
}

.image-grid-four {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 5px;
    border-radius: 8px;
    overflow: hidden;
}

.image-grid-four img {
    height: 180px;
    width: 100%;
    object-fit: cover;
}

.post-stats {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    border-top: 1px solid var(--medium-gray);
    border-bottom: 1px solid var(--medium-gray);
    font-size: 14px;
    color: var(--dark-gray);
}



.comments-section {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.comment-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-input-container {
    flex-grow: 1;
    position: relative;
}

.comment-input {
    width: 100%;
    border: 1px solid var(--medium-gray);
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 14px;
    background-color: var(--light-gray);
    resize: none;
}

.comment-input:focus {
    outline: none;
    background-color: var(--white);
}

.comment-submit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 15px;
    font-weight: 500;
    margin-top: 5px;
}

.comment-submit:hover {
    background-color: #365899;
}

.comments-list {
    max-height: 500px;
    overflow-y: auto;
}

.comment-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.comment-content {
    background-color: var(--light-gray);
    padding: 10px 15px;
    border-radius: 18px;
    flex-grow: 1;
}

.comment-author {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 2px;
}

.comment-text {
    font-size: 14px;
    line-height: 1.4;
}

.comment-actions {
    display: flex;
    gap: 15px;
    margin-top: 5px;
    font-size: 12px;
    color: var(--dark-gray);
}

.comment-action {
    cursor: pointer;
}

.comment-action:hover {
    text-decoration: underline;
}

.comment-time {
    font-size: 12px;
    color: var(--dark-gray);
    margin-top: 2px;
}

.no-comments {
    text-align: center;
    padding: 30px;
    color: var(--dark-gray);
    font-style: italic;
}

.comment_panel {
    display: none;
}

/* Reply System Styles */
.replies-container {
    margin-left: 42px;
    margin-top: 10px;
    padding-left: 15px;
    border-left: 2px solid var(--medium-gray);
}

.reply-form {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.reply-input {
    width: 100%;
    border: 1px solid var(--medium-gray);
    border-radius: 18px;
    padding: 8px 15px;
    font-size: 14px;
    background-color: var(--light-gray);
    resize: none;
}

.reply-input:focus {
    outline: none;
    background-color: var(--white);
}

.reply-submit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 15px;
    font-weight: 500;
    height: fit-content;
    margin-top: 8px;
}

.reply-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.reply-content {
    background-color: var(--light-gray);
    padding: 8px 12px;
    border-radius: 18px;
    flex-grow: 1;
}

.reply-author {
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 2px;
}

.reply-text {
    font-size: 13px;
    line-height: 1.4;
}

.reply-actions {
    display: flex;
    gap: 10px;
    margin-top: 3px;
    font-size: 11px;
    color: var(--dark-gray);
}

.view-replies {
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 5px;
}

.view-replies:hover {
    text-decoration: underline;
}

.hidden {
    display: none;
}

/* Responsive styles */
@media (max-width: 992px) {
    .main-content {
        margin-left: 0;
        padding: 15px;
    }

    .post-card {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .my-container {
        width: 100%;
    }

    .main-content {
        padding: 10px;
    }

    .post-card {
        border-radius: 8px;
    }
}

h5.fw-bold {
    display: inline-block;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.group-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease-in-out;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 10px;
}

.group-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.group-image-group {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    background-color: #eee;
    flex-shrink: 0;
}

.group-info {
    flex: 1;
}

.group-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 4px;
}

.group-members {
    color: #6c757d;
    font-size: 0.9rem;
}

.group-description {
    font-size: 0.9rem;
    color: #5c5c5c;
    margin: 8px 0;
}

.group-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.group-admin {
    font-size: 0.85rem;
    color: #6c757d;
    display: flex;
    align-items: center;
}

.group-admin img {
    border-radius: 50%;
    width: 28px;
    height: 28px;
    margin-right: 8px;
}

.group-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease-in-out;
    padding: 15px;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 10px;
}

.group-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.group-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background-color: #eee;
    border-radius: 10px;
}

.group-description {
    color: #555;
    font-size: 0.95rem;
}

.group-admin {
    font-size: 0.85rem;
    color: #666;
}

.group-card .card-body {
    padding: 1rem 1.25rem;
}


.group-header {
    position: relative;
    width: 100%;
    height: 215px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 10px;
}

.group-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.group-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
}

.back-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
}

.group-info-header {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    color: #fff;
}

.group-logo-header {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    border: 2px solid #fff;
    background-color: #fff;
}
.btn-join-members {
    background: #ff5722;
    border: none;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-join-members:hover {
    background: #e64a19;
}
.group-name-header {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: #FFF;
}

.group-members-header {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
    color: #FFF;
}

.no-posts-container {
    margin: 20px auto;
    max-width: 90%;
    padding: 40px 20px;
}

.no-posts-icon {
    font-size: 48px;
    color: var(--primary-color, #6c63ff);
    opacity: 0.8;
}

.no-posts-title {
    font-weight: 600;
    font-size: 20px;
    color: #333;
}

.no-posts-text {
    font-size: 14px;
    color: #777;
}

#openModalBtn {
    border-radius: 50px !important;
}

.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.image-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
    background: #f8f8f8;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 14px;
    cursor: pointer;
    line-height: 20px;
    text-align: center;
}
.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.image-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
    background: #f8f8f8;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    line-height: 18px;
    text-align: center;
}


