main {
  flex: 1;
  min-height: 700px;
  background-color: rgb(33, 42, 49);
  padding: 2rem;
  color: #D3D9D4;
  font-family: Arial, sans-serif;
}

.content-container {
  display: flex;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  box-sizing: border-box;
  color: #D3D9D4;
  flex-wrap: nowrap;
  align-items: stretch;
  min-height: 700px;
}

.review-form-section,
.reviews-section {
  background-color: #34454F;
  border-radius: 0.5em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  padding: 2rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-width: 300px;
  max-height: 800px;
}

.reviews-section {
  overflow-y: auto;
}

.review-form-section h2,
.reviews-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #14E7A1;
  text-align: center;
}

.review-form-section label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.4rem;
  color: #D3D9D4;
}

.review-form-section input[type="text"],
.review-form-section select,
.review-form-section textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  margin-bottom: 1.2rem;
  border: 1px solid #425763;
  border-radius: 0.5em;
  font-size: 1rem;
  background-color: #2f3a44;
  color: #D3D9D4;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  box-sizing: border-box;
}

.review-form-section input[type="text"]:focus,
.review-form-section select:focus,
.review-form-section textarea:focus {
  border-color: #14E7A1;
  background-color: #3f5360;
  outline: none;
  color: #fff;
}

.review-form-section form {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex-grow: 1;
  justify-content: flex-start;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.review-form-section button {
  background-color: #14E7A1;
  color: #142c28;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  border-radius: 0.5em;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-weight: 700;
  max-width: 100%;
  align-self: center;
}

.review-form-section button:hover {
  background-color: #48E5C2;
}

#formMessage {
  margin-top: 0.8rem;
  font-weight: 600;
  min-height: 1.2em;
  color: #14E7A1;
}

.review {
  background-color: #34454F;
  padding: 1.8rem 2rem;
  border-radius: 0.5em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  margin-bottom: 1.8rem;
  color: #D3D9D4;
}

.review h3 {
  margin: 0 0 0.6rem 0;
  font-size: 1.3rem;
  color: #14E7A1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
}

.review h3 small {
  font-weight: 400;
  font-size: 0.95rem;
  color: #a28c6d;
  font-style: italic;
}

.review p {
  margin: 0.3rem 0;
  line-height: 1.5;
  color: #D3D9D4;
  white-space: pre-wrap;
}

.sort-controls {
  text-align: center;
  margin-bottom: 1rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.sort-controls label {
  color: #D3D9D4;
  font-weight: 600;
  font-size: 1rem;
  margin-right: 0.5rem;
}

.sort-controls select {
  padding: 0.4rem 0.7rem;
  font-size: 1rem;
  border: 1px solid #14E7A1;
  border-radius: 5px;
  background-color: #f5fdfb;
  color: #333;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  min-width: 180px;
}

.sort-controls select:hover,
.sort-controls select:focus {
  border-color: #48E5C2;
  box-shadow: 0 0 5px #48E5C2;
  outline: none;
}

#paginationControls {
  text-align: center;
  margin-top: 2rem;
}

#paginationControls button {
  background-color: #14E7A1;
  color: #142c28;
  border: none;
  padding: 0.6rem 1.2rem;
  margin: 0 0.4rem;
  font-size: 1rem;
  border-radius: 0.5em;
  cursor: pointer;
  font-weight: 700;
  transition: background-color 0.3s ease;
}

#paginationControls button:disabled {
  background-color: #425763;
  cursor: not-allowed;
  color: #ccc;
}

#paginationControls button:hover:not(:disabled) {
  background-color: #48E5C2;
}

#paginationControls span {
  font-weight: 600;
  font-size: 1rem;
  vertical-align: middle;
  color: #14E7A1;
}

@media (max-width: 768px) {
  .content-container {
    flex-direction: column;
    padding: 1.5rem;
    min-height: auto;
  }

  .review-form-section,
  .reviews-section {
    max-width: 100%;
    min-width: auto;
    padding: 1.5rem;
    max-height: none;
  }

  .reviews-section {
    max-height: none;
    min-height: 500px;
  }
  .review-form-section h2,
  .reviews-section h2 {
    font-size: 1.6rem;
  }

  #paginationControls button {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    margin: 0 0.3rem;
  }
}
.reviews-section::-webkit-scrollbar {
  width: 12px;
}

.reviews-section::-webkit-scrollbar-track {
  background: #3d3636; 
  border-radius: 0.5em;
}

.reviews-section::-webkit-scrollbar-thumb {
  background-color: #99d6c4; 
  border-radius: 0.5em;
  border: 3px solid #3d3636;
}

.reviews-section::-webkit-scrollbar-thumb:hover {
  background-color: #4ecdc4; 
}

.reviews-section {
  scrollbar-width: thin;
  scrollbar-color: #99d6c4 #3d3636;
}
