
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Rubik:wght@400;500;700&display=swap');

:root {
    font-size: 16px;
}

@media screen and (max-width: 575.98px) {
    :root {
        font-size: 12px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0d6efd;
    --secondary-color: #3886fb;
    --border-radius: 8px;
    --primary-padding: 20px;
    --grey-color: #6C757D;
    --secondary-grey-color: #768088;
    --red-color: #E87C86;
    --red-secondary-color: #e5979f;
    --green-color: #00c94d;
    --red-bright-color: #e20017;
    --e-green: #CCFFCC;
    --e-red: #FFCCCC;
	--e-grey: #DAE0E4;
    --e-grey2: #D9D9D9;
    --e-purple: #EACFFF;
    --e-blue: #ccebff;
    --e-blue2: #9dd8ff;
}

body {
    font-size: 16px;
    font-family: 'Roboto', sans-serif !important;
    display: flex;
    justify-content: center;
    align-items: baseline;
}

html, body {
    height: 100%;
}

.bold {
    font-weight: 600;
}

.highlighted-header {
    color: var(--primary-color);
    padding: var(--primary-padding);
}

.no-highlight {
    display: flex;
    align-items: center;
    color: var(--grey-color);
}

.p-green {
    color: var(--green-color);
    margin-left: 5px;
}

.p-red {
    color: var(--red-bright-color);
    margin-left: 5px;
}

.svg-title {
    display: flex;
    align-items: center;
}

.horizontal-level {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vertical-level {
    display: flex;
    flex-direction: column;
}

.horizontal-wrap {
    display: flex;
    flex-direction: row;
}

.center {
    text-align: center;
}

h2 {
    font-size: Calc(1.325rem + .9vw);
}

.button {
    border-radius: var(--border-radius);
    color: #ffffff;
    background-color: var(--primary-color);
    padding: 5px 15px;
    margin: 5px;
    border: none;
    cursor: pointer;
    min-height: 40px;
    font-size: 16px;
    font-weight: 400;
    min-width: 70px;
}

.red-button {
    background-color: var(--red-color);
}

.button:hover {
    background-color: var(--secondary-color);
}

.red-button:hover {
    background-color: var(--red-secondary-color);
}

.grey-button {
    background-color: var(--grey-color);
}

    .grey-button:hover {
        background-color: var(--secondary-grey-color);
    }

.twin-width {
    max-width: 300px;
    min-width: 100px;
    width: auto;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #6c757d;
    z-index: 5;
}

    .password-toggle svg {
        width: 20px;
        height: 20px;
        display: block;
    }

.password-input {
    padding-right: 40px !important;
}

.eye-slash-icon {
    display: none;
}

.eye-icon {
    display: block;
}

.login-form {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

#id_password, #id_login {
    max-width: Calc(100% - 44px);
}

select,
textarea,
input:not([type="checkbox"], [type="radio"]) {
    padding: 5px;
    border: 1px solid var(--grey-color);
    border-radius: var(--border-radius);
    min-height: 35px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: inherit;
    background-color: white;
}

:where(select, textarea, input:not([type="checkbox"], [type="radio"])):focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(81, 151, 255, 0.25);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
    margin-bottom: 15px;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: center;
    white-space: nowrap;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    height: 35px;
}

.input-group input {
    flex: 1;
    height: 35px;
    padding: 15px 10px;
    border: 1px solid #ced4da;
    border-left: none;
    border-radius: 0 8px 8px 0;
    margin: 0;
}

    .input-group input:focus {
        outline: none;
        border-color: var(--secondary-color);
        box-shadow: 0 0 0 3px rgba(81, 151, 255, 0.25);
        z-index: 2;
    }

.main-template-container {
    margin-top: 50px;
    width: 100%;
    padding: 0px 20px;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--primary-padding);
    width: 100%;
    align-items: center;
}

    .container > * {
        text-align: center;
        margin-bottom: 15px;
    }

        .container > *:last-child {
            margin-bottom: 0;
        }

a {
    text-decoration: none;
    color: #0d6efd;
}

.header {
    background-color: white;
    padding: 5px 10px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 900;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
    height:54px;
}

.header__left {
    display: flex;
    align-items: center;
}

.header__right {
    display: flex;
    align-items: center;
    top: 5px;
    position: absolute;
    right: 20px;
}

.header__link {
    display: flex;
    align-items: center;
    padding: 5px 10px;
}

.header__link:hover {
    background-color: var(--secondary-color);
    color: white;
    border-radius: var(--border-radius);
}

    .header__link svg {
        margin-right: 3px;
    }

    .header__link:last-child {
        margin-right: 0;
    }

    .header__link img {
        width: 20px;
        height: 20px;
        margin-right: 5px;
    }


nav {
    background-color: #fff;
    color: #0d6efd;
    text-align: center;
}

    nav > ul {
        padding: 0;
        margin-bottom:0 !important;
    }

    nav li {
        display: inline-block;
        vertical-align: top;
        margin-right: 15px;
    }

    nav a {
        color: #0d6efd;
        text-decoration: none;
        border: 1px solid transparent;
        transition: 0.3s;
    }

.drop_down {
    position: relative;
    cursor: default;
}
.drop_down_header {
    background-color: #fff;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
    width: 300px;
    position: fixed;
    top: 52px;
    left: 0;
    z-index: 1000;
    display:none;
}

    .drop_down:hover .drop_down_list {
        display: block;
    }

.drop_down_list {
    background-color: #fff;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 100%;
    left: 0;
    width: max-content;
    max-width: 260%;
    text-align: left;
    padding-top: 10px;
    display: none;
}

.drop_down_list_item {
    cursor: pointer;
    width: 100%;
}

.drop_down_list_item:hover {
    background-color: var(--secondary-color);
}

.drop_down_list_item:hover .drop_down_link {
    color: white;
}

.drop_down_link {
    display: block;
    padding: 8px 15px;
}

.header input[type="checkbox"] {
    display: none;
}

nav label {
    display: none;
    cursor: pointer;
    transition: 0.3s;
}

.pagination {
    margin-top: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.pagination .step-links a {
    padding: 5px 10px;
    text-decoration: none;
    color: #007bff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    transition: all 0.3s;
}

.pagination .step-links a:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.pagination .current {
    padding: 5px 10px;
    color: #6c757d;
}

.pagination .current-number {
    font-weight: bold;
    color: #007bff;
}

@media screen and (max-width: 1170px) {
    nav {
        text-align: left;
        min-width:425px;
        position:absolute;
        top:10px;
    }

        nav label {
            z-index: 1;
            display: inline-block;
            background: transparent;
            width: 40px;
            height: 26px;
        }

        nav > ul {
            display: none;
            left: 0;
        }

        nav li {
            display: block;
            padding: 2px;
        }

    header input[type="checkbox"]:checked ~ label + ul {
        display: block;
    }

    li a {
        margin-left: 0px;
    }

    .drop_down_list {
        max-width: unset;
        box-shadow: unset;
        color: red;
        position: relative;
    }
}


.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 0px;
    border-radius: 5px;
    width: 80%;
    min-width: 500px;
    width: auto;
    max-width: 700px;
    position: relative;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
}

.modal-head {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 0px;
    padding: 15px;
    font-size: 20px;
    color: #ffffff;
    background-color: var(--primary-color);
    border-top-right-radius: var(--border-radius);
    border-top-left-radius: var(--border-radius);
}
