/* luxury.css */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    color: var(--text-primary);
    background-color: var(--body-bg);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid currentColor;
  background: transparent;
}

.status-chip .material-symbols-rounded {
  font-size: 16px;
}

.chip-ok {
  color: var(--success-600);
  border-style: solid;
}

.chip-hint {
  color: var(--brand-600);
  border-style: dotted;
}

.chip-warn {
  color: #b30000;
  border-style: dashed;
}

.chip-alarm {
  color: var(--danger-600);
  border-style: double;
  border-width: 2px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
}

.button-image {
  justify-content: center;
  align-items: center;
  margin: auto; /* Centers the image horizontally within its container */
  width: 60px; /* Adjust size as needed */
  height: 60px; /* Adjust size as needed */
  margin: 5px; /* Adjust spacing between images */
  transition: transform 0.3s ease, filter 0.3s ease; /* Add transition effect */
  overflow: hidden; /* Hide parts of the image that overflow the container */
  border-radius: 80%; /* Optional: makes the images circular */
}
.device-item {
  display: inline-block;
  margin: 10px;
  text-align: center;
}

.device-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: inline-block;
  padding: 10px;
  box-sizing: border-box;
}

/* Off: grey circle */
.device-icon.off {
  background-color: grey;
}

/* On: brand green circle */
.device-icon.on {
  background-color: var(--brand-600);
}

.chart-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* or center or stretch as you prefer */
  margin-bottom: 20px; /* Space below the wrapper if needed */
}

.chart-area {
  width: 100%;
  height: 500px; /* The chart's height */
  box-sizing: border-box;
}

.average-display {
  margin-top: 10px;
  font-weight: bold;
  background: #ffffff34; /* Match the tile background if desired */
  padding: 10px;
  border-radius: 5px;
  width: 100%; /* Ensure it stretches across the tile if you want */
}


#moisture_chart_div_today,
#temperature_chart_div_today,
#moisture_chart_div_week,
#temperature_chart_div_week,
#moisture_chart_div_month,
#temperature_chart_div_month {
    background-color: transparent;
}

.button-image img {
  width: 13%; /* Make the image fill the container */
  height: 13%;
  object-fit: cover; /* Cover the area without preserving aspect ratio */
  transform: scale(1.25); /* Enlarge the image */
}


body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

