:root {
  --bg-color: #001a13;
  --text-color: #ffffff;
  --primary-green: #00ffcc;
  --secondary-green: #008f7a;
  --border-color: #004d40;
  --panel-bg: rgba(0, 20, 15, 0.8);
  --font-family: 'Microsoft YaHei', 'SimHei', sans-serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-family);
  overflow: hidden; /* Prevent scrolling for dashboard feel */
  width: 100vw;
  height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('img/bg.png') no-repeat center center;
  background-size: cover;
  opacity: 0.2;
  z-index: -1;
  pointer-events: none;
}

/* ... existing styles ... */

.stats-row-bg {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(0, 40, 30, 0.75);
  border: 1px solid rgba(0, 255, 204, 0.3);
  border-radius: 5px;
  padding: 12px 18px;
  height: 75px;
  backdrop-filter: blur(5px);
}

.dashboard-container {
  display: grid;
  grid-template-columns: 25% 50% 25%;
  grid-template-rows: 80px 1fr 250px; /* Header, Main Content, Bottom Panel */
  width: 100%;
  height: 100%;
  padding: 10px;
  gap: 10px;
  position: relative;
}

/* Header */
.header {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center; /* Center the title */
  align-items: center;
  background: url('img/header.png') no-repeat center top;
  background-size: 100% 100%;
  padding: 0;
  position: relative;
  height: 80px;
  z-index: 100;
}

.header-title {
  font-size: 36px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 20px rgba(0, 255, 204, 0.8);
  letter-spacing: 4px;
  margin-top: -10px; /* Adjust based on image text position */
  background: linear-gradient(to bottom, #ffeb3b, #ff9800);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.header-left, .header-right {
  position: absolute;
  top: 20px;
  display: flex;
  gap: 10px;
}

.header-left {
  left: 20px;
}

.header-right {
  right: 20px;
}

.nav-btn {
  background: rgba(0, 20, 15, 0.6);
  border: 1px solid var(--secondary-green);
  color: var(--primary-green);
  padding: 8px 20px;
  font-size: 16px;
  cursor: pointer;
  clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
  transition: all 0.3s;
  font-weight: bold;
}

.nav-btn:hover {
  background: rgba(0, 255, 204, 0.2);
  box-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
}

.nav-btn.active {
  background: rgba(0, 255, 204, 0.3);
  border-color: var(--primary-green);
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 255, 204, 0.5);
}

/* Panels */
.panel {
  background: rgba(0, 20, 15, 0.6);
  border: 1px solid rgba(0, 77, 64, 0.6);
  padding: 15px;
  position: relative;
  box-shadow: inset 0 0 30px rgba(0, 255, 204, 0.05), 0 0 10px rgba(0, 255, 204, 0.1);
  backdrop-filter: blur(3px);
}

/* Corner Brackets */
.panel::before, .panel::after {
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  border: 2px solid var(--primary-green);
  transition: all 0.3s;
}

.panel::before {
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
}

.panel::after {
  bottom: 0;
  right: 0;
  border-left: none;
  border-top: none;
}

/* Add extra corners using a child element or pseudo-elements of title? 
   Let's use a wrapper or just add more pseudo elements to a child if needed.
   For now, top-left and bottom-right is a good start, or we can use box-shadow for others.
*/

.panel-title {
  color: #ffcc00;
  font-size: 18px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(255, 204, 0, 0.5);
}

.panel-title::before {
  content: '>>';
  margin-right: 8px;
  color: var(--primary-green);
  font-size: 14px;
  font-family: monospace;
}

.panel-title::before {
  content: '>>';
  margin-right: 5px;
  color: var(--primary-green);
  font-size: 12px;
}

