﻿html, body {
    overflow-x: hidden;
}

.gradient-border {
    border: 2px solid;
    border-image: linear-gradient(to right, #ffcccc, #6666ff) 1;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-top: 1rem;
}

.dark-border-panel {
    border: 2px solid black;
    border-radius: 1px;
    padding: 1rem 1.5rem;
    margin-top: 1rem;
}

.form-floating-custom {
    position: relative;
    margin-bottom: 1.5rem;
}

    .form-floating-custom > input,
    .form-floating-custom > select {
        border: none;
        border-bottom: 2px solid #000;
        border-image-slice: 1;
        border-radius: 0;
        box-shadow: none;
        outline: none;
        padding-left: 0;
    }

        .form-floating-custom > input:focus,
        .form-floating-custom > select:focus,
        .form-floating-custom > input:hover,
        .form-floating-custom > select:hover {
            border-bottom: 2px solid transparent;
            border-image: linear-gradient(to right, #bc9cb0, #55e4d4, #0f74ff) 1;
            border-image-slice: 1;
            box-shadow: none;
        }

    .form-floating-custom label {
        position: absolute;
        top: -0.8rem;
        left: 0;
        font-size: 0.8rem;
        color: #999;
    }

    .form-floating-custom .select2 {
        max-width: 350px;
    }

.step-label {
    color: #a1a1a1;
    font-weight: 500;
    font-size: 1.1rem;
}

.min-width-350{
    min-width:350px;
}

.width-350 {
    width: 350px;
}

.edit-button,
.addition-info-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.step-label-wrapper {
    display: inline-block;
}

.gradient-underline {
    height: 2px;
    width: 100%;
    background: linear-gradient(to right, #C0ADB3 0%, #4D8DF6 100%);
    border-radius: 1px;
}

.btn-remove {
    background: none;
    border: none;
    color: #888;
}

.external-checkbox {
    margin-left: 1rem;
}

    .external-checkbox .custom-check {
        margin-top: 4.5rem;
        margin-bottom: 4.5rem;
    }

.custom-checkbox-input {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #333;
    border-radius: 2px;
    display: inline-block;
    position: relative;
    cursor: pointer;
}

    .custom-checkbox-input:checked::after {
        content: "\2713";
        position: absolute;
        font-size: 18px;
        color: #000;
        top: -6px;
        left: 1px;
    }

.custom-checkbox-as-radio {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    cursor: pointer;
}
    .custom-checkbox-as-radio:checked::after {
        content: "";
        position: absolute;
        font-size: 18px;
        color: #000;
        top: 3px;
        left: 3px;
        background: #000;
        width: 10px;
        height: 10px;
        border-radius: 50%;
    }
/*Change color "pule" into filter on select button */
.form-check-input {
    border-color: black;
}

.form-check-input:checked.radio-dark {
    border-color: black;
    background-color: #ffffff;
}

/* Intro point */
.form-check input[type="radio"]:checked + label::after {
    content: "";
    position: absolute;
    left: -18px;
    top: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
}

.form-check-inline {
    margin-right: 1.5rem;
}

.form-check-label {
    position: relative;
    cursor: pointer;
}

.btn-filter {
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 25px;
    padding: 4px 12px;
}

.select2-container {
    margin-top: 0.5rem; /* отступ вниз, чтобы не наезжал на label */
    width: 100% !important; /* на всякий случай */
}

.select2-dropdown {
    /*max-width: 100% !important;*/
    /*width: auto !important;*/
    overflow-x: hidden !important;
}

.select2-container--default .select2-selection--multiple,
.select2-container--default .select2-selection--single {
    border: none;
    border-bottom: 2px solid #000;
    border-image-slice: 1;
    border-radius: 0;
    box-shadow: none;
    outline: none;
    padding-left: 0;
}

    .select2-container--default .select2-selection--multiple:focus,
    .select2-container--default .select2-selection--single:focus,
    .select2-container--default .select2-selection--multiple:hover,
    .select2-container--default .select2-selection--single:hover {
        border-bottom: 2px solid transparent;
        border-image: linear-gradient(to right, #bc9cb0, #55e4d4, #0f74ff) 1;
        border-image-slice: 1;
        box-shadow: none;
    }

.btn-dark:hover {
    background-color: #fff; 
    color: #000;
    border: 1px solid #000; 
}

/****** custom-radio *******/

.custom-radio {
    position: relative;
    margin-bottom: 12px;
}

    .custom-radio input[type="radio"] {
        display: none;
    }

    .custom-radio label {
        cursor: pointer;
        font-size: 16px;
        padding-left: 28px; /* место под круг */
        position: relative;
        display: inline-block;
    }

        /* Внешний круг */
        .custom-radio label::before {
            content: "";
            width: 20px;
            height: 20px;
            border: 2px solid #000;
            border-radius: 50%;
            position: absolute;
            left: 0;
            top: 4px; /* чтобы круг был на одном уровне */
            box-sizing: border-box;
        }

    /* Внутренняя точка */
    .custom-radio input[type="radio"]:checked + label::after {
        content: "";
        width: 10px;
        height: 10px;
        background: #000;
        border-radius: 50%;
        position: absolute;
        left: 5px;
        top: 9px; /* центр маленького круга */
    }


/*****switch*****/
.custom-switch .form-check-input {
    width: 2.5em;
    height: 1.3em;
    background-color: #E4E7EC;
    border: none;
    cursor: pointer;
    box-shadow: inset 0 0 0 2px #E4E7EC;
    transition: 0.2s;
}

    .custom-switch .form-check-input:checked {
        background-color: #000;
        box-shadow: inset 0 0 0 2px #000;
    }

        .custom-switch .form-check-input:checked::before {
            background-color: #fff;
            transform: translateX(1.2em);
        }

    .custom-switch .form-check-input::before {
        content: "";
        position: relative;
        left: 0.1em;
        top: 0.1em;
        width: 1.1em;
        height: 1.1em;
        background-color: #fff;
        border-radius: 50%;
        display: block;
        transition: 0.2s;
    }
/***************/