:root{
    --base-color:#1C4179;
    --secondary-color: #1989ca;
    --white:#fff;
    --black:#343434;
    --red:#c3120e;

    
    /* Fonts */
    --base-font-size:0.9rem;
    --base-font-h1:1.4rem;
    --base-font-h2:1.3rem;
    --base-font-h3:1.4rem;
    --base-font-h4:1.1rem;

}
/* base */
body{
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-size: var(--base-font-size);
}
a{
    color: var(--base-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;

}
a:hover{
    color: var(--secondary-color);
}
h1{
    font-size: var(--base-font-h1);
}
h4{
    font-size: var(--base-font-h4);
}
.form-label {
  margin-bottom: -0.5rem;
  color: var(--base-color);
  margin-left: 7px;
  font-weight: 500;
}
.alert-success{
    background-color:var(--secondary-color);
    color: var(--white);
    border-radius: 0 0 14px 14px;
    border: 0px;
}
.alert-success a{
    color: var(--black);
    font-weight: 500;
}
.hidden{
    display: none;
}
.autoheight{
    height: auto!important;
}
.btn-close{
    color: var(--white);
}
main > .container {
    padding: 70px 15px 20px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}
.simplefooter{
    position: absolute;
  bottom: 0;
  width: 100%;
  padding: 14px;
}
.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}
footer a{
    text-decoration: none;
    color: var(--base-color);
}
.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: var(--red);
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}
/* mainadmin */
#menuadmin ul{
    list-style: none;
    margin: 0;
    padding: 0;
}

    #menuadmin .menu-text {
        display: none;
        padding-right: 10px;
    }

    /* Po rozwinięciu tekst widoczny */
    #menuadmin.expanded .menu-text {
        display: inline;
    }

#menuadmin{
background-color: var(--secondary-color);
  color: var(--white);
   border-radius: 0px 39px 26px 0pc;
  padding: 19px;
  box-shadow: 6px 10px 26px rgba(0, 0, 0, 0.2);
  padding-bottom: 60px;
  position: relative;

}

.boxleftside img{
width: 20px;
}
.boxleftside button {
  border-radius: 100px;
  padding: 6px 6px 9px 9px;
  margin: 0px;
    margin-left: 0px;
  background-color: var(--white);
  margin-left: 10px;
    transition: all 0.3s ease;
}
.boxleftside button:hover {
  background-color: var(--base-color);

}
.boxleftside button:hover img {
  filter: invert(99%) sepia(1%) saturate(1%) hue-rotate(304deg) brightness(108%) contrast(100%);
}
#menuadmin::after{
content: "";
  width: 30px;
  height: 30px;
  background: var(--secondary-color);
  position: absolute;
  top: -30px;
  left: 0;
  mask-composite: exclude;
  mask-image: radial-gradient(circle at 100% 0, transparent 30px, black 30px);
}
#menuadmin::before{
content: "";
  width: 30px;
  height: 30px;
  background: var(--secondary-color);
  position: absolute;
  bottom: -30px;
  left: 0;
  mask-image: radial-gradient(circle at 100% 100%, transparent 30px, black 31px);
  mask-composite: exclude;
}
#toggleMenu {
background-color: var(--white);
  padding: 4px 7px;
  border-radius: 26px;

}
.card-header{
    background-color: var(--base-color);
    color: var(--white);
}
.boxleftside{
    display: flex;
align-items: center;

}

#toggleMenu span{
color: var(--base-color);
  letter-spacing: -2px;
}
#menuadmin ul li:last-child {
position: absolute;
  bottom: 10px;
  right: 8px;
  margin-bottom: 0;
  padding: 0;
}
.btn-add{
border: 1px solid var(--base-color);
  color: var(--base-color);
  padding-left: 39px;
  position: relative;
  border-radius: 20px;
  transition: all 0.3s ease;
  background-color: var(--white);
}
.btn-add::after {
content: " ";
  position: absolute;
  left: 5px;
  top: 4px;
  border: 1px solid var(--base-color);
  border-radius: 100px;
  padding: 2px 8px 1px 8px;
  background-color: var(--base-color);
  color: var(--white);
  transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
  width: 28px;
  height: 27px;
}
.btn-add::before {
  content: "+";
  position: absolute;
  left: 10px;
  top: -4px;
  font-size: 29px;
  z-index: 1;
  color: var(--white);
 transition: all 2s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-weight: 200;
}
.btn-add:hover::after {
  transform: rotate(90deg);
  background-color: var(--white);
}
.btn-add:hover::before {
transform: rotate(180deg);
color: var(--base-color);

}
.btn-add:hover{
  background: var(--base-color);
  color: var(--white);
}




