/*Autor: Jeremy Dobslaff, 2026*/

:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --btn-bg: #2D3234;
    --btn-hover: #3B4244;
    --progress-bg: #444;
    --progress-fill: #00aaff;
	--zoom: 1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    color: var(--text-color);
    min-height: 100vh; /* Mindesthöhe auf 100% der Viewport-Höhe setzen */
    margin: 0; /* Margin entfernen, um sicherzustellen, dass kein unerwünschter Abstand entsteht */
    padding: 0; /* Padding entfernen für konsistente Darstellung */
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom, #FF4646, #00A6E8) no-repeat; /* 'no-repeat' hinzufügen */
    background-size: 100% 100%; /* Stellt sicher, dass der Gradient die gesamte Fläche abdeckt */
    background-attachment: fixed; /* Fixiert den Hintergrund beim Scrollen */
	overflow: hidden;
	zoom: 1;
}

.spinner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 15px 0;
}

.spinner {
  border: 4px solid #2D3234;
  border-top: 4px solid #FFFFFF; 
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* Container-Element */
.switch-container {
  display: flex;
  justify-content: flex-end; /* Richtet Inhalt rechtsbündig aus */
  margin-left: auto; /* Rechts ausrichten */
  text-align: right;
}

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #2D3234;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 0px;
  bottom: 0px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #805AAA;
}

input:focus + .slider {
  box-shadow: 0 0 1px #805AAA;
}

input:checked + .slider:before {
  -webkit-transform: translateX(20px);
  -ms-transform: translateX(20px);
  transform: translateX(20px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Tablet-Rahmen Styling */
.tablet-frame-container {
    position: relative;
    max-width: 1300px; /* Anpassen je nach Größe des Tablet-Frames */
    margin: 0 auto;
}

.tablet-frame {
    position: absolute;
    top: -84px;
    left: -85px;
    width: 1270px;
    height: auto;
    z-index: 50; 
    pointer-events: none; /* Erlaubt Klicks durch das Bild hindurch */
}

.showcase-frame {
    position: absolute;
    top: 50px;
    left: 100px;
    width: 970px;
    height: auto;
    z-index: 20; 
    pointer-events: none; /* Erlaubt Klicks durch das Bild hindurch */
	opacity: 0.3;
}

.app-container {
    position: relative;
    z-index: 1; 
    margin: auto;
    max-width: 1200px;
    background-color: var(--bg-color);
    
    /* Entferne den border wenn der Rahmen des Tablets ausreicht */
    /* border: 2px solid; */
    /* border-color: #d3d8de; */
    
    /* Paddingwerte anpassen, damit der Inhalt im "Screen"-Bereich des Tablets liegt */
    padding: 15px 60px;
	zoom: var(--app-zoom);
}

/* Header-Layout */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 0;
    position: relative;
}

/* Geräteinformation in der rechten oberen Ecke */
.device-name {
    color: #FFFFFF; 
    font-size: 14px;
    position: absolute;
    top: 5px;
    right: 0;
}

.device-info {
    color: #FFFFFF; 
    font-size: 14px;
    position: absolute;
    top: 20px;
    right: 0;
}


.logo img {
    height: 45px;
}

/* Content Area */
.content-area {
	flex: 1;
    display: flex;
    gap: 20px;
    padding: 10px 0;
}

/* Left Column - Temperature Values */
.left-column {
    width: 20%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.temp-block {
    background-color: var(--bg-color);
    position: relative;
    height: 130px;
	width: 200px;
}

.temp-label {
    margin-bottom: 5px;
	left: 0px;
	text-align: left;
}

.label-prefix-set {
    color: #ffffff; 
	font-size: 40px;
}

.label-prefix-int {
    color: #27D251; 
	font-size: 40px;
}

.label-prefix-ext {
    color: #805BA8; 
	font-size: 40px;
}

.label-text {
    color: #ffffff; /* Weiße Farbe für "set" */
	font-size: 30px;
}


.temp-value {
    font-size: 50px;
    font-weight: normal;
	position: absolute;
	text-align: right;
	bottom: 0px;
	right: 0px;
    cursor: pointer;
}

.temp-unit {
    position: absolute;
    right: 0px;
	text-align: right;
	top: 0px;
    font-size: 40px;
}

/* Right Column - Buttons */
.right-column {
    width: 80%;
}

.buttons-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
    height: 20%;
}

.control-btn, .placeholder-btn {
    background-color: var(--btn-bg);
    border: none;
    border-radius: 5px;
    height: 130px;
    width: 160px;
    color: var(--text-color);
    padding: 10px;
    text-align: left;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Titel am unteren Rand ausrichten */
    transition: background-color 0.2s;
}

.placeholder-btn {
    background-color: transparent;
    cursor: default;
}

.control-btn:hover {
    background-color: var(--btn-hover);
}

.btn-icon-smaller {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 45px;
    height: 45px;
}

.btn-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 50px;
    height: 50px;
}

.btn-icon-2 {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 50px;
    height: 50px;
}

/* Basiszustand der Icons - #5C6266 (mittleres Grau) */
.btn-icon, .btn-icon-2 {
    transition: filter 0.5s;
}

/* Icon-Farben für aktive Zustände */
.btn-icon.heating-active {
    filter: invert(45%) sepia(90%) saturate(1500%) hue-rotate(345deg) brightness(95%) contrast(95%); /* Orange */
}

