body {
    font-family: Arial, sans-serif;
  }
  
  .container2 {
    background-color: #f0f4f8;
    border-radius: 8px;
    width: 95vw;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    box-sizing: border-box;
  }
  
  h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 2.2em;
  }

  /* MQTT Broker Info Section */
  .mqtt-info-section {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
  }

  .broker-info-card, .topics-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex: 1;
  }

  .broker-info-card h3, .topics-card h3 {
    margin-top: 0;
    color: #34495e;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 15px;
  }

  .info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #ecf0f1;
  }

  .info-row:last-child {
    border-bottom: none;
  }

  .info-row .label {
    font-weight: 600;
    color: #7f8c8d;
  }

  .info-row .value {
    color: #2c3e50;
    font-family: 'Courier New', monospace;
  }

  .status-connected {
    color: #27ae60 !important;
    font-weight: bold;
  }

  .status-disconnected {
    color: #95a5a6 !important;
  }

  .topic-item {
    background: #ecf0f1;
    padding: 12px 15px;
    margin: 8px 0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .topic-icon {
    font-size: 1.3em;
  }

  .topic-name {
    font-family: 'Courier New', monospace;
    color: #2c3e50;
    font-weight: 500;
  }

  /* Messages Section */
  .messages-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  .messages-section h3 {
    margin-top: 0;
    color: #34495e;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 10px;
    margin-bottom: 15px;
  }

  .messages-container {
    max-height: 250px;
    overflow-y: auto;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
  }

  .no-messages {
    text-align: center;
    color: #95a5a6;
    font-style: italic;
    padding: 20px;
  }

  .message-item {
    background: white;
    border-left: 4px solid #3498db;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    animation: slideIn 0.3s ease-out;
  }

  .message-item.temp {
    border-left-color: #e74c3c;
  }

  .message-item.hum {
    border-left-color: #3498db;
  }

  @keyframes slideIn {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
  }

  .message-topic {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #2c3e50;
  }

  .message-time {
    font-size: 0.85em;
    color: #95a5a6;
  }

  .message-payload {
    font-family: 'Courier New', monospace;
    color: #27ae60;
    font-size: 1.1em;
    font-weight: bold;
  }
  
  .gauge-container {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
  }
  
  .gauge-box {
    width: 48%;
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  
  .gauge-title {
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
    color: #34495e;
    font-size: 1.1em;
  }
  
  .chart-container {
    display: flex;
    justify-content: space-around;
    margin-bottom: 50px;
  }
  
  .chart-box {
    width: 48%;
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  
  #gaugeDiv1, #gaugeDiv2 {
    width: 100%;
    height: 300px;
  }
  
  #chartdiv1, #chartdiv2 {
    width: 100%;
    height: 500px;
  }
  
  .chart-title {
    text-align: center;
    font-weight: bold;
    margin-top: 10px;
    color: #34495e;
  }