/* Temperature Visual Indicator Styles */
.temperature-visual-indicator {
  margin: 15px 0;
  width: 100%;
}

.temp-indicator-container {
  display: flex;
  height: 12px;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.temp-level {
  flex: 1;
  height: 100%;
}

.temp-level-cold {
  background-color: #4286f4;
}

.temp-level-normal {
  background-color: #06d6a0;
}

.temp-level-warm {
  background-color: #ffd166;
}

.temp-level-hot {
  background-color: #ff9f1c;
}

.temp-level-critical {
  background-color: #ef476f;
}

.temp-indicator-marker {
  position: absolute;
  top: -6px;
  left: 50%; /* Will be set by JavaScript */
  width: 6px;
  height: 24px;
  background-color: #ffffff;
  border-radius: 3px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  transform: translateX(-50%);
  transition: left 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 10;
  animation: marker-micro-move 2s ease-in-out infinite;
}

@keyframes marker-micro-move {
  0% {
    transform: translateX(-50%) translateY(0);
  }
  25% {
    transform: translateX(-50%) translateY(-0.7px);
  }
  50% {
    transform: translateX(-50%) translateY(-1px);
  }
  75% {
    transform: translateX(-50%) translateY(-0.3px);
  }
  100% {
    transform: translateX(-50%) translateY(0);
  }
}

.temp-indicator-labels {
  display: flex;
  width: 100%;
  justify-content: space-between;
  margin-top: 5px;
}

.temp-indicator-labels span {
  font-size: 0.7rem;
  color: #8892b0;
  text-align: center;
  flex: 1;
}

/* Add a glowing animation for the marker when temperature is high */
@keyframes temp-marker-pulse {
  0%,
  100% {
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
  }
  50% {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8),
      0 0 20px rgba(239, 71, 111, 0.6);
  }
}

.temp-marker-warning {
  animation: temp-marker-pulse 1.5s infinite;
}

/* Add moving fluid effect to temperature fill */
.temperature-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  /* width value will be set by JavaScript */
  background: linear-gradient(
    to right,
    #06d6a0 0%,
    #06d6a0 30%,
    #00b4d8 60%,
    #ef476f 90%
  );
  transition: width 0.5s ease-in-out;
  overflow: hidden;
  position: relative;
}

/* Add multiple fluid wave effects for more realistic appearance */
.temperature-fill::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.1) 10px,
    rgba(255, 255, 255, 0.05) 20px
  );
  animation: wave-move 8s linear infinite;
}

.temperature-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.07) 15px,
    rgba(255, 255, 255, 0) 30px
  );
  animation: wave-move 5s linear infinite reverse;
}

/* Create fluid movement effect inside the temperature fill */
.temperature-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: fluid-move 3s linear infinite;
}

@keyframes fluid-move {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes wave-move {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Add heat bubble effect for high temperatures */
.temperature-scale {
  position: relative;
  overflow: hidden;
}

.temperature-scale::after {
  content: "";
  position: absolute;
  bottom: -20px;
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: heat-bubble 4s infinite;
  opacity: 0;
  transition: opacity 1s ease;
}

.temperature-scale.hot::after {
  opacity: 1;
}

/* Multiple heat bubbles with different timings and positions */
.temperature-scale::before {
  content: "";
  position: absolute;
  bottom: -15px;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  animation: heat-bubble 3s infinite 1s;
  left: 75%;
  opacity: 0;
  transition: opacity 1s ease;
}

.temperature-scale.hot::before {
  opacity: 1;
}

/* Add bubble animation for hot temperatures */
@keyframes heat-bubble {
  0% {
    transform: translateY(0) scale(0.1);
    left: 20%;
    opacity: 0;
  }
  20% {
    transform: translateY(-5px) scale(0.3);
    opacity: 0.3;
  }
  40% {
    transform: translateY(-10px) scale(0.5);
    opacity: 0.5;
    left: 25%;
  }
  60% {
    transform: translateY(-15px) scale(0.7);
    opacity: 0.7;
    left: 23%;
  }
  80% {
    transform: translateY(-20px) scale(0.9);
    opacity: 0.4;
    left: 21%;
  }
  100% {
    transform: translateY(-25px) scale(0.1);
    opacity: 0;
    left: 18%;
  }
}

/* Add subtle pulsing to temperature value to simulate live data */
.temperature-value {
  animation: temp-value-pulse 2s infinite;
}

@keyframes temp-value-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.02);
    opacity: 0.9;
  }
}

