/* 🔴 Complain Banner */
.complain {
  border-bottom: 3px solid rgb(223, 15, 15);
}

/* 🟦 Hero Section */
.hero-section {
  background-image: linear-gradient(
      to right,
      rgba(25, 30, 104, 0.9),
      rgba(12, 67, 112, 0.9),
      rgba(12, 67, 112, 0.3)
    ),
    url("../assets/images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 60px 20px;
  text-align: center;
  border-radius: 10px;
}

/* 🟤 Complain Container */
.complain-container {
  border: 1px solid #ddd;
  padding: 15px;
  margin-top: 15px;
  background-color: #f8f8f8;
  border-radius: 8px;
  transition: box-shadow 0.3s ease;
}

.complain-container:hover {
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
}

/* 🟢 Comment Section */
.complain-comment-section,
.complain-comment-container {
  background-color: #fff !important;
  padding: 15px;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  margin-top: 10px;
}

/* Comment Input */
.complain-comment-container textarea {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  width: 100%;
  resize: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.complain-comment-container textarea:focus {
  border-color: rgb(26, 135, 224);
  box-shadow: 0px 0px 8px rgba(26, 135, 224, 0.5);
  outline: none;
}

/* 🟡 Comment Button */
.btn-comment {
  color: #fff !important;
  background-color: rgb(26, 135, 224) !important;
  box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: bold;
}

.btn-comment:hover {
  background-color: rgb(20, 110, 190) !important;
  transform: translateY(-2px);
}

/* 🔘 Action Icons */
.hand,
.heart,
.reply,
.likes,
.dislikes {
  border-radius: 8px;
  padding: 4px 8px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}

.hand:hover,
.heart:hover,
.reply:hover,
.likes:hover,
.dislikes:hover {
  background-color: rgba(26, 135, 224, 0.1);
  transform: scale(1.1);
  color: rgb(26, 135, 224);
}

/* 🧑 User Info */
.user-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.user_name {
  font-weight: bold;
  color: #555;
  font-size: 14px;
}

.user_image {
  border-radius: 50%;
  height: 50px;
  width: 50px;
  object-fit: cover;
  border: 2px solid #ddd;
}

/* 📸 Sender Images */
.sender_image_container,
.sender_image_container_reply {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
}

.sender_image_container {
  width: 100%;
  max-width: 300px;
  height: 250px;
  margin-top: 10px;
}

.sender_image_container_reply {
  width: 150px;
  height: 200px;
  margin-top: 10px;
}

.sender_image_container img,
.sender_image_container_reply img {
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

/* 📜 Scrollable Comment Section */
#complain-comment-section {
  max-height: 600px;
  overflow-y: auto;
  padding-right: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgb(26, 135, 224) #f1f1f1;
}

/* Custom Scrollbar (Webkit) */
#complain-comment-section::-webkit-scrollbar {
  width: 6px;
}

#complain-comment-section::-webkit-scrollbar-thumb {
  background: rgb(26, 135, 224);
  border-radius: 10px;
}

#complain-comment-section::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* 📱 Mobile Responsive */
@media (max-width: 768px) {
  .user-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .sender_image_container {
    max-width: 100%;
    height: auto;
  }

  .sender_image_container_reply {
    width: 100px;
    height: 140px;
  }

  #complain-comment-section {
    max-height: 400px;
  }
}