.btn-icon-2.cooling-active {
    filter: invert(65%) sepia(50%) saturate(1000%) hue-rotate(175deg) brightness(90%) contrast(95%); /* Blau */
}



.btn-icon-2-2 {
    position: absolute;
    bottom: 12px;
    left: 13px;
    width: 45px;
    height: 45px;
}

.btn-title {
    font-size: 16px;
    text-align: right;
    padding-right: 5px;
    margin-bottom: 0px;
}

.btn-title.selected {
    font-size: 16px;
    text-align: right;
    padding-right: 5px;
    margin-bottom: 0px;
	color: #828282;
}

.btn-title-top {
    font-size: 16px;
    text-align: right;
    padding-right: 0px;
    margin-bottom: 40px;
}

.btn-info {
	position: absolute;
    font-size: 16px;
    text-align: right;
	color: #AAAAAA;
    right: 10px;
    top: 10px;
}

.btn-content {
    margin-top: 5px;
    width: 100%;
    display: flex;
    flex-direction: column;
	font-size: 16px;
}

.dual-value {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
}

.center-align {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.progress-container {
    height: 20px;
    background-color: var(--progress-bg);
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    margin-bottom: 5px;
}

.progress-bar {
    height: 100%;
    background-color: var(--progress-fill);
    width: 0%;
    transition: width 0.3s;
}

.progress-value {
    text-align: center;
}

/* Neue Sektionen für die korrekte Anordnung */
.top-section, .bottom-section {
    position: absolute;
    display: flex;
    align-items: center;
    right: 10px;
}

.top-section {
    top: 10px;
	right: 10px;
}

.bottom-section {
    bottom: 10px;
	right: 10px;
}

.bottom-section.niveau {
    width: 100%;
    right: 0;
    padding: 0 10px;
    justify-content: space-between;
}

/* Text-Werte */
.value-text {
    font-size: 16px;
    margin-right: 10px;
    white-space: nowrap;
	text-align: bottom;
	margin-top: 25px;
}

.value-text.left {
    margin-right: auto;
    text-align: left;
	margin-top: 85px;
}

.value-text.right {
    margin-left: 10px;
    text-align: right;
	margin-top: 85px;
}

.value-text.bar {
    margin-right: 30px;
    text-align: left;
}

/* Gauge Container Stile */
.gauge-container {
    background-color: #000000;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.gauge-container.vertical {
    width: 8px;
    height: 50px;
}

.gauge-container.vertical-large {
    width: 8px;
    height: 110px;
}

.gauge-fill {
    background-color: #ffffff;
    position: absolute;
    transition: width 0.5s, height 0.5s;
}

/* Vertikale Füllungen gehen von unten nach oben */
.gauge-container.vertical .gauge-fill {
    width: 100%;
    bottom: 0;
}

.gauge-container.vertical-large .gauge-fill {
    width: 100%;
    bottom: 0;
}




/* Footer */
.footer {
    display: flex;
    justify-content: right;
    align-items: right;
    padding: 25px 30px;
}

.lock-button {
    width: 100px;
    height: 100px;
    border-radius: 5px;
    background-color: var(--btn-bg);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lock-button img {
    width: 70px;
    height: 70px;
}

.lock-button:hover {
    background-color: var(--btn-hover);
}

/* Modal für Temperatureinstellung */
.modal {
    display: none;
    position: absolute;
    top: -25px;
    left: -25px;
    width: 1120px;
    height: 800px;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 3;
    justify-content: center;
    align-items: center;
	overflow-x: hidden;
}

.programmer-edit-modal {
    display: none;
    position: absolute;
    top: -138px;
    left: 0px;
    width: 1120px;
    height: 800px;
    background-color: rgba(255, 255, 255, 0);
    z-index: 5;
    justify-content: center;
    align-items: center;
	overflow-x: hidden;
}

.modal_above {
    display: none;
    position: absolute;
    top: 145px;
    left: 550px;
    width: 250px;
    height: 400px;
    background-color: rgba(255, 255, 255, 0);
    z-index: 80;
    justify-content: center;
    align-items: center;
	overflow-x: hidden;
}

.input-row-graph-setup { 
    display: flex;
    height: 50px;
    width: 100%;
	align-items: center;
    padding: 0 2px; /* Innenabstand */
    margin-bottom: 0px; /* Margin entfernen */
	font-size: 20px;
	background: #000000;
    color: white;
}

.input-row-graph-setup-low { 
    display: flex;
    height: 50px;
    width: 100%;
	align-items: center;
    padding: 0 5px; /* Innenabstand */
    margin-bottom: 0px; /* Margin entfernen */
	font-size: 20px;
	background: #2D3234;
    color: white;
}

.text-input-graph {
    background: #5C6266; /* Grauer Hintergrund */
    color: #ffffff;   /* Weißer Text */
    height: 30px;
    margin-right: 5px; 
    padding: 5px;
    width: 80px;
    text-align: centre;
	font-size: 20px;
	border: 1px solid #555;
}

.modal_small_menu {
    display: none;
    position: absolute;
    top: 260px;
    right: 190px;
    width: 160px;
    height: 270px;
    background-color: rgba(255, 255, 255, 0);
    z-index: 50;
    justify-content: center;
    align-items: center;
	overflow-x: hidden;
}

.Graph-Menu-content {
  background-color: #FFFFFF;
  color: #1F2937;                 /* dunkles Grau für Text */
  border: 1px solid #D1D5DB;      /* feine Kontur ähnlich zum Bild */
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  min-width: 220px;               /* schmal und einheitlich */
  max-width: 260px;
  overflow: hidden;               /* Border-Radius auch für Kinder */
  padding: 0;                     /* Trennlinien übernehmen die Abstände */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.graph-menu-button {
  display: block;
  width: 100%;
  background-color: #FFFFFF;
  color: #111827;
  border: 0;                      /* keine eigene Button-Border */
  border-bottom: 1px solid #E5E7EB; /* Trenner zwischen Einträgen */
  text-align: centre;               
  padding: 14px 16px;
  font-size: 16px;                /* gut lesbar */
  line-height: 1.4;
  cursor: pointer;
}

/* Hover-/Focus-Staaten für bessere Bedienbarkeit */
.graph-menu-button:hover,
.graph-menu-button:focus {
  background-color: #F3F4F6;      /* leichtes Grau */
  outline: none;
}

/* Modal-Styling */
.modal-content {
    background-color: var(--bg-color);
    border-radius: 8px;
    overflow: hidden; /* Für Schatteneffekt */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	padding: 20px;
	border: 2px solid;
	border-color: #d3d8de;
	max-height: 500px;
	width: 500px;
	top: 30px;
	overflow-x: hidden;
	overflow-y: auto;
	/* Scrollbalken-Styling */
    /* Breite des Scrollbalkens */
    &::-webkit-scrollbar {
        width: 10px;
    }
    
    /* Hintergrundfarbe des Scrollbalken-Tracks */
    &::-webkit-scrollbar-track {
        background: #000000;
        border-radius: 5px;
    }
    
    /* Farbe des eigentlichen Scrollbalkens (Thumb) */
    &::-webkit-scrollbar-thumb {
        background: #5C6266;
        border-radius: 5px;
    }
    
    /* Hover-Effekt für den Scrollbalken */
    &::-webkit-scrollbar-thumb:hover {
        background: #5C6266;
    }
}

.modal-content-upgrade {
    background-color: var(--bg-color);
    border-radius: 8px;
    overflow: hidden; /* Für Schatteneffekt */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	padding: 20px;
	border: 2px solid;
	border-color: #d3d8de;
	max-height: 500px;
	width: 650px;
	top: 30px;
	overflow-x: hidden;
	overflow-y: auto;
	/* Scrollbalken-Styling */
    /* Breite des Scrollbalkens */
    &::-webkit-scrollbar {
        width: 10px;
    }
    
    /* Hintergrundfarbe des Scrollbalken-Tracks */
    &::-webkit-scrollbar-track {
        background: #000000;
        border-radius: 5px;
    }
    
    /* Farbe des eigentlichen Scrollbalkens (Thumb) */
    &::-webkit-scrollbar-thumb {
        background: #5C6266;
        border-radius: 5px;
    }
    
    /* Hover-Effekt für den Scrollbalken */
    &::-webkit-scrollbar-thumb:hover {
        background: #5C6266;
    }
}

.modal-content-programmer-edit {
    background-color: var(--bg-color);
    border-radius: 1px;
	padding: 20px;
	border: 0px solid;
	border-color: #000000;
	height: 350px;
	width: 950px;
	top: 0px;
	overflow-x: hidden;
	overflow-y: hidden;
}

/* Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
	height: 40px;
    background: #2D3234;
    border-bottom: 1px solid #333;
    margin-bottom: 15px; /* Abstand zum Body */
	z-index: 7; 
}

.modal-title {
    font-size: 18px;
    font-weight: bold;
	margin-right: auto;
}

.modal-close {
    background: #ffffff;
    border: none;
    font-size: 24px;
    color: #2D3234;
    cursor: pointer;
    padding: 10px;
	border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
	z-index: 70; 
}

.mini-modal-close {
    background: #ffffff;
    border: none;
    font-size: 24px;
    color: #2D3234;
    cursor: pointer;
    padding: 10px;
	border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 0px;
	align-items: center;
}

/* Allgemeine Input-Zeile */
.input-row, .input-row-dark, .input-row-label, .extra-row { /* Gemeinsame Styles */
    display: flex;
    height: 50px;
    width: 100%;
	align-items: center;
    padding: 0 5px; /* Innenabstand */
    margin-bottom: 0px; /* Margin entfernen */
    border-bottom: 1px solid #333; /* Trennlinie zwischen Zeilen */
}

.input-row {
    background: #5C6266;
    color: white;
}


.input-row-dark { /* Nur Styles für dunklen Hintergrund */
    background: var(--bg-color);
    color: var(--text-color);
    border: 1px solid white; /* Weißer Rahmen */
}

.extra-row { /* Nur Styles für dunklen Hintergrund */
    background: var(--bg-color);
    color: var(--text-color);
    border: 0px solid white; /* Weißer Rahmen */
}

.input-row-label { /* Nur Styles für dunklen Hintergrund */
    background: var(--bg-color);
    color: var(--text-color);
}

.input-row-large { 
    display: flex;
    align-items: center;
    height: 180px;
    width: 100%;
    padding: 0 5px; /* Innenabstand */
    margin-bottom: 0px; /* Margin entfernen */
    border-bottom: 1px solid #333; /* Trennlinie zwischen Zeilen */
	background: var(--bg-color);
    color: var(--text-color);
    border: 1px solid white; /* Weißer Rahmen */
}

.input-row-medium { 
    display: flex;
	flex-direction: column;
    align-items: stretch;
    height: 140px;
    width: 100%;
    padding: 0 5px; /* Innenabstand */
    margin-bottom: 0px; /* Margin entfernen */
    border-bottom: 1px solid #333; /* Trennlinie zwischen Zeilen */
	background: var(--bg-color);
    color: var(--text-color);
    border: 1px solid white; /* Weißer Rahmen */
}

.buttons-grid-upgrade {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
	height: auto;
	position: relative;
	top: 70px; /* Verschiebe nach unten */
    left: 50px; /* Verschiebe nach rechts */
}

.buttons-grid-details {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
	height: auto;
	position: relative;
	top: 40px; /* Verschiebe nach unten */
    left: 20px; /* Verschiebe nach rechts */
}

.label {
    width: 250px; /* Einheitliche Label-Breite */
    text-align: left;
	font-size: 16px;
}

.label-graph-setup {
    width: 60px; /* Einheitliche Label-Breite */
    text-align: left;
	font-size: 20px;
}

.label-med {
    width: 300px; /* Einheitliche Label-Breite */
    text-align: left;
	font-size: 16px;
}

.label_wide {
    width: 450px; /* Einheitliche Label-Breite */
    text-align: left;
	font-size: 16px;
}

#min-temp-value, #max-temp-value {
    font-size: 16px;
    color: #FFFFFF;
}

/* Input-Felder */
.text-input {
    background: #5C6266; /* Grauer Hintergrund */
    color: #ffffff;   /* Weißer Text */
    height: 30px;
    margin-left: auto; /* Rechts ausrichten */
    padding: 5px;
    width: 80px;
    text-align: right;
	font-size: 16px;
	border: 1px solid #555;
}

.text-input-wide {
    background: #5C6266; /* Grauer Hintergrund */
    color: #ffffff;   /* Weißer Text */
    height: 30px;
    margin-left: auto; /* Rechts ausrichten */
    padding: 5px;
    width: 280px;
    text-align: right;
	font-size: 16px;
	border: 1px solid #555;
}

.drop-input, .drop-input-thin {
    background: #FFFFFF !important;
    color: #000000;
    height: 35px;
    margin-right: 20px;
    padding: 5px;
    text-align: left;
    font-size: 16px;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' d='M0 0h24v24H0z'/%3E%3Cpath d='M12 16l-6-6h12z' fill='rgba(0,0,0,1)'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    padding-right: 30px !important;
}

.drop-input {
    width: 200px;
}

.drop-input-thin {
    width: 100px;
}

.temp-input {
    width: 100%;
    padding: 10px;
    font-size: 20px;
    border: 1px solid #555;
    border-radius: 4px;
    background-color: var(--btn-bg);
    color: #ffffff;
}

/* Für die Buttons im Bestätigungsmodal (Operator-Rechte) */
#op-rights-modal .modal-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* Für die Buttons im Temperaturmodal */
#temp-modal .modal-footer {  /* Hier .modal-footer verwenden */
    display: flex;
    justify-content: center;
    gap: 10px;
    border-top: none; /* Optional: Rahmen entfernen, wenn nicht gewünscht */
    text-align: center; /* Optional: Text im Footer zentrieren */
}


