/* ========================================
   CIEMNY MOTYW DLA STRONY FAQ
   Zgodny ze stylem tos.css
   ======================================== */

/* === PRELOADER / EKRAN ŁADOWANIA === */
.preloader__container {
    background: #0e0e0e !important;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 999999;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease-in-out;
}

.preloader__loaded {
    opacity: 0;
    pointer-events: none;
}

.preloader__item {
    width: 160px; 
    height: 160px;
    position: relative;
    padding: 10px;
    box-sizing: border-box;
    border: none !important;
}

.preloader__spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid transparent !important;
    border-top: 4px solid #d9534f !important;
    animation: rotation 0.8s linear infinite;
    box-sizing: border-box;
}

.preloader__logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px; 
    box-sizing: border-box;
    display: block;
    animation: logo-pulse 2s infinite ease-in-out;
    border: none !important;
    -webkit-filter: brightness(130%);
    filter: brightness(130%);
}

@keyframes rotation {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes logo-pulse {
    0% {
        transform: scale(0.85);
        opacity: 0.7;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.85);
        opacity: 0.7;
    }
}

@media (min-width: 768px) {
    .preloader__item { 
        width: 200px; 
        height: 200px; 
    }
    .preloader__spinner { 
        border-width: 5px !important;
        border-top-width: 5px !important;
    }
}

/* === GŁÓWNE STYLE === */
body {
    padding-top: 50px;
    padding-bottom: 60px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #656565 !important;
    background-color: #111 !important;
}

/* === NAGŁÓWKI === */
h1, h2, h3, h4, h5, h6 {
    color: #999 !important;
}

p {
    color: #656565 !important;
}

strong, b {
    color: #999 !important;
}

em, i {
    color: #7c7c7c !important;
}

/* === NAVBAR === */
.navbar-default {
    background-color: #151515 !important;
    border-color: #121212 !important;
}

.navbar-default .navbar-brand {
    color: #777 !important;
}

.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus {
    color: #999 !important;
}

.navbar-default .navbar-nav > li > a {
    color: #616161 !important;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
    color: #f8f8f8 !important;
    background-color: transparent !important;
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
    color: #f8f8f8 !important;
    background-color: #1e1e1e !important;
}

.navbar-default .navbar-toggle {
    border-color: #121212 !important;
}

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
    background-color: #1e1e1e !important;
}

.navbar-default .navbar-toggle .icon-bar {
    background-color: #888 !important;
}

.navbar-brand > img {
    -webkit-filter: brightness(130%) !important;
    filter: brightness(130%) !important;
}

.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .open > a:focus {
    background-color: #151515 !important;
    color: #f8f8f8 !important;
}

/* === PANELE === */
.panel,
.panel-default {
    background-color: #1e1e1e !important;
    border-color: #121212 !important;
}

.panel-default > .panel-heading {
    color: #999 !important;
    background-color: #1e1e1e !important;
    border-color: #121212 !important;
}

.panel-body {
    background-color: #1e1e1e !important;
    color: #656565 !important;
}

.panel-footer {
    background-color: #151515 !important;
    border-color: #121212 !important;
}

.panel-title {
    color: #999 !important;
}

.panel-title a {
    color: #4e7ba9 !important;
    text-decoration: none;
}

.panel-title a:hover,
.panel-title a:focus {
    color: #6a9dc9 !important;
}

.panel-heading:hover {
    background-color: #2a2a2a !important;
}

/* Kolorowe panele */
.panel-primary {
    border-color: #337ab7 !important;
}

.panel-primary > .panel-heading {
    background-color: #337ab7 !important;
    border-color: #337ab7 !important;
    color: #fff !important;
}

.panel-success {
    border-color: #449d44 !important;
}

.panel-success > .panel-heading {
    background-color: #449d44 !important;
    border-color: #449d44 !important;
    color: #fff !important;
}

.panel-info {
    border-color: #5bc0de !important;
}

.panel-info > .panel-heading {
    background-color: #5bc0de !important;
    border-color: #5bc0de !important;
    color: #fff !important;
}

.panel-warning {
    border-color: #f0ad4e !important;
}

.panel-warning > .panel-heading {
    background-color: #f0ad4e !important;
    border-color: #f0ad4e !important;
    color: #fff !important;
}

