* {
  margin: 0;
  padding: 0;

}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1600px;
  min-width: 1240px;
  margin: 20px auto;
  color: #333;
}

.container *{
  box-sizing: border-box;
}

header {
  width: 100%;
  margin-bottom: 25px;
  text-align: center;
}

header h1 {
  font-size: 28px;
  margin-bottom: 5px;
}

.subtitle {
  font-size: 16px;
  opacity: 0.9;
}

main {
  display: flex;
  gap: 20px;
}

.input-section,
.output-section {
  flex: 1;
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.section-title {
  font-size: 20px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #eaeef5;
  display: flex;
  align-items: center;
  gap: 10px;
}

.coordinates-box {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 15px;
  min-height: 250px;
}

.container textarea {
  width: 100%;
  height: 280px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  padding: 10px;
  font-family: monospace;
  font-size: 14px;
  resize: vertical;
  background-color: #fcfdff;
  line-height: 1.5;
}

.container textarea:focus {
  outline: none;
  border-color: #6c9bff;
  box-shadow: 0 0 0 3px rgba(108, 155, 255, 0.15);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 25px 0;
}

.btn {
  flex: 1;
  padding: 14px 8px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background: linear-gradient(to right, #4a6fa5, #3a5a8c);
  color: white;
}

.btn-secondary {
  background: linear-gradient(to right, #5a6268, #4a5258);
  color: white;
}

.btn-success {
  background: linear-gradient(to right, #28a745, #218838);
  color: white;
}

.btn-danger {
  background: linear-gradient(to right, #dc3545, #bd2130);
  color: white;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0);
}

.params-section {
  flex: 1;
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.param-controls {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 25px;
}

.container label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #495057;
}

.container select,
.container input[type="text"],
.container input[type="number"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 15px;
  background-color: #fcfdff;
}

.container select:focus,
.container input:focus {
  outline: none;
  border-color: #6c9bff;
  box-shadow: 0 0 0 3px rgba(108, 155, 255, 0.15);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.checkbox-group label{
  margin-bottom: 0;
}

.checkbox-group input {
  width: auto;
}

.params-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow: hidden;
}

.params-table th,
.params-table td {
  padding: 14px 16px;
  text-align: left;
  border: 1px solid #e9ecef;
}

.params-table th {
  background-color: #f1f5f9;
  font-weight: 600;
  color: #495057;
}

.params-table tr:nth-child(even) {
  background-color: #f8f9fa;
}

.params-table tr:hover {
  background-color: #e9f7fe;
}

.info-section {
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
  border: 1px solid #e9ecef;
}

.info-section h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-section h4 {
  font-size: 16px;
  margin-bottom: 10px;
}


.info-content {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  margin-top: 15px;
  border: 1px solid #e9ecef;
}

.info-content p {
  margin-bottom: 15px;
}

.info-content ul {
  padding-left: 25px;
  margin-bottom: 15px;
}

.info-content li {
  margin-bottom: 8px;
}

.example {
  background-color: #e8f4fd;
  border-left: 4px solid #4a90e2;
  padding: 15px;
  margin-top: 20px;
  border-radius: 0 6px 6px 0;
}
.example p{
  margin-bottom: 0;
}

.example .example-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: #2c3e50;
}

footer {
  text-align: center;
  padding: 20px;
  color: #6c757d;
  font-size: 14px;
  border-top: 1px solid #eaeef5;
  margin-top: 25px;
}

.input-hint {
  font-size: 14px;
  color: #6c757d;
  margin-top: 8px;
}

.ellipsoid-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.ellipsoid-table th,
.ellipsoid-table td {
  padding: 12px 15px;
  text-align: left;
  border: 1px solid #dee2e6;
}

.ellipsoid-table th {
  background-color: #e9ecef;
}

.highlight {
  background-color: #fff8e1;
  font-weight: 600;
}

.custom-ellipsoid {
  background-color: #e8f5e9;
  padding: 15px;
  border-radius: 8px;
  margin-top: 15px;
  border: 1px solid #c8e6c9;
}

.custom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