.modal-btn {
    background-color: #555;
    color: white;
    padding: 10px 20px;
    margin: 0 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.modal-btn-corner {
    background-color: #555;
	justify-content: bottom;
    color: white;
    padding: 10px 20px;
    margin: 0px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
	position: relative;
    z-index: 10;
}

/* Footer */
.modal-footer {
	align-items: center;
    border-top: none;
    padding-top: 15px; /* Abstand zum Body */
    display: flex;
    justify-content: flex-end; /* Buttons rechts ausrichten */
    margin-top: auto; /* Footer am unteren Rand fixieren */
}

.modal-btn.cancel {
    background-color: #555;
    color: white;
}

.modal-btn.confirm {
    background-color: #555;
    color: white;
}

.warn-image {
    height: 100px;
    width: 100px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Behält das Seitenverhältnis bei */
}

.error-message {
    color: #ff0000;
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff0000;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    display: none;
}

/* Bestätigungsfenster Styling */
.modal-content.confirmation {
    max-width: 400px;
}

.modal-message {
    margin-bottom: 25px;
    line-height: 1.5;
	max-width: 400px;
}

/* Styles für das Control Variable Modal */
#control-variable-modal .modal-body {
    padding: 20px;
}

#control-variable-modal .modal-footer {
    border-top: none;
    padding-top: 0;
}

