/* ==========================================
   EcoPulse / AgroSat Pakistan - Modern CSS
   ========================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Rajdhani", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #0a0f1c;
  color: #e2e8f0;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top Navigation Bar */
.navbar {
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nh-logo {
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  color: #0a0f1c;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: 18px;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

.brand h1 {
  font-size: 20px;
  font-family: "Orbitron", sans-serif;
  color: #ffffff;
}

.brand h1 span {
  color: #00f2fe;
}

.brand p {
  font-size: 11px;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.status {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
}

.status.online {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.status.offline {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.3);
}

/* Location Controls */
.location-controls {
  display: flex;
  gap: 10px;
  padding: 15px 25px;
  background: rgba(30, 41, 59, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.location-controls input {
  flex: 1;
  padding: 10px 15px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: white;
  font-size: 14px;
  outline: none;
}

.location-controls input:focus {
  border-color: #00f2fe;
}

.action-btn {
  background: #2563eb;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.action-btn:hover {
  background: #1d4ed8;
}

.gps-btn {
  background: #0d9488;
}

.gps-btn:hover {
  background: #0f766e;
}

/* Glass Panels & Main Dashboard */
.dashboard {
  flex: 1;
  padding: 20px 25px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.glass-panel {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#lang-toggle-btn {
  background: #334155;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  align-self: flex-start;
  transition: 0.2s;
}

#lang-toggle-btn:hover {
  background: #475569;
}

/* Disease Scanner Box */
.disease-scanner-box {
  background: rgba(20, 83, 45, 0.3);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 12px;
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.disease-scanner-box h3 {
  color: #4ade80;
  font-size: 16px;
}

.disease-scanner-box input[type="file"] {
  background: rgba(15, 23, 42, 0.6);
  padding: 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.disease-scanner-box button {
  background: #16a34a;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.disease-scanner-box button:hover {
  background: #15803d;
}

/* Map Section */
.map-section .panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.map-section h2 {
  font-size: 16px;
  color: #f1f5f9;
}

.badge {
  background: rgba(0, 242, 254, 0.15);
  color: #00f2fe;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  border: 1px solid rgba(0, 242, 254, 0.3);
}

#map {
  height: 350px;
  width: 100%;
  border-radius: 8px;
}

/* Data Section & AI Assistant */
.data-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ai-card {
  background: linear-gradient(
    135deg,
    rgba(30, 41, 59, 0.8),
    rgba(15, 23, 42, 0.9)
  );
  border-left: 4px solid #00f2fe;
}

.ai-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.ai-header h2 {
  font-size: 18px;
  color: #ffffff;
}

.glow-btn {
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  color: #0a0f1c;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-subtext {
  font-size: 15px;
  color: #cbd5e1;
  line-height: 1.5;
}

/* Chatbot Trigger Box */
.data-section h3 {
  margin-top: 10px;
  color: #38bdf8;
  font-size: 16px;
}

.chat-trigger-box {
  display: flex;
  gap: 10px;
  margin-top: 5px;
}

.chat-trigger-box input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: white;
  outline: none;
}

.chat-trigger-box input:focus {
  border-color: #38bdf8;
}

.chat-send-btn {
  background: #0284c7;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

.chat-send-btn:hover {
  background: #0369a1;
}

/* Smart Recommendations Grid */
.smart-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.info-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-box span {
  font-size: 13px;
  color: #94a3b8;
}

.info-box h4 {
  font-size: 18px;
  color: #34d399;
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: center;
}

.metric .label {
  font-size: 12px;
  color: #94a3b8;
  text-transform: uppercase;
}

.metric h3 {
  font-size: 22px;
  color: #00f2fe;
  font-family: "Orbitron", sans-serif;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
  color: #94a3b8;
  margin-top: auto;
}

footer b {
  color: #00f2fe;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .smart-grid {
    grid-template-columns: 1fr;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .location-controls {
    flex-direction: column;
  }
}
