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


header {
  padding: 10px 20px;
  text-align: center;
}

h1 {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 1rem;
  color: #666;
  max-width: 95%;
  margin: 0 auto;
}

.content {
  display: flex;
  padding: 20px;
  gap: 20px;
}

.left-panel {
  flex: 1;
  background: #f9f9ff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.right-panel {
  flex: 1;
  background: #f9f9ff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.panel-title {
  font-size: 1.4rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e0e5ff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.result-item{
  margin-bottom: 20px;
}

.input-group {
  margin-bottom: 22px;
}

label {
  display: block;
  font-weight: 500;
  font-size: 1rem;
  min-width: 70px;
  margin-bottom: 20px;
}

.radio-option label{
  margin-bottom: 0;
}

input,
select {
  width: 100%;
  padding: 14px;
  border: 1px solid #d1d5e8;
  border-radius: 8px;
  font-size: 1.1rem;
  background: white;
  transition: all 0.3s;
}

input:focus,
select:focus {
  outline: none;
  border-color: #6a11cb;
  box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.1);
}

.radio-group {
  display: flex;
  gap: 20px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
}

.custom-bits {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 20px;
}

.custom-bits input {
  width: 150px;
}

.custom-bits label{
  margin-bottom: 0;
}

button {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: white;
  border: none;
  padding: 16px 30px;
  font-size: 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  font-weight: 600;
  transition: all 0.3s;
  margin-top: 10px;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(37, 117, 252, 0.3);
}

.result-box {
  background: white;
  border: 1px solid #e0e5ff;
  border-radius: 8px;
  padding: 20px;
  margin-top: 15px;
  min-height: 120px;
  font-size: 1.1rem;
}

.result-title {
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.binary-value {
  font-family: monospace;
  font-size: 1.3rem;
  word-break: break-all;
  background: #f8f9ff;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #e0e5ff;
  margin-top: 10px;
}

.explanation {
  margin-top: 25px;
  padding: 20px;
  background: #f0f4ff;
  border-radius: 12px;
}

.explanation h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.explanation ul {
  padding-left: 25px;
}

.explanation li {
  margin-bottom: 12px;
  line-height: 1.7;
}

footer {
  text-align: center;
  padding: 25px;
  color: #666;
  font-size: 0.95rem;
  border-top: 1px solid #eee;
}

.info-box {
  background: #e8f4ff;
  border-left: 4px solid #2575fc;
  padding: 15px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
}

.bit-display {
  color: #6a11cb;
  font-weight: 600;
}
