*{
    box-sizing: border-box;
}
img{
    max-width: 100%;
}
/* ====== KOLORY ====== */
:root {
    --blue: #0d6efd;
    --blue-dark: #0a58ca;
    --orange: #fd7e14;
    --green: #198754;
    --red: #dc3545;

    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-700: #495057;
    --gray-900: #212529;

    --radius: 8px;
    --shadow: 0 3px 10px rgba(0,0,0,0.08);
    --transition: 0.2s ease;
}
html, #wholeContent{
    height: 100%;
}
body {
    margin: 0;
    font-family: "Roboto", sans-serif;
    background: var(--gray-100);
    color: var(--gray-900);
    height: 100%;
}
a{
    text-decoration: none;
    color: var(--blue);
}
p{
    margin: 0 0 20px 0;
    line-height: 1.2em;
}
.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    color: white;
    box-shadow: var(--shadow);
    margin: 0 0 20px 0;
}
.btn-blue {
    background: var(--blue);
}
.btn-blue:hover {
    background: var(--blue-dark);
}

.btn-orange {
    background: var(--orange);
}
.btn-orange:hover {
    background: #e5680f;
}

.btn-green {
    background: var(--green);
}
.btn-green:hover {
    background: #146c43;
}

.btn-red {
    background: var(--red);
}
.btn-red:hover {
    background: #bb2d3b;
}
.btn-outline {
    background: transparent;
    border: 2px solid currentColor;
    color: var(--gray-900);
}
.btn-outline:hover {
    background: var(--gray-200);
}

.btn-block {
    width: 100%;
    text-align: center;
}
/* ====== HEADER ====== */
.mainHeader {
    background: #fff;
    color: white;
    padding: 10px 20px;
    box-shadow: var(--shadow);
}

.header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header .logo a, .header .logo h1{
    text-decoration: none;
    font-weight: normal;
    color: #000;
    text-transform: uppercase;
}
.logo h1 span.small{
    font-size: 40%;
    display: inline-block;
    padding: 0 5px 5px 0;
    font-weight: bold;
    vertical-align: bottom;
    color: var(--blue);
}
.headerAccount{
    margin-left: auto;
}

/* ====== LAYOUT ====== */
.mainContent {
    display: flex;
    padding: 20px;
    gap: 20px;
    overflow: hidden;
}

.menuColumn {
    width: 220px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}

.menuColumn ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menuColumn a {
    display: block;
    padding: 12px 15px;
    margin-bottom: 5px;
    text-decoration: none;
    color: var(--gray-700);
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
}

.menuColumn a:hover {
    background: var(--blue);
    color: white;
}
.menuColumn a i.bi{
    padding: 0 15px 0 0;
}
.pageContent {
    flex: 1;
    min-height: 600px;
    margin: -90px 30px 30px 30px;
    position: relative;
}
.modalContent .pageContent {
    margin-top: 30px;
}
/* ====== PAGE HEADER ====== */
.pageHeader{
    background-color: rgba(13, 110, 253, 1);
    background-image: linear-gradient(90deg, rgba(13, 110, 253, 1) 0%, rgba(92, 58, 103, 1) 100%);
    padding: 30px 30px 120px 30px;
    margin: 90px 0 0 0;
}
.pageHeader h2 {
    font-size: 32px;
    margin-bottom: 5px;
    color: #fff;
}

.pageHeader p {
    color: #fff;
    margin-top: 0;
}

/* ====== PAGE CONTENT ====== */

.box.openBox{
    padding: 108px 0 0 0;
}
.modalContent .box.openBox{
    padding-top: 0;
}
/* ====== INFO BOXY ====== */
.infoBox {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    display: inline-block;
    width: calc(33.33% - 20px);
    margin-right: 20px;
    vertical-align: top;
}

.infoBox h3 {
    margin: 0 0 20px 0;
}
.infoBox p{
    margin: 0 0 20px 0;
}
/* Kolorowe boxy */
.infoBox.callToAction {

}

.infoBox.activity {

}

.infoBox.progress {
    margin-right: 0px;
}

/* ====== STAT BOXY ====== */
.statBox {
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    display: inline-block;
    width: calc(25% - 20px);
    margin-right: 20px;
    vertical-align: top;
}
.statBox.earnings{
    background: var(--orange);

}
.statBox.instalations{
    background:     var(--blue);
}
.statBox.avoidance{
    background: var(--green);

}
.statBox.help{
    background: var(--red);
    margin-right: 0px;

}
.statBox .title {
    color: #fff;
    font-size: 14px;
    margin: 0 0 5px 0;
}

