/* Reset + Dark Theme */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  -webkit-tap-highlight-color: transparent; /* remove blue tap on mobile */
}

body {
  font-family: Arial, sans-serif;
  background: #000; /* full black background */
  color: #fff;
  min-height: 100vh;
}

/* Navbar (Glass UI) */

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 40px;
}

.logo span {
  font-size: 1.2rem;
  font-weight: bold;
  color: #00FF00; /* neon green */
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: flex-start; 
  gap: 50px;
  align-items: center;
  padding: 15px 40px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}
.nav-links li a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  padding: 5px 10px;
  transition: color 0.3s ease, border-bottom 0.3s ease;
}
.nav-links li a.active, .nav-links li a:hover {
  color: #00FF00;
  border-bottom: 2px solid #00FF00;
}


/* Dashboard Section */
.dashboard {
  margin-top: 100px;
  padding: 40px;
  text-align: center;
  color: #fff;
}

.dashboard h1 {
  color: #00FF00;
  margin-bottom: 40px;
  font-size: 2.5rem;
}

/* Cards Container */
.cards-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

/* Data Cards */
.card {
  background: rgba(0, 255, 0, 0.05);
  border-radius: 20px;
  padding: 20px;
  width: 300px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
  border: none; /* remove any outline */
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card h2 {
  color: #00FF00;
  margin-bottom: 10px;
}

.card p {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #fff;
}

/* Graphs inside cards */
canvas {
  width: 100% !important;
  height: 150px !important;
  border: none !important;
  outline: none !important;
  background: transparent;
}

.status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
  margin-top: 5px;
}

.status.good { background: #003300; color: #00FF00; }
.status.warn { background: #332200; color: #FFCC00; }
.status.crit { background: #330000; color: #FF3333; }

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #111;
  color: #00FF00;
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px #00FF00;
  display: none;
}
.toast.show { display: block; animation: fadeIn 0.5s; }
.timestamp {
  text-align: right;
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 20px;
}
#map {
  height: 300px;
  width: 100%;
  border-radius: 15px;
  margin-top: 20px;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}
#downloadBtn {
  margin-top: 20px;
  padding: 10px 20px;
  background: #00FF00;
  color: #000;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
}
#downloadBtn:hover {
  background: #00cc00;
}
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #111;
  border-top: 6px solid #00FF00;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
