.menu-configurator {
  display: flex;
  flex-direction: column;
  min-height: 90vh;
  margin: 0;
}

.container-fluid {
  clear: both;
  /* Zapewnia, że element nie nachodzi na wcześniejsze elementy float */
  position: relative;
  /* Pozycja względem najbliższego pozycjonowanego przodka (zwykle rodzica) */
  width: 100%;
  /* Szerokość na całą dostępną przestrzeń */
}

.flag {
  width: 20px;
  height: auto;
  filter: grayscale(100%);
}

.flag:hover {
  cursor: pointer;
  filter: grayscale(0%);
}

.grayscale-100 {
  filter: grayscale(100%);

}

.grayscale-0 {
  filter: grayscale(0%);
}

#infoTab {
  position: fixed;
  bottom: -300px;
  left: 50%;
  z-index: 99;
  transition: bottom 0.5s ease;
  color: black;
}

.infoIcons {
  width: auto;
  height: 30px;
}

.menuUtilities {

  position: fixed;
  bottom: 0px;
  left: 50%;
  z-index: 100;
  opacity: 0.5;
}

.projectNameTab {
  display:none;
  position: fixed;
  top: 0px;
  right:70px;
  z-index: 100;
  opacity: 0.7;
  color: black;
  height: auto;
  
}

.color-square {
  width: 30px;
  height: 30px;
  transition: border 0.3s;
  display: inline-block;
  margin: 0 5px;
}

.color-square:hover {
  border: 2px solid rgba(0, 0, 0, 0.5);
}

.bg-eeeeee {
  background-color: #eeeeee;
}

.bg-cccccc {
  background-color: #cccccc;
}

.bg-9a9a9a {
  background-color: #9a9a9a;
}

#contextMenu {
  display: none;
  position: fixed;
  z-index: 2000;
}

#contextMenuWall {
  display: none;
}

#contextDeleteButton {
  display: none;
}

.field-label {
  line-height: 31px;
}

.custom-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  overflow-x: hidden;
  transition: 0.5s;
  background-color: #c5c5c5;
  color: white;
  padding-left: 0px;
  width: 20%;
  min-width: 420px;
  transition: width 0.3s ease-in-out;
  /* Dodane dla płynnego przejścia */

}

.menu-header {
  display: flex;
  justify-content: right;
  align-items: center;
  padding: 5px;
}

.menu-body {
  padding: 15px;
}


#centerCamera:hover {
  background-color: #0056b3;
}

#renderCanvas {
  width: 100vw;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
}

.menunachwile {
  position: fixed;
  top: 0;
  right: 0;
  padding: 20px;
  max-width: 450px;
}

.menunachwile {
  transition: left 0.5s ease;/
}

.hidden {
  left: -400px;
}

.fixed-button {
  position: relative;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.UIcontainer {
  padding: 10px;
  background: white;
}

#UIfurniture1 {
  display: flex;
  position: relative;
  flex-direction: column;
  padding: 5px;
}

#buttonsUIfurniture1 {
  display: flex;
  flex-direction: row;
  position: relative;
  top: 0px;
  /* left: 15px; */
  background: rgb(255, 255, 255);
  flex-wrap: wrap;
  z-index: 1001;
  align-items: baseline;
  padding-left: 10px;
}

#UIfurniture2 {
  display: flex;
  position: relative;
  flex-direction: column;
  padding: 5px;
}

#buttonsUIfurniture2 {
  display: flex;
  flex-direction: row;
  position: relative;
  top: 0px;
  /* left: 15px; */
  background: rgb(255, 255, 255);
  flex-wrap: wrap;
  z-index: 1001;
  align-items: baseline;
  padding-left: 10px;
}

#UIfurniture3 {
  display: flex;
  position: relative;
  flex-direction: column;
  padding: 5px;
}

#buttonsUIfurniture3 {
  display: flex;
  flex-direction: row;
  position: relative;
  top: 0px;
  /* left: 15px; */
  background: rgb(255, 255, 255);
  flex-wrap: wrap;
  z-index: 1001;
  align-items: baseline;
  padding-left: 10px;
}

.fullscreen-div {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, white, #f2f2f2, #e5e5e5, #cccccc);
}

.logo {
  width: auto;
  height: 30vh;
}

@keyframes spin1 {
  0% {
    transform: scale(0.3) rotate(0deg);
  }

  100% {
    transform: scale(0.3) rotate(360deg);
  }
}

