/**
 * COMPONENTS STYLES
 * Style dla komponentów UI
 * Zawiera: loginbox, slider, boxes, dropdown, redirect
 */

/* LOGINBOX */
.login-box-index {
    background: rgba(0, 0, 0, 0.6);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: none;
}
.login-box {
    position: fixed;
    top: 50%;
    text-align: left;
    left: 50%;
    width: 550px;
    transform: translate(-50%, -50%);
    z-index: 100000;
    background: rgb(15, 15, 15);
    display: none;
}
.login-box .head {
    padding: 20px;
    font-size: 12pt;
    color: #fff;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(0, 82, 163, 0.8) 0%, 
        rgba(0, 143, 255, 0.6) 50%, 
        rgba(0, 212, 255, 0.4) 100%);
    border-bottom: 2px solid rgba(0, 212, 255, 0.3);
    z-index: 0;
}
.login-box .head::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 212, 255, 0.2) 50%, 
        transparent 100%);
    animation: shimmer 3s infinite;
    z-index: 1;
    pointer-events: none;
}
.login-box .head .close {
    position: relative;
    z-index: 2;
    float: right;
    font-size: 13pt;
    font-weight: bold;
    cursor: pointer;
}
.login-box form {
    padding: 20px;
}
.login-box form input:not([type=checkbox]) {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 10px;
    font-size: 11pt;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #000;
    border: 0;
    outline: 0;
}
.login-box form input:not([type=checkbox]):focus {
    background: #afcf7a;
}
.login-box form label {
    margin-top: 20px;
    display: block;
    font-size: 10pt;
}
.login-box form label input {
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
    font-size: 12px;
}
.login-box form input:not([type=checkbox]):first-child {
    margin: 0;
}
.login-box form .remember-passwd {
    margin-top: 8px;
}
.login-box form .remember-passwd a {
    color: #6c6262;
    font-size: 10pt;
}
.login-box form button {
    margin: 10px 0 0 0;
}
.login-box form button:focus {
    background: #353030;
}

