/* =========================================================
   STATISTIKA
========================================================= */

.statistika-box {

    margin-top: 24px;

    padding: 34px;

    border-radius: 24px;

    background:
        linear-gradient(
            180deg,
            #091426 0%,
            #06101d 100%
        );

    border: 1px solid rgba(0, 120, 255, .14);

    box-shadow:
        0 0 30px rgba(0, 0, 0, .35);

}

/* =========================================================
   GLAVA
========================================================= */

.statistika-glava {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 24px;

    margin-bottom: 28px;

}

.statistika-naslovi h2 {

    margin: 0;

    font-size: 33px;

    font-weight: 800;

    color: #ffffff;

}

.statistika-naslovi p {

    margin-top: 8px;

    color: #8ea3bd;

    font-size: 19px;

}

/* =========================================================
   TABI
========================================================= */

.statistika-filtri {

    display: flex;

    gap: 14px;

}

.statistika-filter {

    display: flex;

    align-items: center;

    justify-content: center;

    min-width: 170px;

    height: 62px;

    border-radius: 16px;

    border: 1px solid rgba(255,255,255,.08);

    background:
        linear-gradient(
            180deg,
            #101c2f 0%,
            #0a1524 100%
        );

    color: #d6dfeb;

    font-size: 20px;

    font-weight: 700;

    text-decoration: none;

    cursor: pointer;

}

.statistika-filter.active {

    color: #72ff84;

    border-color: rgba(114,255,132,.55);

    box-shadow:
        0 0 18px rgba(114,255,132,.25);

}

/* =========================================================
   TABELA
========================================================= */

.statistika-tabela {

    overflow: hidden;

    border-radius: 18px;

    border: 1px solid rgba(255,255,255,.08);

}

.statistika-head {

    display: grid;

    grid-template-columns:
        1fr
        180px
        180px;

    padding: 20px 28px;

    background:
        linear-gradient(
            180deg,
            #0f2038 0%,
            #0a182b 100%
        );

    color: #a9bdd7;

    font-size: 15px;

    font-weight: 700;

    text-transform: uppercase;

}

.statistika-vrstica {

    display: grid;

    grid-template-columns:
        1fr
        200px
        200px;

    align-items: center;

    min-height: 72px;

    padding: 0 28px;

    border-top:
        1px solid rgba(255,255,255,.05);

    background: transparent !important;
}

.statistika-vrstica.met-0 .statistika-stevilo {

    background: var(--met-0-bg);

    color: var(--met-0-color);

}

.statistika-vrstica.met-1 .statistika-stevilo {

    background: var(--met-1-bg);

    color: var(--met-1-color);

}

.statistika-vrstica.met-2 .statistika-stevilo {

    background: var(--met-2-bg);

    color: var(--met-2-color);

}

.statistika-vrstica.met-3 .statistika-stevilo {

    background: var(--met-3-bg);

    color: var(--met-3-color);

}

.statistika-vrstica.met-4 .statistika-stevilo {

    background: var(--met-4-bg);

    color: var(--met-4-color);

}

.statistika-vrstica.met-5 .statistika-stevilo {

    background: var(--met-5-bg);

    color: var(--met-5-color);

}

.statistika-vrstica.met-6 .statistika-stevilo {

    background: var(--met-6-bg);

    color: var(--met-6-color);

}

.statistika-vrstica.met-7 .statistika-stevilo {

    background: var(--met-7-bg);

    color: var(--met-7-color);

}

.statistika-vrstica.met-8 .statistika-stevilo {

    background: var(--met-8-bg);

    color: var(--met-8-color);

}

.statistika-vrstica.met-9 .statistika-stevilo {

    background: var(--met-9-bg);

    color: var(--met-9-color);

}

.statistika-levo {

    display: flex;

    align-items: center;

    gap: 22px;

}

.statistika-stevilo {

    width: 46px;

    height: 46px;

    border-radius: 14px;

    border: 2px solid rgba(255,255,255,.15);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 28px;

    font-weight: 800;

    color: #ffffff;

}

.statistika-progress {

    flex: 1;

    height: 22px;

    overflow: hidden;

    border-radius: 999px;

    background: rgba(255,255,255,.06);

}

.statistika-progress-fill {

    width: 0%;

    height: 100%;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            #46ff67 0%,
            #2dc6ff 100%
        );

}

.statistika-meti,
.statistika-odstotek {

    text-align: center;

    font-size: 22px;

    font-weight: 800;

    color: #ffffff;

}


/* =========================================================
   DODATNA STATISTIKA
========================================================= */

.statistika-dodatno {

    min-height: 260px;

    margin-top: 34px;

    padding: 34px;

    border-radius: 24px;

    background:
        linear-gradient(
            180deg,
            #091426 0%,
            #06101d 100%
        );

    border: 1px solid rgba(0,120,255,.14);

    box-shadow:
        0 0 30px rgba(0,0,0,.35);

}

