
.needsNotam.loading{
    content: " ⏳";
    animation: blink 0.5s infinite;
}
@keyframes blink {
  50% { opacity: 0.3; }
}
/* top-bar */
.navbar {
    display: flex;
    justify-content: space-around;
    background-color: var(--color-nav);
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
    height: 60px;
}

.nav-item {
    position: relative;
}

.nav-button {
  background-color: var(--color-nav);
  color: var(--color-text);
  padding: 8px 14px;
  border: 0.2px solid var(--color-nav-alt);
  border-color: var(--color-button-border);
  border-radius: 6px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-height: 45px;
  box-shadow: var(--shadow-button);
  transition: background 0.3s ease, color 0.2s ease;
}
/* hover is at sidebar */
.nav-button.active {
  border-bottom: 3px solid var(--color-accent);
  background-color: var(--color-nav);
}

#briefing-status-navbar{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: white;
}
#briefing-status-navbar span{
  display: flex;
  gap: 2px;
  align-items: center;
}
#briefing-status-navbar .AUP-label,
#briefing-status-navbar .NOTAM-label{
  display: inline-block;
  text-align: center;
  min-width: 95px;
  padding: 1px 4px;
  margin: 1px 0px;
  border-radius: 4px;
  color: #000;
}



.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-nav-alt);
    width: auto;
    z-index: 1000;
}

.nav-item:hover .dropdown,
.frame-header:hover .dropdown,
.frame-header2:hover .dropdown {
    display: block;
    background-color: var(--color-nav-alt);
}


.dropdown-item {
    padding: 10px;
    background-color: var(--color-nav-alt);
    color: var(--color-text);
    border: none;
    border-radius: 6px;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: var(--color-accent); 
    color: black;
}

/* Sidebar */

.sidebar {
  left: 0;
  z-index: 2;
  background-color: var(--color-nav);
  color: var(--color-text);
  height: 100%;
  max-width: 200px;
  width: 200px;
  transition: width 0.3s ease;  
  display: flex;
  flex-shrink: 0;
  overflow-y: auto; /* might want to hide it after presentation */
  overflow-x: hidden;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 5px;
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}
.sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.25);
  border-radius: 3px;
}
.sidebar:hover::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.45);
}




body.sidebar-collapsed .sidebar {
  width: 0;
  overflow: hidden;
}

body.sidebar-collapsed .sidebar-toggle-btn {
  left: 0;
}


.sidebarHeader{
    height: 35px;
    font-size: 20px;
    font-weight: bold;
    color: var(--color-text);
    text-shadow: -2px 2px black;
    opacity: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 4px 0px;
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 2px;
  }

.sidebar ul {
    list-style: none;
    padding: 0;
    flex-grow: 1;
}

.sidebar ul li {
    margin-bottom: 1px;
    display: flex;
}

.sidebar-button{
    white-space: nowrap;       /* kein Zeilenumbruch */
    overflow: hidden;          /* Text wird abgeschnitten */
    text-overflow: ellipsis;   /* ... am Ende */
    background-color: var(--color-nav);
    color: var(--color-text);
    border: 0.2px solid var(--color-nav-alt);
    border-color: var(--color-button-border);
    border-radius: 6px;
    width: 100%;
    max-width: 100%;
    height: auto;
    padding: 10px;
    margin: 4px 20px;
    box-shadow: var(--shadow-button)
}
.btn-hoverable:hover{
  background-color: var(--color-nav-alt);
  transition: background 0.4s ease
}
.sidebar-button.active {
    background-color: var(--color-accent);
    color: black;
    font-weight: bold;
    max-width: 100%;
    width: 100%;
    padding: 10px;
    border: none;
    border-left: 8px solid rgba(6, 2, 53, 1);
    outline: none;
}
/* Der Button rechts außen neben der Sidebar */
.sidebar-toggle-btn {
  position: absolute;
  left: 205px;
  bottom: 10px;
  width: 25px;
  height: 50px;
  background-color: var(--color-nav);
  color: var(--color-text);
  border: none;
  cursor: pointer;
  border-radius: 0 5px 5px 0;
  z-index: 1002;
  font-weight: bold;
  text-align: left;
  margin-left: 0;
  padding-left: 5px;
  margin-bottom: 5px;
}
#filterToggleBtn {
    display: none;
}

.sidebar-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.sidebar-bottom {
    width: 100%;
    max-width: 100%;
    height: auto;
    background-color: transparent;
    display: flex;
}


