/* Ciemny motyw dla tos.php */

/* ==================== 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;
}

/* 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;
}

/* ==================== 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-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;
}

/* ==================== 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 {
    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;
}

.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;
}

/* ==================== POZOSTAŁE ==================== */

.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;
}

/* Nagłówki */
h1, h2, h3, h4, h5, h6 {
    color: #999 !important;
}

p {
    color: #656565 !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;
}

/* 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;
}

.list-group-item.active {
    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;
}

/* Thumbnail */
.thumbnail {
    background-color: #1e1e1e !important;
    border-color: #121212 !important;
}

/* Jumbotron */
.jumbotron {
    background-color: #1e1e1e !important;
    color: #656565 !important;
}

/* Popover */
.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 */
.tooltip-inner {
    background-color: #1a1a1a !important;
    color: #f5f5f5 !important;
}

/* Checkbox i radio */
.checkbox label,
.radio label {
    color: #656565 !important;
}

/* Help block */
.help-block {
    color: #656565 !important;
}

/* Container */
.container,
.container-fluid {
    color: #656565 !important;
}

/* Wszystkie obramowania */
* {
    border-color: #121212 !important;
}

/* Wyjątki dla obramowań */
.btn,
.form-control,
.panel,
.alert {
    border-color: #121212 !important;
}

/* ==================== TOS SPECIFIC ==================== */

/* Content obszar z Terms of Service */
.tos-content {
    background-color: #1e1e1e !important;
    color: #656565 !important;
    padding: 20px;
    border-radius: 4px;
}

/* Sekcje w ToS */
.tos-section {
    margin-bottom: 30px;
}

.tos-section h2,
.tos-section h3 {
    color: #999 !important;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Listy w ToS */
.tos-content ul,
.tos-content ol {
    color: #656565 !important;
}

.tos-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Strong/bold text w ToS */
.tos-content strong,
.tos-content b {
    color: #999 !important;
}

/* Emphasis text */
.tos-content em,
.tos-content i {
    color: #7c7c7c !important;
}

/* Links w treści ToS */
.tos-content a {
    color: #4e7ba9 !important;
    text-decoration: underline;
}

.tos-content a:hover {
    color: #6a9dc9 !important;
}

/* Blockquote w ToS */
.tos-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;
}

/* Last updated / timestamp */
.last-updated {
    color: #888 !important;
    font-style: italic;
    font-size: 12px;
    margin-top: 20px;
    text-align: right;
}