* {
  margin: 0;
  padding: 0;
}

body {
  position: relative;
}

.container {
  box-sizing: border-box;
  color: #e0e0e0;
  width: 100%;
  min-width: 1100px;
  max-width: 1500px;
  padding: 20px;
  max-width: 1400px;
  margin: 20px auto;
}
.container *{
  box-sizing: border-box;
}
.container  header {
  text-align: center;
  padding: 0 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.container  h1 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #333;
  text-shadow: 0 0 15px rgba(100, 181, 246, 0.3);
}

.subtitle {
  font-size: 1rem;
  max-width: 900px;
  margin: 0 auto;
  color: #666;
  line-height: 1.6;
}

.main-content {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}

.control-panel {
  flex: 1;
  background: #666;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(128, 128, 255, 0.1);
}

.message-panel {
  flex: 1.5;
  background: #666;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(128, 128, 255, 0.1);
  display: flex;
  flex-direction: column;
}

.panel-title {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: #fff;
}

.panel-title span {
  margin-right: 10px;
  font-size: 1.6rem;
}

.input-group {
  margin-bottom: 25px;
}

.container label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #90caf9;
}

.container input,
.container select,
.container textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid rgba(128, 128, 255, 0.3);
  background: rgba(25, 25, 50, 0.7);
  color: #e0e0e0;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.container  input:focus,
.container select:focus,
.container textarea:focus {
  outline: none;
  border-color: #64b5f6;
  box-shadow: 0 0 0 2px rgba(100, 181, 246, 0.2);
}

.btn-group {
  display: flex;
  gap: 15px;
  margin: 25px 0;
}

.container button {
  flex: 1;
  padding: 14px 20px;
  border-radius: 8px;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.connect-btn {
  background: linear-gradient(135deg, #4caf50, #2e7d32);
  color: white;
}

.disconnect-btn {
  background: linear-gradient(135deg, #f44336, #c62828);
  color: white;
}

.send-btn {
  background: linear-gradient(135deg, #2196f3, #0d47a1);
  color: white;
}

.clear-btn {
  background: linear-gradient(135deg, #ff9800, #ef6c00);
  color: white;
}

.container button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.container button:active {
  transform: translateY(0);
}

.status-indicator {
  display: flex;
  align-items: center;
  padding: 15px;
  background: rgba(25, 25, 50, 0.7);
  border-radius: 8px;
  margin-top: 10px;
}

.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-right: 12px;
}

.disconnected {
  background: #f44336;
  box-shadow: 0 0 10px #f44336;
}

.connected {
  background: #4caf50;
  box-shadow: 0 0 10px #4caf50;
}

.connecting {
  background: #ffeb3b;
  box-shadow: 0 0 10px #ffeb3b;
}

.message-container {
  flex: 1;
  background: rgba(25, 25, 50, 0.7);
  border-radius: 8px;
  padding: 15px;
  overflow-y: auto;
  max-height: 700px;
  border: 1px solid rgba(128, 128, 255, 0.2);
}

.message {
  padding: 12px 15px;
  margin-bottom: 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.5;
  word-break: break-all;
}

.message.sent {
  background: rgba(33, 150, 243, 0.15);
  border-left: 4px solid #2196f3;
}

.message.received {
  background: rgba(76, 175, 80, 0.15);
  border-left: 4px solid #4caf50;
}

.message.info {
  background: rgba(255, 152, 0, 0.15);
  border-left: 4px solid #ff9800;
}

.message.error {
  background: rgba(244, 67, 54, 0.15);
  border-left: 4px solid #f44336;
}

.message-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-weight: 600;
  color: #bb86fc;
}

.info-panel {
  background: #666;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(128, 128, 255, 0.1);
  margin-bottom: 30px;
}

.info-content {
  line-height: 1.7;
  color: #bbdefb;
}

.info-content h3 {
  margin: 20px 0 12px;
  color: #fff;
}

.info-content ul {
  padding-left: 25px;
  margin-bottom: 15px;
}

.info-content li {
  margin-bottom: 8px;
}

.example {
  background: rgba(25, 25, 50, 0.7);
  padding: 12px 15px;
  border-radius: 8px;
  font-family: monospace;
  margin: 10px 0;
}

footer {
  text-align: center;
  padding: 20px;
  color: #8a8a8a;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