/* Sektorbar */
.sectorbar{
    background-color: var(--color-nav);
    display: flex;
    align-items: center;
    height: 35px;
    padding: 0 10px;
    transition: padding-left 0.3s ease;
    z-index: 1;
}

.sectorbar button{
    padding: 5px;
}
.nav-button-sector.active{
    background-color: rgb(9, 78, 139);
}

.sectorbar > div{
    width: 25%;
}

.sectorbar > div:not(:last-of-type){
    border-right: 1px solid black;
}


.sectorgroups{
    display: flex;
    width: auto;
    justify-content: center;
}

.main-container {
  display: flex;
  position: absolute;
  top: 60px; /* Höhe der echten Navbar */
  bottom: 0;
  left: 0;
  right: 0;
  
}



body.sidebar-collapsed .sidebar {
  width: 0;
}

.right-area {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 0;
  z-index: 1;
}

button:focus,
button:active,
.sidebar-button:focus,
.sidebar-button:active {
  outline: none;
  box-shadow: none;
}


/* !DETAILSBAR */
#details-bar{
  --details-bg: rgba(30, 43, 56, 1);
  --details-section-header: #18232e;
}



#details-bar {
  position: absolute;
  bottom: 0;
  left: var(--sidebar-width, 200px);
  right: 0;
  height: auto;
  max-height: 80vh;
  width: calc(100% - var(--sidebar-width, 200px));
  background: var(--details-bg);
  color: white;
  transition: transform 0.3s ease;
  transition: left 0.3s ease, width 0.3s ease;
  overflow: hidden;
  z-index: 9999;
  border-top: 2px solid #020f57;
  display: none;
  flex-direction: column;
}

#details-bar.active {
  transform: translateY(0%);
  display: flex;
}

#details-header {
  padding: 6px 10px;
  background: var(--details-bg);
  border: 1px solid rgb(0, 0, 0);
  display: grid;
  grid-template-columns: auto 1fr auto;
  position: relative;
  align-items: center;
  font-weight: bold;
  font-size: 14px;
}
#details-header.openAIPflag{
  background-color: #5c1e1eba;
  border-bottom: 2px solid #457b9d;
  color: #f1faee;
}
#details-header #details-title {
  font-size: 1.4em;
  font-weight: bold;
  text-align: center;
  flex: 1;
}
#details-title-bar{
  display: flex;
  position: relative;
  justify-content: space-around;
  width: 100%;
}
.header-center {
  text-align: center;
  font-size: 1.1em;
  font-weight: bold;
}

#details-title {
  display: inline-block;
}
#details-sun-times-morning{
  font-size: 16px;
  font-weight: normal;
  left:0;
}
#details-sun-times-evening{
  font-size: 16px;
  font-weight: normal;  
  right: 45px;
  margin-right: 40px;
}

#details-header button{
  position: absolute;
  border: 1px solid black;
  opacity: 1;
  right: 10px;
  top: 2px;
  bottom: 5px;
  width: 30px;
  height: 30px;
}
#details-header #details-Nav-Back{
  right: unset;
  width: 50px;
  margin-left: 20px;
  font-size: 1.5em;
  box-shadow: none;
}


#details-content {
  padding: 10px;
  overflow-y: auto;
  flex-grow: 1;
  font-family: monospace;
  font-size: 12px;
}

#details-drag-handle {
  height: 30px;
  cursor: ns-resize;
  background: var(--color-nav-darker);
  border-top: 1px solid #666;
  border-bottom: 1px solid #000;
  flex-shrink: 0;
  box-shadow: inset 0 -4px 8px rgba(115, 150, 167, 0.705);
}

#detailsbar-importantNote{
  display: none;
  padding: 5px;
  justify-content: center;
  text-align: center;
  font-size: 20px;

}#detailsbar-notamNote{
  display: none;
  padding: 5px;
  justify-content: center;
  text-align: center;
  font-size: 20px;
}
/*DETAILSBAR PROCEDURES */
#procedure-details{
  font-family: sans-serif
}
.procedure-select{
  border-radius: 6px
}
.procedure-select option{
  text-align: center;
}
.procedures{
  display: flex;
  width: 100%;
  justify-content: center;
  gap: 20px
}
.procedures button{
  padding: 5px;
  box-shadow: none;
  padding: 4px;
  margin: 2px
}
.procedures-wrapper{
  background: #ffffff;
  color: black;
  border-radius: 16px;
}
.procedures-dropdown-wrapper{
  display: flex;
  justify-content: center;
}

.note-tooltip {
  cursor: help;
  color: #ccc;
  text-decoration: underline dotted;
  white-space: nowrap;
}