/* Layout Specifics */
.left-column {
  grid-column: 1;
  grid-row: 2 / 4;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.center-column {
  grid-column: 2;
  grid-row: 2 / 3;
  position: relative;
  /* The 3D field will go here */
}

.center-bottom {
  grid-column: 2;
  grid-row: 3;
  display: flex;
  gap: 10px;
}

.right-column {
  grid-column: 3;
  grid-row: 2 / 4;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Specific Panel Heights (approximate percentages) */
.weather-container { flex: 3; min-height: 0; } /* Increased weight */
.soil-container { flex: 4; min-height: 0; } /* Increased weight */
.insect-panel { flex: 2; min-height: 0; }
.drone-panel { flex: 3; min-height: 0; }

/* Insect Panel Styles */
.insect-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 10px;
  padding: 10px 0;
  height: calc(100% - 40px);
}

.insect-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.insect-img-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(0, 255, 204, 0.5);
  background: rgba(0, 255, 204, 0.1);
  background-image: url('img/bugs.png');
  background-size: 600% 100%; /* 6 images horizontally */
  background-repeat: no-repeat;
  background-position: center center;
}

/* Each bug image from bugs.png - assuming 6 images in a row */
.bug-1 {
  background-position: 0% 0%;
}

.bug-2 {
  background-position: 16.67% 0%; /* 1/6 */
}

.bug-3 {
  background-position: 33.33% 0%; /* 2/6 */
}

.bug-4 {
  background-position: 50% 0%; /* 3/6 */
}

.bug-5 {
  background-position: 66.67% 0%; /* 4/6 */
}

.bug-6 {
  background-position: 83.33% 0%; /* 5/6 */
}

.insect-name {
  font-size: 12px;
  color: #fff;
  text-align: center;
}

.insect-count {
  font-size: 14px;
  color: #ffcc00;
  font-weight: bold;
  text-align: center;
}

/* Drone Panel Styles */
.drone-maps-container {
  display: flex;
  gap: 10px;
  height: calc(100% - 40px);
  padding: 10px 0;
}

.drone-map-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.map-title {
  font-size: 12px;
  color: #fff;
  text-align: center;
  padding: 5px;
  background: rgba(0, 255, 204, 0.1);
  border: 1px solid rgba(0, 255, 204, 0.3);
  border-radius: 3px;
}

.drone-map-container {
  flex: 1;
  background: rgba(0, 20, 15, 0.5);
  border: 1px solid rgba(0, 255, 204, 0.3);
  border-radius: 3px;
  overflow: hidden;
}

.drone-map-container.heatmap {
  background: rgba(0, 0, 0, 0.3);
}

.drone-map-container.trajectory {
  background: rgba(0, 0, 0, 0.3);
}

.video-panel { height: 40%; }
.expert-panel { height: 30%; }
.finance-panel { height: 30%; flex-grow: 1; }

/* Left Column Redesign */
.left-column {
  grid-column: 1;
  grid-row: 2 / 4;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%; /* Ensure it takes full grid height */
  overflow: hidden;
}

