* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Prompt', sans-serif;
}

body {
  background: linear-gradient(to top, #f3f8ff, #fff0f5);
  background-image: url('https://cdn.pixabay.com/photo/2016/09/18/20/48/lotus-1673579_960_720.jpg');
  background-size: cover;
  background-attachment: fixed;
  color: #333;
}

.container {
  display: flex;
  height: 100vh;
}

.sidebar {
  width: 280px;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-right: 3px solid #ffd6d6;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ec407a;
  margin-bottom: 20px;
}

.new-post {
  background: #ff80ab;
  border: none;
  padding: 10px;
  color: white;
  border-radius: 10px;
  width: 100%;
  margin-bottom: 20px;
  cursor: pointer;
  font-size: 1rem;
}

.content {
  flex: 1;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.85);
  overflow-y: auto;
}

header h1 {
  color: #4a148c;
  margin-bottom: 20px;
}

.post-box textarea {
  width: 100%;
  height: 120px;
  border: 2px solid #ce93d8;
  border-radius: 10px;
  padding: 10px;
  font-size: 1rem;
  margin-bottom: 10px;
  background: #fff;
}

.post-options button {
  margin-right: 10px;
  background: #ce93d8;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.posts {
  margin-top: 30px;
}

.post-item {
  background: #fff0f5;
  border-left: 4px solid #ec407a;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(200, 100, 200, 0.1);
}

.post-img {
  max-width: 100%;
  margin-top: 10px;
  border-radius: 8px;
}

.post-video {
  width: 100%;
  margin-top: 10px;
  border-radius: 8px;
}

.post-time {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 6px;
}

.comments {
  margin-top: 15px;
  background: #fff5fb;
  padding: 10px;
  border-radius: 8px;
}

.comment-list {
  list-style: none;
  margin-bottom: 10px;
}

.comment-form input {
  padding: 6px;
  width: 70%;
  margin-right: 5px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.comment-form button {
  background: #ec407a;
  border: none;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
}

.edit-form textarea {
  width: 100%;
  padding: 6px;
  border-radius: 6px;
  margin-top: 6px;
  margin-bottom: 6px;
}

.edit-form button {
  background: #4caf50;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
}

.edit-btn {
  background: #ffb74d;
  color: black;
  border: none;
  padding: 4px 10px;
  border-radius: 6px;
  margin-top: 6px;
}

.share-post button {
  background: #eeeeee;
  color: #333;
  border: none;
  padding: 5px 10px;
  border-radius: 6px;
  margin: 4px 4px 0 0;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s ease;
}

.share-post button:hover {
  background: #d2f5ff;
}





@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    position: relative;
  }

  .content {
    width: 100%;
  }

  .collapse {
    display: block;
    background: #ffb6c1;
    padding: 8px;
    border: none;
    margin: 10px;
  }

  .sidebar ul {
    display: none;
    background: white;
    padding: 10px;
  }

  .sidebar.active ul {
    display: block;
  }

  .post-img, .post-video {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
  }
}