/* !detailsbar sections */


/* QUICK FIX FOR FINDAIRPORT */

.detailsbar-section-content.findAirportContent {
    flex-wrap: wrap !important;
    flex-direction: row !important;
    gap: 10px;
    padding: 10px 5px;
}
.detailsbar-section-content.findAirportContent label {
    width: 120px;
}
.detailsbar-section-content.findAirportContent input,
.detailsbar-section-content.findAirportContent select {
    width: 150px;
}
.findAirportContent {
    color: #d7e9ff !important;
    font-size: 13px;
    font-weight: bold;
}
.findAirportContent input,
.findAirportContent select {
    background-color: rgba(18, 27, 38, 0.95);
    border: 1px solid #3a5068;
    color: #d7e9ff;
    padding: 4px 6px;
    border-radius: 4px;
}



/* REPLACE WHENEVER. THIS FEATURE IS OLD AND A STANDALONE SECTION */

.details-section {
  background-color: var(--color-text);
  color: black;
  border-top: 1px solid #333;
  margin-top: 5px;
}

.detailsbar-section-content{
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;  
  background-color: rgba(30, 43, 56, 0.95);
}
.details-section-header {
  padding: 4px;
  cursor: pointer;
  background-color: var(--details-section-header);
  color: var(--color-text);
  border: 2px solid rgba(112, 109, 109, 0.16);
  box-shadow: 0 4px 4px var(--color-nav-darker) inset;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  text-shadow: 1px 1px 2px black;
}
.details-section-header:hover {
  background: var(--color-nav-alt);
}

.details-link{
  color: white;
}