/* Pump Modal Styles */
#pump-modal .modal-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#pump-modal .input-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

#pump-modal .label {
    width: 120px;
    text-align: left;
}

#pump-level {
    width: 100%; /* Volle Breite für den Slider */
}

#pump-level-value, #pump-pressure-value {
    width: 40px;
    text-align: right;
}

/* Level Modal Styles */
#level-modal .modal-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#level-modal .input-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

#level-modal .label {
    width: 150px;
    text-align: left;
}

#level-modal select, #level-modal input {
    border: 1px solid #555;
    border-radius: 4px;
}

#level-modal select { /* Dropdown Styling */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' d='M0 0h24v24H0z'/%3E%3Cpath d='M12 16l-6-6h12z' fill='rgba(255,255,255,1)'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}


#level-display {
    width: 30px; /* Breite für Level-Anzeige */
    text-align: right;
}

/* Device Selection Modal Styles */
#device-selection-modal .modal-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#device-selection-modal .label {
    width: 150px; /* Breite für die Label */
    text-align: left;
}

#device-selection-modal select, #device-selection-modal input[type="text"] {
    width: 100%; /* Volle Breite für Input-Felder */
    padding: 8px;
    border: 1px solid #555;
    border-radius: 4px;
}

#device-selection-modal select { /* Dropdown-Styling */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' d='M0 0h24v24H0z'/%3E%3Cpath d='M12 16l-6-6h12z' fill='rgba(255,255,255,1)'/%3E%3C/svg%3E"); /* Dropdown Icon */
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

