/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Font */
body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  color: #1e293b;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Navbar */
.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-weight: 700;
  color: #2563eb;
  font-size: 20px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 25px;
}

.nav-menu a {
  text-decoration: none;
  color: #1e3a8a;
  font-weight: 500;
  transition: 0.3s;
}

.nav-menu a:hover {
  color: #2563eb;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* Hero */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 600px;
  z-index: 2;
}

.hero h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1e3a8a;
}

.hero p {
  font-size: 18px;
  margin-bottom: 30px;
  color: #334155;
}

/* Buttons */
.hero-buttons {
  display: flex;
  gap: 15px;
}

.btn-primary {
  background: #2563eb;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-outline {
  border: 2px solid #2563eb;
  color: #2563eb;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
}

.btn-outline:hover {
  background: #2563eb;
  color: white;
}

/* Web3 Glow Effect */
.glow-circle {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,0.4), transparent);
  border-radius: 50%;
  top: 20%;
  right: 10%;
  filter: blur(80px);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-menu {
    position: absolute;
    top: 70px;
    right: 0;
    background: white;
    width: 100%;
    flex-direction: column;
    align-items: center;
    display: none;
    padding: 20px 0;
  }

  .nav-menu.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero {
    text-align: center;
    justify-content: center;
  }

  .hero-buttons {
    flex-direction: column;
  }
}

/* Section umum */
.section-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 40px;
  color: #1e3a8a;
}

/* ===== FITUR ===== */
.features {
  padding: 80px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 12px;
  transition: 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card h3 {
  color: #2563eb;
  margin-bottom: 10px;
}

/* ===== ABOUT ===== */
.about {
  padding: 80px 0;
}

.about-wrapper {
  display: flex;
  justify-content: center;
  text-align: center;
}

.about-text {
  max-width: 600px;
}

/* ===== PREVIEW ===== */
.preview {
  padding: 80px 0;
}

.preview-box {
  height: 200px;
  border: 2px dashed #2563eb;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #555;
}

/* ===== FOOTER ===== */
.footer {
  background: #ffffff;
  padding: 30px 0;
  text-align: center;
  margin-top: 60px;
  border-top: 1px solid #ddd;
}

/* ===== MONITORING PAGE ===== */
.monitoring-page {
  padding-top: 120px;
  padding-bottom: 80px;
}

.page-title {
  text-align: center;
  font-size: 32px;
  color: #1e3a8a;
  margin-bottom: 10px;
}

.page-subtitle {
  text-align: center;
  color: #475569;
  margin-bottom: 50px;
}

/* Grid */
.monitoring-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

/* Card */
.monitoring-card {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 16px;
  text-decoration: none;
  color: #1e293b;
  transition: 0.3s;
  border: 1px solid rgba(255,255,255,0.3);
}

.monitoring-card h2 {
  color: #2563eb;
  margin-bottom: 15px;
}

.monitoring-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(37,99,235,0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .monitoring-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== MONITORING DETAIL ===== */
.monitoring-detail {
  padding-top: 120px;
  padding-bottom: 80px;
}

/* Grid sensor */
.sensor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

/* Card sensor */
.sensor-card {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  transition: 0.3s;
}

.sensor-card:hover {
  transform: translateY(-5px);
}

.sensor-card h3 {
  color: #2563eb;
  margin-bottom: 10px;
}

.sensor-value {
  font-size: 24px;
  font-weight: 600;
}

/* Status */
.status-box {
  margin-top: 30px;
  padding: 20px;
  text-align: center;
  border-radius: 10px;
  font-weight: bold;
  background: #e2e8f0;
}

/* Chart */
.chart-box {
  margin-top: 40px;
  height: 250px;
  border: 2px dashed #2563eb;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #555;
}

/* ===== FILTER DROPDOWN ===== */
#filterRange {
  padding: 8px 12px;
  margin: 20px 0;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
  transition: 0.3s;
}

#filterRange:hover {
  border-color: #007bff;
}

#filterRange:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0,123,255,0.3);
}


/* ===== TABLE CONTAINER ===== */
#dataTable {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-family: 'Inter', sans-serif;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}


/* ===== HEADER ===== */
#dataTable thead {
  background: #007bff;
  color: white;
}

#dataTable th {
  padding: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}


/* ===== BODY ===== */
#dataTable td {
  padding: 10px;
  text-align: center;
  font-size: 13px;
  border-bottom: 1px solid #eee;
}


/* ===== ROW HOVER ===== */
#dataTable tbody tr:hover {
  background: #f5faff;
  transition: 0.2s;
}


/* ===== STATUS COLOR ===== */
.status-aman {
  color: green;
  font-weight: 600;
}

.status-bahaya {
  color: red;
  font-weight: 700;
}


/* Responsive */
@media (max-width: 768px) {
  .sensor-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
    #dataTable th,
  #dataTable td {
    font-size: 11px;
    padding: 6px;
  }

  #filterRange {
    width: 100%;
  }
}

