html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background-color: #F8FAFC;
  color: black;

  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
}

#wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}

button {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
}

#header {
    background-color: #D9EAFD;
    color: #0c2093;
    padding-left: 1rem;
    text-align: center;
    display: flex;
    justify-content: center; /* Wycentrowanie h1 */
    align-items: center;
    position: relative;
    height: 60px;
}

#renderCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

#workbanch {
  display: flex;
  flex: 1;
  overflow: hidden
}

canvas {
  outline: none;
  user-select: none;
}

#leftToolbar {
  flex: 1;
  background-color: #F8FAFC;
  color: black;
  padding: 1rem;
  overflow-y: auto;
}

#packlist {
  background-color: #dededeb8;
  color: black;
  padding: 0.5rem;
  box-sizing: border-box;
}

.packlistItem {
  background-color: #D9EAFD;
  color: black;
  padding: 1rem;
  border: none;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

#visualisation {
  flex: 4;
  background-color: #F8FAFC;
  position: relative;
  display: flex;
  flex-direction: column;

}

#footer {
  background-color: #F8FAFC;
  color: black;
  height: 3rem;
}

.toolButton {
  background-color: #D9EAFD;
  color: black;
  border: none;
}

.toolButton:disabled {
  background-color: #BCCCDC;
  color: black;
  border: none;
}

.toolSpacerTop {
  margin-top: 1rem;
}

.flexOne {
  flex: 1;
}


.toolRow {
  border: none;
  background-color: #D9EAFD;
  color: black;
  padding: 1rem;
  width: 100%;
}


.toolButton:hover {
  background-color: #BCCCDC;
}

.toolInput {

  flex: 1;
  background-color: #D9EAFD;
  color: black;
  border: none;
  padding: 1rem;
  width: 100%;
  outline: none;
  user-select: none;
}

.flexContainer {
  display: flex;
  height: 100%;
}

#contextMenu {
  display: none; 
  position: absolute;  
  border: 1px solid #2b2b2b; 
  z-index: 1000;
  background-color: #D9EAFD;
}

.contextButton:hover {
  background-color: #BCCCDC;
}

.contextButton {
  padding: 8px; 
  cursor: pointer;
}

#notification-container {
  position: fixed;
  bottom: 4rem;
  right: 20px;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  z-index: 1000;
}

.notification {
  background-color: rgba(5, 142, 255, 0.8);
  color: black;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  animation: fadeInOut 4s ease forwards;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(20px); }
  10% { opacity: 1; transform: translateY(0); }
  90% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(20px); }
}

#footerInfo{
  flex: 1;
  margin: 1rem;
}

#saveToFile {
}

#loadFromFile {
  margin-left: 1rem;
}

.footerButton {
  background-color: #D9EAFD;
  color: black;
  border: none;
  margin: 0.5rem;
  width: 5rem;
}
.footerButton:hover {
  background-color: #BCCCDC;
}

.toolSelect{
  outline: none;
  user-select: none;
  border: none;
  background-color: #D9EAFD;
  color: black;
  padding: 1rem;
}

.popup {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5); /* Ciemne tło */
}

.popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #FFFFFF;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.cancelButton {
  margin-right: 0.5rem;
  margin-top: 1rem;
  background-color: #ffa0a0;
  color: black;
  border: none;
}

.packagesLabel
{
  
  background-color: #D9EAFD;
  padding: 1rem;
}

.cancelButton:hover {
  background-color: rgb(211, 67, 67);
}

.acceptButton {
  margin-left: 0.5rem;
  margin-top: 1rem;
  background-color: #D9EAFD;
  color: black;
  border: none;
}

.acceptButton:hover {
  background-color: #BCCCDC;
}

.toolBackground {
  background-color: #D9EAFD;
  color: black;
  border: none;
}

.packlistItemAdd {
    background-color: rgb(50,205,50);
    color: black;
    border: none;
    padding: 0.5rem;
    margin-left: 0.5rem;
}

.packlistItemDelete {
    background-color: rgb(211, 67, 67);
    color: black;
    border: none;
    padding: 0.5rem;
    margin-left: 0.5rem;
}

.packlistItemDeleteAll {
    background-color: rgb(211, 67, 67);
    color: black;
    border: none;
    padding: 0.5rem;
    margin-left: 0.5rem;
}


#language-select {
    position: absolute;
    right: 20px; /* odstęp od prawej krawędzi */
    padding: 5px;
}