@import url('variables.css');


@media (max-width: 576px) { /* Условие для экранов до 576px (мобильные устройства) */
    body {
        font-size: 12px; /* Уменьшаем размер шрифта */
    }

    .table td, .table th {
        padding: 8px;
        font-size: 12px; /* Уменьшаем размер шрифта для таблицы */
    }

    .header h1 {
        font-size: 1.5rem; /* Меньший размер заголовка */
    }

    h4 {
        font-size: 1.2rem;
    }

    .header h4 {
        font-size: 1rem; /* Меньший размер подзаголовка */
    }

    .btn-custom {
        width: 100%;
    }

    nav h1 {
        font-size: 16px;
    }

}

body {
    font-size: 14px;
    background-color: var(--main-bg-color);
    font-family: 'Lato', sans-serif;
    color: var(--grey-dark-color);
    padding-top: 100px;
}

/* ===================== CUSTOM SCROLL =========== */

@supports (-webkit-appearance: none) {
    /* Styles for WebKit browsers (Chrome, Safari, Edge) */
    ::-webkit-scrollbar {
        width: 7px;
    }

    ::-webkit-scrollbar-track {
        background-color: var(--grey-light-color);
        border-radius: 0;
    }

    ::-webkit-scrollbar-thumb {
        background-color: var(--primary-color);
        border-radius: 0;
    }

    ::-webkit-scrollbar-button {
        display: none; /* Hide scrollbar arrows */
    }


}

.firefox {
    div {
        scrollbar-width: thin;
        scrollbar-color: var(--primary-color) var(--grey-light-color);
    }
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--grey-light-color); /* Firefox only */

}

/* ================= SHARED STYLES ================= */

.card-block {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow:  var(--box-shadow);

}

@media (max-width: 576px) { /* Условие для экранов до 576px (мобильные устройства) */
    .card-block {
        padding: 16px 12px;
    }

}

.bg-light-success {
    background: rgba(0, 128, 0, 0.02) !important;
}

.bg-light-error {
    background: rgba(255, 0, 0, 0.02) !important;
}
.bg-light-warning {
    background: rgba(255, 120, 0, 0.02) !important;
}

.text-success {
    color: var(--success-color) !important;
}
.text-error {
    color: var(--danger-color) !important;
}
.text-warning {
    color: var(--secondary-color) !important;
}
.bg-success {
    background-color: #ff7800 !important;
}
.bg-error {
    background-color: #a2a2a2 !important;
}

.text-black {
    color:  var(--grey-dark-color) !important;
}

.bold {
    font-weight: 600;
}



th {
    font-weight: bold;
    color: var(--secondary-color);
}

.text-center {
    text-align: center;
}

.btn-custom {
    background-color: var(--primary-dark-color);
    color: white;
    box-sizing: border-box;
    padding-bottom: 9px;
}

.btn-custom:hover {
    background-color: var(--primary-light-color) ;
    color: white;
}

.btn-secondary {
    border-color: var(--secondary-color);
    background-color: var(--secondary-color);
}

.btn-secondary:hover {
    border-color: #f39100;
    background-color: #f39100;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.table-striped tbody tr:nth-child(odd) {
    background-color: var(--main-bg-color);
}


/* =====================  NAV  ====================== */
nav {
    position: fixed;
    top: 12px;
    left: 0;
    width: 100%;
    z-index: 10;

    .navbar-container {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 12px 20px;
        border-radius: var(--border-radius);
        background-color: rgba(255, 255, 255);
        transition: all 0.2s ease-in-out;
        backdrop-filter: blur(15px);
        box-shadow: var(--box-shadow);
    }

    .navbar-container.scroll {
        background-color: rgba(255, 255, 255, 0.41);
    }

    #nav-logo {
        text-decoration: none;
        color: var(--primary-color);
    }


    h1 {
        font-size: 20px;
        margin: 0;
        white-space: nowrap;
    }

    svg {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 12;
        path {
            fill: var(--grey-medium-color);
        }
    }

    .input-container {
        position: relative;
        width: 100%;
        transition: all 0.2s ease-in-out;
    }

    .search-input {
        border-radius: var(--border-radius);
        /*box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);*/
        border: none;
        background-color: var(--main-bg-color);
        width: 100%;
        padding: 10px 10px 10px 35px;
        transition: all 0.2s ease-in-out;
    }

    .search-input:focus {
        outline: none;
        box-shadow: none;
        background-color: var(--main-bg-color);
        /*border-color: #005577;*/
        /*border-color: transparent;*/
    }

    .search-input::placeholder {
        color: var(--grey-medium-color);
    }

    #search-results {
        position: fixed;
        top: 70px;
        width: 100%;
        left: 0;
        font-weight: 400;
        color: #1b1b1b;
        /*box-shadow: 0 1px 60px rgba(0, 0, 0, 0.05);*/
        box-shadow: 0 26px 100px -50px rgba(34, 60, 80, 0.2);
        background-color: rgba(255, 255, 255);
        backdrop-filter: blur(10px);
        display: flex;
        align-items: center;
        padding: 4px;
        border-radius: var(--border-radius);
        flex-direction: column;
        max-height: 250px;
        overflow-y: auto;
    }

    .list-item {
        cursor: pointer;
        list-style: none;
        border-radius: var(--border-radius);
        width: 100%;
    }

    .list-item-body {
        padding: 8px ;
        display: flex;
        width: 100%;
        gap: 5px;
        align-items: center;
        border-bottom: 1px solid var(--main-bg-color);;
        p {
            margin: 0;
        }
        img {
            border-radius: 50%;
            object-fit: cover;
        }
    }
    .list-item:hover {
        background-color: rgba(248, 249, 250, 1);
    }

}

@media (max-width: 576px) { /* Условие для экранов до 576px (мобильные устройства) */
    nav {
        .navbar-container {
            padding: 12px;
        }
        h1 {
            font-size: 16px;
        }
    }

}


/* =======================  FOOTER ================== */

footer {
    margin-top: 40px;
}

/* ===================  SCROLL TO TOP BUTTON =========== */

#scrollToTop {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #f0f0f0;
    color: var(--primary-color);
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}
#scrollToTop:focus {
    outline: none;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}
#scrollToTop:hover {
    background-color: #e0e0e0;
}

/* ================== TOOLTIP ================= */

/* Tooltip Container */
.tooltip-container {
    position: relative;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Tooltip Text */
.tooltip {
    visibility: hidden;
    width: fit-content;
    background-color: #333;

    white-space: nowrap;
    color: #fff;
    text-align: center;
    padding: 8px;
    border-radius: 4px;
    /* Position the tooltip */
    position: absolute;
    bottom: 125%; /* Position above the container */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

/* Tooltip Arrow */
.tooltip::after {
    content: '';
    position: absolute;
    top: 100%; /* At the bottom of the tooltip */
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* Show the tooltip on hover */
.tooltip-container:hover .tooltip {
    visibility: visible;
    opacity: 1;
}


/* =========================== PAGINATION  ======================== */

.pagination {
    margin-top: 20px;
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
}

.page-link {
    color: var(--primary-color);
    padding: 10px 15px;
    width: 50px;
    margin: 5px;
    border-radius: 5px;
    text-align: center;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

.page-item:first-child .page-link {
    margin-left: 5px;
}

.page-item .page-link:hover {
    background-color: #e0e0e0;
}

.team-logo {
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}