* {
  margin: 0;
  padding: 0;

}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  min-width: 1240px;
  max-width: 1560px;
  margin: 20px auto;
  color: #333;
}

.container * {
  box-sizing: border-box;
}

header {
  margin-bottom: 25px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

h1 {
  font-size: 2.2rem;
  margin-bottom: 5px;
}

.tagline {
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.6;
}

.main-content {
  display: flex;
  padding: 0;
}

.form-section {
  width: 35%;
  padding: 20px;
  background: #fff;
  border-right: 1px solid #eaeaea;
}

.results-section {
  background: #fff;
  width: 65%;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.section-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e1e2e3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-group {
  margin-bottom: 22px;
}

.container label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #444;
}

.container select,
.container input {
  width: 100%;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  background: white;
  transition: border-color 0.3s;
}

.container select:focus,
.container input:focus {
  border-color: #4b6cb7;
  outline: none;
  box-shadow: 0 0 0 3px rgba(75, 108, 183, 0.2);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-group input {
  width: auto;
}

.checkbox-group label{
  margin-bottom: 0;
}


.actions {
  display: flex;
  gap: 15px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.btn {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-primary {
  background: #4b6cb7;
  color: white;
  flex: 1;
}

.btn-primary:hover {
  background: #3a5699;
}

.btn-secondary {
  background: #f0f0f0;
  color: #444;
  flex: 1;
}

.btn-secondary:hover {
  background: #e0e0e0;
}

.btn-icon {
  font-size: 1.4rem;
}

.results-container {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  background: #fcfcfc;
  overflow-y: auto;
  max-height: 500px;
  min-height: 500px;
}

.ip-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.ip-item {
  padding: 15px;
  background: #f0f7ff;
  border-radius: 8px;
  border-left: 4px solid #4b6cb7;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  transition: transform 0.2s;
  word-break: break-all;
  overflow-wrap: break-word;
  white-space: normal;
  min-width: 0;
}

.ip-item.ipv6 {
  font-size: 0.85rem;
  padding: 10px;
}

.ip-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.ipv4 {
  color: #1a5fb4;
}

.ipv6 {
  color: #26a269;
}

.info-section {
  margin-top: 25px;
  padding: 20px;
  background: #f8f9fa;
  border-top: 1px solid #eaeaea;
}

.info-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
}

.info-box h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-box ul {
  list-style-type: none;
  padding-left: 10px;
}

.info-box li {
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
  line-height: 1.6;
}

.info-box li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #4b6cb7;
  font-size: 1.4rem;
  line-height: 1;
}

.examples {
  background: #e8f4ff;
  padding: 20px;
  border-radius: 10px;
  margin-top: 20px;
}

.examples h4 {
  margin-bottom: 15px;
  color: #1a5fb4;
}

.example-item {
  padding: 10px;
  background: white;
  border-radius: 6px;
  margin-bottom: 10px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

.stats {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding: 15px;
  background: #f0f0f0;
  border-radius: 8px;
  font-size: 0.9rem;
}