/* Center the temperature gauge container */
.temperature-gauge-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 10px 0;
}

.temperature-gauge {
  position: relative;
  width: 200px;
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto; /* Center the gauge itself */
}

/* Enhanced Engine Image Styling */
.engine-image-container {
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(12, 28, 51, 0.6);
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  margin: 0 auto; /* Center the engine image container */
  overflow: hidden;
}

.engine-image {
  width: 100%;
  height: auto;
  max-height: 120px;
  opacity: 0.95;
  filter: drop-shadow(0 0 8px rgba(0, 180, 216, 0.7));
  transition: all 0.3s ease;
  z-index: 2;
  object-fit: contain;
}

.engine-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background: radial-gradient(
    circle at center,
    rgba(239, 71, 111, 0.4) 0%,
    rgba(239, 71, 111, 0) 70%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

/* Add subtle background elements to engine container */
.engine-image-container::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background-color: rgba(0, 180, 216, 0.1);
  border-radius: 50%;
  z-index: 0;
}

.engine-image-container::after {
  content: "";
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: 40px;
  height: 20px;
  background-color: rgba(0, 180, 216, 0.1);
  border-radius: 10px;
  z-index: 0;
}

/* Enhance vibration animation for better visibility */
@keyframes engine-vibrate {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(-1px, -1px) rotate(-0.5deg);
  }
  50% {
    transform: translate(1px, 1px) rotate(0.5deg);
  }
  75% {
    transform: translate(-1px, 1px) rotate(-0.5deg);
  }
}

/* Responsive adjustments for engine image container */
@media (max-width: 991.98px) {
  .engine-image-container {
    margin: 15px auto;
  }
}

/* Improve RPM tick visibility */
.rpm-tick {
  position: absolute;
  bottom: 20px;
  transform-origin: center bottom;
  font-size: 0.85rem; /* Increased from 0.75rem */
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9); /* Brighter text */
  z-index: 2;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.5); /* Add shadow for better contrast */
}

/* Adjust spacing between tick marks for better readability */
.rpm-tick-0 {
  left: 15px;
}
.rpm-tick-1 {
  left: 22%;
}
.rpm-tick-2 {
  left: 35%;
}
.rpm-tick-3 {
  left: 50%;
  transform: translateX(-50%);
}
.rpm-tick-4 {
  right: 35%;
}
.rpm-tick-5 {
  right: 22%;
}
.rpm-tick-6 {
  right: 15px;
}

/* Add small tick marks between major ticks */
.rpm-dial::after {
  content: "";
  position: absolute;
  bottom: 35px;
  left: 15px;
  right: 15px;
  height: 15px;
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 7.5%,
    rgba(255, 255, 255, 0.3) 7.5%,
    rgba(255, 255, 255, 0.3) 8%
  );
  opacity: 0.8;
  z-index: 1;
}

/* Enhanced RPM needle animation */
.rpm-needle {
  animation: rpm-needle-oscillate 0.5s ease-in-out infinite;
}

@keyframes rpm-needle-oscillate {
  0%,
  100% {
    transform: translateX(-50%) rotate(var(--needle-angle, 45deg));
  }
  25% {
    transform: translateX(-50%)
      rotate(calc(var(--needle-angle, 45deg) + 0.3deg));
  }
  75% {
    transform: translateX(-50%)
      rotate(calc(var(--needle-angle, 45deg) - 0.3deg));
  }
}

