@-webkit-keyframes heartbeat {
from {
-webkit-transform: scale(1);
        transform: scale(1);
-webkit-transform-origin: center center;
        transform-origin: center center;
-webkit-animation-timing-function: ease-out;
        animation-timing-function: ease-out;
}
10% {
-webkit-transform: scale(0.98);
        transform: scale(0.98);
-webkit-animation-timing-function: ease-in;
        animation-timing-function: ease-in;
}
17% {
-webkit-transform: scale(0.99);
        transform: scale(0.99);
-webkit-animation-timing-function: ease-out;
        animation-timing-function: ease-out;
}
33% {
-webkit-transform: scale(0.98);
        transform: scale(0.98);
-webkit-animation-timing-function: ease-in;
        animation-timing-function: ease-in;
}
45% {
-webkit-transform: scale(1);
        transform: scale(1);
-webkit-animation-timing-function: ease-out;
        animation-timing-function: ease-out;
}
}
@keyframes heartbeat {
from {
-webkit-transform: scale(1);
        transform: scale(1);
-webkit-transform-origin: center center;
        transform-origin: center center;
-webkit-animation-timing-function: ease-out;
        animation-timing-function: ease-out;
}
10% {
-webkit-transform: scale(0.98);
        transform: scale(0.98);
-webkit-animation-timing-function: ease-in;
        animation-timing-function: ease-in;
}
17% {
-webkit-transform: scale(0.99);
        transform: scale(0.99);
-webkit-animation-timing-function: ease-out;
        animation-timing-function: ease-out;
}
33% {
-webkit-transform: scale(0.98);
        transform: scale(0.98);
-webkit-animation-timing-function: ease-in;
        animation-timing-function: ease-in;
}
45% {
-webkit-transform: scale(1);
        transform: scale(1);
-webkit-animation-timing-function: ease-out;
        animation-timing-function: ease-out;
}
}
/* html Selectors */
body, html {margin: 0;
padding: 0;
background-color: #a6bdb7;
overflow-y: visible;
text-align: left;
font-size: 0.95rem;
font-family: "Barlow Condensed", sans-serif;
font-optical-sizing: auto;
font-weight: 400;
font-style: normal;
}
a:link, a:visited, a:hover {
text-decoration: none;
color: inherit;
}
input {
background-color: #f8fafa;
height: 2.6rem;
font-size: 1.10rem;
font-family: "Barlow Condensed", sans-serif;
font-weight: 400;
font-style: normal;
text-align: center;
color: #182e3c;
margin: 0 auto;
border: 1px solid #cbd5e0;
border-radius: 0.4rem;
box-sizing: border-box;
line-height: normal;
padding: 0 0.5rem;
box-shadow: none !important;
transition: all 0.2s ease;
width: 100%;
}
input:not([type="checkbox"]):not([type="radio"]) {
-webkit-appearance: none;
appearance: none;
}
input:not([type="checkbox"]):not([type="radio"]):focus, select:focus, textarea:focus {
    background-color: #fff;
    border-color: #5c756f;
    outline: none;
    box-shadow: 0 0 0 3px rgba(92, 117, 111, 0.15) !important;
}
textarea {
    background-color: #f8fafa;
    font-size: 1.10rem;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 400;
    color: #182e3c;
    border: 1px solid #cbd5e0;
    border-radius: 0.4rem;
    box-sizing: border-box;
    padding: 0.5rem;
    box-shadow: none !important;
    transition: all 0.2s ease;
    width: 100%;
    resize: vertical;
}

input[type="date"], input[type="time"], input[type="datetime-local"] {
display: block;
min-width: 0;
position: relative;
padding-right: 2.5rem;
background-repeat: no-repeat;
background-position: right 0.75rem center;
background-size: 1.5rem;
}
input[type="checkbox"] {
width: 2rem;
}

/* Fix: Wymuszenie wyświetlania ikon kalendarza i zegara na mobilnych przeglądarkach (Android) */
input[type="date"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23174f71'%3E%3Cpath d='M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zM9 14H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2zm-8 4H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2z'/%3E%3C/svg%3E");
}

input[type="time"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23174f71'%3E%3Cpath d='M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z'/%3E%3C/svg%3E");
}

/* Reset wskaźnika systemowego - robimy go przezroczystym i rozciągamy nad ikoną */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    display: block !important;
    opacity: 0 !important;
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;
    width: 2.5rem;
    height: 100%;
    background: transparent;
}