.loading {
  position: absolute;
  animation: 0.75s linear 0s infinite normal none running spin1;
  transform-origin: 50% 50%;
  transform: scale(0.5);
}

.compactorLogo {
  z-index: 800;
  position: fixed;
  bottom: 10px;
  right: 10px;
  width: 60px;
  height: auto;
  opacity: 0.5;
}

.leroyLogo {
  z-index: 800;
  position: fixed;
  top: 10px;
  right: 10px;
  width: 60px;
  height: auto;
  opacity: 0.5;
}

.saveIcon {
  width: 12px;
  height: 12px;
  margin: 5px;
}

.backdrop {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, rgba(160, 160, 160, 0.8), rgba(122, 122, 122, 0.8), rgba(95, 95, 95, 0.8), rgba(78, 78, 78, 0.8));
  z-index: 2;
}

.mainMenu {
  position: relative;
  display: flex;
  flex-flow: column;
  gap: 10px;
  background: lightgray;
  padding: 20px;
  z-index: 3;
  border-radius: 10px;
  max-width: 400px;
  /* Usunięto pozycjonowanie z tej klasy, ponieważ będzie ono dodane poniżej */
}

#mainMenu,
#createNewProject {

  position: fixed;
  /* lub 'absolute', jeśli okno ma być względem określonego kontenera */
  top: 50%;
  left: 50%;
  opacity: 1;
  transform: translate(-50%, -50%) translateX(0%);
  /*  transform: translate(-50%, -50%) translateX(-100%); Pierwszy translate centruje element, drugi przesuwa go poza ekran */
  display: flex;
  /* Zmień na 'none', aby element nie zajmował miejsca kiedy jest ukryty */
}

#mainMenu.visible,
#createNewProject.visible {
 
  /* Centruje i przesuwa do środka */
  display: flex;
  /* Wyświetla element jako 'flex' */
}
#loadingDiv {
  display: flex;
  width: 80%;
  height: 90vh;
  margin: auto;
  padding: 20px;
  overflow-y: auto;
  background-color: #c5c5c5;
  border-radius: 10px;
  flex-direction: column;
}

.search-bar, .save-states, .action-buttons {
  margin-bottom: 20px;
}
.search-bar{
  margin:10px;
}
.save-states {
  flex-grow: 1; /* Rozciąga div, aby zajął dostępne miejsce */
  overflow-y: auto;
  max-height: 75%; /* Ustaw stałą wysokość */
  overflow-y: auto; /* Dodaj pasek przewijania jeśli jest potrzebny */
  margin-bottom: 20px;
}

.table {
  width: 100%;
}

.sort-button {
  margin-left: 5px;
  padding: 0;
  border: none;
  background: none;
}
#loadingButtons{
  margin-top: auto;
  bottom:10px;
}

.selected-row td{
  background-color: #cecdcd !important;/* Wybierz kolor tła dla zaznaczonego wiersza */
  border-bottom: 3px solid #000000 ;
  border-top:3px solid #000000 ;
}
th, td {
  border-bottom: 1px solid #ddd ;
}
tr:hover td {
  background-color: rgb(226, 226, 226) !important;
}

#saveStateTable .column-id {
  width: 11%;
}

#saveStateTable .column-name {
  width: 40%; /* Najszersza kolumna */
}

#saveStateTable .column-creation-date {
  width: 17%;
}

#saveStateTable .column-modification-date {
  width: 17%;
}
#saveStateTable .column-is-permanent {
  width: 17%;
}
.sort-icon {
  width: 20px;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s ease;
  padding-left: 5px;
  opacity: 0.5;
}

.sort-icon[data-order="asc"] {
  transform: scaleY(-1); /* Odwraca ikonę wertykalnie */
}
.sort-icon.active {
  opacity: 1;
}
.backButton{
  width:50px;
  height:auto;
}
.loadProjectButton{
  max-width:400px;
  min-width: 250px;
  height:auto;

}
#deleteSaveButton{
  height:100%;
  width:auto;
  padding-right: 10px;
  margin-right: 10px;
}

#loading_screen{

  display:none;
}

.furniture-form.form-select-sm {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: none; /* Ukrycie strzałki */
  padding-right: 0.1rem; /* Dopasowanie paddingu, aby tekst nie był ucinany */
}