/* Basic Page Styles */
body {
  font-family: Arial, sans-serif;
  margin: 20px;
  background-color: #f4f4f4;
}

h1,
h2 {
  color: #333;
}

h1 {
  text-align: center;
}

#walletConnect {
  text-align: center;
}

/* Tab Container: Desktop 75%, Mobile 100% */
.tab-container {
  width: 75%;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .tab-container {
    width: 100%;
  }
}

/* Tab Styles */
.tab-header {
  display: flex;
  border-bottom: 2px solid #ccc;
  margin-bottom: 10px;
}
.tab-link {
  background: #eee;
  border: none;
  padding: 10px 20px;
  margin-right: 2px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
  color: #333;
}
.tab-link.active {
  background: #fff;
  border-bottom: 2px solid #fff;
  font-weight: bold;
}
.tab-link:hover {
  background: #ddd;
}
.tab-content {
  background: #fff;
  padding: 20px;
  border: 1px solid #ccc;
  border-top: none;
}
.input-group {
  margin-bottom: 15px;
}
label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}
input[type="text"],
input[type="number"],
select,
textarea {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

/* Button Styles */
button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}
button:hover {
  background-color: #0056b3;
}

/* Stake Account Row Styles */
.stake-account-row {
  border: 1px solid #ddd;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background-color: #e2e3e5;
}
.stake-account-info {
  flex: 1;
  min-width: 250px;
}
.stake-account-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Token Account Box Styles */
.token-account-box {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 10px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #e2e3e5;
}

/* Notification Styles */
.notification {
  background: #333;
  color: #fff;
  padding: 10px 15px;
  border-radius: 4px;
  margin-top: 10px;
  opacity: 0.9;
  transition: opacity 0.5s;
  margin-bottom: 5px;
}
.notification a {
  color: #dcdcdc;
  text-decoration: none;
}

/* Notification Container (fixed at bottom-right) */
#notification-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  max-width: 300px;
}

/* ============ Broadcast Mode整体布局 ============ */
#broadcastModeContainer {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

/* 左边的文字“Broadcast Mode” */
#broadcastModeLabel {
  font-size: 16px;
  font-weight: bold;
}

/* 容器，包含文字和滑块 */
#txModeToggles {
  display: flex;
  align-items: center;
  gap: 30px;
}

/* 每一个滑块 + 文字组合 */
.toggle-group {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* 文字本身：可根据需要加粗，颜色浅灰 */
.toggle-text {
  font-size: 14px;
  font-weight: bold;
  color: #676767;
}

/* ---- iOS 风格开关，改为 (50×28) ---- */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;  /* 缩小为 50px */
  height: 28px; /* 缩小为 28px */
  cursor: pointer;
}

/* 隐藏原生radio */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* 滑块轨道 */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 28px; /* 对称圆角 */
}

/* 小圆点 */
.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: 0.4s;
  border-radius: 50%;
}

/* 选中时: 浅绿 (#90ee90) */
input:checked + .slider {
  background-color: #00cc66;
}

input:focus + .slider {
  box-shadow: 0 0 0.25px #00b55b;
}

/* 圆点往右移 22px */
input:checked + .slider:before {
  transform: translateX(22px);
}

/* 若需round写法 */
.slider.round {
  border-radius: 28px;
}
.slider.round:before {
  border-radius: 50%;
}