#found-devices {
    display: flex;
    align-items: center;
    gap: 10px;
}

#extended-settings {
    margin-top: 50px; /* Abstand zum oberen Bereich */
}

.indented {
    margin-left: 20px; /* Einrückung für manuelle Eingabe */
}

.label-radio {
    margin-right: 20px;
}

#device-selection-modal .modal-footer button {
    margin: 0 5px;
}

#device-selection-modal .modal-btn.confirm {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

/* Messages Modal Styles */
#messages-modal .modal-body {
    padding: 20px;
}

.message-highlight {
    border: 2px solid #FF0000 !important;
    box-shadow: 0 0 8px #FF0000;
}

.message-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 10px;
    padding: 15px; 
    background-color: #2D3234;
    border-radius: 4px;
    min-height: 50px;
    height: auto;
}

.message-text {
    font-size: 16px;
    color: white;
    flex: 1;
}

.warn-image {
    width: 24px;
    height: 24px;
    max-width: 24px;
    max-height: 24px;
    object-fit: contain;
}

#messages-count {
    font-weight: bold;
}


.message-text {
    font-size: 16px;
}

/* Control Variables Modal Styles */
#control-variables-modal .modal-body {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Abstand zwischen den Zeilen */
}

#control-variables-modal .input-row {
    display: flex;
    align-items: center;
    gap: 5px; /* Abstand zwischen Label und Input */
}

#control-variables-modal .label {
    width: 130px;
    text-align: left;
}

#control-variables-modal select,
#control-variables-modal input[type="number"] {
    -moz-appearance: textfield; /* Entfernt Pfeile bei Number-Inputs in Firefox */
	border: 1px solid #555;
}

/* Einheit für Inputs */
.unit {
    max-width: auto; /* Breite für die Einheit */
    text-align: left;
	font-size: 16px;
}

.ProgramText {
    max-width: auto; /* Breite für die Einheit */
    text-align: left;
	font-size: 16px;
}

#control-variables-modal select {
    -webkit-appearance: none; /* Entfernt Standard-Dropdown-Pfeil */
    -moz-appearance: none;
    appearance: none;
    background-image: url("image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' d='M0 0h24v24H0z'/%3E%3Cpath d='M12 16l-6-6h12z' fill='rgba(255,255,255,1)'/%3E%3C/svg%3E"); /* Dropdown-Pfeil */
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px; /* Platz für Dropdown-Pfeil */
}

.indented {
    margin-left: 20px;
}

/* Limits Modal Styles */
#limits-modal .modal-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#limits-modal .input-row {
    display: flex;
    align-items: center;
    gap: 10px;
	border: 1px solid #555;
}

#limits-modal .label {
    width: 120px;
    text-align: left;
}

#limits-modal input {
    border: 1px solid #555;
    border-radius: 4px;
}

#tmax-exp-tank, #tmax-value { /* Styles für die nicht-editierbaren Felder */
    width: 50px; /* Breite für die Werte */
    text-align: right;
    padding-right: 5px; /* Abstand zur Einheit */
}

.unit {
    width: 30px; /* Breite für die Einheit */
}


/* Control Parameter Modal Styles */
#control-parameter-modal .modal-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#control-parameter-modal .input-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

#control-parameter-modal .label {
    width: 140px; /* Angepasste Breite für Label */
    text-align: left;
}

#control-parameter-modal input, #control-parameter-modal select {
    border: 1px solid #555;
    border-radius: 4px;
}

#control-parameter-modal select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' d='M0 0h24v24H0z'/%3E%3Cpath d='M12 16l-6-6h12z' fill='rgba(255,255,255,1)'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

#control-parameter-modal .unit {
    width: 20px;
    text-align: left;
}

/* Checkbox-Styling für "Tv manual/auto" */
#tv-manual-auto {
    width: auto; /* Automatische Breite für Checkbox */
    margin-left: auto; /* Nach rechts verschieben */
}

/* Control Parameter Modal Styles */
#setup-modal .modal-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#setup-modal .input-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

#setup-modal .label {
    width: 140px; /* Angepasste Breite für Label */
    text-align: left;
}

#setup-modal input, #setup-modal select {
    border: 1px solid #555;
    border-radius: 4px;
}

#setup-modal select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' d='M0 0h24v24H0z'/%3E%3Cpath d='M12 16l-6-6h12z' fill='rgba(255,255,255,1)'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

#setup-modal .unit {
    width: 20px;
    text-align: left;
}

/* Start/Pause-Button Styling */
.start-button, .pause-button {
    background-color: var(--btn-bg);
    border: none;
    border-radius: 5px;
    width: 100px;
    height: 100px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s;
}

.start-button {
    background-color: var(--btn-bg);
}

.pause-button {
    background-color: var(--btn-bg);
}

.start-button:hover, .pause-button:hover {
    filter: brightness(1.1);
}