.statBox .value {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}
.timeline {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 75px; /* środek kulki */
    width: 2px;
    height: 100%;
    background: #ccc;
}

.timeline li {
    position: relative;
    margin-bottom: 30px;
    padding-left: 100px; /* miejsce na datę + kulkę */
}

.timeline li::before {
    content: '';
    position: absolute;
    left: 68px; /* środek kulki */
    top: 0;
    width: 12px;
    height: 12px;
    background: #3498db;
    border-radius: 50%;
    border: 2px solid #fff;
    z-index: 1;
}

.timeline .date {
    position: absolute;
    left: 0;
    width: 60px;
    text-align: right;
    font-weight: bold;
    color: #555;
}

.timeline .event {
    padding: 5px 10px;
    background: #fff;
    border-radius: 4px;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
/* ====== TABLE ====== */
table.default {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

table.default th {
    background: var(--blue);
    color: #fff;
    text-align: left;
    padding: 14px 18px;
}

table.default td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 15px;
    color: var(--gray-900);
}

table.default tr:hover td {
    background: var(--gray-100);
}

table.default tr:last-child td {
    border-bottom: none;
}
table.default tr td img.photo{
    height:100px;
}
/* ====== PAGINATION ====== */
#paginationControl {
    margin-top: 20px;
    text-align: center;
}

#paginationControl a.btn,
#paginationControl span.btn {
    display: inline-block;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
    font-size: 14px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 5px;
    min-width: 40px;
}

#paginationControl a.btn:hover {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}

#paginationControl a.current {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}

#paginationControl a.firstBtn, #paginationControl a.lastBtn {
    display: none;
}

#paginationControl span.blind {
    visibility: hidden;
}
/* ====== FOOTER ====== */
.mainFooter {
    background: var(--gray-200);
    padding: 20px;
    margin-top: 40px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}

.footer {
    text-align: center;
}

.footer .reprezenter {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
}
/*modal */
.modal #popupContainer ul li a.hideBtn{
    display:none
}
#popupContainer ul li a.hideBtn:hover{
    color:#010101
}
.modalCover{
    background: #000;
    opacity: 0.5;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 50;
    display: none;
}
.modal{
    display:none;
    position:fixed;
    z-index:1;
    left:0;
    right:0;
    margin:0 auto;
    top:0;
    width:100%;
    height:100%;
    max-height: 70vh;
    overflow-y: auto;
    z-index:100;
    background: #f3f3f3;
}
.modalContent{
    background-color:#fff;
    margin: 0 auto;
    margin-top:60px;
    width:80%;
    max-width: 1000px;
    height: auto;
    border: 3px solid var(--orange);
    overflow: scroll;
    overflow-x: hidden;
    padding: 40px;
}
.modal .close{
    color:#aaa;
    position: absolute;
    top:-30px;
    right:23px;
    background:  #f7ca44;
    z-index:300;
    width:32px;
    height: 30px;
    padding: 5px 5px 5px 6px;
    border-radius: 20px 20px 0 0;
}
.modal .close img{
    width: 20px;
    height: 20px;
}
.modal .close:hover,.modal .close:focus{
    color:#000;
    text-decoration:none;
    cursor:pointer
}
.modalContent::-webkit-scrollbar {
  width: 8px;
}

.modalContent::-webkit-scrollbar-track {
  background: #eee;
  border-radius: 4px;
}

.modalContent::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 4px;
}

.modalContent::-webkit-scrollbar-thumb:hover {
  background: #999;
}
.osMap {
    width: 300px;
    height: 300px;
}
.installationPhoto{
    width: 300px;
    height: auto;
}

/* view page */
p.validate{
    text-decoration: line-through;
}
p.validate.valid{
    text-decoration: none;
}
.onchainData{
    background: #f3f3f3;
    padding: 20px;
}
.onchainData h3{
    font-size: 14px;
    margin: 0 0 20px 0;
}
/* ====== RESPONSYWNOSC ====== */
@media (max-width: 992px) {
    .mainContent {
        flex-direction: column;
    }

    .menuColumn {
        width: 100%;
    }

    .statBox {
        width: 100%;
        margin-right: 0;
    }
}