.statistika-dodatno h2 {

    margin: 0 0 14px;

    font-size: 30px;

    color: #ffffff;

}

.statistika-dodatno p {

    margin: 0;

    font-size: 18px;

    line-height: 1.6;

    color: #9eb0c5;

}

/* =========================================================
   PODROBNA ANALIZA NASTOPA
========================================================= */

.statistika-dodatno {
    margin-top: 24px;
    padding: 26px 30px 30px;

    background:
        linear-gradient(
            145deg,
            rgba(24, 32, 48, 0.98),
            rgba(13, 18, 29, 0.98)
        );

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;

    box-shadow:
        0 14px 35px rgba(0,0,0,.28),
        inset 0 1px 0 rgba(255,255,255,.025);
}


/* =========================================================
   NASLOV
========================================================= */

.statistika-dodatno > h2 {
    margin: 0;

    color: #ffffff;

    font-size: 20px;
    font-weight: 800;

    letter-spacing: .2px;
}

.statistika-dodatno > p {
    margin: 6px 0 0;

    color: #8f9bad;

    font-size: 14px;
}


/* =========================================================
   DONUT KARTICA
========================================================= */

.statistika-donut-box {
    width: 100%;
    max-width: 560px;

    margin: 26px auto 0;
    padding: 22px 28px 24px;

    box-sizing: border-box;

    background:
        linear-gradient(
            160deg,
            rgba(22, 30, 44, .96),
            rgba(12, 17, 27, .96)
        );

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;

    box-shadow:
        0 12px 30px rgba(0,0,0,.25),
        inset 0 1px 0 rgba(255,255,255,.025);

    text-align: center;
}


/* =========================================================
   DONUT NASLOV
========================================================= */

.statistika-donut-box h3 {
    margin: 0;

    color: #22c55e;

    font-size: 17px;
    font-weight: 900;

    letter-spacing: 1.2px;
}

.statistika-donut-podnaslov {
    margin-top: 4px;

    color: #8d99aa;

    font-size: 13px;
}


/* =========================================================
   DONUT OBROČ
========================================================= */

.statistika-donut {
    --polno: 50%;

    position: relative;

    width: 250px;
    height: 250px;

    margin: 25px auto 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        conic-gradient(
            #22c55e 0 var(--polno),
            #3b82f6 var(--polno) 100%
        );

    box-shadow:
        0 0 0 1px rgba(255,255,255,.05),
        0 15px 35px rgba(0,0,0,.32),
        0 0 32px rgba(34,197,94,.08);
}


/* notranja luknja */

.statistika-donut::before {
    content: "";

    position: absolute;

    width: 164px;
    height: 164px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 50% 35%,
            #182234 0%,
            #101722 70%
        );

    box-shadow:
        inset 0 0 18px rgba(0,0,0,.45),
        0 0 0 1px rgba(255,255,255,.04);
}


/* =========================================================
   SREDINA DONUTA
========================================================= */

.statistika-donut-center {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: center;

    line-height: 1;
}

.statistika-donut-center span {
    margin-bottom: 7px;

    color: #8e9aac;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.3px;
}

.statistika-donut-center strong {
    color: #ffffff;

    font-size: 43px;
    font-weight: 900;

    letter-spacing: -1px;

    text-shadow:
        0 2px 8px rgba(0,0,0,.4);
}

.statistika-donut-center small {
    margin-top: 7px;

    color: #7e8999;

    font-size: 12px;
    font-weight: 600;
}


/* =========================================================
   LEGENDA
========================================================= */

.statistika-donut-legenda {
    width: 100%;
    max-width: 420px;

    margin: 0 auto;
    padding-top: 5px;
}

.statistika-donut-vrstica {
    min-height: 42px;

    display: grid;

    grid-template-columns:
        14px
        minmax(100px, 1fr)
        70px
        85px;

    align-items: center;

    gap: 10px;

    padding: 0 14px;

    border-bottom: 1px solid rgba(255,255,255,.055);

    color: #aab3c0;

    font-size: 13px;
}

.statistika-donut-vrstica:last-child {
    border-bottom: 0;
}


/* =========================================================
   BARVNE TOČKE
========================================================= */

.donut-barva {
    width: 10px;
    height: 10px;

    border-radius: 50%;

    box-shadow:
        0 0 8px currentColor;
}

.donut-polno {
    color: #22c55e;
    background: #22c55e;
}

.donut-ciscenje {
    color: #3b82f6;
    background: #3b82f6;
}


/* =========================================================
   LEGENDA TEKST
========================================================= */

.donut-naziv {
    text-align: left;

    color: #d8dee8;

    font-weight: 800;

    letter-spacing: .4px;
}

.statistika-donut-vrstica strong {
    text-align: right;

    color: #ffffff;

    font-size: 15px;
    font-weight: 900;
}

