/* Review Section Container */
.review-section {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  width: 100%;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
}

/* Section Title */
.review-section-title {
  font-size: 24px;
  color: #333;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
  margin-bottom: 20px;
  text-align: left;
}

/* Review List */
.review-list {
  margin-bottom: 30px;
}

/* Single Review Card */
.single-review {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  text-align: left;
}

.single-review:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Reviewer Info */
.reviewer-info {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  background-color: #4a6fa5;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  font-weight: bold;
}

.reviewer-name {
  font-size: 16px;
  color: #333;
}

.review-rating {
  color: #ffc107;
  font-size: 14px;
  margin-top: 2px;
}

/* Review Content */
.review-text {
  color: #555;
  line-height: 1.5;
  margin: 10px 0;
  text-align: left;
}

.review-image-container {
  margin: 10px 0;
}

.review-image {
  max-width: 80px;
  max-height: 80px;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.review-date {
  color: #999;
  font-size: 12px;
  display: inline-block;
}

/* Delete Button */
.delete-review {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #ff4d4d;
  color: white;
  border: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.delete-review:hover {
  background: #e60000;
  transform: scale(1.1);
}

/* No Reviews Message */
.no-reviews {
  color: #666;
  font-style: italic;
  text-align: left;
}

/* Add Review Button */
.add-review-container {
  text-align: left;
  margin-top: 30px;
}

.add-review-btn {
  background: linear-gradient(to right, #4a6fa5, #5a8fd3);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 30px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(74, 111, 165, 0.3);
  transition: all 0.3s ease;
}

.add-review-btn:hover {
  box-shadow: 0 6px 12px rgba(74, 111, 165, 0.4);
  transform: translateY(-2px);
}

.add-review-btn i {
  margin-right: 8px;
}

/* Review Form */
.review-form {
  display: none;
  margin-top: 30px;
  background: #f9f9f9;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: left;
}

.form-title {
  margin-top: 0;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  text-align: left;
}

.form-group {
  margin-bottom: 15px;
  text-align: left;
}

.form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #555;
  text-align: left;
}

.form-select, .form-textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  box-sizing: border-box;
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-file {
  width: 100%;
}

.form-actions {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
}

.cancel-btn, .submit-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.cancel-btn {
  background: #f0f0f0;
}

.cancel-btn:hover {
  background: #e0e0e0;
}

.submit-btn {
  background: #4a6fa5;
  color: white;
}

.submit-btn:hover {
  background: #3a5f95;
}

/* Login Prompt */
.login-prompt {
  text-align: left;
  margin-top: 30px;
  padding: 15px;
  background: #f5f5f5;
  border-radius: 8px;
}

.login-link {
  color: #4a6fa5;
  font-weight: 500;
  text-decoration: none;
}

.login-link:hover {
  text-decoration: underline;
}