/* charts.css — shared stylesheet for pressure chart pages */

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: #f8f9fa;
}

h2 {
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 600;
  color: #2c3e50;
}

.slideshow-container {
  width: 100%;
  max-width: 800px;
  margin: auto;
}

.mySlides {
  display: none;
}

.mySlides.active {
  display: block;
}

img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* New carousel-style selector */
.carousel-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0;
  width: 100%;
  max-width: 600px;
}

.carousel-window {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 0.5rem;
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  width: 100%;
  justify-content: center;
  gap: 8px;
}

.carousel-item {
  flex: 0 0 30%;
  text-align: center;
  padding: 0.75rem 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
  opacity: 0.6;
  font-weight: normal;
  box-sizing: border-box;
}

.carousel-item.prev, .carousel-item.next {
  opacity: 0.8;
  font-weight: 500;
}

.carousel-item.current {
  opacity: 1;
  font-weight: 600;
  background-color: #19aee9;
  color: white;
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(25, 174, 233, 0.3);
}

.carousel-nav {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 15%;
  z-index: 2;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-nav.prev {
  left: 0;
}

.carousel-nav.next {
  right: 0;
}

.carousel-nav:hover::after {
  opacity: 1;
}

.carousel-nav.prev::after {
  content: '‹';
  font-size: 24px;
  color: #19aee9;
  font-weight: bold;
}

.carousel-nav.next::after {
  content: '›';
  font-size: 24px;
  color: #19aee9;
  font-weight: bold;
}

/* Floating back button */
.floating-back-btn {
  position: fixed;
  top: 1rem;
  left: 1rem;
  background: white;
  border: none;
  border-radius: 50%;
  padding: 0.6rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: background 0.3s;
  z-index: 1000;
}

.floating-back-btn:hover {
  background: #f0f0f0;
}

.back-icon {
  width: 1.4rem;
  height: 1.4rem;
  stroke: #333;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .carousel-item {
    font-size: 14px;
    padding: 0.6rem 0.4rem;
  }
}