:root {
    --jrs-blue: rgb(38, 82, 140);
    --jrs-orange: #D97014;
}
/* Edited by: kryst 11.06.25
    Nav-container usunięty - duplikował jrs-navbar 
.nav-container {
    /* Następne dwie linie edited by: kryst 11.06.25 
    max-width: 1196px !important;
    max-width: fit-content;
    margin-right: 5%;
    width: 100%;
    display: flex;
    height: 80px;
    align-items: center;
    justify-content: space-between;
    color: var(--jrs-blue);
    
}
*/

.jrs-navbar {
    background-color: white;
    height: 80px;
    width: 100%;
    border-bottom: 1px solid rgba(38, 82, 140, 0.2);
    color: var(--jrs-blue);
    display: flex;
    justify-content: center;
    /* position: fixed; */
    margin-bottom: 30px !important;
}

/* Edited by: kryst 11.06.25
    Zmiana wyświetlania logo i cały nav-right
.jrs-logo {
    padding: 10px;
    height: 80px !important;
    width: 270px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}*/
.jrs-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 80px;
    width: auto;
    padding: 0;
    margin-right: 5%; /* odstęp od reszty */
    margin-left: 20px;
    padding-left: 10px;
}
.nav-right {
    display: flex;
    align-items: center;
    height: 80px;
    gap: 32px;
}
.nav-right > * {
    text-align: center;
    white-space: nowrap;
}
nav img {
    display: flex;
    justify-content: space-between;
}

.navbar-login {
    margin-right: 20px;
    height: 100%;
    width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-menu {
    color: orange;
    font-size: 30px;
    display: flex;
    justify-content: flex-end;
    padding: 10px;
}

.menu-button {
    border-style: solid;
    border-color: orange;
}

/* Edited by: kryst 11.06.25
    Niepotrzebne – usunąłem 
.jrs-admin-nav-menu {
    width: 70%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.jrs-employee-nav-menu {
    width: 40%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
*/
.second-nav-item {
    color: var(--jrs-blue);
    font-weight: 600;
}

a.second-nav-item:hover {
    text-decoration: none;
}

.logout-btn {
    color: var(--jrs-orange) !important;
}
/* Edited by: kryst 11.06.25 zmiany estetyczne
.jrs-refugee-nav-menu {
    width: 60%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
}*/
    
.jrs-refugee-nav-menu {
  
  width: 70%;
  max-width: 820px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  padding-right: 20px;
}
/* Edited by: kryst 11.06.25 zmiany estetyczne aż do @media
.lang-select {
    width: 150px;
    padding: 5px;
}
*/

.lang-select {
  width: 170px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background-color: #fff;
  font-size: 1em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s;
}

.lang-select:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}


@media (max-width: 560px) {
    .lang-select {
        width: 80px;
        text-align: center;
    }

    .jrs-refugee-nav-menu {
        gap: 1%;
        margin-left: 0;
        padding-left: 0;
    }
}

@media (max-width: 300px) {
    .lang-select {
        width: 55px;
        text-align: center;
    }

    .jrs-refugee-nav-menu {
        gap: 0;
    }
}

.burger-menu {
    display: none;
    color: var(--jrs-blue);
}

.mobile-menu-overlay {
    background-color: white;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: none; 
    overflow: hidden; 
}

.mobile-menu-overlay.hidden {
    display: none;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
    font-size: large;
    max-height: calc(100vh - 100px); 
    overflow-y: auto; 
    padding-right: 10px; 
    padding-bottom: 80px;
}

.mobile-menu-content::-webkit-scrollbar {
    width: 8px; 
}

.mobile-menu-content::-webkit-scrollbar-thumb {
    background-color: var(--jrs-blue);
    border-radius: 4px; 
}

.mobile-menu-item {
    color: var(--jrs-blue);
    font-weight: 600;

}