.start-button img, .pause-button img {
    width: 60px;
    height: 60px;
}



/* Responsive Design */
@media (max-width: 992px) {
    .content-area {
        flex-direction: column;
    }
    
    .left-column, .right-column {
        width: 100%;
    }
    
    .left-column {
        margin-bottom: 15px;
    }
    
    .buttons-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, 1fr);
    }
    
    .placeholder-btn {
        display: none;
    }
}

@media (max-width: 768px) {
    .buttons-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(5, 1fr);
    }
}

@media (max-width: 480px) {
    .buttons-grid {
        grid-template-columns: 1fr;
    }
    
    .temp-block {
        height: auto;
        padding-bottom: 10px;
    }
    
    .temp-unit {
        position: relative;
        right: auto;
        top: auto;
        align-self: flex-end;
    }
}

/* Rotation-Animation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Klasse für die Rotation, die wir später im JavaScript hinzufügen */
.rotating {
    animation: rotate 5s linear infinite; /* 2 Sekunden pro Umdrehung, endlos wiederholen */
}

/*OA - START OF ADDITION*/
@media (max-width: 480px) {
    .buttons-grid {
        grid-template-columns: 1fr;
    }
    
    .temp-block {
        height: auto;
        padding-bottom: 10px;
    }
    
    .temp-unit {
        position: relative;
        right: auto;
        top: auto;
        align-self: flex-end;
    }
}


/* Programmer modal specific styling */
#programmer-modal .modal-content {
    width: 700px;  /* Wider than standard */
    max-height: 600px; /* Taller than standard */
}

/* Graph modal specific styling */
#graph-modal .modal-content {
    width: 800px;  /* Much wider for the graph */
    max-height: 650px; /* Taller for better graph visibility */
}


/* Ensure the canvas fills its container */
#temperature-graph {
	position: absolute;
	left: 60px; / Platz für Y-Achse /
	top: 10px; / Platz für Titel /
	right: 10px;
	bottom: 30px;
	width: calc(100% - 70px);
	height: calc(100% - 40px);
}


/* Style for program steps container */
.steps-container {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #333;
    margin: 10px 0;
    padding: 5px;
}

/* Style for each program step row */
.step-row {
    display: flex;
    align-items: center;
    background-color: #5C6266;
    padding: 8px;
    margin-bottom: 5px;
    border-radius: 4px;
}

.step-number {
    width: 30px;
    text-align: center;
    font-weight: bold;
}

.step-type {
    width: 120px;
    margin-right: 10px;
}

.step-temp, .step-time {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.step-actions {
    margin-left: auto;
    display: flex;
    gap: 5px;
}

.step-btn {
    width: 25px;
    height: 25px;
    background: #333;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-btn:hover {
    background: #444;
}

/* Program actions styling */
.program-actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

/* Graph actions styling */
.graph-actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
}
/*OA - END OF ADDITION*/


/*OA - Graph addition*/

/* Graph Styles */
.graph-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  border: 1px solid #2D3233;
  background-color: #2D3233;
}

.graph-canvas-container {
	width: 100%;
	height: 350px;
	border: 1px solid #2D3233;
	background-color: #2D3233;
	position: relative;
	display: flex;
	flex-direction: column;
}

.temperature-graph {
  width: 100%;
  height: 100%;
}

/* Graph controls styling */
.graph-controls {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 16px;
}

.graph-legend {
	display: flex;
	gap: 20px;
	align-items: center;
}

.legend-item {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
}

.legend-color {
	width: 12px;
	height: 12px;
	border-radius: 2px;
}

.legend-container {
	margin-left: 10px;
}

.legend-tset {
  background-color: #FFFFFF;
}

.legend-tint {
  background-color: #27D251;
}

.legend-text {
  background-color: #805BA8;
}

.time-scale-buttons {
  display: flex;
  gap: 5px;
}

.graph-setup-button {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 20px;
	padding: 1px 3px;
	cursor: pointer;
	background-color: #808082;
	border: 1px solid #808082;
	border-radius: 3px;
	color: white;
}

.graph-lables {
  padding: 5px 5px;
  color: white;
  font-size: 14px;
  align-items: center;
}

.record-button {
  padding: 5px 10px;
  background-color: #2D3233;
  border: 1px solid #2D3233;
  color: white;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  align-items: center;
}

.record-button img {
    width: 20px;
    height: 20px;
}

.time-button {
  padding: 0px 10px;
  background-color: #808082;
  border: 1px solid #808082;
  color: white;
  border-radius: 15px;
  cursor: pointer;
  font-size: 12px;
  align-items: center;
}

.time-button.active {
  background-color: #808082;
  border-color: #808082;
}

.graph-y-axis {
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 30px;
    width: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    color: #aaa;
    font-size: 12px;
    z-index: 10;
}