.summary {
  margin-bottom: 10px;
}

#menuadmin li{
    background: var(--white);
    border-radius: 100px;
    padding: 5px;
    margin-bottom: 8px;
}
#menuadmin a{
    color: var(--base-color);
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 11px;
}
#menuadmin a:hover span{
opacity: 0.5;
}
.tabelimg:hover{
    background: var(--base-color);
}
.tabelimg{
padding: 5px;
  border: 1px solid var(--base-color);
  border-radius: 31px;
  margin: 1px;
  transition: all 0.3s ease;
  display: inline-block;
}

.tabelimg:hover img{
filter: invert(99%) sepia(81%) saturate(2%) hue-rotate(192deg) brightness(116%) contrast(100%);
}
.tabelimg img{
        width: 22px;
    height: 22px;
    transition: all 0.3s ease;
    filter: invert(19%) sepia(31%) saturate(3139%) hue-rotate(195deg) brightness(95%) contrast(89%);
    
}
#menuadmin a span{
     transition: all 0.3s ease;
}
.innerBox{
    padding-bottom: 100px;
}
#menuadmin img{
    margin: 5px;
    filter: invert(19%) sepia(31%) saturate(3139%) hue-rotate(195deg) brightness(95%) contrast(89%);
    width: 20px;
    transition: all 2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#menuadmin a:hover img {
    transform: rotate(360deg);
}
#mainadmin .topBox{
      padding: 30px 125px;
    display: flex;
    width: 100%;
     justify-content: space-between;
  align-items: center;
}
.admincontent{
    display: flex;
    padding-right: 60px;
    gap: 30px;
     align-items: flex-start;

}
.bottomBox {
  position: absolute;
  background: var(--base-color);
  width: 100%;
  left: 0;
  bottom: -16px;
  padding: 21px 61px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bottomBox-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bottomBox button,
.bottomBox .btn-log {
    background-color: var(--white);
position: relative;
  border-radius: 100px;
  padding: 7px 20px 8px 40px;
   border: 1px solid var(--base-color);
}
.bottomBox button::after,
.bottomBox .btn-log::after {
content: '';
  position: absolute;
left: 5px;
  top: 4px;
  width: 28px;
  height: 28px;
  border: 1px solid var(--base-color);
  border-radius: 100px;
  padding: 2px 8px 1px 8px;
  background-color: var(--base-color);
  color: var(--white);
  transition: all 2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.bottomBox button::before,
.bottomBox .btn-log::before {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  content: '';
  position: absolute;
left: 9px;
  top: 8px;
  width: 20px;
  height: 20px;
  z-index: 1;
  filter: invert(99%) sepia(81%) saturate(2%) hue-rotate(192deg) brightness(116%) contrast(100%);
    transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-save::before{
background-image: url('../img/icon/save.svg');
}
.btn-download::before{
background-image: url('../img/icon/download.svg');
}
.btn-merge::before{
background-image: url('../img/icon/merge.svg');
}
.btn-log::before{
background-image: url('../img/icon/log.svg');
}
.bottomBox button:hover::after,
.bottomBox .btn-log:hover::after {
  background-color: var(--white);
  color: var(--base-color);
}
.bottomBox button:hover::before,
.bottomBox .btn-log:hover::before {
  transform: rotate(360deg);
  filter: invert(19%) sepia(15%) saturate(6562%) hue-rotate(197deg) brightness(95%) contrast(89%);
}
.bottomBox button:hover,
.bottomBox .btn-log:hover {
  background: var(--base-color);
  color: var(--white);
  border: 1px solid var(--white);
}
.admincontent .BoxContainer{
padding: 60px;

}

.bottomBox {
  position: absolute;
  background: var(--base-color);
  width: 100%;
  left: 0;
  bottom: -16px;
 padding: 21px 62px;
}

.bottomBox
/* loginsite */
.site-login input{
    margin-bottom: 10px;
}
.btnlock{
    width: 35px;
  height: 36px;
  border-radius: 1000PX;
}

.edit-page-btn{
background-color: unset;
  border: 1px solid var(--base-color);
  border-radius: 100px;
  padding: 7px 8px;
}
.edit-page-btn{
background-color: unset;
  border: 1px solid var(--base-color);
  border-radius: 100px;
  padding: 7px 8px;
}
.edit-page-btn:hover{
background-color: var(--base-color);
border-color: var(--base-color);
}
.edit-page-btn:hover img{
filter: invert(99%) sepia(81%) saturate(2%) hue-rotate(192deg) brightness(116%) contrast(100%);
}
.edit-page-btn img{
width: 20px;
  height: 20px;
   filter: invert(19%) sepia(15%) saturate(6562%) hue-rotate(197deg) brightness(95%) contrast(89%);

}

.download-page-btn{
background-color: unset;
  border: 1px solid var(--base-color);
  border-radius: 100px;
  padding: 7px 8px;
}
.download-page-btn{
background-color: unset;
  border: 1px solid var(--base-color);
  border-radius: 100px;
  padding: 7px 8px;
}
.download-page-btn:hover{
background-color: var(--base-color);
border-color: var(--base-color);
}
.download-page-btn:hover img{
filter: invert(99%) sepia(81%) saturate(2%) hue-rotate(192deg) brightness(116%) contrast(100%);
}
.download-page-btn img{
width: 20px;
  height: 20px;
   filter: invert(19%) sepia(15%) saturate(6562%) hue-rotate(197deg) brightness(95%) contrast(89%);

}

.delete-btn-custom{
background-color: unset;
  border: 1px solid var(--base-color);
  border-radius: 100px;
  padding: 7px 8px;
}
.delete-btn-custom:hover{
background-color: var(--base-color);
border-color: var(--base-color);
}
.delete-btn-custom:hover img{
filter: invert(99%) sepia(81%) saturate(2%) hue-rotate(192deg) brightness(116%) contrast(100%);
}
.delete-btn-custom img{
width: 20px;
  height: 20px;
   filter: invert(19%) sepia(15%) saturate(6562%) hue-rotate(197deg) brightness(95%) contrast(89%);

}
.has-error .help-block, .invalid-feedback{
  color: var(--white);
  display: block !important;
  margin-top: 5px;
  margin-bottom: 10px;
  font-weight: 400;
  background: var(--red);
  padding: 11px;
  border-radius: 8px;
}

.has-error .help-block:empty, .invalid-feedback:empty {
  padding: 0;
}




        .loginsite{
            width: 100vw;
            height: 100vh;
            padding: 60px;
        }
#login-form{
    margin-top: 10px;
}

.BoxContainer{
    overflow: hidden;
  border-radius: 80px;
  position: relative;
        width: 100%;
           height: 100%;
           box-shadow: 6px 10px 26px rgba(0, 0, 0, 0.2);
           outline: 2px solid #e7e7e7;
  outline-offset: -6px;
}
.site-login::after {
content: "";
  width: 100%;
  height: 100%;
  background: linear-gradient(20deg,rgba(74, 149, 199, 0.55) 0%, rgba(70, 154, 163, 0.4) 30%, rgba(255, 255, 255, 0) 100%);
  position: absolute;
  left: 0;
  top: 0;
}
.field-loginform-rememberme{
font-size: 13px;
}

.field-loginform-password{
   position: relative; 
}
.field-loginform-password input {
  padding-left: 43px;
  font-size: 13px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.field-loginform-password::after {
  content: "";
 width: 19px;
  height: 21px;
  top: 8px;
  left: 7px;
  background: url('../img/icon/lock.svg');
  position: absolute;
  border-right: 1px solid #1b4179;
  padding-right: 27px;
  background-repeat: no-repeat;
}

.field-loginform-email{
    position: relative;
}
.field-loginform-verificationcode{
    margin-bottom: 10px;
    position: relative;
}
.field-loginform-verificationcode input{
  padding-left: 43px;
  font-size: 13px;
  padding-top: 10px;
  padding-bottom: 10px;
  letter-spacing: 1px;
}
.field-loginform-verificationcode::after {
  content: "";
 width: 19px;
  height: 21px;
  top: 8px;
  left: 7px;
  background: url('../img/icon/lock.svg');
  position: absolute;
  border-right: 1px solid #1b4179;
  padding-right: 27px;
  background-repeat: no-repeat;
}
.field-loginform-rememberme{
    margin-top: 10px;
}
.field-loginform-email input {
  padding-left: 43px;
  font-size: 13px;
  padding-top: 10px;
  padding-bottom: 10px;
  margin-bottom: 10px;
}
.field-loginform-email::after {
  content: "";
  width: 27px;
  height: 22px;
  top: 8px;
  left: 7px;
  background: url('../img/icon/user.svg');
  position: absolute;
  border-right: 1px solid #1b4179;
  padding-right: 27px;
  background-repeat: no-repeat;
}
.site-login .alert-info{
    margin-top: 15px;
}

 .site-login {
width: 40%;
  background: #fff9;
  height: 100%;
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 1px 63px rgba(0, 0, 0, 0.39);
}


        .site-login > div{
        width:300px;
        z-index: 1;
        }

        .slideshow {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
           height: 100%;
            z-index: -1;
        }

        .slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 1.5s ease-in-out; /* płynne przenikanie */
        }

        .slide.active {
            opacity: 1;
            z-index: 1;
        }

        .slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transform: scale(1.1);
            transition: transform 8s linear; /* bardzo powolne zmniejszanie */
        }

        .slide.active img {
            transform: scale(1.03); /* delikatne zmniejszenie */
        }

        .loginsite .btn{
            width: 100%;
            background-color: var(--base-color);
            border: 0px;
            margin-bottom: 8px;
            color: var(--white);
            transition: all 0.3s ease;
        }
        .loginsite .btn:hover{
            background-color: var(--secondary-color);
        }

@media(max-width:767px) {

    .site-login {
        width: 100%;
        border: 0px;
    }

.loginsite {
  padding: 28px 35px 69px;
}


}
/* rejestracja */

     .signupsite{
            padding: 9px 60px 60px;
            
        }
        .topBox h1{
            color: var(--base-color);
            text-transform: uppercase;
            margin: 0;
            
        }
       .signupsite .topBox{
    display: flex;
    width: 100%;
     justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 0 40px;
}
.topBox .logo {
  width: 300px;
  
}

#signup-button{
    color: var(--white);
    background: var(--base-color);
    transition: all 0.3s ease;
    width: 80%;
     transition: all 0.3s ease;
}

