/* Databot Multi-Logger Master Styles */

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding: 10px;
  text-align: center;
  background-color: #f8f9fa;
}

#plugin-container {
  background: white;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  max-width: 300px;
  margin: auto;
}

h3 {
  color: #2c3e50;
  margin: 0 0 10px 0;
  font-size: 18px;
}

/* Sampling Rate Input Area */
.input-group {
  margin-bottom: 10px;
  text-align: left;
}

.input-group label {
  display: block;
  font-size: 11px;
  color: #666;
  margin-bottom: 2px;
}

.input-group input {
  width: 100%;
  padding: 6px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  box-sizing: border-box; /* Prevents input from "poking out" */
}

/* Collapsible Sensor Categories */
details {
  text-align: left;
  margin-bottom: 5px;
  border: 1px solid #eee;
  border-radius: 4px;
  background: #fff;
}

summary {
  padding: 5px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  color: #007bff;
  outline: none;
}

.sensor-group {
  display: flex;
  flex-direction: column;
  padding: 5px 10px;
}

.sensor-group label {
  font-size: 12px;
  padding: 3px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

/* Button Layouts */
.button-group {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

button {
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  border-radius: 6px;
  flex: 1; /* Makes buttons equal width */
  transition: opacity 0.2s;
}

#connectBtn {
  background: #28a745;
  color: white;
}

#stopBtn {
  background: #dc3545;
  color: white;
}

button:disabled {
  background: #6c757d;
  opacity: 0.6;
  cursor: not-allowed;
}

/* Status Message at Bottom */
#status {
  margin-top: 15px;
  font-size: 12px;
  font-weight: bold;
  border-top: 1px solid #dee2e6;
  padding-top: 10px;
}