    /* Google Font */
    @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

    :root {
      --primary: #00796b;
      --secondary: #004d40;
      --accent: #26a69a;
      --success: #4caf50;
      --warning: #ff9800;
      --info: #2196f3;
      --danger: #f44336;
      --light: #f8f9fa;
      --dark: #212121;
      --border: #e0e0e0;
      --gradient-primary: linear-gradient(135deg, #00796b, #004d40);
      --gradient-hero: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      scroll-behavior: smooth;
    }

    body {
      font-family: 'Poppins', sans-serif;
      background: var(--light);
      color: var(--dark);
      line-height: 1.6;
    }

    .wrapper {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
    }

    /* Enhanced Navbar */
    .navbar {
      background: white;
      padding: 15px 40px;
      box-shadow: 0 4px 20px rgba(0, 121, 107, 0.1);
      position: fixed;
      top: 0;
      width: 100%;
      z-index: 1000;
      transition: all 0.3s ease;
    }

    .navbar.scrolled {
      padding: 10px 40px;
      box-shadow: 0 6px 25px rgba(0, 121, 107, 0.15);
    }

    .nav-container {
      display: flex;
      justify-content: space-between;
      align-items: center;
      max-width: 1200px;
      margin: 0 auto;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
      transition: transform 0.3s ease;
    }

    .brand:hover {
      transform: scale(1.05);
    }

    .round-logo {
      width: 55px;
      height: 55px;
      border-radius: 50%;
      overflow: hidden;
      display: flex;
      justify-content: center;
      align-items: center;
      background: white;
      box-shadow: 0 4px 15px rgba(0, 121, 107, 0.2);
    }

    .round-logo .logo {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .brand-name {
      font-size: 1.6rem;
      font-weight: 700;
      color: var(--primary);
      text-decoration: none;
    }

    .nav-links {
      display: flex;
      gap: 30px;
    }

    .nav-links a {
      text-decoration: none;
      color: var(--dark);
      font-weight: 500;
      font-size: 1rem;
      transition: all 0.3s ease;
      position: relative;
    }

    .nav-links a:hover {
      color: var(--primary);
      transform: translateY(-2px);
    }

    .nav-links a::after {
      content: '';
      position: absolute;
      bottom: -5px;
      left: 0;
      width: 0;
      height: 2px;
      background: var(--primary);
      transition: width 0.3s ease;
    }

    .nav-links a:hover::after {
      width: 100%;
    }

    /* Live Status Banner */
    .live-status-banner {
      background: var(--gradient-primary);
      color: white;
      padding: 100px 0 40px;
      margin-top: 80px;
    }

    .status-content {
      display: grid;
      grid-template-columns: auto 1fr auto;
      gap: 30px;
      align-items: center;
    }

    .live-indicator {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .pulse-dot {
      width: 12px;
      height: 12px;
      background: var(--success);
      border-radius: 50%;
      animation: pulse 2s infinite;
    }

    @keyframes pulse {
      0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
      }
      70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
      }
      100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
      }
    }

    .live-text {
      font-weight: 700;
      font-size: 1.2rem;
      color: var(--success);
    }

    .status-info h3 {
      font-size: 1.5rem;
      margin-bottom: 5px;
    }

    .status-active {
      color: var(--success);
    }

    .last-update {
      text-align: right;
    }

    .update-frequency {
      font-size: 0.9rem;
      opacity: 0.8;
      margin-top: 5px;
    }

    /* Sensor Section */
    .sensor-section {
      padding: 60px 0;
      flex: 1;
    }

    .section-header {
      text-align: center;
      margin-bottom: 50px;
    }

    .section-header h2 {
      font-size: 2.5rem;
      color: var(--primary);
      margin-bottom: 15px;
      font-weight: 600;
    }

    .section-header p {
      font-size: 1.1rem;
      color: #666;
      margin-bottom: 30px;
    }

    .data-controls {
      display: flex;
      gap: 15px;
      justify-content: center;
      flex-wrap: wrap;
    }

    .control-btn {
      padding: 12px 24px;
      background: white;
      border: 2px solid var(--primary);
      color: var(--primary);
      border-radius: 25px;
      cursor: pointer;
      font-weight: 500;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .control-btn:hover {
      background: var(--primary);
      color: white;
      transform: translateY(-2px);
    }

    .control-btn.active {
      background: var(--primary);
      color: white;
    }

    /* Enhanced Sensor Grid */
    .sensor-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
      gap: 30px;
      margin-bottom: 50px;
    }

    .sensor-box {
      background: white;
      border-radius: 20px;
      padding: 30px;
      box-shadow: 0 10px 30px rgba(0, 121, 107, 0.1);
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
    }

    .sensor-box::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: var(--gradient-primary);
      transform: scaleX(0);
      transition: transform 0.3s ease;
    }

    .sensor-box:hover::before {
      transform: scaleX(1);
    }

    .sensor-box:hover {
      transform: translateY(-5px);
      box-shadow: 0 20px 40px rgba(0, 121, 107, 0.2);
    }

    .sensor-header {
      display: flex;
      align-items: center;
      gap: 15px;
      margin-bottom: 20px;
    }

    .sensor-icon {
      font-size: 2.5rem;
      padding: 15px;
      border-radius: 50%;
      background: rgba(0, 121, 107, 0.1);
      color: var(--primary);
    }

    .sensor-info h3 {
      font-size: 1.4rem;
      font-weight: 600;
      margin-bottom: 5px;
    }

    .sensor-status {
      padding: 4px 12px;
      border-radius: 15px;
      font-size: 0.8rem;
      font-weight: 500;
      text-transform: uppercase;
    }

    .status-normal {
      background: rgba(76, 175, 80, 0.1);
      color: var(--success);
    }

    .status-warning {
      background: rgba(255, 152, 0, 0.1);
      color: var(--warning);
    }

    .status-safe {
      background: rgba(33, 150, 243, 0.1);
      color: var(--info);
    }

    .sensor-value {
      font-size: 3rem;
      font-weight: 700;
      color: var(--primary);
      margin-bottom: 20px;
    }

    .sensor-value .unit {
      font-size: 1.5rem;
      color: #666;
      font-weight: 500;
    }

    .sensor-trend {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 15px;
      font-size: 0.9rem;
      color: #666;
    }

    .trend-icon {
      color: var(--success);
    }

    .sensor-range {
      font-size: 0.9rem;
      color: #888;
    }

    /* Progress Bar */
    .progress-container {
      margin-bottom: 15px;
    }

    .progress-bar {
      width: 100%;
      height: 8px;
      background: #e0e0e0;
      border-radius: 4px;
      overflow: hidden;
    }

    .progress-fill {
      height: 100%;
      background: var(--gradient-primary);
      transition: width 0.3s ease;
    }

    /* pH Scale */
    .ph-scale {
      position: relative;
      height: 20px;
      background: linear-gradient(90deg, #ff5722 0%, #4caf50 50%, #2196f3 100%);
      border-radius: 10px;
      margin-bottom: 10px;
    }

    .ph-indicator {
      position: absolute;
      top: -5px;
      width: 4px;
      height: 30px;
      background: white;
      border: 2px solid var(--dark);
      border-radius: 2px;
      transition: left 0.3s ease;
    }

    .ph-labels {
      display: flex;
      justify-content: space-between;
      font-size: 0.8rem;
      color: #666;
      margin-top: 5px;
    }

    /* Turbidity Visual */
    .turbidity-visual {
      height: 60px;
      background: linear-gradient(180deg, #e3f2fd 0%, #bbdefb 100%);
      border-radius: 10px;
      margin-bottom: 15px;
      position: relative;
      overflow: hidden;
    }

    .water-clarity {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 40%;
      background: rgba(121, 85, 72, 0.3);
      border-radius: 0 0 10px 10px;
      transition: height 0.3s ease;
    }

    /* Battery Visual */
    .battery-visual {
      margin-bottom: 15px;
    }

    .battery-container {
      width: 100%;
      height: 20px;
      background: #e0e0e0;
      border-radius: 10px;
      overflow: hidden;
      position: relative;
    }

    .battery-fill {
      height: 100%;
      background: var(--gradient-primary);
      transition: width 0.3s ease;
    }

    /* Gas Indicator */
    .gas-indicator {
      display: flex;
      align-items: center;
      gap: 15px;
      margin-bottom: 15px;
    }

    .gas-status {
      width: 30px;
      height: 30px;
      border-radius: 50%;
      transition: all 0.3s ease;
    }

    .gas-status.safe {
      background: var(--success);
      box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
    }

    .gas-level {
      font-size: 0.9rem;
      color: #666;
    }

    /* Data Summary */
    .data-summary {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 30px;
      margin-bottom: 50px;
    }

    .summary-card {
      background: white;
      border-radius: 20px;
      padding: 30px;
      box-shadow: 0 10px 30px rgba(0, 121, 107, 0.1);
      text-align: center;
    }

    .summary-card h4 {
      font-size: 1.3rem;
      color: var(--primary);
      margin-bottom: 20px;
      font-weight: 600;
    }

    .performance-metrics {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
    }

    .metric {
      text-align: center;
    }

    .metric-label {
      display: block;
      font-size: 0.9rem;
      color: #666;
      margin-bottom: 5px;
    }

    .metric-value {
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--primary);
    }

    .wqi-score {
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .wqi-circle {
      width: 120px;
      height: 120px;
      border-radius: 50%;
      background: var(--gradient-primary);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      color: white;
      position: relative;
    }

    .wqi-value {
      font-size: 2.5rem;
      font-weight: 700;
    }

    .wqi-label {
      font-size: 0.9rem;
      opacity: 0.9;
    }

    /* GPS Section */
    .gps-section {
      padding: 60px 0;
      background: white;
    }

    .gps-header {
      text-align: center;
      margin-bottom: 40px;
    }

    .gps-header h2 {
      font-size: 2.5rem;
      color: var(--primary);
      margin-bottom: 15px;
      font-weight: 600;
    }

    .gps-header p {
      font-size: 1.1rem;
      color: #666;
      margin-bottom: 30px;
    }

    .gps-controls {
      display: flex;
      gap: 15px;
      justify-content: center;
      flex-wrap: wrap;
    }

    .gps-container {
      display: grid;
      grid-template-columns: 2fr 1fr;
      gap: 30px;
      max-width: 1200px;
      margin: 0 auto;
    }

    #gps-map {
      background: #f5f5f5;
      border-radius: 20px;
      overflow: hidden;
      min-height: 400px;
    }

    .map-placeholder {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      height: 100%;
      color: #666;
      text-align: center;
      padding: 40px;
    }

    .map-placeholder i {
      font-size: 4rem;
      color: var(--primary);
      margin-bottom: 20px;
    }

    .coordinates {
      margin-top: 20px;
      display: flex;
      gap: 20px;
      font-family: 'Courier New', monospace;
      font-size: 0.9rem;
      color: #888;
    }

    .location-info {
      background: white;
      padding: 30px;
      border-radius: 20px;
      box-shadow: 0 10px 30px rgba(0, 121, 107, 0.1);
      height: fit-content;
    }

    .location-info h4 {
      font-size: 1.3rem;
      color: var(--primary);
      margin-bottom: 20px;
      font-weight: 600;
    }

    .location-info p {
      margin-bottom: 15px;
      display: flex;
      align-items: center;
      gap: 10px;
      color: #666;
    }

    .location-info i {
      color: var(--primary);
      width: 20px;
    }

    /* Enhanced Footer */
    .main-footer {
      background: #263238;
      color: white;
      padding: 60px 40px 30px;
      margin-top: auto;
    }

    .footer-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 40px;
      max-width: 1200px;
      margin: 0 auto;
    }

    .footer-section h4 {
      font-size: 1.3rem;
      color: var(--accent);
      margin-bottom: 20px;
      font-weight: 600;
    }

    .footer-section ul {
      list-style: none;
    }

    .footer-section ul li {
      margin-bottom: 12px;
    }

    .footer-section a {
      color: #b0bec5;
      text-decoration: none;
      transition: color 0.3s ease;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .footer-section a:hover {
      color: var(--accent);
    }

    .footer-section .icon-email {
      width: 18px;
      height: 18px;
    }

    /* Responsive Design */
    @media (max-width: 768px) {
      .navbar {
        padding: 15px 20px;
      }

      .nav-links {
        display: none;
      }

      .status-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
      }

      .sensor-grid {
        grid-template-columns: 1fr;
      }

      .gps-container {
        grid-template-columns: 1fr;
      }

      .performance-metrics {
        grid-template-columns: 1fr;
      }

      .data-controls,
      .gps-controls {
        flex-direction: column;
        align-items: center;
      }

      .section-header h2 {
        font-size: 2rem;
      }

      .gps-header h2 {
        font-size: 2rem;
      }
    }

    /* Loading Animation */
    .loading {
      opacity: 0.7;
      pointer-events: none;
    }

    .loading .sensor-value {
      animation: pulse-loading 1.5s infinite;
    }

    @keyframes pulse-loading {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.5; }
    }
