* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1540px;
  min-width: 1240px;
  margin: 20px auto;
  color: #333;
}

.container *{
  box-sizing: border-box;
}

header {
  margin-bottom: 20px;
  text-align: center;
}

h1 {
  font-size: 2.2rem;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.subtitle {
  font-size: 1rem;
  opacity: 0.9;
  max-width: 90%;
  margin: 0 auto;
  line-height: 1.6;
}

.main-content {
  padding: 10px;
}

.input-section {
  background: #f9fafb;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
  border: 1px solid #e1e5eb;
}

.form-group {
  margin-bottom: 20px;
}

.form-group:last-child{
  margin-bottom: 0;
}

.container label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: #2d3748;
  display: flex;
  align-items: center;
  gap: 8px;
}

.radio-group {
  display: flex;
  gap: 30px;
  margin-top: 8px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.radio-option input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.input-row {
  display: flex;
  gap: 20px;
  align-items: center;
}

.input-row input {
  flex: 1;
}

.container input[type="text"] {
  width: 100%;
  padding: 14px 18px;
  font-size: 1.1rem;
  border: 2px solid #cbd5e0;
  border-radius: 8px;
  transition: border-color 0.3s;
}

.container input[type="text"]:focus {
  outline: none;
  border-color: #4b6cb7;
  box-shadow: 0 0 0 3px rgba(75, 108, 183, 0.2);
}

.container button {
  background: #4b6cb7;
  color: white;
  border: none;
  padding: 14px 30px;
  font-size: 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.container button:hover {
  background: #3a5a9c;
  transform: translateY(-2px);
}

.results-section {
  background: #f9fafb;
  border-radius: 10px;
  padding: 20px;
  border: 1px solid #e1e5eb;
}

.results-title {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: #2d3748;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e2e8f0;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.result-item {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-left: 4px solid #4b6cb7;
}

.result-title {
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: #4a5568;
  display: flex;
  align-items: center;
  gap: 10px;
}

.result-value {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2d3748;
  word-break: break-all;
  line-height: 1.5;
}

.ipv6-value {
  font-size: 1.1rem;
}

.instructions {
  background: #e3f2fd;
  border-radius: 10px;
  padding: 20px;
  margin-top: 30px;
  border-left: 4px solid #2196f3;
}

.instructions h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: #1565c0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.instructions ul {
  padding-left: 25px;
}

.instructions li {
  margin-bottom: 12px;
  line-height: 1.6;
}

.error {
  color: #e53e3e;
  background: #fff5f5;
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 15px;
  border-left: 4px solid #e53e3e;
  display: none;
}

.example {
  font-size: 0.9rem;
  color: #718096;
  margin-top: 8px;
}

footer {
  text-align: center;
  color: #718096;
  font-size: 0.95rem;
  margin-top: 20px;
}