/* Add subtle glow effect to RPM value */
.rpm-value {
  animation: value-pulse 2s infinite;
}

@keyframes value-pulse {
  0%,
  100% {
    text-shadow: 0 0 5px rgba(0, 180, 216, 0.2);
  }
  50% {
    text-shadow: 0 0 10px rgba(0, 180, 216, 0.4);
  }
}

/* Ship Inclination Monitoring Styles */
.inclination-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
  padding: 10px 0;
}

.inclination-visualization {
  position: relative;
  width: 100%;
  height: 240px; /* Increased from 200px */
  background-color: #041a2e;
  border-radius: 10px;
  border: 3px solid #18364f;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  margin: 10px 0;
}

.inclination-scale {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Danger, warning and safe zones */
.danger-zone,
.warning-zone,
.safe-zone {
  position: absolute;
  width: 100%;
  left: 0;
}

.safe-zone {
  background-color: rgba(6, 214, 160, 0.1);
  height: 40%;
  top: 30%;
}

.warning-zone {
  background-color: rgba(255, 214, 10, 0.1);
  height: 15%;
}

.danger-zone {
  background-color: rgba(239, 71, 111, 0.1);
  height: 15%;
}

.zone-top,
.zone-left {
  top: 0;
}

.zone-bottom,
.zone-right {
  bottom: 0;
}

/* Degree markers */
.degree-marker {
  position: absolute;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  z-index: 2;
}

/* Front view (pitch) markers */
.deg-20-up {
  top: 15%;
  left: 10px;
}

.deg-10-up {
  top: 30%;
  left: 10px;
}

.deg-0 {
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  color: #06d6a0;
  font-weight: bold;
}

.deg-10-down {
  bottom: 30%;
  left: 10px;
}

.deg-20-down {
  bottom: 15%;
  left: 10px;
}

/* Side view (roll) markers */
.deg-20-left {
  top: 15%;
  left: 10px;
}

.deg-10-left {
  top: 30%;
  left: 10px;
}

.deg-10-right {
  bottom: 30%;
  left: 10px;
}

.deg-20-right {
  bottom: 15%;
  left: 10px;
}

/* Enhanced Ship Indicator Styles */
.ship-indicator {
  position: absolute;
  width: 120px; /* Increased from 100px */
  height: 70px; /* Increased from 50px */
  top: 50%;
  left: 50%;
  transform-origin: center center;
  transform: translate(-50%, -50%) rotate(0deg);
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 3;
}

/* Improved Front View Ship (Pitch) */
.front-view {
  width: 140px; /* Wider for better visibility */
}

.front-view .ship-hull {
  position: absolute;
  width: 100px; /* Increased from 80px */
  height: 25px; /* Increased from 20px */
  bottom: 0;
  left: 20px;
  background: linear-gradient(
    to bottom,
    #2c4b6e,
    #1d3557
  ); /* Add gradient for depth */
  border-radius: 0 0 45% 45%; /* More curved bottom */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Add shadow for depth */
  border: 1px solid #344e6e; /* Add border for definition */
  border-top: none;
}

.front-view .ship-deck {
  position: absolute;
  width: 90px; /* Increased from 70px */
  height: 8px; /* Increased from 6px */
  bottom: 25px;
  left: 25px;
  background: linear-gradient(to bottom, #00b4d8, #0091ad); /* Add gradient */
  border-radius: 2px;
  border: 1px solid #00d5fa; /* Add border */
  border-bottom: none;
}

.front-view .ship-bridge {
  position: absolute;
  width: 35px; /* Increased from 25px */
  height: 20px; /* Increased from 15px */
  bottom: 33px;
  left: 52px;
  background: linear-gradient(to bottom, #345980, #1d3557); /* Add gradient */
  border-radius: 5px 5px 0 0; /* Rounder top */
  border: 1px solid #4d6b8a; /* Add border */
  border-bottom: none;
}

/* Add more details to the front view */
.front-view .ship-mast {
  position: absolute;
  width: 4px;
  height: 25px;
  bottom: 53px;
  left: 68px;
  background-color: #a18660;
  border-radius: 1px;
}

.front-view .ship-antenna {
  position: absolute;
  width: 12px;
  height: 5px;
  bottom: 78px;
  left: 64px;
  background-color: #687a8f;
  border-radius: 3px;
}

/* Improved Side View Ship (Roll) */
.side-view {
  width: 150px; /* Wider for better visibility */
}

.side-view .ship-hull {
  position: absolute;
  width: 120px; /* Increased from 90px */
  height: 30px; /* Increased from 20px */
  bottom: 0;
  left: 10px;
  background: linear-gradient(to bottom, #2c4b6e, #1d3557); /* Add gradient */
  border-radius: 5px 50px 0 10px; /* More ship-like shape */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Add shadow */
  border: 1px solid #344e6e; /* Add border */
  border-bottom: none;
}

.side-view .ship-deck {
  position: absolute;
  width: 80px; /* Increased from 60px */
  height: 10px; /* Increased from 6px */
  bottom: 30px;
  left: 20px;
  background: linear-gradient(to bottom, #00b4d8, #0091ad); /* Add gradient */
  border-radius: 2px;
  border: 1px solid #00d5fa; /* Add border */
  border-bottom: none;
}

.side-view .ship-bridge {
  position: absolute;
  width: 25px; /* Increased from 20px */
  height: 18px; /* Increased from 12px */
  bottom: 40px;
  left: 60px;
  background: linear-gradient(to bottom, #345980, #1d3557); /* Add gradient */
  border-radius: 3px 3px 0 0;
  border: 1px solid #4d6b8a; /* Add border */
  border-bottom: none;
}

/* Add more details to the side view */
.side-view .ship-window {
  position: absolute;
  width: 4px;
  height: 4px;
  bottom: 42px;
  left: 65px;
  background-color: #98cdd8;
  border-radius: 1px;
  box-shadow: 0 0 2px #98cdd8;
}

.side-view .ship-window-2 {
  position: absolute;
  width: 4px;
  height: 4px;
  bottom: 42px;
  left: 75px;
  background-color: #98cdd8;
  border-radius: 1px;
  box-shadow: 0 0 2px #98cdd8;
}

.side-view .ship-mast {
  position: absolute;
  width: 3px;
  height: 22px;
  bottom: 58px;
  left: 75px;
  background-color: #a18660;
}

.side-view .ship-chimney {
  position: absolute;
  width: 10px;
  height: 15px;
  bottom: 40px;
  left: 40px;
  background: linear-gradient(to right, #6a7586, #374759);
  border-radius: 1px 1px 0 0;
}

/* Add smoke effect to the chimney */
.side-view .ship-smoke {
  position: absolute;
  width: 20px;
  height: 8px;
  bottom: 55px;
  left: 35px;
  background: radial-gradient(rgba(200, 200, 200, 0.3), rgba(200, 200, 200, 0));
  border-radius: 50%;
  opacity: 0.6;
  animation: smoke-drift 3s infinite ease-out;
}

@keyframes smoke-drift {
  0% {
    transform: translateY(0) scale(0.8);
    opacity: 0.6;
  }
  100% {
    transform: translateY(-15px) scale(1.5);
    opacity: 0;
  }
}

/* Enhance water visualization */
.water-level {
  position: absolute;
  width: 100%;
  height: 50%;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 180, 216, 0.4) 0%,
    rgba(0, 119, 182, 0.6) 50%,
    rgba(13, 71, 161, 0.8) 100%
  ); /* Enhanced gradient */
  z-index: 2;
}

.water-level::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.4);
  animation: water-ripple 3s infinite linear;
}

@keyframes water-ripple {
  0%,
  100% {
    opacity: 0.4;
    transform: translateY(0);
  }
  50% {
    opacity: 0.6;
    transform: translateY(1px);
  }
}

/* Add active wave motion to water surface */
.water-level::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 20%,
    rgba(255, 255, 255, 0.1) 40%,
    rgba(255, 255, 255, 0.2) 60%,
    rgba(255, 255, 255, 0.1) 80%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: wave-shimmer 3s infinite linear;
}

@keyframes wave-shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Inclination value display */
.inclination-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #e6f1ff;
  text-align: center;
  margin-top: 10px;
  text-shadow: 0 0 10px rgba(0, 180, 216, 0.3);
}

.inclination-value .unit {
  font-size: 0.9rem;
  font-weight: normal;
  color: #8892b0;
  margin-left: 3px;
}

.inclination-value .direction {
  display: block;
  font-size: 1rem;
  color: #06d6a0;
  margin-top: 5px;
}

/* Add a wave effect to the water */
.front-water::before,
.side-water::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 20px,
    rgba(255, 255, 255, 0.1) 20px,
    rgba(255, 255, 255, 0.1) 40px
  );
  animation: water-move 10s linear infinite;
  opacity: 0.5;
}