.arrow {
  font-size: 0.9em;
}
/*=====================================
          !DETAILSBAR CARD
======================================*/
.detailsbar-card {
  flex:0 1 260px;
  width: auto;
  max-width: 360px;
  max-height: 200px;
  margin: 6px;
  background: var(--details-bg, #2a3440);
  color: var(--color-text);
  border-radius: 6px;
  padding: 4px;
  border: 1px solid white;
  box-shadow: 0 0 3px 1px rgb(100 101 118 / 60%);
  white-space: nowrap;
  overflow-x: auto;
}
.detailsbar-card-header {
  display: flex;
  font-weight: bold;
  justify-content: center;
  align-items: center;
  position: relative;
  text-align: center;
  font-size: 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.detailsbar-card-header button{
  position: absolute;
  right: 5px;
  top: 0;
  bottom: 0;
  width: 28px; /* quadratisch, kannst du anpassen */
  height: 100%; /* nimmt gesamte Header-Höhe ein */
  cursor: pointer;
  background-color: var(--details-bg);
  border: 1px solid black;
  color: white;
  font-weight: normal;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
}
.detailsbar-card-content {
  font-size: 14px;
  padding: 0px 4px;
}
.detailsbar-card.fuel{
  flex: 1 0 75px;
  max-width: 150px;
}
.detailsbar-card.remarks{
  flex: 1 1 auto;
  max-width: 500px;
  text-wrap: wrap;
}
.detailsbar-card.centerText{
  text-align: center;
}

.detailsbar-card.activeSlot .detailsbar-card-header{
  color: rgb(197, 5, 5); 
}

/* !detailsbar buttons */
.detailsbar-airspaceButton{
    white-space: nowrap;       /* kein Zeilenumbruch */
    overflow: hidden;          /* Text wird abgeschnitten */
    background-color: var(--color-nav);
    color: var(--color-text);
    border: 0.2px solid var(--color-nav-alt);
    border-color: var(--color-button-border);
    border-radius: 6px;
    height: 35px;
    padding: 10px;
    margin: 4px 20px;
    box-shadow: var(--shadow-button)
}
/*
.detailsbar-airspaceButton:hover{
   see sidebar 
}
*/
.detailsbar-airspaceButton.active{
  border: 2px solid rgb(253, 255, 163);
}

.detailsbar-entry--contentRight{
  display: flex;
  justify-content: space-between;
  align-items: top;
}
.detailsbar-entry--contentRight .detailsbar-entry-label{
  text-align: left;
}
.detailsbar-entry--contentRight .detailsbar-entry-value{
  text-align: right;
}

.detailsbar-card.highlightCard{
  box-shadow: 2px 2px 8px rgba(242, 247, 0, 0.664)
}

/* !Detailsbar SlotCards */
.modifyCard{
  display: inline-block;
  text-align: center;
}

.slotMenu {
  background: #222;
  color: white;
  border: 1px solid #555;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  position: absolute;
  min-width: 120px;
  z-index: 9999;
}

.slotMenu button {
  background: none;
  border: none;
  color: white;
  text-align: left;
  padding: 5px 8px;
  cursor: pointer;
}

.slotMenu button:hover {
  background: rgba(255,255,255,0.1);
}

.pastSlot { opacity: 0.5; }


/* ==========================================================
   SLOT MODIFY PANEL — compact, vertical layout
   ========================================================== */
.slotModifyPanel {
  position: absolute;
  background: var(--details-bg, #1e2b38);
  color: var(--color-text, #fff);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  padding: 14px 16px;
  width: 200px;                 /* etwas schmaler */
  z-index: 10000;
  font-family: monospace;
  font-size: 13px;
}

.slotModifyHeader h3 {
  margin: 0 0 8px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  font-size: 15px;
  text-align: center;
  color: white;
  text-shadow: 1px 1px 2px black;
}

.slotModify-content {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
}

.slotModify-content label {
  display: flex;
  flex-direction: column;       /* Label oben, Input darunter */
  font-weight: bold;
  font-size: 13px;
  align-items: flex-start;
}

.slotModify-content input {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  color: white;
  padding: 2px 4px;
  text-align: center;           /* mittig für Zahlen */
  font-family: monospace;
  font-size: 13px;
  margin-top: 2px;
}

/* remove number input spinners */
.slotModify-content input[type=number]::-webkit-outer-spin-button,
.slotModify-content input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


/* Footer buttons */
.slotModifyFooter {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.slotModifyFooter button {
  background-color: var(--color-nav-alt, #2f3b4a);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  padding: 3px 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.slotModifyFooter button:hover {
  background: var(--color-accent, #748eb3);
  color: black;
}

@keyframes fadeInPanel {
  from { opacity: 0; transform: translate(-50%, -20%) scale(0.97); }
  to   { opacity: 1; transform: translate(-50%, -25%) scale(1); }
}




/* !detailsbar availability section */
.detailsbar-entry--availability{
  width: 100%;
}
.availability-section{
  width: 100%
}
.availability-table-wrapper {
  max-height: none;   /* feste Höhe */
  overflow-y: visible;    /* Scrollbar bei Überlänge */
  border: 1px solid #333; /* optional Rahmen */
}

.availability-note{
  font-size: 24;
  text-decoration: underline;
}
.availability-raw, .availability-note{
  color: white;
}

.availability-table {
  background-color: #cecece1f;
  color: white;
  font-size: 14px;
  text-shadow: 1px 1px 3px black;
  width: 100%;
  border-collapse: collapse;
}

.availability-table thead th {
  position: sticky;
  top: 0;
  background: #222;    /* Kopfzeile fixieren */
  color: white;
  z-index: 1;
}
.availability-table td:nth-child(1),
.availability-table th:nth-child(1){
  white-space: nowrap;
  max-width: 300px;
  width: 1%;
}
.availability-table td:nth-child(2),
.availability-table th:nth-child(2){
  white-space: nowrap;
  max-width: 300px;
  width: 50%;
}



.availability-tab.active-season {
  border: 2px solid #ffffff;
  font-weight: bold;
}




.contact-group {
    margin-bottom: 8px;
}
.contact-sub {
    margin-left: 15px;
    color: #ccc;
}

.fuel-entry { margin-bottom: 6px; }
.fuel-notes { margin-left: 15px; color: #ccc; }
.fuel-annotations { margin-top: 10px; font-style: italic; color: #aaa; }


/* !detailsbar NOTAM  */
.notam-explain{
  text-align: center;
  justify-content: center;
  font-size: 20px;
}
.notam-tooltip {
  cursor: help;
  color: #ffffff;
  text-decoration: underline dotted;
  white-space: nowrap;
}

/* nur NOTAM-Remarks */
.remarks-content.remarks-notam {
  font-size: 20px;       /* stell ein, was du willst */
  line-height: 1.4;
}


/* DETAILSBAR HEIGHT WARN */
.height-warn{
  display: inline-block;
}

/* SEARCH PANEL */
.search-results-container {
    position: relative;
    z-index: 9999;
    margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 4px;
    display: none; /* wird nur angezeigt wenn Treffer >1 */
}

.search-result-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.search-result-item {
    padding: 6px 8px;
    background: #2c2c2c;
    border-radius: 4px;
    cursor: pointer;
}

.search-result-item:hover {
    background: #3a3a3a;
}
