:root {
  --primary: #2c3e50;
  --primary-dark: #1a252f;
  --accent: #e67e22;
  --light: #f8f9fa;
  --gray: #6c757d;
  --dark: #212529;
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 12px 32px rgba(0,0,0,0.12);
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --ambient-color1: #cbb4d4;
  --ambient-color2: #3213FF84;
  --accent-color1: #27294f;
  --accent-color2: #333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
h1, h2, h3, h4, h5, h6, input, p, a, button, li, span, label, table, tr, td {
    font-family: "Outfit", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

body {
    height: 100vh;
    width: 100%;
    margin: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    transition-delay: 0.3s;
    font-family: system-ui, -apple-system, sans-serif;
    background: #f5f5f5;
    transition: 0.3s ease-in-out all;
    &.loaded {
        opacity: 1;
    }
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 
FONTY:
OUTFIT: 200;700 
*/

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/outfit/v15/QGYyz_MVcBeNP4NjuGObqx1XmO1I4bC1O4i0ExAo.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/outfit/v15/QGYyz_MVcBeNP4NjuGObqx1XmO1I4bC1O4a0Ew.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* @font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/outfit/v15/QGYyz_MVcBeNP4NjuGObqx1XmO1I4deyO4i0ExAo.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/outfit/v15/QGYyz_MVcBeNP4NjuGObqx1XmO1I4deyO4a0Ew.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
} */

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/outfit/v15/QGYyz_MVcBeNP4NjuGObqx1XmO1I4TC1O4i0ExAo.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/outfit/v15/QGYyz_MVcBeNP4NjuGObqx1XmO1I4TC1O4a0Ew.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* NOTYFIKACJE */
.supaNotify {
    position: fixed;
    top: -200px;
    left: 5%;
    width: 90%;
    z-index: 15;
    
    display: flex;
    padding: 25px 20px;
    justify-content: space-between;
    align-items: center;
    border-radius:0 0 15px 15px;
    transition: 0.3s ease-in-out all;
    &.active {
        top: 10px;
    }
    &.error {
        background-color: rgba(255, 0, 0, 0.511);
    }
    &.warning {
        background-color: rgba(255, 162, 0, 0.511);
    }
    & i {
        font-size: 120%;
        padding-top: 6px;
    }
    & .notifyTimer {
        position: absolute;
        background-color: black;
        height: 4px;
        left: 0;
        width:0;
        top: 0;
        &.active {
            animation: timerAnimation 3.4s ease-in-out;
        }

    }
}
@keyframes timerAnimation {
    0% {
        width: 100%;
    }
    90% {
        width: 0;
    }
    100% {
        width: 0;
    }
}

@media (min-width: 1400px) {
    .supaNotify {
        left: 30%;
        width: 40%;
        &.active {
            top: 20px;
        }
    }
}

/* PAGES */

.page {
    display: none;
    opacity: 0;
    flex-direction: column;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(20px); /* lekki slide od dołu */

}

.page.activePage {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.page.pagePrepared {
    /* opacity: 0.5; przygotowanie – opcjonalne */
}

.activeLink {
    background-color: var(--ambient-color2); /* Twój kolor sukcesu */
    font-weight: bold;
    pointer-events: none;
    a {
        color: #fff!important;
    }
}
#pageContainer {
    overflow: scroll;
    flex-basis: 90%;
    display: flex;
    flex-direction: column;
}

.paddingo {
    padding: 20px;
}

/* SCROLL */        
::-webkit-scrollbar {
    width: 3px;
}

::-webkit-scrollbar-track {
    border-radius: none;
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    border-radius: 0 8px 8px 0;
    background-color: var(--ambient-color2);
}


.panel_menu {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    overflow-y: auto;
    height: 100%;
    box-shadow: none;
    transition: all 0.3s ease-in-out;
}

.panel_menu.active {
    box-shadow: inset 0 0 3px 1px #333;
    padding-right: 42%;
    padding-bottom: 0;
}

.panel_menu li {
    list-style: none;
    border-radius: 5px;
    margin-bottom: 5px;
    *.activeLink {
        background-color: var(--ambient-color2);
    }
}

.panel_menu .links_titles {
    color: #333;
    padding: 8px 16px;
    padding-left: 0;
    font-size: 1.25rem;
    font-weight: 400;
    text-decoration: none;
}

.panel_menu a {
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 16px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 300;
    transition: all 0.3s;
}

.panel_menu a:hover {
    background-color: #3213ff84;
    color: white;
}

.panel_menu_links {
    overflow-y: auto;
    padding-bottom: 20px;
}

.panel_menu_links i::before {
    display: grid;
    place-self: center;
}

/* POPUP */

.translations-edit-popup {
    display: none;
    position: fixed;    
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 30;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    & form {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 5px;
        & .form-group {
            flex-basis: 30%;
        }
    }
}

#popupMe {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);     /* Safari */
    z-index: 9999;

    /* Wyśrodkowanie zawartości */
    align-items: center;
    justify-content: center;

    opacity: 0;
    transition: opacity 0.35s ease;
}

#popupMe.active {
    display: flex;           /* ! Ważne – flex zamiast block */
    opacity: 1;
}

/* ------------------- Okno popup ------------------- */
.popupMe_window {
    position: relative;
    width:  min(90vw, 520px);     /* responsywnie */
    max-height: 85vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 70px rgba(0,0,0,0.35);
    overflow: hidden;

    /* animacja wjazdu */
    transform: scale(0.92) translateY(30px);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

#popupMe.active .popupMe_window {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Przycisk zamykania */
.popupMe_action {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 10;
    cursor: pointer;
    font-size: 1.7rem;
    color: #777;
    transition: color 0.2s;
}

.popupMe_action:hover {
    color: #e74c3c;
}

/* Zawartość */
.popupMe_wrapper {
    padding: 2.2rem 2rem 1.8rem;
    overflow-y: auto;
    max-height: calc(85vh - 60px); /* zostawiamy miejsce na header/close */
}

/* Opcjonalnie – przyciemniacz klikalny do zamykania */
#popupMe.active::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;   /* za oknem */
}