body {
    background-color: #f0f2f5;
}

.post-container {
    max-width: 680px;
    margin: 0 auto;
    padding-bottom: 70px;
}

.create-post {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    padding: 12px 16px;
    margin-bottom: 16px;
}

.create-post-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.post-input {
    flex-grow: 1;
    border: none;
    background-color: #f0f2f5;
    border-radius: 20px;
    padding: 8px 12px;
    font-size: 15px;
    cursor: pointer;
}

.post-input:focus {
    outline: none;
}

.divider {
    height: 1px;
    background-color: #e4e6eb;
    margin: 8px 0;
}

.post-actions {
    display: flex;
    justify-content: space-around;
}

.post-action {
    display: flex;
    align-items: center;
    color: #65676b;
    font-weight: 600;
    font-size: 15px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.post-action:hover {
    background-color: #f0f2f5;
}

.post-action img {
    width: 24px;
    margin-right: 8px;
}

.post {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
}

.post-header {
    display: flex;
    padding: 12px 16px;
}

.post-user-info {
    flex-grow: 1;
}

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

.post-time {
    font-size: 13px;
    color: #65676b;
}

.post-menu {
    color: #65676b;
    font-size: 20px;
    cursor: pointer;
    align-self: flex-start;
}

.post-content {
    padding: 4px 16px 16px;
    font-size: 15px;
    color: #050505;
}

.post-image {
    width: 100%;
    object-fit: cover;
}

.post-stats {
    display: flex;
    justify-content: space-between;
    padding: 10px 16px;
    color: #65676b;
    font-size: 15px;
}

.post-reactions {
    display: flex;
    align-items: center;
}

.reaction-icon {
    width: 18px;
    margin-right: 5px;
}

.post-comments-shares {
    display: flex;
}

.post-comments, .post-shares {
    margin-left: 10px;
    cursor: pointer;
}

.post-bottom-actions {
    display: flex;
    justify-content: space-around;
    padding: 4px 0;
    border-top: 1px solid #e4e6eb;
}

.post-bottom-action {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: #65676b;
    font-weight: 600;
    font-size: 15px;
    padding: 8px 0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.post-bottom-action:hover {
    background-color: #f2f2f2;
    border-radius: 4px;
}

.post-bottom-action img {
    width: 20px;
    margin-right: 8px;
}

/* Your existing styles */
.bottom-nav {
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.fixed-bottom {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1030;
}

*, ::after, ::before {
    box-sizing: border-box;
}

.bottom-nav .row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
}

.bottom-nav .col {
    flex: 1;
}

.bottom-nav a {
    text-decoration: none;
    color: #4a4a4a;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.bottom-nav .icon img {
    width: 30px;
    display: block;
}

.bottom-nav a.active,
.bottom-nav a:hover {
    color: #764ba2;
}

.complain-btn {
    cursor: pointer;
}

/* Navbar styles */
.navbar {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: bold;
    color: rgb(58, 56, 56);
    font-size: 24px;
}

/* Modal styles */
.post-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.post-modal-content {
    background-color: white;
    border-radius: 8px;
    width: 500px;
    max-width: 90%;
}

.post-modal-header {
    padding: 15px;
    border-bottom: 1px solid #e4e6eb;
    text-align: center;
    position: relative;
}

.post-modal-title {
    font-weight: bold;
    font-size: 20px;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #65676b;
    background: #e4e6eb;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-modal-body {
    padding: 15px;
}

.post-modal-profile {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.post-textarea {
    width: 100%;
    min-height: 100px;
    border: none;
    resize: none;
    font-size: 18px;
    margin-bottom: 15px;
}

.post-textarea:focus {
    outline: none;
}

.post-modal-footer {
    padding: 10px 15px;
}

.add-to-post {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    border: 1px solid #e4e6eb;
    border-radius: 8px;
    margin-bottom: 15px;
}

.add-item {
    display: flex;
    align-items: center;
    color: #65676b;
    font-size: 14px;
    cursor: pointer;
}

.add-item img {
    width: 24px;
    margin-right: 5px;
}

.post-button {
    width: 100%;
    background-color: #1877f2;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
}

.post-button:disabled {
    background-color: #e4e6eb;
    color: #bcc0c4;
    cursor: not-allowed;
}
/* Hidden file input styling (injected with JS) */
#hiddenImageInput {
display: none;
}

/* Image preview box */
.image-preview-box {
margin-top: 10px;
position: relative;
width: 100%;
border: 1px dashed #ccc;
border-radius: 8px;
padding: 10px;
text-align: center;
background-color: #f9f9f9;
}
.comment-loader {
    text-align: center;
    padding: 20px;
}
.comment-loader img {
    width: 150px;
    height: 150px;
}

.image-preview-box img {
max-width: 100%;
max-height: 200px;
border-radius: 6px;
margin-top: 5px;
}

.remove-image {
position: absolute;
top: 5px;
right: 10px;
background: rgba(255, 255, 255, 0.9);
border: none;
font-size: 18px;
color: #ff4444;
cursor: pointer;
border-radius: 50%;
width: 28px;
height: 28px;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
}
.love-button.loved {
color: red;
}
.comment-modal {
position: fixed;
top: 0; left: 0;
width: 100%; height: 100%;
display: flex; justify-content: center; align-items: center;
z-index: 999;
}

.comment-modal-overlay {
position: absolute;
top: 0; left: 0;
width: 100%; height: 100%;
background: rgba(0,0,0,0.4);
z-index: -1;
}

.comment-modal-content {
background: #fff;
width: 500px;
max-height: 80vh;
border-radius: 12px;
display: flex;
flex-direction: column;
overflow: hidden;
box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.comment-modal-header {
padding: 15px 20px;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid #eee;
}

.comment-modal-header h3 {
margin: 0;
font-size: 18px;
}

.close-button {
cursor: pointer;
font-size: 22px;
color: #555;
}

.comment-post-preview {
display: flex;
align-items: center;
padding: 10px 20px;
border-bottom: 1px solid #eee;
background: #f9f9f9;
}

.comment-user-pic {
width: 36px;
height: 36px;
border-radius: 50%;
margin-right: 10px;
}

.comment-user-details {
display: flex;
flex-direction: column;
}

.comment-user-name {
font-weight: bold;
font-size: 14px;
}

.comment-post-text {
font-size: 13px;
color: #555;
}

.comment-section {
padding: 10px 20px;
flex: 1;
overflow-y: auto;
background: #fff;
}

.single-comment {
display: flex;
margin-bottom: 12px;
}

.comment-bubble {
background: #f0f2f5;
border-radius: 16px;
padding: 8px 12px;
max-width: 80%;
}

.comment-text {
font-size: 14px;
color: #333;
margin-top: 2px;
}

.add-comment {
display: flex;
align-items: center;
padding: 10px 20px;
border-top: 1px solid #eee;
background: #f8f8f8;
}

.comment-input {
flex: 1;
padding: 8px 14px;
border: 1px solid #ccc;
border-radius: 20px;
font-size: 14px;
outline: none;
}

.send-button {
background: none;
border: none;
margin-left: 10px;
cursor: pointer;
}

.send-button img {
width: 20px;
height: 20px;
}
