@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

/*select, option {

    -webkit-appearance: none
}*/
html, body {
    /*  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;*/
}
.parentInventaryHead {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
}

.filterInventary {
    grid-area: 1 / 1 / 2 / 2;
}

.sizeInventary {
    grid-area: 1 / 2 / 2 / 3;
    justify-self: end;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    margin-bottom: 0.5rem;
    font-family: 'Underdog', cursive;
    font-weight: 500;
    line-height: 1.2;
}

.containermax {
    max-width: unset;
}

.table-responsive{
    overflow-x:unset !important;
}
.td-bugs {
    padding: unset !important;
    border-top: 1px solid gray !important;
    border-bottom: 1px solid gray !important;
    font-family: "Neucha", -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
/*a, .btn-link {
    color: #0366d6;
}*/
.bug {
    font-family: "Neucha", -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.main {
    flex: 1;
}

    .main .top-row {
        background-color: #f7f7f7;
        border-bottom: 1px solid #d6d5d5;
        justify-content: flex-end;
    }

        .main .top-row > a {
            margin-left: 1.5rem;
        }

.sidebar {
}

    .sidebar .top-row {
        /* background-color: rgba(0,0,0,0.4);*/
    }

    .sidebar .navbar-brand {
        font-size: 1.1rem;
    }

    .sidebar .oi {
        width: 2rem;
        font-size: 1.1rem;
        vertical-align: text-top;
        top: -2px;
    }

.nav-item {
    /*font-size: 0.9rem;*/
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type {
        padding-top: 1rem;
    }

    .nav-item:last-of-type {
        padding-bottom: 1rem;
    }

    .nav-item a {
        /*color: #d7d7d7;*/
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

        .nav-item a.active {
            /*background-color: rgba(255,255,255,0.25); 
                background-color: #555;
            color: white;
            */
            color: darkgray;
        }

        .nav-item a:hover {
            /* background-color: rgba(255,255,255,0.1);
            color: white;*/
            color: gray;
        }
.show-grid {
    margin-bottom: 15px;
}
.content {
    padding-top: 1.1rem;
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.glitch {
    position: relative;
    display: inline-block;
    /*color: #fff;*/ /* Белый цвет текста */
    /*font-weight: bold;
    font-family: 'Courier New', Courier, monospace;*/
    animation: glitchAnimation 1s infinite;
    text-shadow: 1px 1px 2px #000, /* Тонкая чёрная тень */
    -1px -1px 2px #000; /* Ещё одна чёрная тень */
}

    .glitch::before,
    .glitch::after {
        content: attr(data-text);
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0.6; /* Полупрозрачный эффект */
        clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
        animation: glitchEffect 1s infinite;
    }

    .glitch::before {
        color: #fff; /* Белый */
        z-index: -1;
        animation-delay: 0.2s;
    }

    .glitch::after {
        color: #fff; /* Белый */
        z-index: -2;
        animation-delay: 0.4s;
    }

@keyframes glitchAnimation {
    0%, 100% {
        transform: none;
    }

    20% {
        transform: translate(-1px, 1px);
    }

    40% {
        transform: translate(1px, -1px);
    }

    60% {
        transform: translate(-0.5px, 0.5px);
    }

    80% {
        transform: translate(0.5px, -0.5px);
    }
}

@keyframes glitchEffect {
    0% {
        clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
        transform: translate(-1px, -1px);
    }

    50% {
        clip-path: polygon(0 66%, 100% 66%, 100% 100%, 0 100%);
        transform: translate(1px, 1px);
    }

    100% {
        clip-path: polygon(0 33%, 100% 33%, 100% 66%, 0 66%);
        transform: translate(-1px, -1px);
    }
}




.year-selection {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .year-selection select {
        padding: 5px;
        font-size: 14px;
        border-radius: 5px;
        border: 1px solid #ccc;
    }


.months-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.month-block {
    width: 300px;
    height: 500px; /* Ограничиваем высоту блока */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    position: relative;
    overflow: hidden; /* Скрываем все, что выходит за пределы контейнера */
    overflow-y: auto;
    scrollbar-width: none; /* Скрываем полосу прокрутки в Firefox */
}
    .month-block::-webkit-scrollbar {
        display: none; /* Скрываем полосу прокрутки в WebKit-браузерах */
    }
.year-block {
    width: 300px;
    height: 500px; /* Ограничиваем высоту блока */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    position: relative;
    overflow: hidden; /* Скрываем все, что выходит за пределы контейнера */
    overflow-y: auto;
    scrollbar-width: none; /* Скрываем полосу прокрутки в Firefox */
}
    .year-block::-webkit-scrollbar {
        display: none; /* Скрываем полосу прокрутки в WebKit-браузерах */
    }
.leaderboard {
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 0;
}

.user-card {
    padding: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    position: absolute; /* Карточки будут абсолютно позиционироваться внутри блока */
    width: 100%; /* Ширина карточки равна ширине родительского блока */
    transition: transform 0.5s; /* Плавное перемещение */
}

/* Оформление блоков */
.year-result {
    margin-bottom: 20px;
    margin-top: 20px;
    display: flex;
    justify-content: center; /* Горизонтальное выравнивание по центру */
    align-items: center; /* Вертикальное выравнивание по центру */
    /*height: 500px; Высота для родительского контейнера */
}

.user-card {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 5px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease, background-color 0.3s ease;
}

    .user-card:hover {
        background-color: #e9ecef;
    }

.user-info p {
    margin: 5px 0;
}
.progress-container {
    width: 100%;
    background-color: #f3f3f3;
    border-radius: 5px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-bar {
    height: 10px;
    background-color: #4caf50;
    width: 0%; /* Начальный прогресс */
    transition: width 0.3s ease-in-out;
}
.icon-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .icon-button svg {
        fill: currentColor;
        width: 24px;
        height: 24px;
    }

    .icon-button:hover {
        opacity: 0.8;
    }


@media (max-width: 767.98px) {
    .main .top-row {
        display: none;
    }
}

@media (min-width: 768px) {
    app {
        flex-direction: row;
    }

    .sidebar {
        /*width: 250px;*/

        height: 100vh;
        position: sticky;
        top: 0;
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
}