@keyframes water-move {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(100px);
  }
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .inclination-container {
    margin-bottom: 20px;
  }

  .inclination-visualization {
    height: 220px;
  }
}

@media (max-width: 767.98px) {
  .inclination-visualization {
    height: 200px;
  }
}

@media (max-width: 575.98px) {
  .inclination-visualization {
    height: 180px;
  }

  .ship-indicator {
    transform: translate(-50%, -50%) scale(0.8); /* Scale down on smaller screens */
  }
}

/* Fuel Tank Monitoring Styles */
.fuel-tank-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  padding: 5px 0;
  text-align: center;
}

.fuel-visualization {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.fuel-tank-wrapper {
  position: relative;
  width: 100%;
  max-width: 120px;
  height: auto;
  min-height: 160px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

/* Tank construction */
.fuel-tank {
  position: relative;
  width: 80px;
  height: 160px;
  max-width: 100%;
  margin: 0 auto;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 2px solid #344e6e;
  overflow: hidden;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.3);
  background-image: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
}

.reserve-tank {
  width: 80px;
  height: 150px;
}

/* Tank Information Overlay */
.tank-info-overlay {
  position: absolute;
  top: 40%;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 10;
  color: white;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.8), 0 0 4px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  transform: translateY(-50%);
}

.tank-percentage {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

.tank-volume {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Tank Name Label */
.tank-name-overlay {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
  letter-spacing: 1px;
  z-index: 10;
  pointer-events: none;
}

/* Fuel level styling */
.fuel-level {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 78%; /* Default starting level, will be controlled by JS */
  background: linear-gradient(
    to bottom,
    rgba(255, 170, 0, 0.8) 0%,
    rgba(255, 140, 0, 0.9) 100%
  );
  transition: height 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 10px rgba(255, 140, 0, 0.5);
  overflow: hidden;
  z-index: 5; /* Lower than overlay */
}

#starboard-tank-level {
  height: 82%;
}

#reserve-tank-level {
  height: 95%;
  background: linear-gradient(
    to bottom,
    rgba(255, 220, 0, 0.8) 0%,
    rgba(255, 180, 0, 0.9) 100%
  );
}

