* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}
body {
  line-height: 1.4;
}
img { max-width: 100%; height: auto; border: 0; }
table { border-collapse: collapse; border-spacing: 0; }
ul, ol { list-style: none; }
input, button, select, textarea { font-family: inherit; font-size: inherit; }

body {
  font-family: Tahoma, Verdana, 'Segoe UI', Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: #333333;
  background: #d8dde3;
}
h1 { font-size: 20px; font-weight: bold; color: #2c3e50; margin-bottom: 10px; }
h2 { font-size: 15px; font-weight: bold; color: #34495e; margin-bottom: 8px; }
h3 { font-size: 13px; font-weight: bold; color: #34495e; margin-bottom: 6px; }
h4 { font-size: 11px; font-weight: bold; color: #555; text-transform: uppercase; margin-bottom: 4px; }
p { margin: 6px 0; line-height: 1.5; }
a { color: #2266aa; text-decoration: none; }
a:hover { color: #1a4f8b; text-decoration: underline; }
a:visited { color: #5544aa; }
code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  background: #f0f0f0;
  padding: 1px 3px;
  border: 1px solid #ddd;
  border-radius: 2px;
}
.inline-path {
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  color: #444;
  background: #f0f0f0;
  padding: 1px 4px;
  border: 1px solid #ddd;
  border-radius: 2px;
}
.small-note { color: #777; font-size: 11px; }
.tight { margin-top: 3px; margin-bottom: 3px; }

.container { width: 980px; margin: 0 auto; padding: 0 10px; }
.page-content { padding: 15px 0 20px; min-height: 400px; }
.grid-two { overflow: hidden; }
.grid-two > div { float: left; width: 48%; }
.grid-two > div:first-child { margin-right: 4%; }
.grid-three { overflow: hidden; margin: 0 -5px; }
.grid-three > div { float: left; width: 33.333%; padding: 0 5px; }
.clearfix:after { content: ""; display: table; clear: both; }

.site-header {
  background: linear-gradient(to bottom, #4a6278, #2c3e50);
  border-bottom: 2px solid #1a2530;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.header-wrap { height: 52px; display: table; width: 100%; }
.brand-cell { display: table-cell; vertical-align: middle; width: 50%; }
.brand { color: #fff; font-size: 17px; font-weight: bold; text-shadow: 0 1px 2px rgba(0,0,0,0.4); letter-spacing: 0.3px; }
.brand a { color: #fff; text-decoration: none; }
.brand a:visited { color: #fff; }
.brand a:hover { color: #fff; text-decoration: none; }
.nav-cell { display: table-cell; vertical-align: middle; text-align: right; }
.top-nav a {
  display: inline-block;
  color: #d0dae2;
  text-decoration: none;
  padding: 6px 12px;
  margin-left: 2px;
  font-size: 12px;
  font-weight: bold;
  border: 1px solid transparent;
  border-radius: 3px 3px 0 0;
  text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}
.top-nav a:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
  text-decoration: none;
}
.top-nav a:visited { color: #d0dae2; }
.top-nav a.active {
  color: #333;
  background: #d8dde3;
  border-color: #1a2530;
  border-bottom-color: #d8dde3;
  text-shadow: none;
}
.top-nav .nav-main-site {
  background: rgba(39,174,96,0.25);
  border-color: rgba(39,174,96,0.4);
  color: #a8e6c3;
}
.top-nav .nav-main-site:hover {
  background: rgba(39,174,96,0.4);
  color: #fff;
}
.top-nav .nav-main-site:visited { color: #a8e6c3; }

.site-footer {
  background: linear-gradient(to bottom, #4a6278, #344b5e);
  border-top: 2px solid #1a2530;
  padding: 12px 0;
  margin-top: 10px;
}
.footer-wrap { overflow: hidden; }
.footer-left { float: left; color: #b0c0cf; font-size: 11px; }
.footer-right { float: right; color: #b0c0cf; font-size: 11px; }

.panel {
  background: #fff;
  border: 1px solid #b0b0b0;
  border-radius: 4px;
  margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.panel-head {
  background: linear-gradient(to bottom, #fafafa, #ebebeb);
  border-bottom: 1px solid #b0b0b0;
  padding: 8px 12px;
  border-radius: 4px 4px 0 0;
}
.panel-head h1, .panel-head h2 {
  margin: 0; font-size: 14px; color: #333; text-shadow: 0 1px 0 #fff;
}
.panel-body { padding: 12px; }
.section-head {
  font-size: 13px; color: #34495e;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
  margin-bottom: 10px;
}

.data-table { width: 100%; border-collapse: collapse; font-size: 12px; border: 1px solid #b0b0b0; }
.data-table th {
  background: linear-gradient(to bottom, #f0f3f6, #dde2e8);
  color: #333; font-weight: bold; font-size: 11px;
  text-transform: uppercase; text-shadow: 0 1px 0 #fff;
  padding: 6px 8px; border: 1px solid #b0b0b0; text-align: left;
}
.data-table td { padding: 5px 8px; border: 1px solid #c8c8c8; vertical-align: top; color: #333; }
.data-table tr:nth-child(even) td { background: #f4f7f9; }
.data-table tr:hover td { background: #e8f0f8; }
.data-table a { color: #2266aa; }
.data-table a:hover { text-decoration: underline; }

.btn {
  display: inline-block; padding: 4px 12px; font-size: 12px; font-weight: bold;
  color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,0.25);
  background: linear-gradient(to bottom, #6aabe5, #4a8bc5);
  border: 1px solid #3a7ab5; border-radius: 3px; cursor: pointer;
  text-decoration: none; box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.btn:hover {
  background: linear-gradient(to bottom, #5a9bd5, #3a7bb5);
  border-color: #2a6aa5; text-decoration: none; color: #fff;
}
.btn:active { background: #3a7bb5; 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; 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; border-radius: 3px;
  background: linear-gradient(to bottom, #fff, #f0f2f5);
  padding: 10px; text-align: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.kpi-box h4 { margin: 0 0 5px; font-size: 10px; color: #666; text-transform: uppercase; letter-spacing: 0.5px; }
.kpi-box .kpi-value { font-size: 15px; font-weight: bold; color: #2c3e50; margin: 0; }

.progress-bar-wrap {
  background: #ddd; border: 1px solid #bbb; border-radius: 3px;
  height: 16px; overflow: hidden; margin: 5px 0;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(to bottom, #6aabe5, #4a8bc5);
  border-radius: 2px; transition: width 0.5s ease;
}
.progress-bar-fill.warn {
  background: linear-gradient(to bottom, #f0c040, #d4a832);
}
.progress-bar-fill.danger {
  background: linear-gradient(to bottom, #e06060, #c04040);
}

.live-indicator {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; background: #27ae60;
  margin-right: 5px; vertical-align: middle;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.ticker-wrap {
  border: 1px solid #bbb; border-radius: 3px;
  background: #1e1e1e; padding: 8px 10px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px; color: #00cc00;
  max-height: 160px; overflow-y: auto; line-height: 1.6;
}
.ticker-line { display: block; }
.ticker-line .ts { color: #888; }
.ticker-line .info { color: #00cc00; }
.ticker-line .warn { color: #cccc00; }
.ticker-line .err { color: #cc3333; }

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

.meta-list { list-style: none; margin: 0; padding: 0; }
.meta-list li { padding: 5px 0; border-bottom: 1px dotted #ccc; font-size: 12px; }
.meta-list li:last-child { border-bottom: none; }

.chart-container {
  border: 1px solid #bbb; border-radius: 3px;
  background: #f8f9fa; padding: 8px;
  margin-bottom: 8px;
}
.chart-container canvas { width: 100%; height: 120px; display: block; }

.resource-row { margin-bottom: 8px; }
.resource-row .resource-label {
  font-size: 11px; font-weight: bold; color: #555;
  margin-bottom: 2px;
}
.resource-row .resource-detail {
  font-size: 10px; color: #888; float: right; margin-top: -14px;
}

@media (max-width: 1000px) {
  .container { width: 100%; padding: 0 12px; }
}
@media (max-width: 700px) {
  .header-wrap { display: block; height: auto; padding: 10px 0; }
  .brand-cell, .nav-cell { display: block; width: 100%; text-align: left; }
  .nav-cell { margin-top: 8px; }
  .top-nav a { margin-left: 0; margin-right: 2px; margin-bottom: 2px; }
  .grid-two > div { float: none; width: 100%; margin-right: 0; margin-bottom: 12px; }
  .grid-three > div { float: none; width: 100%; margin-bottom: 12px; }
  .kpi-item { width: 50%; }
  .footer-left, .footer-right { float: none; text-align: center; margin-bottom: 4px; }
}
@media (max-width: 480px) {
  .kpi-item { width: 100%; }
}