/* Weather Container New */
.weather-container {
  background: linear-gradient(to bottom, rgba(0, 60, 50, 0.9), rgba(0, 30, 25, 0.8));
  border: 1px solid rgba(0, 255, 204, 0.3);
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.weather-header-new {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  background: linear-gradient(to right, rgba(0, 255, 204, 0.15), transparent);
  border-bottom: 1px solid rgba(0, 255, 204, 0.2);
  position: relative;
  min-height: 50px;
}

/* Left: Thermometer & Temp */
.wh-new-left {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  padding-right: 12px;
}

.wh-new-left::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.wh-thermometer {
  width: 14px;
  height: 35px;
  position: relative;
  flex-shrink: 0;
}

.thermometer-glass {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #00ffcc;
  border-radius: 7px;
  position: relative;
}

.thermometer-liquid {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 40%;
  background: linear-gradient(to top, #ff3300, #ffcc00);
  border-radius: 0 0 7px 7px;
}

.wh-temp-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.wh-label-new {
  font-size: 11px;
  color: #fff;
  white-space: nowrap;
}

.wh-value-new {
  font-size: 22px;
  color: #fff;
  font-family: 'Arial', sans-serif;
  line-height: 1;
  white-space: nowrap;
}

.degree-new {
  font-size: 14px;
  vertical-align: top;
}

/* Center: Date & Condition */
.wh-new-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  gap: 3px;
}

.wh-date-new {
  font-size: 13px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.wh-condition-new {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  white-space: nowrap;
}

.weather-icon-new {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.weather-icon-emoji {
  font-size: 16px;
  display: inline-block;
  line-height: 1;
}

/* Right: Time & AQI */
.wh-new-right {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  column-gap: 8px;
  align-items: center;
  color: #fff;
}

.wh-time-new { 
  grid-column: 1; 
  grid-row: 1; 
  text-align: right; 
  font-size: 13px;
  font-family: monospace;
  white-space: nowrap;
}

.wh-range-new { 
  grid-column: 1; 
  grid-row: 2; 
  text-align: right; 
  font-size: 11px;
  white-space: nowrap;
}

.wh-aqi-box { 
  grid-column: 2; 
  grid-row: 1 / 3; 
  border: 1px solid #fff;
  border-radius: 3px;
  width: 28px;
  height: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.aqi-val {
  font-size: 12px;
  font-weight: bold;
  line-height: 1.1;
}

.aqi-lbl {
  font-size: 9px;
  color: #ffcc00;
  line-height: 1;
}

/* Weather Week */
.weather-week-new {
  display: flex;
  justify-content: space-between;
  padding: 5px 3px;
  background: rgba(0, 20, 15, 0.4);
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.day-col-new {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px dashed rgba(255, 255, 255, 0.1);
  color: #aaa;
  font-size: 10px;
  min-width: 0;
  gap: 2px;
  padding: 2px;
}

.day-col-new:last-child {
  border-right: none;
}

.d-name-new { 
  color: #ccc; 
  white-space: nowrap; 
  font-size: 10px;
  line-height: 1.2;
}

.d-date-new { 
  white-space: nowrap; 
  font-size: 9px;
  line-height: 1.2;
  color: #aaa;
}

.d-icon-new { 
  font-size: 14px; 
  color: #fff; 
  line-height: 1;
}

.d-range-new { 
  white-space: nowrap; 
  font-size: 9px;
  line-height: 1.2;
  color: #aaa;
}

.d-text-new { 
  color: #ccc; 
  white-space: nowrap; 
  font-size: 9px;
  line-height: 1.2;
}

/* Soil Container */
.soil-container {
  background: linear-gradient(to bottom, rgba(0, 60, 50, 0.8), rgba(0, 30, 25, 0.8));
  border: 1px solid rgba(0, 255, 204, 0.3);
  border-radius: 5px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.section-header {
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 14px;
  border-bottom: 1px solid rgba(0, 255, 204, 0.3);
  padding-bottom: 5px;
}

.sh-arrow {
  color: #ffcc00;
  margin-right: 10px;
  font-weight: bold;
}

.sh-title {
  font-size: 12px;
}

.sh-dots {
  margin-left: auto;
  color: #ffcc00;
  letter-spacing: 2px;
}

.soil-chart-wrapper {
  display: flex;
  flex: 1; /* Allow it to fill available space */
  min-height: 0; /* Important for nested flex scrolling/sizing */
  padding: 5px 0;
}

.y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ccc;
  font-size: 10px;
  padding-right: 5px;
  text-align: right;
  width: 30px;
}

.chart-area {
  flex: 1;
  position: relative;
  border-left: 1px solid #555;
  border-bottom: 1px solid #555;
}

.grid-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.bar-group {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
}

.striped-bar {
  position: absolute;
  bottom: 0;
  width: 10px;
  background: repeating-linear-gradient(
    0deg,
    #00ffcc,
    #00ffcc 2px,
    transparent 2px,
    transparent 4px
  );
  opacity: 0.8;
}

.line-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

.soil-cards {
  display: flex;
  justify-content: space-between;
  gap: 5px;
}

.s-card {
  flex: 1;
  background: rgba(0, 255, 204, 0.1);
  border: 1px solid rgba(0, 255, 204, 0.3);
  border-radius: 4px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.s-icon {
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
}

.icon-dots { background: radial-gradient(circle, #fff 20%, transparent 20%); background-size: 5px 5px; border: 1px solid #fff; }
.icon-ph { border: 1px solid #fff; border-radius: 0 0 15px 15px; border-top: none; }
.icon-s { border: 1px dotted #fff; }

.s-info {
  display: flex;
  flex-direction: column;
}

.s-lbl { font-size: 10px; color: #ccc; }
.s-val { font-size: 12px; color: #fff; font-weight: bold; }


/* Center Panel */
.center-column {
  overflow: hidden;
  border: none; /* Remove border for center to blend */
  position: relative;
  background: transparent;
}

.field-container {
  width: 100%;
  height: 100%;
  position: relative;
  perspective: 1200px;
  overflow: hidden;
}

.field-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('img/bg.png') no-repeat center center;
  background-size: cover;
  z-index: 0;
  opacity: 0.9;
}

.sky-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to bottom, #001a13 0%, #004d40 100%);
  z-index: 0;
  opacity: 0.5;
}

/* Field Layering */
.field-layer {
  position: absolute;
  top: 10%;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotateX(30deg);
  transform-style: preserve-3d;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.field-img {
  position: absolute;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(0, 255, 204, 0.4);
  transition: transform 0.5s;
}

/* Center Column */
.center-column {
  grid-column: 2;
  grid-row: 2;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent !important; /* Force transparent */
}

.field-container {
  width: 100%;
  height: 100%;
  position: relative;
  perspective: 1000px;
}

/* Drone */
.drone-wrapper {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: auto;
  animation: droneHover 3s ease-in-out infinite;
  z-index: 20;
}

.drone-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 15px rgba(0, 255, 204, 0.3));
}

@keyframes droneHover {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

/* Monitor Box */
.monitor-box {
  position: absolute;
  top: 50%;
  left: 8%;
  width: 180px;
  height: 100px;
  background: linear-gradient(135deg, rgba(0, 255, 204, 0.25), rgba(0, 40, 30, 0.7));
  border: 1px solid rgba(0, 255, 204, 0.6);
  border-radius: 5px;
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.3);
  z-index: 15;
}

.mb-header {
  background: linear-gradient(to right, rgba(0, 255, 204, 0.4), transparent);
  padding: 5px 10px;
  color: #fff;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 5px;
}

.mb-arrow {
  color: #fff;
  font-size: 12px;
}

.mb-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2px;
  height: 50px;
  background: #00ffcc;
  transform: translateY(100%) rotate(30deg);
  transform-origin: top left;
}

.mb-dot {
  position: absolute;
  bottom: -50px; /* Adjust based on line length/angle */
  left: -25px; /* Adjust based on line length/angle */
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 5px #00ffcc;
}

/* Field Markers */
.field-markers {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 60%;
  transform-style: preserve-3d;
  z-index: 5;
}

.field-area {
  position: absolute;
  border: 3px solid;
  background: rgba(0, 255, 204, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 30px rgba(0, 255, 204, 0.4) inset, 0 0 20px rgba(0, 255, 204, 0.3);
  border-radius: 5px;
}

.field-blue {
  border-color: #00ccff;
  width: 180px;
  height: 120px;
  top: 45%;
  left: 25%;
  transform: translateZ(20px);
  box-shadow: 0 0 30px rgba(0, 204, 255, 0.4) inset, 0 0 20px rgba(0, 204, 255, 0.3);
}

.field-yellow {
  border-color: #ffcc00;
  width: 200px;
  height: 140px;
  bottom: 20%;
  left: 5%;
  background: rgba(255, 204, 0, 0.15);
  box-shadow: 0 0 30px rgba(255, 204, 0, 0.4) inset, 0 0 20px rgba(255, 204, 0, 0.3);
}

.field-green {
  border-color: #00ffcc;
  width: 220px;
  height: 160px;
  bottom: 15%;
  right: 8%;
  box-shadow: 0 0 30px rgba(0, 255, 204, 0.4) inset, 0 0 20px rgba(0, 255, 204, 0.3);
}

.field-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.field-icon img {
  width: 50px;
  height: 50px;
  opacity: 0.9;
  filter: drop-shadow(0 0 5px rgba(0, 255, 204, 0.5));
}

/* Clouds */
.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  filter: blur(15px);
  z-index: 5;
}

.cloud-1 {
  width: 100px;
  height: 40px;
  top: 20%;
  left: 10%;
  box-shadow: 40px 10px 0 -10px rgba(255,255,255,0.6);
}

.cloud-2 {
  width: 80px;
  height: 30px;
  top: 15%;
  right: 40%;
}

/* Top Stats - Design Match */
.top-stats-container {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  width: auto;
}

.stats-panel-wrapper {
  background: linear-gradient(135deg, rgba(0, 120, 100, 0.9) 0%, rgba(0, 80, 65, 0.9) 50%, rgba(0, 60, 50, 0.9) 100%);
  border: 1px solid rgba(0, 255, 204, 0.5);
  border-radius: 6px;
  padding: 18px 22px;
  backdrop-filter: blur(10px);
  box-shadow: 
    0 6px 25px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 30px rgba(0, 255, 204, 0.15);
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
  overflow: hidden;
}

.stats-panel-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0, 255, 204, 0.6), transparent);
}

.stats-row {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  position: relative;
}

.stats-row:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0, 255, 204, 0.3), transparent);
}

.top-stat-item {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.stat-icon-green {
  font-size: 36px;
  line-height: 1;
  filter: drop-shadow(0 0 10px rgba(0, 255, 204, 0.8)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.stat-icon-green::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 8px;
  background: radial-gradient(ellipse at center, rgba(0, 255, 204, 0.6) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
}

.stat-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  flex: 1;
}

.stat-label {
  font-size: 15px;
  color: #ffffff;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  line-height: 1.3;
  font-weight: 500;
}

.stat-val {
  font-size: 20px;
  color: #ffffff;
  font-weight: bold;
  white-space: nowrap;
  text-shadow: 
    0 0 10px rgba(0, 255, 204, 0.7),
    0 2px 4px rgba(0, 0, 0, 0.6);
  line-height: 1.2;
  letter-spacing: 0.5px;
}

/* Center Bottom */
.center-bottom {
  grid-column: 2;
  grid-row: 3;
  display: flex;
  gap: 20px;
  padding: 10px 0;
  position: relative;
}

/* Decorative bottom line - center */
.center-bottom::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  height: 3px;
  background: linear-gradient(to right, transparent, rgba(0, 255, 204, 0.9), rgba(0, 255, 204, 0.9), transparent);
  box-shadow: 
    0 0 15px rgba(0, 255, 204, 0.8),
    0 0 30px rgba(0, 255, 204, 0.4);
  z-index: 5;
  border-radius: 2px;
}

/* Decorative curve from left panel to center */
.center-bottom::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 45%;
  height: 2px;
  background: linear-gradient(to right, rgba(0, 255, 204, 0.7), rgba(0, 255, 204, 0.4), transparent);
  box-shadow: 
    0 0 10px rgba(0, 255, 204, 0.5),
    0 0 20px rgba(0, 255, 204, 0.2);
  z-index: 5;
  border-radius: 0 50px 0 0;
  clip-path: polygon(0 0, 100% 0, 95% 100%, 0 100%);
}

.panel.reserve-list, .panel.reserve-stats {
  flex: 1;
  background: rgba(0, 30, 25, 0.85);
  border: 1px solid rgba(0, 255, 204, 0.4);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(5px);
  box-shadow: 
    inset 0 0 20px rgba(0, 255, 204, 0.1),
    0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.panel.reserve-list::before,
.panel.reserve-stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0, 255, 204, 0.5), transparent);
}