/* SLIDER - POPRAWIONA WERSJA */
.slider {
    display: none; /* Ukryj slider całkowicie */
    width: 45%; /* Zmniejszona szerokość */
    height: 350px; /* Zmniejszona wysokość */
    position: relative;
    color: rgb(255, 255, 255);
    box-sizing: border-box;
    max-width: 650px; /* Zmniejszony max-width */
    overflow: hidden;
    padding: 20px 25px;
    margin: 60px 0 30px 185px; /* Zmieniony margines - usunięte przesunięcie w prawo 
    background: rgba(0, 0, 0, 0.75); /* Dodane ciemne tło dla lepszej widoczności tekstu */
    border-radius: 8px; /* Opcjonalne zaokrąglenie rogów */
    backdrop-filter: blur(5px); /* Opcjonalny efekt rozmycia tła */
    /* Naprawienie problemu z miganiem przy ładowaniu */
    opacity: 0;
    visibility: hidden; /* Ukryj slider przed załadowaniem */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.slider.loaded {
    display: none; /* Slider pozostaje ukryty nawet po załadowaniu */
    opacity: 0;
    visibility: hidden;
}
.slider .pages {
    position: absolute;
    bottom: 10px; /* Zmniejszony odstęp od dołu */
    left: 50%;
    box-sizing: border-box;
    height: 36px;
    width: 256px;
    text-align: center;
    padding-top: 15px;
    transform: translateX(-50%);
}
.slider .pages > .page {
    height: 10px;
    width: 10px;
    border-radius: 50%;
    margin-right: 5px;
    cursor: pointer;
    background: #d5d7de;
    display: inline-block;
    transition: background 0.3s ease;
}
.slider .pages > .page.active {
    background: #6ea80c; /* Zmieniony kolor na pasujący do motywu */
    cursor: default;
}
.slider .slides {
    width: 100%;
    height: 350px; /* Dopasowana wysokość do kontenera */
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    /* Upewnij się, że slider zaczyna od pierwszego slajdu */
    transform: translateX(0);
}
.slider .slides > div {
    width: 100%;
    float: left;
    display: block;
    text-align: left;
    box-sizing: border-box;
    padding: 0 10px;
}
.slider .slides > div:first-child {
    padding-left: 0;
}
.slider h1.title {
    color: #fff;
    font-weight: bold;
    font-size: 32px; /* Zmniejszony rozmiar czcionki */
    margin-top: 40px; /* Zmniejszony margines */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* Dodany cień dla lepszej czytelności */
    line-height: 1.2;
}
.slider h2.description {
    font-size: 14px; /* Zmniejszony rozmiar czcionki */
    font-weight: normal;
    width: 85%; /* Zwiększona szerokość do 85% kontenera */
    max-width: 500px; /* Dodane ograniczenie maksymalnej szerokości */
    color: #fff;
    padding: 0;
    margin: 15px 0 0 0; /* Zmniejszony margines */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8); /* Dodany cień */
    line-height: 1.5;
}
.slider .button a {
    background: #a5df10;
    background: -moz-linear-gradient(-45deg, #a5df10 0%, #499107 72%);
    background: -webkit-linear-gradient(-45deg, #a5df10 0%, #499107 72%);
    background: linear-gradient(135deg, #a5df10 0%, #499107 72%);
    filter: progid: DXImageTransform.Microsoft.gradient( startColorstr='#a5df10', endColorstr='#499107', GradientType=1);
    border-style: solid;
    border-width: 0 0 3px 0;
    border-color: #387004;
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.3);
    -webkit-box-shadow: 0px 10px 15px 0px rgba(73, 145, 7, 0.2);
    -moz-box-shadow: 0px 10px 15px 0px rgba(73, 145, 7, 0.2);
    box-shadow: 0px 10px 15px 0px rgba(73, 145, 7, 0.2);
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    height: 38px; /* Zmniejszona wysokość */
    line-height: 38px;
    padding: 0 24px; /* Zmniejszony padding */
    display: inline-block;
    margin-top: 25px; /* Zmniejszony margines */
}
.slider .button a:hover {
    background: #a5df10;
    background: -moz-linear-gradient(-75deg, #a5df10 0%, #499107 72%);
    background: -webkit-linear-gradient(-75deg, #a5df10 0%, #499107 72%);
    background: linear-gradient(155deg, #a5df10 0%, #499107 72%);
    filter: progid: DXImageTransform.Microsoft.gradient( startColorstr='#a5df10', endColorstr='#499107', GradientType=1);
    border-color: #274e03;
}
.slider .buttons {
    position: absolute;
    bottom: 50px; /* Zmniejszony odstęp od dołu */
    right: 20px;
}
.slider .buttons > div {
    margin-top: 0; /* Usunięty górny margines */
    display: inline-block;
    height: 38px;
    box-sizing: border-box;
    width: 45px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    transform: skewX(-5deg);
    z-index: 2000;
    margin-left: 5px;
    cursor: pointer;
    color: rgb(72, 74, 77);
    box-shadow: rgba(29, 33, 42, 0.1) 0px 17px 23px 4px;
    padding: 13px 0px;
    border-radius: 5px;
    border-bottom: 3px solid rgb(20, 22, 27);
    transition: all 0.3s ease;
    background: linear-gradient(45deg, rgb(30, 34, 44) 0%, rgb(24, 26, 30) 100%);
}
.slider .buttons > div:hover {
    color: rgb(255, 255, 255);
    box-shadow: rgba(110, 168, 12, 0.3) 0px 17px 23px 4px;
    background: linear-gradient(45deg, #6ea80c 0%, #499107 100%);
    border-bottom: 3px solid #387004;
}

/* Dodatkowe style dla lepszej responsywności */
@media screen and (max-width: 1200px) {
    .slider {
        width: 50%;
        max-width: 550px;
    }
    
    .slider h1.title {
        font-size: 28px;
    }
    
    .slider h2.description {
        font-size: 13px;
        width: 90%;
    }
}

@media screen and (max-width: 768px) {
    .slider {
        width: 100%;
        margin: 20px auto;
        height: 300px;
    }
    
    .slider .slides {
        height: 300px;
    }
    
    .slider h1.title {
        font-size: 24px;
        margin-top: 30px;
    }
    
    .slider h2.description {
        font-size: 12px;
        width: 95%;
    }
}

/* BOXES */
.box .headline {
    padding: 20px;
    background: rgba(0, 0, 0, 0.29);
    border-left: 2px solid rgba(0, 143, 255, 0.6);
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
    font-size: 12pt;
    color: #8f8b8b;
    transition: border-color 0.3s ease;
}
.box .headline:hover {
    border-color: rgba(0, 212, 255, 0.8);
}
.box .row {
    background: none;
    border-radius: 0;
    padding: 20px;
    background: rgb(15, 15, 15);
    border-bottom: 1px solid rgba(0, 143, 255, 0.1);
    transition: background-color 0.3s ease;
}
.box .row:hover {
    background: rgba(0, 143, 255, 0.03);
}
.box .row:last-child {
    border-bottom: none;
}

/* DROPDOWN */
.dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    pointer-events: none; /* Overlay nie blokuje kliknięć - tylko tło wizualne */
}
.dropdown-link {
    cursor: pointer;
}
ul.dropdown {
    display: none;
    position: absolute;
    top: 30px;
    color: rgb(255, 255, 255);
    text-align: left;
    z-index: 9999;
    box-sizing: border-box;
    left: 10px;
    width: 170px;
    background: rgb(5, 5, 6);
    border-width: 1px;
    border-style: solid;
    border-color: rgb(33, 34, 34);
    border-image: initial;
    border-radius: 3px;
    list-style: none;
    padding: 0px;
    margin: 0px;
    pointer-events: auto; /* Menu dropdown przyjmuje kliknięcia */
}
ul.dropdown:before {
    content: '\f0d8';
    margin-top: -14px;
    margin-left: 5px;
    font-size: 15pt;
    font-family: fontawesome;
    color: rgb(33, 34, 34);
    display: inline-block;
    text-shadow: none;
}
ul.dropdown li {
    padding: 10px 23px;
    font-size: 10.5pt;
    border-bottom: 1px solid rgba(0, 143, 255, 0.1);
    transition: all 0.3s ease;
}
ul.dropdown li i {
    margin-right: 5px;
    color: #b4b6ae;
    transition: color 0.3s ease;
}
ul.dropdown li a {
    font-size: 10pt;
    color: #b4b6ae;
    transition: color 0.3s ease;
}
ul.dropdown li:hover {
    background: rgba(0, 143, 255, 0.1);
}
ul.dropdown li:last-child {
    border: none;
}
ul.dropdown li:hover a {
    color: #00d4ff;
}
ul.dropdown li:hover i {
    color: #00d4ff;
}
ul.dropdown.on-right {
    width: 185px;
    left: unset;
    right: 1px;
    top: 30px;
}
ul.dropdown.on-right:before {
    margin-right: 3px;
    float: right;
}

/* REDIRECT PAGE */
.redirect {
    left: 50%;
    top: 50%;
    position: absolute;
    min-width: 45%;
    transform: translate(-50%, -50%);
}
.redirect .row {
    background: #00000096;
    border-bottom: .5px solid rgba(0, 143, 255, 0.3);
}
.r_bg {
    background: rgba(0, 0, 0, 0.43);
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    position: absolute;
}

