/* Allgemeine Stile */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
}

.layout-container {
  display: flex;
  min-height: 100vh;
}

/* Aktive Navigation optisch hervorheben */
.router-link-exact-active.active-link {
    background-color: #e9ecef;
    border-radius: 6px;
    font-weight: 600;
  }
  
  .sidebar-container {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 250px;
  transition: width 0.3s ease;
  overflow-x: hidden;
  overflow-y: auto;
  z-index: 1000;
  background-color: #fff; /* wichtig für Scrollschutz */
  border-right: 1px solid #dee2e6;
}
  .sidebar-collapsed.sidebar-container {
    width: 70px !important;
  }
  
  

  .active-sub {
    font-weight: 600;
    color: #0d6efd !important;
  }
  
  /* Deaktivierte Links */
  .disabled-link {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
  }
  
  /* Slide Animation */
  .slide-enter-active, .slide-leave-active {
    transition: all 0.3s ease;
  }
  .slide-enter-from, .slide-leave-to {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
  }
  .slide-enter-to, .slide-leave-from {
    max-height: 500px;
    opacity: 1;
  }
  
  .sidebar-collapsed .nav-link {
    justify-content: center;
  }
  .sidebar-collapsed i {
    margin-right: 0 !important;
  }

  .nav-item .nav-link {
    white-space: nowrap;
  }

/* Bootstrap Dropdown Anpassungen */
.dropdown-menu {
    min-width: 160px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.dropdown-item:hover {
    background-color: #f1f1f1;
}

.main-content {
  padding: 2rem;
  flex-grow: 1;
  min-width: 0;
  transition: all 0.3s ease;

  height: 100vh;             /* <- wichtig für Scroll */
  overflow-y: auto;          /* <- Inhalt soll scrollen */
  margin-left: 250px;        /* Platz für Sidebar */
}

.main-expanded .main-content {
  margin-left: 70px;
}


.overlay-spinner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* halbtransparentes Schwarz */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* über alles andere */
}


/* Hauptinhalt */

label {
  font-weight: 500;
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 4px;
  display: inline-block;
}

/* Input + Textarea */
input.form-control,
textarea.form-control {
  background-color: #fcfcfc;
  border: 1px solid #ced4da;
  font-weight: 600;
  color: #212529;
  -webkit-appearance: none;
}

/* Selects */
select.form-select {
  background-color: #fcfcfc;
  border: 1px solid #ced4da;
  font-weight: 600;
  color: #212529;
}

/* Readonly/Disabled Styling */
input[readonly].form-control,
textarea[readonly].form-control {
  background-color: #f2f2f2;
  color: #6c757d;
  font-weight: normal;
}

select.form-select:disabled {
  background-color: #f2f2f2;
  color: #6c757d;
  font-weight: normal;
}

.filter-input-lg {
  height: 48px !important;
  font-size: 1rem;
  line-height: 48px;
  padding-top: 0;
  padding-bottom: 0;
}



.section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 2px solid #000;
    margin-bottom: 20px;
}



.panel-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}


.time-display {
    font-size: 1rem;
    font-weight: bold;
    margin-left: 10px;
}
.btn-lg {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.container {
    max-width: 600px;
    margin-top: 50px;
}
.summary-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}
.summary-box {
    flex: 1;
    padding: 10px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.summary-box-mytime {
    height: 38px; /* Gleiche Höhe wie die Formularelemente */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
    min-width: 80px;
    text-align: center;
}

.summary-table-container {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-bottom: -5px; /* Reduziert den Abstand zur Tabelle */
}

.status-badge {
  display: inline-block;
  width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  text-align: center;
  padding: 0.25em 0.5em;
  border-radius: 0.5em;
  font-size: 0.875em;
}

 


/* Buttons */
.btn {
    border-radius: 5px;
    font-size: 16px;
    padding: 10px 15px;
}

.btn-success, .btn-warning, .btn-danger {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-xs {
  padding: 0.15rem 0.3rem;
  font-size: 1.6rem;
  line-height: 1.1;
  border-radius: 0.2rem;
}

/* Responsive Anpassung */
@media (max-width: 768px) {
    #wrapper {
        flex-direction: column;
    }
    
    #left-sidebar, #navleft {
        width: 100%;
        height: auto;
    }
    
    #main-content {
        width: 100%;
    }
	.summary-table-container {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        position: relative;
    }
	
}
/* Responsive Anpassung für die Boxen */
@media (max-width: 400px) {
    .summary-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .summary-box {
        width: 100%;
    }
}

/* Smooth slide transition for submenus */
.slide-enter-active,
.slide-leave-active {
  transition: all 0.3s ease;
}
.slide-enter-from,
.slide-leave-to {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}
.slide-enter-to,
.slide-leave-from {
  max-height: 300px; /* genug Platz für 2–3 Unterpunkte */
  opacity: 1;
}
.sidebar-nav ul li a.router-link-active {
    font-weight: bold;
    background-color: #495057;
    border-left: 4px solid #0d6efd;
    padding-left: 16px;
  }

  .menu-toggle i {
    transition: transform 0.3s ease;
  }
  .menu-toggle.open i {
    transform: rotate(90deg);
  }
  .disabled-link {
    pointer-events: none;
    opacity: 0.3;

    cursor: not-allowed;
  }

  .table-wrapper {
    overflow-y: auto;
    max-height: calc(100vh - 150px);
  }

  .table-wrapper-modal {
    overflow-y: auto;
    max-height: calc(100vh - 270px);
  }
  
  /* Sticky Header */
  .sticky-header th {
    position: sticky;
    top: 0;
    background-color: #343a40;
    color: white;
    z-index: 10;
  }
  
  /* Kleinere Schrift für kompaktere Darstellung */
  .table-sm td, .table-sm th {
    font-size: 0.85rem;
    vertical-align: middle;
  }
    
  
  .sticky-top {
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 3;
  }
  .map-wrapper {
  position: relative;
  margin-top: 20px;
}

/* Normale Kartenhöhen-Definition */
.map-container {
  height: 600px;
}

/* Vollbild-Variante: Wrapper über gesamten Viewport legen */
.map-wrapper--fullscreen {
  position: fixed;
  inset: 0;           /* top:0; right:0; bottom:0; left:0; */
  margin: 0;
  z-index: 2000;
  background: #fff;   /* optional: weißer Hintergrund hinter der Karte */
}

/* Im Vollbild die Karte auf volle Höhe bringen */
.map-wrapper--fullscreen .map-container {
  height: 100vh;
}

/* Fullscreen-Toggle-Button oben rechts auf der Karte */
.map-fullscreen-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2001;
}
