/* assets/css/style-diff.css */
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  color: #2c3e50;
  direction: rtl;
  line-height: 1.6;
}

main {
  max-width: 800px;
    margin: 2rem auto 3rem;
    padding: 0 1rem;
    background: #ffffff;
    border: 2px solid #3a997a;
    border-radius: 8px;
}

h1 {
  text-align: center;
  color: #000000;
  margin-bottom: 1rem;
}

form {
  background: white;
  border-radius: 8px;
  padding: 1rem 1.5rem 2rem 1.5rem;
  box-shadow: 0 2px 8px rgba(58, 153, 122, 0.15);
}

fieldset {
  border: 1px solid #3a997a;
  padding: 12px 14px;
  border-radius: 6px;
  margin-bottom: 1rem;
}

legend {
  color: #3a997a;
  font-weight: 600;
  padding: 0 4px;
}

label {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  cursor: pointer;
}

select {
  width: 100px;
  padding: 6px 10px;
  margin: 0 0.4rem 1rem 0.4rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  direction: rtl;
}

.form-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

button {
  cursor: pointer;
  background-color: #3a997a;
  border: none;
  padding: 0.6rem 1.6rem;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color 0.25s ease;
}

button:hover:not(:disabled) {
  background-color: #2a735b;
}

button:disabled {
  background-color: #9bcfbd;
  cursor: not-allowed;
}

#results {
  margin-top: 2rem;
  background: white;
  padding: 1rem 1.4rem;
  border-radius: 8px;
  box-shadow: 0 4px 9px rgba(58, 153, 122, 0.1);
  min-height: 120px;
}

.results-placeholder p {
  font-style: italic;
  color: #666;
  text-align: center;
}

.result-section {
  margin-bottom: 12px;
}

.result-label {
  font-weight: 700;
  color: #3a997a;
}

.result-text {
  margin-right: 0.5rem;
  font-size: 1.1rem;
  color: #34495e;
}

.info-section {
  max-width: 800px;
  margin: 2rem auto;
  background: #ffffff;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  color: #000000;
}

.info-section h2 {
  margin-top: 0;
  color: #3a997a;
}

.info-section ul {
  margin-top: 0.6rem;
  list-style: inside disc;
  padding-right: 1.3rem;
}

.info-section dl dt {
  font-weight: 700;
  margin-top: 1rem;
}

.info-section dl dd {
  margin-right: 1rem;
  margin-left: 0;
  font-style: normal;
}

/* Responsive */
@media (max-width: 480px) {
  select {
    width: 100%;
    margin-bottom: 0.8rem;
  }
  .form-buttons {
    flex-direction: column;
  }
}