/* admin.css - Optimized Styling for Quantum LiFi Admin Dashboard */

body {
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  background: #000;
  color: white;
  display: flex;
  height: 100vh;
}

#admin-container {
  display: flex;
  width: 100%;
}

.sidebar {
  width: 250px;
  background: rgba(0, 0, 0, 0.8);
  padding: 20px;
  border-right: 1px solid #00c3ff;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar h2 {
  color: #00c3ff;
  font-size: 20px;
  margin-bottom: 20px;
}

.sidebar nav button,
.menu-btn {
  background: transparent;
  border: 1px solid #00c3ff;
  color: white;
  font-weight: bold;
  border-radius: 5px;
  padding: 10px;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  transition: background 0.3s;
}

.sidebar nav button:hover,
.menu-btn:hover {
  background-color: rgba(0, 195, 255, 0.2);
}

.main-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: #001f1f;
  position: relative;
}

.stats-grid {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.stat-card {
  flex: 1;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  padding: 15px;
  text-align: center;
}

.stat-value {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 14px;
  color: #aaa;
}

.connection-row {
  background: rgba(255, 255, 255, 0.05);
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 10px;
  border-left: 3px solid #00c3ff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.disconnect-btn {
  background: #ff3333;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 4px;
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  cursor: pointer;
}

.disconnect-btn:hover {
  background: #cc0000;
}

.log-stream {
  background: rgba(0, 0, 0, 0.7);
  padding: 15px;
  font-family: monospace;
  font-size: 13px;
  border: 1px solid #444;
  border-radius: 5px;
  color: #ccc;
  max-height: 300px;
  overflow-y: auto;
  margin-top: 20px;
}

.alert-banner {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #222;
  padding: 10px 20px;
  border-radius: 5px;
  color: white;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
  z-index: 999;
  opacity: 0.95;
  animation: fadeInOut 4s ease-in-out forwards;
}

.alert-info { background: #0077cc; }
.alert-warn { background: #ffaa00; color: #000; }
.alert-error { background: #cc0000; }

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(-10px); }
  10% { opacity: 1; transform: translateY(0); }
  90% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-10px); }
}

.session-tracker {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #00c3ff;
  border-radius: 5px;
  padding: 10px;
  margin-top: 20px;
}

.session-tracker h3 {
  color: #00c3ff;
  font-size: 16px;
  margin-bottom: 10px;
}

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

.session-tracker li {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 6px;
}

.nav-button {
  display: block;
  text-align: center;
  margin-bottom: 8px;
  text-decoration: none;
  color: white;
  padding: 10px;
  border-radius: 4px;
  background-color: #00438a;
  font-weight: bold;
  font-family: 'Orbitron', sans-serif;
  transition: background-color 0.3s;
}

.nav-button:hover {
  background-color: #0066cc;
}