.graph-y-value {
    text-align: right;
    padding-right: 10px;
    position: relative;
    line-height: 1;
    height: 0; /* WICHTIG: Zentriert die Labels auf ihrer Position */
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.graph-y-value::after {
	content: '';
	position: absolute;
	width: 5px;
	height: 1px;
	background-color: #555;
	right: 5px;
	top: 50%;
	transform: translateY(-50%);
}

.graph-x-axis {
    position: absolute;
    bottom: 0;
    left: 60px;
    right: 10px;
    height: 30px;
    color: #aaa;
    font-size: 12px;
    z-index: 10;
}

.graph-x-value {
    position: absolute;
    padding-top: 8px;
    transform: translateX(-50%);
    white-space: nowrap;
}

/* Positioniere die Labels basierend auf ihrer Index-Position */
.graph-x-value:nth-child(1) { left: 0%; }
.graph-x-value:nth-child(2) { left: 20%; }
.graph-x-value:nth-child(3) { left: 40%; }
.graph-x-value:nth-child(4) { left: 60%; }
.graph-x-value:nth-child(5) { left: 80%; }
.graph-x-value:nth-child(6) { left: 100%; }

.graph-x-value::before {
	content: '';
	position: absolute;
	height: 5px;
	width: 1px;
	background-color: #555;
	left: 50%;
	top: 0;
	transform: translateX(-50%);
}

.graph-title {
	position: absolute;
	top: 10px;
	right: 15px;
	font-size: 14px;
	color: #aaa;
	font-weight: bold;
	z-index: 10; /* Über dem Canvas */
}

.graph-grid {
	position: absolute;
	left: 60px;
	right: 10px;
	top: 10px;
	bottom: 30px;
	pointer-events: none;
	z-index: 5; /* Zwischen Achsen und Canvas */
}

.graph-h-grid-line {
	position: absolute;
	left: 0;
	right: 0;
	height: 1px;
	background-color: #808082;
}

.graph-v-grid-line {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 1px;
	background-color: #808082;
}

.graph-actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

/* Toggle Button */
.sidebar-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1002;
    background-color: #2c3e50;
    color: white;
    border-color: white;
    border-radius: 10px;
    width: 60px;
    height: 60px;
    cursor: pointer;
    font-size: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background-color: #34495e;
    transform: scale(1.05);
}

/* Overlay für das Schließen bei Klick außerhalb */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Seitenmenü Container */
.sidebar {
    position: fixed;
    top: 0;
    right: -350px; /* Versteckt außerhalb des Bildschirms */
    width: 350px;
    height: 2000px;
    background-color: #000000;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    overflow-y: auto;
    transition: right 0.3s ease;
}

/* Sidebar geöffnet */
.sidebar.open {
    right: 0;
}

/* Close Button im Menü */
.sidebar-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background-color: #34495e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.sidebar-close:hover {
    background-color: #e74c3c;
}

/* Seitenmenü Header */
.sidebar-header {
    padding: 20px;
    padding-top: 160px; /* Platz für Close Button */
    background-color: #111111;
    border-bottom: 1px solid #1a252f;
    text-align: center;
}

.sidebar-title {
    color: #ecf0f1;
    font-size: 30px;
    font-weight: bold;
    margin: 0;
}

/* Menu Links */
.menu-link {
    display: block;
    padding: 15px 20px;
    color: #ecf0f1;
    text-decoration: none;
    border-bottom: 1px solid #34495e;
    transition: all 0.3s ease;
	font-size: 23px;
}

.menu-link:hover {
    background-color: #34495e;
    padding-left: 25px;
    color: #3498db;
}

.menu-link:active {
    background-color: #3498db;
}

/* Aktiver Link */
.menu-link.active {
    background-color: #3498db;
    border-left: 4px solid #2980b9;
}

/* Separator */
.menu-separator {
    height: 1px;
    background-color: #34495e;
    margin: 10px 0;
}

/* Programmer Modal Specific Styles */
.programmer-modal-content {
    width: 1000px !important;
    height: 900px !important;
    max-height: 750px !important;
    background-color: #000000 !important;
}

.programmer-modal-body {
    padding: 15px !important;
    background-color: #000000 !important;
}

.programmer-main-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 20px;
}

/* Top Row - Programs + Actions */
.top-row-prog {
    display: flex;
    height: 300px;
    gap: 20px;
}

/* Left: Programs Section (2/3) */
.programs-section {
    width: 70%;
    display: flex;
    flex-direction: column;
	overflow-x: hidden;
	overflow-y: auto;
	/* Scrollbalken-Styling */
    /* Breite des Scrollbalkens */
    &::-webkit-scrollbar {
        width: 10px;
    }
    
    /* Hintergrundfarbe des Scrollbalken-Tracks */
    &::-webkit-scrollbar-track {
        background: #000000;
        border-radius: 5px;
    }
    
    /* Farbe des eigentlichen Scrollbalkens (Thumb) */
    &::-webkit-scrollbar-thumb {
        background: #5C6266;
        border-radius: 5px;
    }
    
    /* Hover-Effekt für den Scrollbalken */
    &::-webkit-scrollbar-thumb:hover {
        background: #5C6266;
    }
}

.top-row-details {
    display: flex;
    height: 300px;
    gap: 20px;
}

.detail-section {
    width: 80%;
    display: flex;
    flex-direction: column;
	padding-top: 30px;
	padding-left: 15px;
}

.button-section {
    width: 20%;
    display: flex;
    flex-direction: column;
	padding-top: 100px;
}

.program-input-field {
    margin-bottom: 15px;
}

.program-input {
    width: 100%;
    background-color: #2D3234;
    color: white;
    border: 1px solid #666;
    padding: 12px;
    font-size: 16px;
    border-radius: 4px;
}

.program-items-list {
    height: 64%;
    display: grid;
    grid-template-columns: repeat(3, 0fr);
    grid-template-rows: repeat(2, 0fr);
    gap: 40px;
	margin-left: 45px;
}