button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.7rem 1.4rem;
    border-radius: 0.4rem;
    border: 1px solid transparent;
    font-family: "Oswald", sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    height: auto;
    width: auto;
    overflow: visible;
    line-height: 1.5;
}
button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}
button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.buttonGreen {
    background-color: #5c756f;
    border-color: #5c756f;
    color: #fff;
}
.buttonGreen:hover {
    background-color: #4a615b;
    border-color: #4a615b;
}
.buttonRed {
    background-color: #c0392b;
    border-color: #c0392b;
    color: #fff;
}
.buttonRed:hover {
    background-color: #a53427;
    border-color: #a53427;
}
.buttonOutline {
    background-color: #ffffff;
    color: #7f8c8d;
    border: 1px solid #cbd5e0;
}
.buttonOutline:hover {
    background-color: #f1f1f1;
    color: #5c756f;
    border-color: #b0c4c1;
}
button.button-icon-only {
    padding: 0.7rem;
    gap: 0;
}
button.button-icon-only .btnIco {
    margin: 0;
}
button .btnIco {
    font-size: 1.3rem;
    line-height: 1;
    margin-right: 0;
}
button .btnName {
    font-family: "Oswald", sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.buttonGreen .btnIco, .buttonGreen .btnName,
.buttonRed .btnIco, .buttonRed .btnName {
    color: #fff !important;
}
.buttonOutline .btnIco, .buttonOutline .btnName {
    color: #7f8c8d !important;
}
.buttonOutline:hover .btnIco, .buttonOutline:hover .btnName {
    color: #5c756f !important;
}
.langDIV button {
background-color: transparent;
border: 0;
}
.custom-select {
position: relative;
width: 100%;
}
.custom-select select {
background-color: #f8fafa;
color: #182e3c;
width: 100%;
height: 2.6rem;
border-radius: 0.4rem;
border: 1px solid #cbd5e0;
font-size: 1.10rem;
font-family: "Barlow Condensed", sans-serif;
text-align: center;
cursor: pointer;
position: relative;
box-shadow: none !important;
transition: all 0.2s ease;
padding: 0 0.5rem;
box-sizing: border-box;
}
.custom-select select option {
background-color: #edf2f4;
color: #182e3c;
font-size: 1.25rem;
}
/* Shadow styles */
.boxShadowInside {
box-shadow: rgba(50, 50, 93, 0.25) 0 1.875rem 3.75rem -0.75rem inset, rgba(0, 0, 0, 0.3) 0 1.125rem 2.25rem inset;
}
.boxShadow {
box-shadow: rgba(0, 0, 0, 0.09) 0 0.125rem 0.063rem, rgba(0, 0, 0, 0.09) 0 0.5rem 0.25rem, rgba(0, 0, 0, 0.09) 0 1rem 0.5rem, rgba(0, 0, 0, 0.09) 0 2rem 1rem;
}
.boxShadow01 {
box-shadow: rgba(50, 50, 93, 0.25) 0 0.375rem 0.75rem -0.125rem, rgba(0, 0, 0, 0.3) 0 0.188rem 0.438rem -0.188rem;
}
/* .class Selectors */
.inlineBlock { display: inline-block; }
.block {display: block;}
.flex { display: flex; }
.grid { display: grid; }
.fitMinContent {width: min-content;}
.paddingLeft03rem { padding-left: 0.30rem; }
.paddingLeft1rem { padding-left: 1.00rem; }
.paddingLeft130rem { padding-left: 1.30rem; }
.paddingLeft2rem { padding-left: 2.00rem; }
.paddingLeft3rem { padding-left: 3.00rem; }
.paddingLeft4rem { padding-left: 4.00rem; }
.paddingLeft5rem { padding-left: 5.00rem; }
.paddingRight1rem { padding-right: 1.00rem; }
.paddingRight130rem { padding-right: 1.30rem; }
.paddingRight2rem { padding-right: 2.00rem; }
.paddingRight3rem { padding-right: 3.00rem; }
.paddingRight4rem { padding-right: 4.00rem; }
.paddingRight5rem { padding-right: 5.00rem; }
.paddingBottom1rem { padding-bottom: 1.00rem; }
.paddingBottom2rem { padding-bottom: 2.00rem; }
.paddingBottom3rem { padding-bottom: 3.00rem; }
.marginTop1rem { margin-top: 1.00rem; }
.marginTop2rem { margin-top: 2.00rem; }
.marginTop3rem { margin-top: 3.00rem; }
.marginBottom1rem { margin-bottom: 1.00rem; }
.marginBottom2rem { margin-bottom: 2.00rem; }
.marginBottom3rem { margin-bottom: 3.00rem; }
.relative { position: relative; }
.width100 { width: 100%; }
.minContentWidth {width: min-content;}
.fitContentWidth { width: fit-content; }
.alignLeft { text-align: left; }
.alignRight { text-align: right; }
.alignCenter { text-align: center; }
.center { margin: 0 auto 0 auto; left: 0; right: 0; }
.fontBold500 { font-weight: 500; }
.colorFFF {color: #fff !important;}
.colorFFCFAE {color: #ffcfae !important;}
.displHidd {display: none; visibility: hidden;}

.langDIV {
margin: 5.15rem auto 5.15rem auto;
padding: 0;
}
.langNav, .menuNav, .inlineList {list-style-type: none;margin: 0;padding: 0;}
.langNav, .menuNav {
text-align: center;
}
.inlineList {
text-align: left;    
}
.langNav li, .menuNav li, .inlineList li {
display: inline-grid;
margin: 0;
padding: 0;
}
.langICO {
height: 2.9rem;
}

/* Global User Select */
button, a.btn, .btnName, .user-card-viz, .dayInfoLink, .leave-summary-link, .checkbox-card, .icon-option, .actionBtn, .calendar-control-prev, .calendar-control-next, .titleIcon, .titleName {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Notification System */
.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(35, 59, 45, 0.65);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s linear;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.notification-overlay.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}
.notification-modal {
    background: #e8f1f2;
    padding: 0;
    border-radius: 0.7rem;
    text-align: center;
    width: 100%;
    max-width: 25rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    transform: scale(0.95) translateY(10px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.notification-overlay.active .notification-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}
.notification-header {
    background-color: #e8f1f2;
    color: #233b2d;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #dce4e6;
}
.notification-title {
    margin: 0;
    font-family: "Jost", sans-serif;
    font-size: 1.2rem;
    text-transform: none;
    font-weight: 500;
    text-align: center;
}
.notification-body {
    padding: 1.5rem;
}
.notification-message {
    color: #333;
    font-family: "Noto Sans", sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    margin-top: 0;
    text-align: center;
}
.notification-message .project-name {
    font-family: "Jost", sans-serif;
    font-weight: 600;
    color: #233b2d;
    display: block;
    margin: 0.5rem 0;
    font-size: 1.2rem;
}
.notification-message .time-info {
    font-family: "Source Code Pro", monospace;
    font-size: 1.1rem;
    color: #5c756f;
    display: block;
}
.notification-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.notification-buttons button {
    flex: 1;
    height: 2.8rem !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.4rem;
    border: none;
    text-transform: uppercase;
    font-family: "Noto Sans", sans-serif;
    font-weight: 600;
    font-size: 1rem !important;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}
.notification-buttons button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.15) !important;
}
.notification-btn-confirm, .notification-btn-ok {
    background-color: #5c756f;
    color: white;
}
.notification-btn-confirm:hover, .notification-btn-ok:hover {
    background-color: #4a615b;
}
.notification-btn-cancel {
    background-color: #ffffff;
    color: #7f8c8d;
    border: 1px solid #cbd5e0;
}
.notification-btn-cancel:hover {
    background-color: #f1f1f1;
    border-color: #b0c4c1;
}
@media screen and (max-width: 480px) {
    .notification-overlay {
        align-items: flex-start;
        background-color: rgba(35, 59, 45, 0.65);
        padding: 0;
    }
    .notification-modal {
        max-width: 100%;
        width: 100%;
        border-radius: 0 0 0.7rem 0.7rem;
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        opacity: 1;
    }
    .notification-overlay.active .notification-modal {
        transform: translateY(0);
    }
    .notification-body {
        padding: 1.25rem 1rem;
    }
}

/* Dash Header (Shared by Users and Projects) */
.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: -1.5rem -1.5rem 1rem -1.5rem;
    padding: 1.5rem 0 1.5rem 1.5rem;
}
.dash-header button {
    margin: -1.00rem 0.50rem auto auto !important;
    position: relative !important;
    text-wrap: nowrap !important;
}
.dash-header .btnName {
    width: 100%;
    text-align: center;
}
button.boxShadow:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15) !important;
}

