

.title_block{
    background:#444444;
    border-left:1px solid #ffe505;
    border-top:1px solid #ffe505;
    border-right:1px solid #ffe505;
    font-size: 10px;
    font-weight:bold;
    font-family: "Roboto", sans-serif;
    color:#ffe505;
    padding:5px 0 0 5px;
    text-transform:uppercase;
}

#H{
    width: 100%;
    position: sticky;
    top:0;
    z-index: 1;
    text-align:left;
    background-color: #444444;
    padding:0.417rem 0.3rem 0.417rem 0.3rem;
    border-bottom: 1px solid #666666;
}

#H * {
    color: white;
}

#F{
    width: 100%;
    position: fixed;
    bottom:0;
    z-index: 1;
    text-align:left;
    background:#F0F0F0;
    padding:0.3rem;
    border-top: 1px solid #EEEEEE;
}

#P{
    width: 100%;
    min-height: 100vh;
    padding: 0 0 0 0;
    background:#F5F5F5;
}

#Content{
    width: 100%;
    overflow: auto;
    text-align: center;
}




/* Główna struktura strony z układem Flex */
.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-height: 100dvh;
}

/* Nagłówek */
header {
    font-family: 'Kanit', sans-serif;
    background-color: #333;
    color: white;
    padding: 0px;
    text-align: center;
}

header:empty {
    border: none;
}

/* Pasek nawigacji */
nav {
    background-color: #444;
    color: white;
    text-align: center;
}

nav:empty {
    border: none;
}

/* Górne i dolne pole wyszukiwania */
.search-bar-top {
    background-color: #F0F0F0;
    text-align: center;
    overflow: hidden;               /* Ukrycie zawartości podczas zwijania */
    transition: height 0.3s ease;   /* Animacja wysokości */
    height: 0;                      /* Startowo zwinięty */
}

.search-bar-top:empty {
    border: none;
}

.search-bar-bottom {
    background-color: #F0F0F0;
    text-align: center;
    overflow: hidden;               /* Ukrycie zawartości podczas zwijania */
    transition: height 0.3s ease;   /* Animacja wysokości */
    height: 0;                      /* Startowo zwinięty */
}

.search-bar-bottom:empty {
    border: none;
}

/* Treść strony z przewijaniem */
.content {
    flex: 1;
    overflow-y: auto;
    background-color: #f9f9f9;
    z-index: 1;
}

/* Stopka */
footer {
    background-color: #333;
    color: white;
    padding: 0px;
    text-align: center;
}

footer:empty {
    border: none;
}



/* Zwijanie search-bar */
.toggle-button {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background-color: #888888;
    width: 100%;
    height: 1em;
    border: none;
}

/* Ikona skierowana w dół */
.toggle-icon-down {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 0.5em solid transparent;
    border-right: 0.5em solid transparent;
    border-top: 0.5em solid #FFF;
}

/* Ikona skierowana w górę */
.toggle-icon-up {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 0.5em solid transparent;
    border-right: 0.5em solid transparent;
    border-bottom: 0.5em solid #FFF;
}



/* ikony paska navigacji */