.panel-danger {
    border-color: #d9534f !important;
}

.panel-danger > .panel-heading {
    background-color: #d9534f !important;
    border-color: #d9534f !important;
    color: #fff !important;
}

/* === SIDEBAR FAQ === */
.faq-sidebar {
    background-color: #1e1e1e !important;
    border-color: #121212 !important;
}

.faq-sidebar .list-group {
    background-color: #1e1e1e !important;
    border-color: #121212 !important;
}

/* === LIST GROUP === */
.list-group-item {
    background-color: #1e1e1e !important;
    border-color: #121212 !important;
    color: #656565 !important;
}

.list-group-item:hover,
.list-group-item:focus {
    background-color: #2a2a2a !important;
    color: #999 !important;
}

.list-group-item.active,
.list-group-item.active:hover,
.list-group-item.active:focus {
    background-color: #337ab7 !important;
    border-color: #337ab7 !important;
    color: #fff !important;
}

/* === FOOTER === */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: #151515 !important;
    border-top: 1px solid #121212 !important;
    text-align: center;
    line-height: 40px;
    padding: 0;
    z-index: 1000;
    color: #656565 !important;
}

.footer ul {
    margin: 0;
    padding: 0;
    display: inline-block;
}

.footer li {
    display: inline;
    padding: 0 10px;
}

.footer a {
    color: #4e7ba9 !important;
}

.footer a:hover,
.footer a:focus {
    color: #6a9dc9 !important;
}

/* === PRZYCISKI === */
.btn-default {
    color: #7c7c7c !important;
    background-color: #1e1e1e !important;
    border-color: #121212 !important;
}

.btn-default:hover,
.btn-default:focus {
    color: #999 !important;
    background-color: #2a2a2a !important;
    border-color: #121212 !important;
}

.btn-primary {
    color: #fff !important;
    background-color: #337ab7 !important;
    border-color: #2e6da4 !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #286090 !important;
    border-color: #204d74 !important;
}

.btn-success {
    color: #fff !important;
    background-color: #449d44 !important;
    border-color: #398439 !important;
}

.btn-success:hover,
.btn-success:focus {
    background-color: #398439 !important;
    border-color: #255625 !important;
}

.btn-danger {
    color: #fff !important;
    background-color: #c9302c !important;
    border-color: #ac2925 !important;
}

.btn-danger:hover,
.btn-danger:focus {
    background-color: #ac2925 !important;
    border-color: #761c19 !important;
}

.btn-warning {
    color: #fff !important;
    background-color: #f0ad4e !important;
    border-color: #eea236 !important;
}

.btn-warning:hover,
.btn-warning:focus {
    background-color: #ec971f !important;
    border-color: #d58512 !important;
}

.btn-info {
    color: #fff !important;
    background-color: #5bc0de !important;
    border-color: #46b8da !important;
}

.btn-info:hover,
.btn-info:focus {
    background-color: #31b0d5 !important;
    border-color: #269abc !important;
}

/* === ALERTY === */
.alert {
    border-color: transparent !important;
}

.alert-success {
    color: #449d44 !important;
    background-color: transparent !important;
    border: 2px solid #449d44 !important;
}

.alert-danger {
    color: #c9302c !important;
    background-color: transparent !important;
    border: 2px solid #c9302c !important;
}

.alert-warning {
    color: #f0ad4e !important;
    background-color: transparent !important;
    border: 2px solid #f0ad4e !important;
}

.alert-info {
    color: #31708f !important;
    background-color: transparent !important;
    border: 2px solid #31708f !important;
}

/* === FORMULARZE === */
.form-control {
    background-color: #080808 !important;
    border-color: #121212 !important;
    color: #ededed !important;
}

.form-control:focus {
    background-color: #0a0a0a !important;
    border-color: #31708f !important;
    color: #ededed !important;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(49,112,143,.6) !important;
}

.form-control::placeholder {
    color: #656565 !important;
}

label {
    color: #999 !important;
}

.input-group-addon {
    background-color: #1e1e1e !important;
    border-color: #121212 !important;
    color: #656565 !important;
}

select.form-control {
    background-color: #080808 !important;
    color: #ededed !important;
    border-color: #121212 !important;
}

select.form-control option {
    background-color: #1e1e1e !important;
    color: #ededed !important;
}