.panel.reserve-list .section-header,
.panel.reserve-stats .section-header {
  position: relative;
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.panel.reserve-list .section-header::after,
.panel.reserve-stats .section-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, rgba(0, 255, 204, 0.4), transparent);
}

/* List Styling */
.list-container {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-size: 14px;
  margin-top: 10px;
  padding: 0 10px;
}

.list-header {
  display: none; /* Hide header as per design */
}

.list-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  padding: 5px 0;
  overflow-y: auto;
}

.list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 15px;
  color: #fff;
  background: linear-gradient(135deg, rgba(0, 80, 65, 0.75), rgba(0, 50, 40, 0.75));
  border: 1px solid rgba(0, 255, 204, 0.4);
  border-radius: 5px;
  box-shadow: 
    0 3px 10px rgba(0, 0, 0, 0.4),
    inset 0 0 15px rgba(0, 255, 204, 0.08),
    0 0 5px rgba(0, 255, 204, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(2px);
}

.list-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 255, 204, 0.7), rgba(0, 255, 204, 0.3), transparent);
  box-shadow: 0 0 8px rgba(0, 255, 204, 0.5);
}

.list-row::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0, 255, 204, 0.4), transparent);
}

.list-row:hover {
  border-color: rgba(0, 255, 204, 0.7);
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.5),
    inset 0 0 20px rgba(0, 255, 204, 0.12),
    0 0 15px rgba(0, 255, 204, 0.4);
  transform: translateX(3px);
  background: linear-gradient(135deg, rgba(0, 90, 75, 0.8), rgba(0, 60, 50, 0.8));
}

