.btn {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
  background: #5b9bd5;
  background: -webkit-linear-gradient(top, #6aabe5, #4a8bc5);
  background: linear-gradient(to bottom, #6aabe5, #4a8bc5);
  border: 1px solid #3a7ab5;
  -webkit-border-radius: 3px;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  background: #4a8bc5;
  background: -webkit-linear-gradient(top, #5a9bd5, #3a7bb5);
  background: linear-gradient(to bottom, #5a9bd5, #3a7bb5);
  border-color: #2a6aa5;
  text-decoration: none;
  color: #ffffff;
}

.btn:active {
  background: #3a7bb5;
  -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn-sm {
  padding: 2px 8px;
  font-size: 11px;
}

.status-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.5px;
  -webkit-border-radius: 3px;
  border-radius: 3px;
}

.status-badge.operational {
  color: #2a6b3a;
  background: #d4edda;
  border: 1px solid #73c77e;
}

.status-badge.degraded {
  color: #856404;
  background: #fff3cd;
  border: 1px solid #d4a832;
}

.status-badge.offline {
  color: #721c24;
  background: #f8d7da;
  border: 1px solid #d47a7f;
}

.kpi-grid {
  overflow: hidden;
  margin: 0 -5px;
}

.kpi-item {
  float: left;
  width: 25%;
  padding: 0 5px;
  margin-bottom: 10px;
}

.kpi-box {
  border: 1px solid #bbb;
  -webkit-border-radius: 3px;
  border-radius: 3px;
  background: #f8f9fa;
  background: -webkit-linear-gradient(top, #ffffff, #f0f2f5);
  background: linear-gradient(to bottom, #ffffff, #f0f2f5);
  padding: 10px;
  text-align: center;
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.kpi-box h4 {
  margin: 0 0 5px;
  font-size: 10px;
  color: #666666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kpi-box .kpi-value {
  font-size: 15px;
  font-weight: bold;
  color: #2c3e50;
  margin: 0;
}

.log-line {
  margin-top: 10px;
  border: 1px solid #bbb;
  -webkit-border-radius: 3px;
  border-radius: 3px;
  background: #f8f8f0;
  padding: 6px 10px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  color: #444444;
}

.code-box {
  margin: 0;
  border: 1px solid #bbb;
  -webkit-border-radius: 3px;
  border-radius: 3px;
  background: #f8f8f0;
  padding: 10px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  white-space: pre;
  overflow-x: auto;
  color: #333333;
}

.meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.meta-list li {
  padding: 5px 0;
  border-bottom: 1px dotted #cccccc;
  font-size: 12px;
}

.meta-list li:last-child {
  border-bottom: none;
}

.progress-bar-wrap {
  background: #ddd;
  border: 1px solid #bbb;
  -webkit-border-radius: 3px;
  border-radius: 3px;
  height: 16px;
  overflow: hidden;
  margin: 5px 0;
}

.progress-bar-fill {
  height: 100%;
  background: #5b9bd5;
  background: -webkit-linear-gradient(top, #6aabe5, #4a8bc5);
  background: linear-gradient(to bottom, #6aabe5, #4a8bc5);
  -webkit-border-radius: 2px;
  border-radius: 2px;
  -webkit-transition: width 0.5s ease;
  transition: width 0.5s ease;
}

.live-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  -webkit-border-radius: 50%;
  border-radius: 50%;
  background: #27ae60;
  margin-right: 5px;
  vertical-align: middle;
  -webkit-animation: pulse-dot 2s infinite;
  animation: pulse-dot 2s infinite;
}

@-webkit-keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.ticker-wrap {
  border: 1px solid #bbb;
  -webkit-border-radius: 3px;
  border-radius: 3px;
  background: #1e1e1e;
  padding: 8px 10px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  color: #00cc00;
  max-height: 140px;
  overflow-y: auto;
  line-height: 1.6;
}

.ticker-line {
  display: block;
}

.ticker-line .ts {
  color: #888888;
}

.ticker-line .info {
  color: #00cc00;
}

.ticker-line .warn {
  color: #cccc00;
}

.ticker-line .err {
  color: #cc3333;
}

@media (max-width: 700px) {
  .kpi-item {
    width: 50%;
  }
}

@media (max-width: 480px) {
  .kpi-item {
    width: 100%;
  }
}
