/* Base layout */
html, body {
  margin: 0;
  min-height: 100%;   /* allow growth */
  height: auto;       /* remove forced viewport lock */
}

body {
  font-family: "Terminal", monospace;
  background-color: #3a4f63;   /* bluetone base */
  color: #2DC26B;              /* neon green text */
  display: flex;
  align-items: stretch;        /* ensure sidebar + main align */
}

/* Sidebar */
.sidebar {
  width: 220px;
  background: linear-gradient(180deg, #111, #222);
  color: #2DC26B;
  padding: 10px;
  min-height: 100vh;           /* stays full height */
  box-shadow: 2px 0 10px rgba(45, 194, 107, 0.4);
  box-sizing: border-box;
  position: sticky;
  top: 0;
}

.sidebar h2 {
  margin: 0 0 10px;
  text-align: center;
  font-size: 1.1em;
}

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

.sidebar ul li {
  margin: 8px 0;
}

.sidebar ul li a {
  color: #2DC26B;
  text-decoration: none;
  font-weight: bold;
  display: block;
  padding: 6px;
  border: 1px solid #2DC26B;
  border-radius: 4px;
  background: rgba(20, 20, 40, 0.85);
  transition: background 0.3s ease, color 0.3s ease;
  font-size: 0.9em;
}

.sidebar ul li a:hover {
  background: linear-gradient(90deg, #3fe07f, #2DC26B);
  color: #000;
}

/* Main content */
.main {
  flex-grow: 1;
  background: rgba(20, 20, 40, 0.85);
  color: #2DC26B;
  box-sizing: border-box;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  min-height: 100vh;   /* fine here — main can grow */
}

/* Headings */
h1, h2 {
  color: #2DC26B;
  text-align: center;
  margin: 0 0 15px;
}

/* Reports container */
.reports-container {
  width: 80%;
  max-width: 900px;
  margin-top: 20px;
}

/* Individual report blocks */
.report-block {
  background: rgba(58, 79, 99, 0.85);
  border: 1px solid #2DC26B;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
  text-align: center;
}

.report-block h2 {
  margin-top: 0;
  color: #2DC26B;
}

.report-block p {
  margin: 8px 0;
}

/* Dashboard panels */
.dashboard-panel {
  background: rgba(20, 20, 40, 0.85);
  border: 1px solid #2DC26B;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

/* Device table */
.device-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: rgba(20, 20, 40, 0.85);
  border-radius: 8px;
}

.device-table th, .device-table td {
  padding: 10px;
  border: 1px solid #2DC26B;
  text-align: center;
  color: #2DC26B;
  font-size: 0.9em;
}

.device-table th {
  background: #111;
  color: #2DC26B;
}

/* Buttons */
button {
  font-family: "Terminal", monospace;
  background: #2DC26B;
  border: 1px solid #2DC26B;
  padding: 8px 14px;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
}

button:hover {
  background: #1a8c4d;
  color: #000;
}