.signupsite .cancel-button{
    width: 16%;
}
.signupsite .form-group{
    display: flex;
    justify-content: space-between;
}
#signup-button:hover{
    background: var(--secondary-color);
}
.site-signup{
    padding: 42px;
}

@media(max-width:767px) {
    .signupsite {
  padding: 28px 35px 69px;
}

}


.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.form-group {
    margin-bottom: 1rem;
}
@media(max-width:767px) {

    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

/* ====== Hamburger menu (mobile) ====== */
.hamburger-btn {
    display: none;
}

.menu-overlay {
    display: none;
}

@media (max-width: 767px) {

    /* Przycisk hamburgera */
    .hamburger-btn {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 42px;
        height: 42px;
        background: var(--secondary-color);
        border: none;
        border-radius: 50%;
        padding: 8px 9px;
        cursor: pointer;
        position: fixed;
top: 9px;
    left: 10px;
        z-index: 1100;
        box-shadow: 0 2px 10px rgba(0,0,0,0.25);
    }

    .hamburger-btn span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--white);
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    /* Animacja X przy otwarciu */
    .hamburger-btn.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .hamburger-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger-btn.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Przyciemnienie tła */
    .menu-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.45);
        z-index: 1050;
    }
    .menu-overlay.active {
        display: block;
    }

    /* Menu schowane poza ekranem */
    #menuadmin {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        z-index: 1070;
        transform: translateX(-110%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 0;
        padding-top: 63px;
        background: transparent;
        box-shadow: unset;
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 0;
    }
    #menuadmin::after {
  top: 34px;

}
#menuadmin::before {
bottom: unset;
  top: 0px;
}
    #menuadmin ul {
  list-style: none;
  margin: 0;
  width: 100%;
  height: 100%;
  background: var(--secondary-color);
  padding: 20px;
  border-radius: 0px 28px 0px 0px;
  
}
.boxleftside img {
  width: 23px;
}
.admincontent .BoxContainer {
  padding: 32px;
  border-radius: 42px;
}
#mainadmin .topBox {
  padding: 0;
  display: block;
  width: 100%;
  text-align: center;
}
#mainadmin .boxleftside > div{
    position: absolute;
    top: 10px;
    right: 10px;
}
.topBox h1 {

  width: 100%;
  text-align: center;
  padding: 15px 0px;
}
.topBox .logo {
  width: 230px;
}
    /* Menu widoczne po kliknięciu hamburgera */
    #menuadmin.mobile-open {
        transform: translateX(0);
    }

    /* Teksty menu zawsze widoczne na mobile */
    #menuadmin .menu-text {
        display: inline;
    }

    /* Ukryj toggle >> << na mobile */
    #menuadmin ul li:last-child {
        display: none;
    }

    /* Layout admincontent na mobile */
    .admincontent {
        flex-direction: column;
padding-right: 15px;
    padding-left: 15px;
    }
}