/* Create wave effect on fuel surface */
.fuel-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 10px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: wave 3s infinite linear;
}

.fuel-wave::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: wave 3s infinite linear 1s;
}

@keyframes wave {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0%);
  }
}

/* Fuel detail display */
.fuel-details {
  padding-left: 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fuel-percentage {
  font-size: 2.2rem;
  font-weight: 700;
  color: #e6f1ff;
  line-height: 1;
  margin-bottom: 2px;
}

.fuel-amount {
  font-size: 1rem;
  color: #8892b0;
}

.fuel-amount span {
  color: #00b4d8;
  font-weight: 600;
}

.fuel-range,
.fuel-status,
.consumption-rate,
.last-refill {
  font-size: 0.85rem;
  color: #8892b0;
}

.fuel-range span,
.consumption-rate span {
  color: #06d6a0;
  font-weight: 600;
}

.consumption-rate i {
  color: #00b4d8;
  margin-right: 3px;
}

.reserve-status span {
  color: #ffd60a;
  font-weight: 600;
}

/* Tank cap */
.fuel-tank-cap {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 25px;
  height: 8px;
  background: #344e6e;
  border-radius: 3px 3px 0 0;
  border: 1px solid #4d6b8a;
  border-bottom: none;
}

/* Tank markings */
.tank-markings {
  position: absolute;
  top: 0;
  left: -35px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.tank-mark {
  position: absolute;
  left: 0;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
}

.tank-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 25px;
  width: 7px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.4);
}