.list-row span:first-child {
  color: #ffffff;
  font-weight: 500;
  font-size: 13px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  flex: 0 0 auto;
  min-width: 90px;
}

.list-row span:last-child {
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  flex: 1;
  text-align: right;
}

/* Bar Chart Styling */
.bar-chart-container {
  flex: 1;
  padding: 15px 25px;
  display: flex;
  align-items: flex-end;
  margin-top: 10px;
  position: relative;
}

.bar-chart-container::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.bar-chart {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 6px;
  padding-bottom: 5px;
}

.bar {
  flex: 1;
  background: linear-gradient(to top, #003366, #0066cc, #00ccff);
  position: relative;
  min-width: 12px;
  max-width: 18px;
  border-radius: 2px 2px 0 0;
  box-shadow: 
    0 -2px 10px rgba(0, 204, 255, 0.6),
    inset 0 2px 5px rgba(255, 255, 255, 0.25),
    0 0 8px rgba(0, 204, 255, 0.5);
  transition: all 0.3s ease;
  overflow: hidden;
}

.bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 25%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.1), transparent);
  border-radius: 2px 2px 0 0;
}

.bar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.7), transparent);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.bar:hover {
  filter: brightness(1.3);
  box-shadow: 
    0 -2px 12px rgba(0, 204, 255, 0.7),
    inset 0 2px 4px rgba(255, 255, 255, 0.4),
    0 0 10px rgba(0, 204, 255, 0.6);
  transform: translateY(-2px);
}