.mobile-menu-header {
    max-width: 1100px;
    background-color: white;
    top: 0;
    height: 80px;
    width: 100%;
    border-bottom: 1px solid rgba(38, 82, 140, 0.2);
    color: var(--jrs-blue);
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.close-menu {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--jrs-blue);
    position: absolute;
    top: 20px;
    right: 20px;
}

@media (max-width: 1196px) {
    .burger-menu {
        display: block;
        margin: 20px;
    }

    .burger-menu i {
        font-size: 32px;
    }

    /* Edited by: kryst 11.06.25
       Ukrycie menu dla admina i pracownika w wersji mobilnej
    .jrs-admin-nav-menu {
        display: none;
    }

    .jrs-employee-nav-menu {
        display: none;
    }
    */
    .nav-right {
        display: none;
    }


    .mobile-menu-overlay {
        display: none;
        position: fixed;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .mobile-menu-overlay.visible {
        display: block;
    }
}
@media (max-width: 600px) {
    .mobile-menu-content {
        gap: 20px; 
    }

    .jrs-logo img {
        width: 150px;
        height: auto;
    }

    .jrs-logo {
        width: 170px;
        padding: 10px;
    }
}
@media (max-width: 400px) {
    .mobile-menu-content {
        gap: 20px; 
    }

    .jrs-logo img {
        width: 120px;
        height: auto;
    }

    .jrs-logo {
        width: 140px;
        padding: 10px;
    }
}

@media (max-width: 230px) {
    .jrs-logo img {
        width: 96px;
        height: auto;
    }

    .jrs-logo {
        width: 102px;
        padding: 10px 3px;
    }
}
    
/* Edited by: kryst 11.06.25
    Napis pod przyciskiem logout informujący o zalogowanym użytkowniku */
.logout-and-user {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 5px;
}

.logged-user-info {
  font-size: 0.8rem;
  color: #444444e0;
}

/*Edited by kryst 02.07.25
Wybór języka z flagami */
/* Kontener dropdowna */
.language-select {
  position: relative;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 24px;
  padding: 8px 18px 8px 12px;
  width: 175px;
  box-shadow: 0 2px 8px rgba(38,82,140,0.07);
  cursor: pointer;
  transition: border 0.2s;
  align-items: center !important;
  justify-content: space-evenly;
}

.language-select:hover, .language-select:focus-within {
  border: 1.5px solid var(--jrs-blue);
}

/* Wybrany język */
.language-select #selected-flag {
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.07);
}

.language-select #selected-lang {
  font-weight: 500;
  color: #263b5e;
  margin-right: 6px;
  flex: 0 0 auto;
}

.language-select .fas.fa-caret-down {
  color: #888;
  font-size: 18px;
  margin-left: auto;
}

/* Lista opcji */
#language-options {
  position: absolute;
  top: 110%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(38,82,140,0.10);
  z-index: 100;
  padding: 6px 0;
  max-height: 280px;
  overflow-y: auto;
  min-width: 175px;
  width: 175px;
  display: block;
}

#language-options .option-item {
  padding: 8px 18px 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  transition: background 0.15s;
}

#language-options .option-item:hover {
  background: #f5f7fa;
  color: var(--jrs-blue);
}

/* Ukryj scrollbar dla estetyki */
#language-options::-webkit-scrollbar {
  width: 6px;
  background: #f0f0f0;
}
#language-options::-webkit-scrollbar-thumb {
  background: #e0e0e0;
  border-radius: 3px;
}

.language-select,
#language-options {
  min-width: 120px;
  width: 175px;
}

@media (max-width: 600px) {
  .language-select {
    min-width: 90px;
    width: 120px;
    padding: 7px 6px 7px 6px;
  }
  #language-options {
    min-width: 15px;
    width: 150px;
    padding: 4px 6px 4px 6px;
  }
  .language-select #selected-lang {
    font-size: 13px;
    margin-right: 2px;
  }
  #language-options .option-item {
    font-size: 13px;
    padding: 6px 8px 6px 8px;
  }
  .language-select .fas.fa-caret-down {
    display: none;
  }
}

.select-hide {
  display: none !important;
}
