/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  line-height: 1.6;
  background-color: #f8f8f8;
  color: #333;
}

/* Container */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 0;
}

/* Header */
header {
  background-color: #27ae60;
  color: white;
  padding: 10px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header h1 {
  font-size: 24px;
  font-weight: bold;
}

.menu-icon {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* Navigation */
.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links .active {
  text-decoration: underline;
}

/* About Section */
.about-section h2 {
  font-size: 28px;
  color: #27ae60;
  margin-bottom: 10px;
}

.about-section h3 {
  font-size: 22px;
  margin-top: 25px;
  margin-bottom: 10px;
  color: #2c3e50;
}

.about-section p {
  margin-bottom: 15px;
  line-height: 1.8;
  font-size: 16px;
}

.about-features {
  list-style: none;
  padding-left: 0;
  margin-top: 10px;
}

.about-features li {
  margin: 10px 0;
  font-size: 16px;
}

.about-features i {
  color: #27ae60;
  margin-right: 10px;
}

/* Feedback Section */
.feedback-section {
  background-color: #fff;
  padding: 1px;
  margin-top: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.feedback-section h3 {
  font-size: 22px;
  color: #27ae60;
  margin-bottom: 10px;
}

.feedback-section p {
  font-size: 15px;
  margin-bottom: 15px;
}

.feedback-form textarea {
  width: 100%;
  height: 100px;
  resize: none;
  padding: 10px;
  font-size: 14px;
  margin-bottom: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.feedback-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.feedback-options label {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.feedback-options button {
  background-color: #27ae60;
  color: white;
  padding: 8px 16px;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.feedback-options button:hover {
  background-color: #219150;
}

.public-feedback-list {
  margin-top: 25px;
}

.public-feedback-list h4 {
  margin-bottom: 10px;
  font-size: 18px;
  color: #2c3e50;
}

#feedbackContainer {
  border-left: 3px solid #27ae60;
  padding-left: 0px;
  margin-top: 10px;
}

.feedback-message {
  margin-bottom: 15px;
  font-size: 14px;
  background-color: #f2fdf5;
  padding: 10px;
  border-radius: 5px;
}

/* Footer */
.main-footer {
  background-color: #27ae60;
  color: white;
  text-align: center;
  padding: 15px 0;
  margin-top: 40px;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #27ae60;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 10px;
    box-shadow: -2px 4px 6px rgba(0, 0, 0, 0.1);
  }

  .nav-links.show {
    display: flex;
  }

  .menu-icon {
    display: block;
  }
}



/*like and reply */
.feedback-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

.feedback-header {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 10px;
}

.feedback-date, .reply-date {
  color: #888;
  font-size: 12px;
}

.feedback-message {
  font-size: 15px;
  margin-bottom: 10px;
}

.feedback-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.feedback-actions button {
  padding: 6px 12px;
  border: none;
  background: #eee;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

.reply-box textarea {
  width: 100%;
  height: 50px;
  margin-bottom: 5px;
  padding: 5px;
  border: 1px solid #ccc;
}

.reply-box button {
  background-color: #27ae60;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 3px;
}

.replies {
  margin-top: 10px;
  padding-left: 10px;
  border-left: 2px solid #eee;
}

.reply {
  background: #f9f9f9;
  margin-top: 8px;
  padding: 8px;
  border-radius: 4px;
}

/*loader and delete replies*/
.feedback-card {
  border: 1px solid #ddd;
  padding: 15px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.feedback-header,
.reply-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.feedback-message,
.reply p {
  margin: 10px 0;
  font-size: 15px;
}

.reply {
  background-color: #f2f2f2;
  padding: 10px 14px;
  margin-top: 10px;
  border-radius: 6px;
  border-left: 4px solid #4CAF50;
  position: relative;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.reply-content {
  display: flex;
  flex-direction: column;
}

.reply-top {
  display: flex;
  flex-direction: column;
  margin-bottom: 6px;
}

.reply-name {
  font-weight: 600;
  font-size: 15px;
  color: #333;
}

.reply-date {
  font-size: 12px;
  color: #777;
  margin-top: 2px;
}

.reply-message {
  font-size: 14px;
  color: #444;
  margin: 8px 0;
}

.reply-footer {
  display: flex;
  justify-content: flex-end;
}

.delete-icon {
  color: #c0392b;
  cursor: pointer;
  font-size: 14px;
      margin-top: -30px; /*added*/
  transition: color 0.3s;
}

.delete-icon:hover {
  color: #e74c3c;
}



.reaction-popup {
  position: absolute;
  background: white;
  border: 1px solid #ccc;
  padding: 6px 10px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  display: flex;
  gap: 10px;
  z-index: 9999;
}


.reaction-btn {
  font-size: 20px;
  border: none;
  background: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.reaction-btn:hover {
  transform: scale(1.3);
}






.reply-btn {
  background-color: #f0f0f0;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 4px;
  font-weight: 500;
}

.reply-box {
  margin-top: 8px;
}

.reply-box textarea {
  width: 100%;
  padding: 8px;
  border-radius: 4px;
  resize: vertical;
}

.replies {
  margin-top: 10px;
  border-left: 2px solid #ccc;
  padding-left: 10px;
}

.reply {
  background-color: #f9f9f9;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.reply-content {
  display: flex;
  flex-direction: column;
}

.reply-name {
  font-weight: bold;
  color: #2c3e50;
}

.reply-date {
  font-size: 0.8em;
  color: #777;
}

.reply-footer {
  text-align: right;
}

.no-replies {
  color: #888;
  font-style: italic;
}