/* === TABELE === */
table,
.table {
    background-color: #1e1e1e !important;
    color: #656565 !important;
}

.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td {
    border-color: #121212 !important;
}

.table > thead > tr > th {
    background-color: #151515 !important;
    color: #999 !important;
    border-color: #121212 !important;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #0f0f0f !important;
}

.table-striped > tbody > tr:nth-of-type(even) {
    background-color: #1e1e1e !important;
}

.table-hover > tbody > tr:hover {
    background-color: #2a2a2a !important;
}

.table-bordered {
    border-color: #121212 !important;
}

/* === MODAL === */
.modal-content {
    background-color: #1a1a1a !important;
    border-color: #121212 !important;
}

.modal-header {
    background-color: #1e1e1e !important;
    border-color: #252525 !important;
}

.modal-body {
    background-color: #1a1a1a !important;
    color: #656565 !important;
}

.modal-footer {
    background-color: #1e1e1e !important;
    border-color: #252525 !important;
}

.modal-title {
    color: #999 !important;
}

.close {
    color: #fff !important;
    opacity: 0.8;
    text-shadow: 0 1px 0 #000;
}

.close:hover,
.close:focus {
    color: #fff !important;
    opacity: 1;
}

/* === DROPDOWN === */
.dropdown-menu {
    background-color: #282828 !important;
    border-color: #121212 !important;
}

.dropdown-menu > li > a {
    color: #f5f5f5 !important;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
    background-color: #1d1d1d !important;
    color: #f9f9f9 !important;
}

.dropdown-menu .divider {
    background-color: #1f1f1f !important;
}

/* === POZOSTAŁE ELEMENTY === */
.well {
    background-color: #1e1e1e !important;
    border-color: #121212 !important;
    color: #656565 !important;
}

/* Kolory tekstowe */
.text-success {
    color: #449d44 !important;
}

.text-danger {
    color: #c9302c !important;
}

.text-warning {
    color: #f0ad4e !important;
}

.text-info {
    color: #31708f !important;
}

.text-muted {
    color: #656565 !important;
}

/* Labels */
.label-default {
    background-color: #555 !important;
}

.label-primary {
    background-color: #337ab7 !important;
}

.label-success {
    background-color: #449d44 !important;
}

.label-info {
    background-color: #5bc0de !important;
}

.label-warning {
    background-color: #f0ad4e !important;
}

.label-danger {
    background-color: #c9302c !important;
}

.badge {
    background-color: #555 !important;
}

/* Progress bar */
.progress {
    background-color: #2d2d2d !important;
}

.progress-bar {
    background-color: #ce4441 !important;
}

.progress-bar-success {
    background-color: #449d44 !important;
}

.progress-bar-info {
    background-color: #5bc0de !important;
}

.progress-bar-warning {
    background-color: #f0ad4e !important;
}

.progress-bar-danger {
    background-color: #c9302c !important;
}

/* Linki */
a {
    color: #4e7ba9 !important;
}

a:hover,
a:focus {
    color: #6a9dc9 !important;
}

/* HR */
hr {
    border-top-color: #121212 !important;
}

/* Page header */
.page-header {
    border-bottom-color: #121212 !important;
    color: #999 !important;
}

/* === BREADCRUMB === */
.breadcrumb {
    background-color: #1e1e1e !important;
    color: #656565 !important;
}

.breadcrumb > li + li:before {
    color: #656565 !important;
}

.breadcrumb > .active {
    color: #656565 !important;
}

/* === PAGINATION === */
.pagination > li > a,
.pagination > li > span {
    background-color: #1e1e1e !important;
    border-color: #121212 !important;
    color: #656565 !important;
}

.pagination > li > a:hover,
.pagination > li > a:focus,
.pagination > li > span:hover,
.pagination > li > span:focus {
    background-color: #2a2a2a !important;
    border-color: #121212 !important;
    color: #999 !important;
}

.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination > .active > a:focus,
.pagination > .active > span:focus {
    background-color: #337ab7 !important;
    border-color: #337ab7 !important;
    color: #fff !important;
}

/* === NAV TABS === */
.nav-tabs {
    border-bottom-color: #121212 !important;
}

.nav-tabs > li > a {
    color: #656565 !important;
}