.warning-mark {
  color: #ef476f;
  font-weight: bold;
}

.warning-mark::after {
  background-color: #ef476f;
}

/* Low fuel warning animation */
.fuel-level.low {
  background: linear-gradient(
    to bottom,
    rgba(255, 100, 0, 0.8) 0%,
    rgba(239, 71, 111, 0.9) 100%
  );
  animation: fuel-warning-pulse 2s infinite;
}

@keyframes fuel-warning-pulse {
  0%,
  100% {
    opacity: 0.9;
  }
  50% {
    opacity: 0.7;
  }
}

/* Fuel summary box */
.fuel-summary-box {
  background-color: rgba(12, 28, 51, 0.6);
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid #1d3557;
}

.summary-item {
  margin-bottom: 12px;
}

.summary-label {
  font-size: 0.85rem;
  color: #8892b0;
  margin-bottom: 3px;
}

.summary-label i {
  color: #00b4d8;
  margin-right: 5px;
  width: 16px;
  text-align: center;
}

.summary-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e6f1ff;
}

/* Critical/warning states for the tank */
.low-fuel .fuel-percentage,
.low-fuel .summary-value {
  color: #ffd60a;
}

.critical-fuel .fuel-percentage,
.critical-fuel .summary-value {
  color: #ef476f;
}

/* Enhanced responsive behavior for integrated display */
@media (max-width: 991.98px) {
  .fuel-tank-container {
    margin-bottom: 30px;
  }

  .fuel-visualization {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .fuel-tank {
    width: 70px;
    height: 140px;
  }

  .reserve-tank {
    width: 70px;
    height: 140px;
  }

  .fuel-details {
    padding-left: 0;
    text-align: center;
  }

  .fuel-percentage {
    font-size: 1.8rem;
  }

  .tank-markings {
    left: -40px;
  }

  .tank-percentage {
    font-size: 1.3rem;
  }

  .tank-volume {
    font-size: 0.8rem;
  }

  .tank-name-overlay {
    font-size: 0.65rem;
  }

  .col-md-4 {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
  }
}

@media (max-width: 767.98px) {
  .fuel-tank-wrapper {
    min-height: 160px;
  }

  .fuel-tank {
    width: 70px;
    height: 140px;
  }

  .reserve-tank {
    width: 60px;
    height: 120px;
  }

  .tank-markings {
    left: -30px;
  }
}

@media (max-width: 575.98px) {
  .fuel-tank-wrapper {
    min-height: 140px;
  }

  .fuel-tank {
    width: 60px;
    height: 120px;
  }

  .reserve-tank {
    width: 50px;
    height: 100px;
  }
}

/* For very small screens, ensure text remains readable */
@media (max-width: 359.98px) {
  .tank-info-overlay {
    top: 45%;
  }

  .tank-percentage {
    font-size: 0.9rem;
    margin-bottom: 2px;
  }

  .tank-volume {
    font-size: 0.65rem;
  }
}