body.dark-mode::before {
    background-color: var(--brand-600);
    /*background-image: url('/static/botanist.webp');*/
    background-image: url('https://www.designerinaction.de/wp-content/uploads/2017/12/stylische-wallpaper-schwarz.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}


.button {
    background-color: #0a3d62;
    color: #f8c291;
    padding: 10px 20px;
    border: 1px solid #f8c291;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #3c6382;
    color: #fdf6e3;
}

.container, .analysis-container {

  background-color: rgba(255, 255, 255, 0.247); /* More transparent */
  font-weight: 400;
  font-style: normal;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-family: "Roboto Slab", serif;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 100%;
  margin: 20px;
  font-weight: 400;
  font-style: normal;
}

.analysis-text, .markdown-style {
    text-align: left;
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Consistent shadow for depth */
    white-space: pre-wrap;      /* Preserve whitespace but allow wrapping */
    word-wrap: break-word;      /* Break long words to prevent overflow */
    overflow-wrap: anywhere;    /* Ensure text does not overflow the tile */
}



.markdown-style tr:nth-child(odd) {
    background-color: #f9f9f9; /* Zebra striping for rows */
    }
        
.markdown-style tr:hover {
    background-color: #f1f1f1; /* Hover effect for rows */
    }

img {
    max-width: 90%;
    height: auto;
    border: 3px solid #eee8d5;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-top: 20px;
}

/* Ensure tables within .markdown-style do not exceed their container's width */
.markdown-style table {
    font-family: "Roboto Slab", serif;
    width: 100%; /* Ensure table uses full container width */
    border: none; /* Removes the outer border of the table */
    max-width: 100%; /* Prevents overflow */
    table-layout: fixed; /* Ensures table adheres to specified width */
    overflow-wrap: break-word; /* Ensures long words do not cause overflow */
    border-collapse: collapse; /* Improves table appearance */
}

/* Add styles for button images */
.button-image {
    justify-content: center;
    align-items: center ;
    margin: auto; /* Centers the image horizontally within its container */
    width: 80px; /* Adjust size as needed */
    height: 80px; /* Adjust size as needed */
    margin: 10px; /* Adjust spacing between images */
    transition: transform 0.3s ease, filter 0.3s ease; /* Add transition effect */
}

/* Add hover effect for button images */
.button-image:hover {
    transform: scale(1.1); /* Scale up the image on hover */
    filter: brightness(110%); /* Adjust brightness on hover */
}

/* Add active effect for button images */
.button-image:active {
    transform: scale(0.9); /* Scale down the image when clicked */
}

/* Modern tooltip for button images */
.button-image {
    position: relative;
}
.button-image::after {
    content: attr(title);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.button-image:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
body.dark-mode .button-image::after {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
}
.button-image::before {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    border: 6px solid transparent;
    border-top-color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
body.dark-mode .button-image::before {
    border-top-color: rgba(0, 0, 0, 0.8);
}
.button-image:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Increased specificity for table cells to ensure styles apply */
.markdown-style table td, .markdown-style table th {
    font-family: "Roboto Slab", serif;
    border: none; /* Removes the outer border of the table */
    word-wrap: break-word; /* Ensure words can break to prevent horizontal overflow */
    max-width: 100%; /* Prevents cells from expanding beyond table width */
}

/* Adjusting the media query to ensure tables are responsive */
@media (max-width: 768px) {
    .markdown-style table {
        width: 100%; /* Adjusted for consistency */
    }
}

.cormorant-garamond-light {
    font-family: "Cormorant Garamond", serif;
    font-weight: 300;
    font-style: normal;
  }
  
  .cormorant-garamond-regular {
    background-color: rgba(255, 255, 255, 0.5); /* More transparent */
    font-weight: 400;
    font-style: normal;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: "Roboto Slab", serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 90%;
    margin: 20px;
    font-weight: 400;
    font-style: normal;
  }
  
  .cormorant-garamond-medium {
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
    font-style: normal;
  }
  
  .cormorant-garamond-semibold {
    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
    font-style: normal;
  }
  
  .cormorant-garamond-bold {
    font-family: "Cormorant Garamond", serif;
    font-weight: 700;
    font-style: normal;
  }
  
  .cormorant-garamond-light-italic {
    font-family: "Cormorant Garamond", serif;
    font-weight: 300;
    font-style: italic;
  }
  
  .cormorant-garamond-regular-italic {
    font-family: "Cormorant Garamond", serif;
    font-weight: 400;
    font-style: italic;
  }
  
  .cormorant-garamond-medium-italic {
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
    font-style: italic;
  }
  
  .cormorant-garamond-semibold-italic {
    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
    font-style: italic;
  }
  
  .cormorant-garamond-bold-italic {
    font-family: "Cormorant Garamond", serif;
    font-weight: 700;
    font-style: italic;
  }
  
.radio-container {
    font-family: "Roboto Slab", serif;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    margin: 10px auto;
}

#videoDate {
    color: #FFF;
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7); /* More visible background */
    padding: 5px 10px;
    font-size: 16px;
    z-index: 1000; /* Ensure it is above all other content */
}

/* Additional or modified styles */
.image-container {
    width: 90%; /* Adjust based on your layout needs */
    overflow: hidden; /* Hide overflow */
    /* Adjust the background color to be more transparent to see the background image */
    background-color: rgba(255, 255, 255, 0.5); /* More transparent */
    padding: 20px;
    border-radius: 8px;
    font-family: "Calligraffitti", cursive;
    font-weight: 400;
    font-style: normal;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 90%;
    margin: 20px;
}

.timelapse-image {
    justify-content: center;
    align-items: center ;
    margin: auto; /* Centers the image horizontally within its container */
    position: relative;
    display: none; /* Standardmäßig versteckt, bis durch JavaScript sichtbar gemacht */
    max-width: 90%; /* Ensure images don't exceed container width */
    max-height: 70vh; /* Adjust height to viewport or as needed */
    border-radius: 10px; /* Optional: Adds rounded corners to your images */
}


.date-form {
    font-family: "Roboto Slab", serif;
    margin-bottom: 20px;
}

@media screen and (max-width: 768px) {
    .container, .analysis-container, .radio-container {
        font-family: "Roboto Slab", serif;
        width: 95%; /* Allows a bit more space on smaller screens */
        box-sizing: border-box; /* Ensures padding is included in the width */
    }
    
    /* Adjust font sizes for smaller screens if necessary */
    h1 {
        font-size: 1.5rem;
    }
    
    .button, input[type="date"] {
        font-size: 0.9rem; /* Adjust the font size for better readability */
        padding: 8px 16px; /* Adjust padding to fit smaller screens */
    }
}
/* Plants page layout */
.garden-section {
    margin-bottom: 2rem;
}

.garden-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.garden-lottie {
    width: 40px;
    height: 40px;
}

.plant-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 0;
}

.plant-card {
    background: var(--tile-bg, #fff);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