.statistika-donut-vrstica > span:last-child {
    text-align: right;

    color: #7f8b9b;

    font-size: 12px;
}


/* =========================================================
   POLNO / ČIŠČENJE POSEBNE BARVE
========================================================= */

.statistika-donut-vrstica:first-child strong {
    color: #22c55e;
}

.statistika-donut-vrstica:last-child strong {
    color: #60a5fa;
}


/* =========================================================
   HOVER
========================================================= */

.statistika-donut-box {
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.statistika-donut-box:hover {
    border-color: rgba(255,255,255,.13);

    box-shadow:
        0 16px 38px rgba(0,0,0,.32),
        inset 0 1px 0 rgba(255,255,255,.035);
}


/* =========================================================
   MOBILNO
========================================================= */

@media (max-width: 650px) {

    .statistika-dodatno {
        padding: 20px 15px;
    }

    .statistika-donut-box {
        padding: 20px 12px;
    }

    .statistika-donut {
        width: 215px;
        height: 215px;
    }

    .statistika-donut::before {
        width: 140px;
        height: 140px;
    }

    .statistika-donut-center strong {
        font-size: 36px;
    }

    .statistika-donut-vrstica {
        grid-template-columns:
            12px
            1fr
            55px
            72px;

        gap: 7px;

        padding: 0 6px;

        font-size: 12px;
    }

}
/* =========================================================
   POLNO + ČIŠČENJE DISTRIBUCIJA
========================================================= */

.statistika-dva-grafa {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 20px;

    margin-top: 20px;
}

.statistika-distribucija-box {
    padding: 22px 24px 24px;

    background:
        linear-gradient(
            160deg,
            rgba(22, 30, 44, .96),
            rgba(12, 17, 27, .96)
        );

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;

    box-shadow:
        0 12px 30px rgba(0,0,0,.25),
        inset 0 1px 0 rgba(255,255,255,.025);
}

.statistika-distribucija-box h3 {
    margin: 0;

    color: #fff;

    text-align: center;

    font-size: 17px;
    font-weight: 900;

    letter-spacing: 1.2px;
}


/* graf + legenda */

.statistika-distribucija-vsebina {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 34px;

    margin-top: 15px;
}


/* nekoliko manjši od glavnega obroča */

.statistika-donut-distribucija {
    flex: 0 0 auto;

    width: 220px;
    height: 220px;

    margin: 0;
}

.statistika-donut-distribucija::before {
    width: 140px;
    height: 140px;
}

.statistika-donut-distribucija
.statistika-donut-center strong {
    font-size: 36px;
}


/* =========================================================
   LEGENDA 9–0
========================================================= */

.statistika-distribucija-legenda {
    width: 190px;
}

.statistika-distribucija-vrstica {
    display: grid;

    grid-template-columns:
        10px
        24px
        45px
        65px;

    align-items: center;

    gap: 7px;

    min-height: 26px;

    border-bottom:
        1px solid rgba(255,255,255,.045);
}

.statistika-distribucija-vrstica:last-child {
    border-bottom: 0;
}

.distribucija-krog {
    width: 8px;
    height: 8px;

    border-radius: 50%;
}

.distribucija-kegel {
    color: #fff;

    font-size: 13px;
    font-weight: 900;
}

.distribucija-stevilo {
    text-align: right;

    color: #e5eaf1;

    font-size: 13px;
    font-weight: 800;
}

.distribucija-procent {
    text-align: right;

    color: #8490a1;

    font-size: 11px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {

    .statistika-dva-grafa {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 600px) {

    .statistika-distribucija-vsebina {
        flex-direction: column;

        gap: 18px;
    }

    .statistika-distribucija-legenda {
        width: 100%;
        max-width: 230px;
    }

}

/* =========================================================
   STICKY FILTRI
========================================================= */

.statistika-sticky {
    position: sticky;
    top: 10px;
    z-index: 1000;

    display: flex;
    justify-content: flex-end;

    margin: 0 0 18px;

    pointer-events: none;
}

.statistika-filtri {
    display: flex;
    gap: 10px;

    padding: 7px;

    background: rgba(8, 20, 38, .96);

    border: 1px solid rgba(255,255,255,.09);
    border-radius: 14px;

    box-shadow:
        0 10px 30px rgba(0,0,0,.38);

    backdrop-filter: blur(10px);

    pointer-events: auto;
}

.statistika-filter {
    min-width: 120px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 22px;

    box-sizing: border-box;

    border: 1px solid rgba(255,255,255,.10);
    border-radius: 12px;

    background: #0b192b;

    color: #fff;
    text-decoration: none;

    font-size: 15px;
    font-weight: 800;

    transition: .18s ease;
}

.statistika-filter:hover {
    border-color: rgba(255,255,255,.25);
}

.statistika-filter.active {
    color: #43f77b;

    border-color: #2fb85b;

    box-shadow:
        0 0 18px rgba(47,184,91,.25);
}