.icon-button-back {
    min-width: 4rem;
    height: 2rem;
    padding: 0 2rem 0 2rem;
    border: none;
    border-radius: 0.5rem;
    background-color: transparent;
    background-image: url('icon/arrow_back_24.svg');
    background-size: 1.5rem 1.5rem;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.icon-button-back:hover {
    background-color: #888888;
}

.icon-button-menu {
    min-width: 4rem;
    height: 2rem;
    padding: 0 2rem 0 2rem;
    border: none;
    border-radius: 0.5rem;
    background-color: transparent;
    background-image: url('icon/menu_24.svg');
    background-size: 1.5rem 1.5rem;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.icon-button-menu:hover {
    background-color: #888888;
}


.icon-button-settings {
    min-width: 4rem;
    height: 2rem;
    padding: 0 2rem 0 2rem;
    border: none;
    border-radius: 0.5rem;
    background-color: transparent;
    background-image: url('icon/settings_24.svg');
    background-size: 1.5rem 1.5rem;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.icon-button-settings:hover {
    background-color: #888888;
}


.icon-user {
    height: 100%;
    aspect-ratio: 1 / 1;
    border: none;
    border-radius: 0.5em;
    background-color: transparent;
    background-image: url('icon/person_24.svg');
    background-size: auto 100%;;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.icon-warning {
    height: 100%;
    aspect-ratio: 1 / 1;
    border: none;
    border-radius: 0.5em;
    background-color: transparent;
    background-image: url('icon/warning_24.svg');
    background-size: auto 100%;;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.icon-warning-flash {
    filter: invert(17%) sepia(90%) saturate(7481%) hue-rotate(-2deg) brightness(106%) contrast(208%);
}


.icon-message {
    height: 100%;
    aspect-ratio: 1 / 1;
    border: none;
    border-radius: 0.5em;
    background-color: transparent;
    background-image: url('icon/message_24.svg');
    background-size: auto 100%;;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    transition: background-color 0.3s;
}


.RightMenu {
    position: fixed;
    right:-110%;
    top:0;
    z-index:90;
    width:40em;
    max-width: 100vw;
    background-color: rgba(255,255,255,0.96);
    height: 100%;
    padding: 1.5em;
   /* border-radius: 2em 0 0 2em;*/
    box-shadow: -0.5em 0 0.8em 0.5em rgba(0, 0, 0, 0.4), inset 0 0 1em rgba(0, 0, 0, 0.3);
    overflow: auto;
    transition: right 1s ease;
}

.RightMenu.ShowRightMenu {
    right: 0; /* Przesuwa menu na ekran */
}

.menu-section-title {
    font-size: 1em;
    color: #6c757d;
    text-transform: uppercase;
    margin: 1.2em 0 0.8em;
}

.menu-item {
    display: flex;
    width: 100%;
    align-items: center;
    padding: 0.6em;
    font-size: 1em;
    cursor: pointer;
    color: #333;
    transition: background-color 0.2s ease;
    border-radius: 0.3em;
    border: 0;
    background-color: transparent;
}

.menu-item:hover {
    background-color: #f1f3f5;
}

/* Styl aktywnego elementu */
.menu-item.active {
    background-color: #e9ecef;
    font-weight: 400;
    color: #000000;
}

.menu-item img {
    font-size: 1.2em;
    margin-right: 0.5em;
    color: #6c757d;
}

.menu-item svg {
    font-size: 1.5em;
    margin-right: 0.5em;
    color: #6c757d;
}

/* Trójkąt dla elementów z podmenu */
.menu-item .menu-triangle {
    display: inline-block;
    margin-right: 0.5em;
    width: 0;
    height: 0;
    border-top: 0.25em solid transparent;
    border-bottom: 0.25em solid transparent;
    border-left: 0.3em solid #333;
    transition: transform 0.3s ease;
}

/* Obrót trójkąta */
.menu-item.menu-expandable.menu-active .menu-triangle {
    transform: rotate(90deg);
}

/* Dodanie pustego miejsca przed elementami bez trójkąta */
.menu-item:not(.menu-expandable)::before {
    content: "";
    display: inline-block;
    width: 0.25em; /* Szerokość odpowiada szerokości trójkąta */
    height: 0.25em; /* Wysokość odpowiada wysokości trójkąta */
    margin-right: 0.5em; /* Taki sam margines jak dla trójkąta */
}

/* Styl podmenu */
.menu-submenu {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
    padding-left: 1.6em;
}


/* Klasa uniwersalna wyłączająca animacje */
.noAnimation {
    transition: none !important;   /* Wyłącza wszystkie animacje */
}

.margin-l {
    margin-left: 0.3em;
    width: calc(100% - 0.3em);
}

.margin-r {
    margin-right: 0.3em;
    width: calc(100% - 0.3em);
}

.margin-lr {
    margin-left: 0.3em;
    margin-right: 0.3em;
    width: calc(100% - 0.6em);
}

.margin-t {
    margin-top: 0.3em;
}

.margin-b {
    margin-bottom: 0.3em;
}

.margin-tb {
    margin-top: 0.3em;
    margin-bottom: 0.3em;
}

.margin-all {
    margin: 0.3em;
    width: calc(100% - 0.6em);
}

.margin-big-t {
    margin-top: 1em;
}

.margin-big-b {
    margin-bottom: 1em;
}

.padding-all {
    padding: 0.3em;
}


/* Stylizacja scroll bara dla Firefoxa */
* {
    scrollbar-width: thin;                     /* Zmniejszenie szerokości paska przewijania */
    scrollbar-color: #444 #888888;             /* Kolor uchwytu i ścieżki */
}