/* Right Panel */
/* Video Grid - 农田监控 */
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  height: calc(100% - 30px);
  padding: 0;
  margin-top: 10px;
  position: relative;
  overflow: hidden;
}

.video-item-large {
  grid-column: 1;
  border-width: 2px;
}

.video-grid-right {
  grid-column: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  height: 100%;
}

.video-item {
  overflow: hidden;
  border: 2px solid rgba(0, 255, 204, 0.4);
  border-radius: 4px;
  position: relative;
  width: 100%;
  height: 100%;
  background: rgba(0, 20, 15, 0.6);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.video-item:hover {
  border-color: rgba(0, 255, 204, 0.8);
  box-shadow: 0 4px 16px rgba(0, 255, 204, 0.4);
  transform: translateY(-2px);
}

.video-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.video-item:hover img {
  transform: scale(1.05);
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.4) 100%);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.video-item:hover .video-overlay {
  opacity: 1;
}

.video-label {
  background: rgba(0, 255, 204, 0.2);
  border: 1px solid rgba(0, 255, 204, 0.5);
  border-radius: 3px;
  padding: 4px 8px;
  font-size: 11px;
  color: #00ffcc;
  text-shadow: 0 0 5px rgba(0, 255, 204, 0.8);
  backdrop-filter: blur(5px);
}

/* Expert Panel */
.expert-content-img {
  width: 100%;
  height: calc(100% - 30px); /* Adjust for title height */
  overflow: hidden;
  border: 1px solid rgba(0, 255, 204, 0.3);
  position: relative;
}

.expert-text {
  position: absolute;
  bottom: 10px;
  left: 10px;
  color: #fff;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.5);
  padding: 5px 10px;
  border-radius: 3px;
}

/* Finance Panel */
.finance-panel {
  background: linear-gradient(to bottom, rgba(0, 60, 50, 0.8), rgba(0, 30, 25, 0.8));
  border: 1px solid rgba(0, 255, 204, 0.3);
  border-radius: 5px;
  padding: 10px;
  display: flex;
  flex-direction: column;
}

.finance-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 5px 0;
  overflow: hidden;
}

.finance-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 9px;
  color: #00ffcc; /* Green text */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.f-icon {
  color: #ffcc00; /* Yellow icon */
  font-size: 16px;
  font-weight: bold;
}

.f-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