.nav-tabs > li > a:hover {
    background-color: #1e1e1e !important;
    border-color: #121212 !important;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    background-color: #1e1e1e !important;
    border-color: #121212 !important;
    color: #999 !important;
}

/* === NAV PILLS === */
.nav-pills > li > a {
    color: #656565 !important;
}

.nav-pills > li > a:hover,
.nav-pills > li > a:focus {
    background-color: #1e1e1e !important;
}

.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus {
    background-color: #337ab7 !important;
    color: #fff !important;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 12px;
    background-color: #111;
}

::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    border-radius: 10px;
    background-color: #111;
}

::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
    background-color: #555;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #777;
}

/* === PRE I CODE === */
pre {
    background-color: #151515 !important;
    border-color: #121212 !important;
    color: #f5f5f5 !important;
}

code {
    background-color: #1e1e1e !important;
    color: #f5f5f5 !important;
}

/* === POZOSTAŁE POMOCNICZE === */
.thumbnail {
    background-color: #1e1e1e !important;
    border-color: #121212 !important;
}

.jumbotron {
    background-color: #1e1e1e !important;
    color: #656565 !important;
}

.popover {
    background-color: #1a1a1a !important;
    border-color: #121212 !important;
}

.popover-title {
    background-color: #1e1e1e !important;
    border-color: #252525 !important;
    color: #656565 !important;
}

.popover-content {
    color: #656565 !important;
}

.tooltip-inner {
    background-color: #1a1a1a !important;
    color: #f5f5f5 !important;
}

.checkbox label,
.radio label {
    color: #656565 !important;
}

.help-block {
    color: #656565 !important;
}

.container,
.container-fluid {
    color: #656565 !important;
}

/* === WSZYSTKIE OBRAMOWANIA === */
* {
    border-color: #121212 !important;
}

.btn,
.form-control,
.panel,
.alert {
    border-color: #121212 !important;
}

/* === WERSJA DESKTOP (SIDEBAR PRZYKLEJONY) === */
@media (min-width: 992px) {
    .faq-sidebar {
        position: sticky;
        top: 70px;
        background-color: #1e1e1e !important;
    }
}

/* === WERSJA MOBILNA === */
@media (max-width: 991px) {
    .faq-sidebar {
        position: static;
        margin-bottom: 20px;
        background-color: #1e1e1e !important;
    }
    
    .faq-sidebar .list-group {
        max-height: none;
        overflow-y: visible;
        border: 1px solid #121212 !important;
        border-radius: 4px;
        margin-bottom: 0;
        background-color: #1e1e1e !important;
    }
    
    .list-group-item {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    h4 {
        font-size: 16px;
    }
}

/* === FAQ SPECIFIC === */
/* Content obszar z FAQ */
.faq-content {
    background-color: #1e1e1e !important;
    color: #656565 !important;
    padding: 20px;
    border-radius: 4px;
}

/* Sekcje w FAQ */
.faq-section {
    margin-bottom: 30px;
}

.faq-section h2,
.faq-section h3 {
    color: #999 !important;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Listy w FAQ */
.faq-content ul,
.faq-content ol {
    color: #656565 !important;
}

.faq-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Links w treści FAQ */
.faq-content a {
    color: #4e7ba9 !important;
    text-decoration: underline;
}

.faq-content a:hover,
.faq-content a:focus {
    color: #6a9dc9 !important;
}

/* Blockquote w FAQ */
.faq-content blockquote {
    border-left: 4px solid #337ab7;
    padding-left: 15px;
    margin: 15px 0;
    color: #7c7c7c !important;
    background-color: #151515 !important;
    padding: 10px 15px;
    border-radius: 0 4px 4px 0;
}

/* Efekt podświetlenia aktywnego pytania */
.panel.active-question {
    border-color: #337ab7 !important;
    box-shadow: 0 0 10px rgba(51, 122, 183, 0.3) !important;
}

.panel.active-question > .panel-heading {
    background-color: #1a3a52 !important;
}

/* Ikony (chevron dla collapse) */
.panel-title .glyphicon {
    color: #9a9a9a !important;
}

/* Last updated / timestamp */
.last-updated {
    color: #888 !important;
    font-style: italic;
    font-size: 12px;
    margin-top: 20px;
    text-align: right;
}