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

$blue: #449eea;
$gray : #919ca0;
$green : #7ebd7e;
$red : #ff7878;

.tools_page_url-rewrite-analyzer {
    font-family: 'Ubuntu', sans-serif;

    h2 {
        font-family: 'Ubuntu', sans-serif;
    }

    #_regex-search-bar {
        display: flex;
        padding: 20px 0;

        .prefix-url {
            display: flex;
            align-items: center;
            background: aliceblue;
            color: $gray;
            font-family: 'Ubuntu', sans-serif;
            font-size: 16px;
            font-weight: 300;
            padding: 20px;
            padding-right: 0;
            border-radius: 5px 0 0 5px;
        }

        #regex-tester {
            margin: 0;
            width: 100%;
            padding: 20px;
            padding-left: 0;
            border: none;
            background: aliceblue;
            color: black;
            font-family: 'Ubuntu', sans-serif;
            font-size: 16px;
            font-weight: 300;
            border-radius: 0 5px 5px 0;

            &:focus {
                outline: none;
                box-shadow: none;
            }
        }
    }

    table {
        border-radius: 5px;
        border: none;

        thead{
            tr{
                th{
                    font-size: 15px;
                    border-color: #dedede;
                    background: aliceblue;
                    padding: 20px;
                    &:nth-child(1){
                        border-radius: 5px 0 0 0;
                    }
                    &:nth-child(2){
                        border-radius: 0 5px 0 0;
                    }
                }
            }
        }

        tbody {
            tr {
                transition: all .3s ease;
                cursor: pointer;
                td {
                    border-bottom: 1px solid #dedede;
                    padding: 20px;
                    line-height: 1;
                    vertical-align: middle;
                    font-weight: 300;
                    span{
                        font-size: 15px;
                    }
                }
                &:hover{
                    background-color: aliceblue;
                }
            }
        }
    }

}

.regexgroup,
.regexgroup-target {
    color: $blue;
    font-style: italic;
}
.regexgroup,
.queryvalue {
    font-weight: bold;
}
.queryvar-unread {
    color: $red;
    font-style: italic;
    text-decoration: line-through;
}
.regex-repeater-target{
    &.highlight {
    text-decoration: underline;
    }
}
#regex-help-wrap dd {
    margin-left: 1em;
}
.regexgroup-target-value {
    display: none;
}
.rewrite-rule-unmatched {
    display: none;
}
.rewrite-rule-matched {
    &.rewrite-rule-matched-first {
        background-color: $green;
        td{
            color: white;
        }
    }

    .regexgroup-target-value {
        display: inline;
    }

    .regexgroup-target {
        display: none;
    }
    &:hover{
        td{
            color: black;
        }
    }
}