.program-list-item {
    background-color: var(--btn-bg);
    border: none;
    border-radius: 5px;
    height: 120px;
    width: 160px;
    color: var(--text-color);
    padding: 20px;
    text-align: left;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Titel am unteren Rand ausrichten */
    transition: background-color 0.2s;
}

.btn-icon-prog {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 45px;
    height: 45px;
}

.program-list-item.selected {
    background-color: #FFFFFF;
}

.program-list-item:hover:not(.selected) {
    background-color: #3B4244;
}

.item-number {
    width: 25px;
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.item-name {
    flex: 1;
    color: white;
    margin-left: 15px;
    font-size: 20px;
}

.switch-name {
    flex: 1;
    color: white;
    margin-left: 25px;
	padding: 1;
    font-size: 15px;
}

.item-button {
    min-width: 60px;
    height: 40px;
    background-color: transparent;
    border: 1px solid #3B4244;
    border-radius: 5px;
    padding: 5;
    cursor: pointer;
    transition: all 0.2s;
}

.item-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;        /* Füllt den Button komplett aus */
    display: inline-block;
}

/* Right: Actions Section (1/3) */
.programmer-actions {
	width: 30%;
}

.switch-container-prog {
  display: flex;
  height: 20px;
  margin-left: 65px;
}

.switch-section {
    height: 36%;
    display: grid;
    grid-template-rows: repeat(2, 0fr);
    gap: 20px;
}

.actions-section {
    height: 64%;
    display: grid;
    grid-template-columns: 0fr 0fr;
    grid-template-rows: repeat(4, 0fr);
    gap: 20px;
	margin-left: 65px;
}

.actions-section-prog {
    height: 64%;
    display: grid;
    grid-template-columns: 0fr 0fr;
    grid-template-rows: repeat(4, 0fr);
    gap: 20px;
	margin-top: 40px;
	margin-left: 65px;
}

.return-action-btn {
    background-color: #2D3234;
    color: white;
    position: absolute; 
    right: 120px;        
    height: 35px;
    width: 60px;
    border: 0px solid #666;
    padding: 2px 3px;
    font-size: 30px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}


.prog-action-btn {
    background-color: #2D3234;
    color: white;
	height: 35px;
	width: 60px;
    border: 0px solid #666;
    padding: 2px 3px;
    font-size: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

.prog-action-btn-disabled {
    background-color: #000000;
    color: white;
	height: 35px;
	width: 60px;
    border: 1px solid #FFFFFF;
    padding: 6px 3px;
    font-size: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

.prog-action-btn:hover {
    background-color: #3B4244;
}

/* Bottom: Graph Section */
.graph-section-prog {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.prog-optimization-title {
    background-color: #2D3234;
    color: white;
    text-align: center;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #666;
    border-radius: 4px;
    font-weight: bold;
    font-size: 16px;
}

.graph-container-prog {
    flex: 1;
    position: relative;
    background-color: #2D3233;
    border: 0px solid #666;
    border-radius: 4px;
    min-height: 250px;
}

.y-axis-prog {
    position: absolute;
    left: 10px;
    top: 30px;
    bottom: 50px;
    width: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.y-tick {
    color: white;
    font-size: 14px;
    text-align: right;
    font-weight: bold;
}

.graph-plot-area {
    position: absolute;
    left: 55px;
    right: 20px;
    top: 30px;
    bottom: 50px;
    background-color: #2D3234;
    border-left: 2px solid #666;
    border-bottom: 2px solid #666;
}

#trendCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.trend-text {
    position: absolute;
    top: 10px;
    left: 10px;
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.x-axis-prog {
    position: absolute;
    bottom: 20px;
    left: 55px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    color: white;
    font-size: 11px;
    font-weight: bold;
}

.time-label-prog {
    position: absolute;
    bottom: 5px;
    right: 20px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}


.seg-table {
    width: 100%;
    max-width: 800px;
    border-collapse: separate;
    border-spacing: 0 4px;
    color: white;
}

/* Überschriften */
.seg-table thead tr th {
    background-color: #1a1a1a;
    color: #ccc;
    font-weight: normal;
    font-size: 14px;
    padding: 8px 10px;
    text-align: center;
}

/* Start-Reihe */
.seg-table tbody tr.start-row td {
    background-color: #2D3234;
    font-size: 16px;
    padding: 12px 10px;
    text-align: center;
}

/* Normale Datenreihen */
.seg-table tbody tr.data-row td {
    background-color: #3a3f42;
    font-size: 16px;
    padding: 12px 10px;
    text-align: center;
}

.seg-table tbody tr.data-row:hover td {
    background-color: #4a5155;
	cursor: pointer;
}

/* Abgerundete Ecken pro Reihe */
.seg-table tbody tr td:first-child {
    border-radius: 6px 0 0 6px;
}

.seg-table tbody tr td:last-child {
    border-radius: 0 6px 6px 0;
}

/* Time hh:mm - zwei Spalten nebeneinander */
.time-cell {
    display: flex;
    justify-content: center;
    gap: 16px;
}




/* Responsive für kleinere Bildschirme */
@media (max-width: 768px) {
    .sidebar-toggle {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .sidebar {
        width: 280px; /* Etwas breiter auf Mobile */
    }
    
    .menu-link {
        padding: 18px 20px; /* Größere Touch-Targets */
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 100%; /* Vollbreite auf sehr kleinen Bildschirmen */
        right: -100%;
    }
    
    .sidebar.open {
        right: 0;
    }
}



/* Animation für smooth opening/closing */
@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}
