
  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
      Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    margin: 0; padding: 0;
    background: #fafafa;
    display: flex; flex-direction: column; min-height: 100vh;
  }
  header {
    background: #e91e63;
    color: white;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  header .logo {
    font-weight: bold;
    font-size: 1.3rem;
  }
  #profileIcon {
    position: relative;
    cursor: pointer;
  }
  #profileIcon img {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 2px solid white;
  }
  .dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 120px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border-radius: 6px;
    overflow: hidden;
    z-index: 10;
  }
  .dropdown-content a {
    color: #333;
    padding: 10px 16px;
    display: block;
    text-decoration: none;
    font-weight: 500;
  }
  .dropdown-content a:hover {
    background-color: #e91e63;
    color: white;
  }
  .show {
    display: block;
  }
  main {
    flex: 1;
    padding: 12px 10px 60px;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }
  form#postForm {
    background: white;
    padding: 15px 15px 10px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgb(0 0 0 / 0.1);
    margin-bottom: 20px;
  }
  form#postForm input[type="file"] {
    width: 100%;
    margin-bottom: 12px;
  }
  form#postForm input[type="text"],
  form#postForm textarea,
  form#postForm input[type="number"] {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 1rem;
    resize: vertical;
  }
  form#postForm button {
    background: #e91e63;
    border: none;
    color: white;
    padding: 10px;
    font-weight: 600;
    width: 100%;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
  }
  form#postForm button:hover {
    background: #c2185b;
  }
  #postImagePreview {
    max-width: 100%;
    max-height: 250px;
    margin-bottom: 12px;
    border-radius: 10px;
    object-fit: contain;
    display: none;
  }
  .post {
    background: white;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 3px 12px rgb(0 0 0 / 0.08);
    overflow: hidden;
  }
  .post-header {
    display: flex;
    align-items: center;
    padding: 12px 15px;
  }
  .post-header img.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
    border: 2px solid #e91e63;
  }
  .post-header .username-time {
    display: flex;
    flex-direction: column;
  }
  .post-header .username-time .username {
    font-weight: 700;
    font-size: 1rem;
  }
  .post-header .username-time small {
    color: #999;
    font-size: 0.8rem;
    margin-top: 2px;
  }
  .post-image {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
  }
  .post-content {
    padding: 10px 15px;
  }
  .post-content .caption {
    margin-bottom: 8px;
    font-size: 1rem;
  }
  .post-content .price {
    color: #e91e63;
    font-weight: 700;
    margin-bottom: 10px;
  }
  .post-actions {
    display: flex;
    align-items: center;
    padding: 0 15px 10px;
    border-top: 1px solid #eee;
  }
  .post-actions button {
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.2s;
  }
  .post-actions button.liked {
    color: #e91e63;
  }
  .post-actions button:hover {
    background-color: #f8e1eb;
  }
  .comments-section {
    padding: 0 15px 15px;
    font-size: 0.95rem;
  }
  .comment {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
  }
  .comment img.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #e91e63;
  }
  .comment-content {
    background: #f0f0f0;
    border-radius: 14px;
    padding: 8px 12px;
    flex: 1;
    position: relative;
  }
  .comment-content strong {
    font-weight: 700;
  }
  .comment-content small {
    color: #888;
    font-size: 0.75rem;
    position: absolute;
    right: 10px;
    top: 8px;
  }

 .logo img {
        width: 50px;
        height: 50px;
    }

  .add-comment {
    display: flex;
    gap: 10px;
    margin-top: 8px;
  }
  .add-comment input[type="text"] {
    flex: 1;
    border-radius: 20px;
    border: 1px solid #ddd;
    padding: 8px 15px;
    font-size: 0.95rem;
  }
  .add-comment button {
    background: #e91e63;
    border: none;
    color: white;
    padding: 0 15px;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s;
  }
  .add-comment button:hover {
    background: #c2185b;
  }
  /* Responsive */
  @media (max-width: 480px) {
    main {
      padding: 12px 8px 60px;
    }
  }


.delete-btn, .edit-btn {
  background-color: #f0f0f0;
  border: none;
  padding: 5px 10px;
  margin-top: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  border-radius: 4px;
}

.delete-btn:hover {
  background-color: #ffcccc;
  color: red;
}

.edit-btn:hover {
  background-color: #cce5ff;
  color: #0056b3;
}


/* Add to Post.css */

#postImagePreview,
.post-image {
  max-width: 100%;
  max-height: 60vh;
  width: auto;
  height: auto;
  display: block;
  margin: 10px auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}


 #postImagePreview {
    display: none;
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    margin-top: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
 }