/* Responsywne skalowanie dla małych ekranów */
@media only screen and (max-width: 430px) {
    html {
        /* Skaluje interfejs tak, aby szerokość 21.25rem zawsze wypełniała 100% szerokości ekranu */
        font-size: calc(100vw / 28.00);
    }
}

/* === Preloader & Transitions === */
#page-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #a6bdb7;
    z-index: 99999; /* Zawsze na wierzchu */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#page-preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    display: none;
}

#page-preloader::before {
    content: "";
    display: block;
    width: 12rem;
    height: 12rem;
    background-image: url('../images/logo.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    margin-bottom: 2rem;
}

#page-preloader::after {
    content: "";
    display: block;
    width: 3.5rem;
    height: 3.5rem;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #5c756f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* === Right Panel (Slide-out) Global Styles === */
#containerRight {
    position: fixed;
    z-index: 200;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background-color: #e8f1f2;
    color: #182e3c;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: right 0.65s ease-in-out;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
}

#containerRight.active {
    right: 0;
}

#containerRight.autoWidth {
    width: auto;
    min-width: 18rem;
    max-width: 90%;
    border-left: 1px solid #cbd5e0;
}

#contentArea {
    flex: 1;
    overflow-y: auto;
    width: 100%;
    position: relative;
}

#closeContainerRight {
    position: absolute;
    top: 0.875rem;
    right: 1.5rem;
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: #ffffff;
    z-index: 32;
    padding: 0;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 4.25rem;
    font-weight: 600;
}

#closeContainerRight:hover {
    color: #ffcfae;
}

/* Ustawienia dla urządzeń o szerokości powyżej 500px */
@media screen and (min-width: 501px) {
    #containerRight {
        max-width: 30.50rem;
    }
}
