@use 'toggle';

.option {
    &.opt-level {
        &.one {
            font-weight: bold;
        }

        &.two {
            font-weight: normal;
            padding-left: 15px;
        }

        &.three {
            font-weight: lighter;
            padding-left: 30px;
        }
    }
}

tr.same-line {
    td {
        display: flex;
        align-items: center;
    }
}

.infocob-settings-container {
    padding: 20px;
    background-color: #f9f9f9;
    overflow: hidden;
}

.accordion-section {
    margin-bottom: 5px;
    border-bottom: 0;

    .accordion-toggle {
        background-color: white;
        color: #0073aa;
        padding: 15px 30px;
        border: 1px solid #ddd;
        cursor: pointer;
        text-align: left;
        font-weight: bold;
        font-size: 1rem;
        border-radius: 4px;
        margin-bottom: 10px;
        position: relative;

        &::after {
            content: '';
            position: absolute;
            top: 50%;
            transform: translateY(-50%) rotate(0deg);
            right: 10px;
            width: 16px;
            height: 16px;
            mask-image: url("../chevron.svg");
            mask-size: contain;
            mask-position: center center;
            mask-repeat: no-repeat;
            background-color: #0073aa;
            -webkit-mask-image: url("../chevron.svg");
            -webkit-mask-size: contain;
            -webkit-mask-position: center center;
            -webkit-mask-repeat: no-repeat;
            transition: transform 0.3s ease;
        }

        &.active::after {
            transform: translateY(-50%) rotate(180deg);
        }
    }

    .accordion-content {
        display: none;
        padding: 20px 20px;
        background-color: #f1f1f1;
        border: 1px solid #ddd;
        border-top: none;
        margin-bottom: 15px;

        > :last-child {
            margin-bottom: 0;
        }
    }

    .form-field {
        margin-bottom: 15px;
    }

    label {
        font-weight: bold;
        display: block;
    }

    input[type="text"],
    input[type="number"],
    input[type="password"],
    select {
        width: 100%;
        padding: 8px;
        margin-top: 5px;
        border: 1px solid #ddd;
        border-radius: 4px;
    }

    input[type="checkbox"] {
        margin-right: 10px;
    }

    .button {
        background-color: #0073aa;
        color: white;
        padding: 10px 15px;
        border: none;
        border-radius: 4px;
        cursor: pointer;

        &:hover {
            background-color: #005f8c;
            color: white;
        }
    }

    .checkbox-field {
        display: flex;
        align-items: center;

        label {
            margin-right: 10px;
        }
    }
}