﻿html, body {
    font-family: "Roboto", sans-serif;
    /*font-family: "Roboto Condensed", sans-serif;*/
    /*'Helvetica Neue', Helvetica, Arial, sans-serif*/
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.divider {
    text-align: center;
    position: relative;
    margin: 20px 0;
}

    .divider::before, .divider::after {
        content: '';
        height: 1px;
        background: #ddd;
        position: absolute;
        top: 50%;
        width: 40%;
    }

    .divider::before {
        left: 0;
    }

    .divider::after {
        right: 0;
    }

    .divider span {
        padding: 0 10px;
        background: white;
        position: relative;
        z-index: 1;
    }

.custom-select-container {
    width: 100%;
    max-width: 400px;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

.custom-select-header {
    padding: 0.5rem 0.75rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ced4da;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-select-options {
    max-height: 300px;
    overflow-y: auto;
}

.custom-select-option {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
}

    .custom-select-option:hover {
        background-color: #f1f1f1;
    }

    .custom-select-option.selected {
        background-color: #e2f0fd;
    }

    .custom-select-option.dragging {
        opacity: 0.5;
        background-color: #d4edff;
    }

.draggable-item {
    cursor: grab;
    transition: transform 0.2s, box-shadow 0.2s;
}

.draggable-item.dragging {
    opacity: 0.5;
    transform: scale(1.02);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.drag-handle {
    cursor: move;
    margin-right: 0.5rem;
    user-select: none;
}

.checkbox-container {
    margin-right: 10px;
}

.custom-select-footer {
    padding: 0.5rem 0.75rem;
    background-color: #f8f9fa;
    border-top: 1px solid #ced4da;
    text-align: right;
}

.arrange-card {
    height: calc(100vh - 220px);
    overflow: hidden;
}

.arrange-card .arrange-content {
    overflow: auto;
    height: 65vh;
}

.radio-check-icon label {
    position: relative;
    padding-left: 1.5rem;
    cursor: pointer;
    user-select: none;
    line-height: 1.5;
    display: inline-block;
}

.radio-check-icon label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10%;
    width: 20px;
    height: 20px;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    background-color: #fff;
    transition: all 0.2s ease;
    text-align: center;
    line-height: 18px;
}

input[type="radio"]:checked ~ label::before {
    content: "✔";
    background-color: #198754;
    border: 1px solid #198754;
    color: white;
    font-size: 14px;
    font-weight: bold;
}

input[type="radio"]:checked ~ label.false::before {
    content: "✔";
    background-color: #dc3545;
    border: 1px solid #dc3545;
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.sys-nav {
    padding: 0 !important;
}

.sys-nav .nav-link{
    height: 4rem !important;
    padding-left: 2rem;
    border-radius: 0 !important;
}

.sidebar-accordion-btn::after{
    filter: invert(1);
}

.sidebar-accordion-btn:not(.collapsed)::after{
    filter: grayscale(1)
}

.sidebar-accordion-btn:hover {
    background: rgba(255,255,255,0.1) !important;
}

.sidebar-accordion-btn {
    height: 4rem;
}

.sidebar-accordion-item{
    background:none;
}

.sidebar-accordion-btn:focus{
    box-shadow: none;
}

.sidebar-accordion-body {
    padding: 0 !important;
    background: rgba(255,255,255,0.1) !important;
}

.custom-input-label {
    position: absolute;
    top: -0.6rem;
    left: 0.5rem;
    background: white;
    height: fit-content;
    line-height: normal;
    color: #999999; /*dimgray*/
    z-index: 0;
}

.minw-100 {
    min-width: 100px !important;
}

.minw-200 {
    min-width: 200px !important;
}

.w-200 {
    width: 200px !important;
}

/* Login */
.bg-login {
    background-image: url('/img/bg.png') !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}

.shadow-login {
    box-shadow: 0 1rem 1.5rem rgba(0,0,0,.075) !important;
    border-radius: 12px;
}

/* User profile menu */
.action {
    position: fixed;
    top: 20px;
    right: 30px;
}

    .action .profile {
        position: relative;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        overflow: hidden;
        cursor: pointer;
    }

        .action .profile img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

    .action .menu {
        position: absolute;
        top: 120px;
        right: -10px;
        padding: 10px 20px;
        background: #fff;
        width: 200px;
        border-radius: 15px;
        transition: 0.5s;
        visibility: hidden;
        opacity: 0;
    }

        .action .menu.active {
            top: 80px;
            visibility: visible;
            opacity: 1;
        }

        .action .menu::before {
            content: "";
            position: absolute;
            top: -5px;
            right: 28px;
            width: 20px;
            height: 20px;
            background: #fff;
            transform: rotate(45deg);
        }

        .action .menu h3 {
            width: 100%;
            text-align: center;
            font-size: 18px;
            padding: 20px 0;
            font-weight: 500;
            color: #555;
            line-height: 1.5em;
        }

            .action .menu h3 span {
                font-size: 14px;
                color: #cecece;
                font-weight: 300;
            }

        .action .menu ul li {
            list-style: none;
            padding: 16px 0;
            border-top: 1px solid rgba(0, 0, 0, 0.05);
            display: flex;
            align-items: center;
        }

            .action .menu ul li img {
                max-width: 20px;
                margin-right: 10px;
                opacity: 0.5;
                transition: 0.5s;
            }

            .action .menu ul li:hover img {
                opacity: 1;
            }

            .action .menu ul li a {
                display: inline-block;
                text-decoration: none;
                color: #555;
                font-weight: 500;
                transition: 0.5s;
            }

            .action .menu ul li:hover a {
                color: #ff5d94;
            }
