﻿/* LL Colours */
:root {
    --ll-grey-wash: rgba(241,237,234,1);
    --ll-warm-grey-light: rgba(189,183,159,1);
    --ll-warm-grey-dark: rgba(154,140,126,1);
    --ll-magenta: rgba(175,0,95,1);
    --ll-magenta-50: rgba(175,0,95,0.5);
    --ll-magenta-75: rgba(175,0,95,0.75);
    --ll-magenta-light: rgba(175,95,138,1);
    --ll-black: rgba(51,51,51,1);
    --ll-black-50: rgba(51,51,51,0.5);
    --ll-black-dim: rgba(21,21,21,1);
    --ll-red: rgba(255,89,88,1);
    --ll-red-dim: rgba(255,89,88,0.25);
    --ll-amber: rgba(252,178,86,1);
    --ll-amber-dim: rgba(252,178,86,0.25);
    --ll-orange: rgba(255,170,80,1);
    --ll-yellow: rgba(239,213,86,1);
    --ll-yellow-dim: rgba(239,213,86,0.25);
    --ll-yellow-green: rgba(205,250,90,1);
    --ll-green: rgba(142,204,102,1);
    --ll-green-dim: rgba(142,204,102,0.25);
    --ll-accent-1: rgba(153,153,102,1);
    --ll-accent-2: rgba(102,204,204,1);
    --ll-accent-3: rgba(204,204,153,1);
    --ll-accent-4: rgba(153,153,204,1);
    --ll-accent-5: rgba(102,153,153,1);
    --ll-accent-6: rgba(102,102,153,1);
    --ll-accent-7-25: rgba(153,204,255,0.25);
    --ll-accent-7-50: rgba(153,204,255,0.5);
    --ll-accent-7-75: rgba(153,204,255,0.75);
    --ll-accent-7: rgba(153,204,255,1);
    --ll-accent-8: rgba(153,204,153,1);
    --ll-accent-9: rgba(169,161,151,1);
    --dark-grey: rgba(70,70,70,1);
}

.ll-grey-wash { color: var(--ll-grey-wash); }
.ll-warm-grey-light { color: var(--ll-warm-grey-light); }
.ll-warm-grey-dark { color: var(--ll-warm-grey-dark); }
.ll-magenta { color: var(--ll-magenta); }
.ll-magenta-50 { color: var(--ll-magenta-50);}
.ll-magenta-75 { color: var(--ll-magenta-75);}
.ll-magenta-light { color: var(--ll-magenta-light); }
.ll-black { color: var(--ll-black);}
.ll-red { color: var(--ll-red); }
.ll-amber { color: var(--ll-amber); }
.ll-green { color: var(--ll-green); }
.ll-accent-1 { color: var(--ll-accent-1); }
.ll-accent-4 { color: var(--ll-accent-4); }
.ll-accent-5 { color: var(--ll-accent-5); }
.ll-accent-6 { color: var(--ll-accent-6); }
.ll-accent-7 { color: var(--ll-accent-7); }
.dark-grey { color: var(--dark-grey);}

.ll-magenta-background { background-color: var(--ll-magenta); }
.ll-magenta-light-background { background-color: var(--ll-magenta-light); }
.ll-accent-1-background { background-color: var(--ll-accent-1); }
.ll-accent-4-background { background-color: var(--ll-accent-4); }
.ll-accent-5-background { background-color: var(--ll-accent-5); }
.ll-accent-6-background { background-color: var(--ll-accent-6); }
.ll-accent-7-background { background-color: var(--ll-accent-7); }

/* Default text colours */
a, .btn-link { color: var(--ll-accent-7); }
a:hover, .btn-link:hover { color: var(--ll-accent-6); text-decoration: none; }
a:visited, .btn-link:visited { color: var(--ll-accent-4); text-decoration: none; }

@keyframes pulse {
    0% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.7;
    }
}

/* Layout */
html {
    height: 100%;
    font-size: 18px;
}

body {
    font-family: "TradeGothicLTPro-Light",Arial,sans-serif;
    font-size: 14px;
}

.width-80 {
    width: 80%;
}

.text-center {
    text-align: center;
}


/*::-webkit-scrollbar {
    width: 0.5em;
}

::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background-color: var(--ll-warm-grey-dark);
    outline: 1px solid var(--ll-warm-grey-dark);
}*/

*::-webkit-scrollbar,
*::-webkit-scrollbar-thumb {
    width: 20px;
    border-radius: 10px;
    background-clip: padding-box;
    border: 6px solid transparent;
}

*::-webkit-scrollbar-thumb {
    box-shadow: inset 0 0 0 5px;
    color: var(--ll-warm-grey-dark);
}

*::-webkit-scrollbar-track {
    background-color: var(--ll-black);
}

app {
    min-height: 100vh;
}


.page {
    min-height: calc(100vh - 3.5rem);
}

.loading {
    position: absolute;
    top: 30vh;
    width: 100%;
    text-align: center;
}

.loading-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
}



.page-background {
    /*background: linear-gradient(var(--ll-black), #000);*/
    background-color: var(--ll-black-dim);
    color: var(--ll-grey-wash);
    height: 100%;
    min-height: 100%;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.sidebar {
    /*background-image: inherit;*/
    background-image: none;
    background-color: var(--ll-black);
}

@media (min-width: 1399px) {
    .sidebar {
        width: 300px;
        height: inherit;
        position: relative;
    }
}


/*.main.page-background .top-row {
    border-bottom: none;
    background-color: rgba(0,0,0,0.8);
    justify-content: space-between;
}*/

/*.main .top-row {
    border-bottom: solid;
    border-width: 2px;
    border-image: linear-gradient( to right, var(--ll-magenta), var(--ll-black), var(--ll-magenta), var(--ll-black), var(--ll-magenta) ) 1 100%;
    border-image-slice: 1;
}*/

.top-row, .top-row-extra {
    position: sticky;
    top: 0;
    z-index: 99;
    border-bottom: solid;
    border-width: 2px;
    border-image: linear-gradient( to right, var(--ll-magenta), var(--ll-black), var(--ll-magenta), var(--ll-black), var(--ll-magenta) ) 1 100%;
    border-image-slice: 1;
    transform: translateZ(0);
}

.content {
    border-left: none;
}

@media (max-width: 575.98px) {
    .content {
        padding: 0 !important;
    }
}

@media (min-width: 1400px) {
    .content {
        border-left: solid thin var(--ll-black);
    }
}

/* Nav */
.nav-menu ul {
    list-style-type: none;
    padding: 0px;
}

.nav-item > a.nav-link.active {
    background-color: var(--ll-warm-grey-light);
}

.sidebar .navbar .navbar-brand {
    font-size: 1.3em;
}

.sidebar .top-row {
    line-height: 22px;
}

.navbar-brand > img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    vertical-align: sub;
}

.navbar-buttons {
    min-width: 300px;
}

.strapline {
    font-style: italic;
    justify-content: start;
    font-size: 0.8em;
    color: var(--ll-grey-wash);
    align-self: center;
}

@media (max-width: 900px){
    .strapline {
        display: none;
    }
}

.fa-icon-spacer {
    margin-right: 5px;
}


.blazored-typeahead .blazored-typeahead__input {
    padding-left: 2.375rem;
}

.blazored-typeahead .blazored-typeahead__input-mask {
    padding-left: 2.375rem;
}


.hide {
    display:none;
}

.unhide {
    display: inherit;
}

.icon-img {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    border: 1px hidden #000;
    border-radius: 10px;
}

.icon-img-placeholder {
    background: var(--ll-magenta);
    border: 2px solid var(--ll-grey-wash);
    animation: pulse 1.75s ease infinite;
}

.modal-header {
    align-items: center;
}

.modal-header .icon-img {
    margin: 0px 20px 0px 0px;
}

.icon-img-small {
    width: 50px;
    border: 1px hidden #000;
    border-radius: 10px;
}


/* List Item bits */
.list-content-container {
    display: grid;
    grid-template-columns: [app-list]340px [app-details]1fr;
}

.list-container {
    grid-area: app-list;
    border-right: 1px solid var(--ll-black);
}

.list-icon-group {
    display: flex;
}

.list-icon-initials-text {
    font-size: 35px;
    font-family: TradeGothicLTPro-Light;
    text-align: center;
    line-height: 35px;
    width: 35px;
    font-weight: 700; /* To ensure contrast is high enough to meet accessibility recommendations */
}

.list-item-icon-container {
    width: 35px;
    margin-right: 10px;
    display: inline-block;
}


@media (min-width: 1399px) {
    .icon-category-title {
        font-size: 1.5em;
    }
}

.icon-category-title-icon {
    margin-right: 0.5rem;
    display: inline-block;
    transform: rotate(90deg);
}

.icon-category-title-icon-closed {
    margin-right: 0.5rem;
    display: inline-block;
}

.icon-flag {
    height: 20px;
    width: 80px;
    position: relative;
    right: 5px;
    bottom: 105px;
    margin-bottom: -20px;
    background-color: var(--ll-accent-6);
    color: var(--ll-grey-wash);
    font-size: 0.7em;
    font-weight: bold;
    padding: 0px 5px;
    text-align: center;
    border: thin solid var(--ll-grey-wash);
    border-radius: 3px;
    cursor: help;
    text-decoration: none;
    z-index: 2;
}

.icon-flag.new {
    width: 50px;
}

.icon-flag.updated {
    width: 75px;
}

.icon-flag-tooltip {
    background-color: var(--ll-accent-6);
    color: var(--ll-grey-wash);
    font-size: 1.1em;
    padding: 2px 5px;
    text-align: center;
    border: thin solid var(--ll-grey-wash);
    border-radius: 3px;
    margin-left: -999em;
    position: absolute;
    width: 80px;
}

.icon-flag:hover span {
    margin-left: -64px;
    margin-top: -3px;
    z-index: 999;
}

.app-detail-corner-ribbon:hover .icon-flag-tooltip,
.app-detail-corner-ribbon-small:hover .icon-flag-tooltip {
    margin-left: -64px;
    margin-top: -3px;
    z-index: 999;
}

.icon-description-tooltip {
    background-color: var(--ll-accent-6);
    color: var(--ll-grey-wash);
    font-size: 0.9em;
    padding: 5px 5px;
    text-align: justify;
    border: thin solid var(--ll-grey-wash);
    border-radius: 3px;
    margin-left: -999em;
    position: absolute;
    width: 500px;
}

.icon-description:hover .icon-description-tooltip {
    margin-left: -200px;
    margin-top: -200px;
    z-index: 999;
}

.icon-initials-text {
    font-size: 6em;
    font-family: TradeGothic;
    text-align: center;
    line-height: 100px;
    font-weight: 700; /* To ensure contrast is high enough to meet accessibility recommendations */
    /*-webkit-text-stroke: 1px var(--ll-black);*/
}

.icon-initials-background {
    background-color: transparent;
}


/* App details */
.app-detail {
    background-color: var(--ll-black);
    margin: 8px;
    width: 500px;
}

.app-detail-modal {
    /*    //background-color: var(--ll-black);*/
    color: var(--ll-grey-wash);
    /*    border: 1px solid var(--ll-warm-grey-dark);
    max-height: 675px;*/
}

.app-detail-modal-header {
    line-height: 50px;
    padding: 14px 25px;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-end;
}

.app-detail-modal-header-spacer {
    margin-left: auto;
}

.app-detail-modal-header-button {
    color: var(--ll-accent-4);
    background-color: inherit;
    border: none;
    font-size: 3em;
    margin: 0.5rem;
}

    .app-detail-modal-header-button:hover {
        cursor: pointer;
    }

.app-detail-button {
    color: var(--ll-accent-4);
    background-color: inherit;
    border: none;
    font-size: 2em;
    margin-left: 1rem;
}

    .app-detail-button:hover {
        cursor: pointer;
    }

.modal-dialog .modal-header {
    padding: 1rem 1.5rem;
}

.modal-title {
    margin-right: auto;
}

.close{
    color:white;
}

.app-detail-modal-header-open {
    align-self: center;
    margin-left: 10px;
    margin-right: 15px;
}

.close.app-detail-modal-header-close {
    margin-left: 0px;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
}

.app-detail-modal-header-icon {
    margin-left: -13px;
    margin-top: 2px;
}

.app-detail-modal-header-title {
    font-size: 1.5em;
    color: #fff;
/*    margin-top: 10px;
    margin-left: -58px;*/
    display: flex;
    line-height: 1.5em;
    justify-content: space-between;
}

.app-detail-modal-header-image-container {
    width: 100%;
    height: 150px;
    margin-bottom: 5px;
}

.app-detail-modal-header-image {
    object-fit: cover;
    width: inherit;
    height: inherit;
    filter: opacity(80%);
/*    filter: blur(3px);*/
    padding: 0px;
    margin: 0px;
}

.app-detail-modal-body {
    font-size: 1rem;
    padding: 25px;
}

.modal-dialog .modal-body {
    padding: 1rem 1.5rem;
    overflow-y: scroll;
}

.app-detail-modal-description {
    margin-top: 5px;
    margin-bottom: 0.5rem;
    margin-left: 0.5rem;
}

.app-detail-corner-ribbon {
    width: 150px;
    height: 150px;
    overflow: hidden;
    position: absolute;
    z-index: 1;
    left: 0px;
    top: 0px;
}

.app-detail-corner-ribbon-small {
    width: 100px;
    height: 100px;
    overflow: hidden;
    position: absolute;
    z-index: 1;
    left: 0px;
    top: 0px;
}

.app-detail-corner-ribbon span {
    position: relative;
    display: block;
    width: 240px;
    padding: 3px 0;
    background-color: var(--ll-accent-6);
    box-shadow: 0 5px 10px rgba(0,0,0,.1);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-shadow: 0 1px 1px rgba(0,0,0,.2);
    text-transform: uppercase;
    text-align: center;
    border-bottom-color: var(--ll-grey-wash);
    border-bottom: 1px solid;
    border-top-color: var(--ll-grey-wash);
    border-top: 1px solid;
}

.app-detail-corner-ribbon-small span {
    position: relative;
    display: block;
    width: 100px;
    padding: 3px 0;
    background-color: var(--ll-accent-6);
    box-shadow: 0 5px 10px rgba(0,0,0,.1);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-shadow: 0 1px 1px rgba(0,0,0,.2);
    text-transform: uppercase;
    text-align: center;
    border-bottom-color: var(--ll-grey-wash);
    border-bottom: 1px solid;
    border-top-color: var(--ll-grey-wash);
    border-top: 1px solid;
}

.app-detail-corner-ribbon::before,
.app-detail-corner-ribbon::after {
    border-top-color: transparent;
    border-left-color: transparent;
}

.app-detail-corner-ribbon::before {
    top: 0;
    right: 0;
}

.app-detail-corner-ribbon::after {
    bottom: 0;
    left: 0;
}

.app-detail-corner-ribbon span {
    right: 81px;
    top: 23px;
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
}

.app-detail-corner-ribbon-small span {
    right: 60px;
    top: 0px;
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
}

.app-detail-modal-h3 {
    color: var(--ll-warm-grey-light);
}






.subheading {
    font-size: 1.2rem;
    color: var(--ll-warm-grey-light);
    margin-top: 5px;
    margin-bottom: 2px;
    display: inline-block;
}

.complexity-low {
    color: var(--ll-green);
    font-weight: bold;
}

.complexity-medium {
    color: var(--ll-amber);
    font-weight: bold;
}

.complexity-high {
    color: var(--ll-red);
    font-weight: bold;
}

/* Traffic lights */
.traffic-lights-container {
    padding-top: 5px;
    padding-left: 10px;
    padding-right: 10px;
    display: inline-block;
}

.traffic-lights-red-dim {
    width: 15px;
    height: 15px;
    border: none;
    border-radius: 50%;
    background-color: var(--ll-red-dim);
    display: inline-block;
}

.traffic-lights-amber-dim {
    width: 15px;
    height: 15px;
    border: none;
    border-radius: 50%;
    background-color: var(--ll-amber-dim);
    display: inline-block;
}

.traffic-lights-green-dim {
    width: 15px;
    height: 15px;
    border: none;
    border-radius: 50%;
    background-color: var(--ll-green-dim);
    display: inline-block;
}

.traffic-lights-red {
    width: 15px;
    height: 15px;
    border: none;
    border-radius: 50%;
    background-color: var(--ll-red);
    display: inline-block;
}

.traffic-lights-amber {
    width: 15px;
    height: 15px;
    border: none;
    border-radius: 50%;
    background-color: var(--ll-amber);
    display: inline-block;
}

.traffic-lights-green {
    width: 15px;
    height: 15px;
    border: none;
    border-radius: 50%;
    background-color: var(--ll-green);
    display: inline-block;
}

.col-sm p {
    margin-bottom: 0px;
}

/* App Cards */
.icon-card {
    width: 300px;
}

.icon-card > .card {
    margin-top: 15px;
    margin-bottom: 15px;
}

.card-img-top.icon-card-image {
    object-fit: cover;
}


/* Spinners */
.spinner-small {
    width: 1rem !important;
    height: 1rem !important;
    margin: 0px !important;
}

.spinner-medium {
    width: 2.5rem !important;
    height: 2.5rem !important;
    margin: 0px !important;
}

.spinner-large {
    width: 4rem !important;
    height: 4rem !important;
}

/* Styles to account for Windows 10 125-150% display scaling */
@media (min-resolution: 76dpi) {
/*    body {
        font-size: 13px;
    }*/

    .app-detail-list-header .icon-initials-text {
        line-height: 1;
    }

    .icon-flag.new {
        width: 40px;
    }

    .icon-flag.updated {
        width: 65px;
    }

    .icon-flag {
        height: 16px;
        position: relative;
        bottom: 83px;
    }

    .list-item .icon-flag {
        left: -52px;
        /*bottom: -11px;*/
        font-size: 0.6em;
        height: 13px;
        width: 45px;
        float: left;
    }

    .workbench-cell .list-item .icon-flag {
        font-size: 0.3em;
    }

    .icon-description:hover .icon-description-tooltip {
        margin-left: -200px;
        margin-top: -150px;
        z-index: 999;
    }

/*    .icon-title-container {
        margin-top: 0px;
    }*/

    .app-detail-corner-ribbon span {
        font-size: 0.7rem;
        width: 150px;
        top: 22px;
        right: 40px;
    }

    .app-detail-corner-ribbon-small span {
        font-size: 0.5rem;
        width: 100px;
        top: 10px;
        right: 30px;
    }

    .app-detail-modal-body {
        font-size: 0.85rem;
    }

    .app-detail-modal-header-icon {
        margin-left: -26px;
        margin-top: 0px;
    }

    .app-detail-modal-header-icon > .icon-img {
        margin: 0px;
    }

    .app-detail-modal-header-title {
        font-size: 1.8rem;
    }

    .filter-warning {
        color: black;
        font-weight: bold;
        background-color: yellow;
        border-color: yellow;
        border-style: solid;
        border-width: 2px;
        border-radius: 3px;
    }

    .filter-warning-sticky {
        position: -webkit-sticky;
        top: 65px;
        z-index: 99;
    }

    .subheading {
        font-size: 1.1rem;
    }

    .filter-category-heading {
        font-size: 1rem;
    }

    .filter-category {
        font-size: 0.9rem;
    }

    .sidebar .navbar .navbar-brand{
        font-size: 1.8em;
    }

    .sidebar-version {
        font-size: 0.65em;
    }

    .strapline {
        font-size: 1em;
    }
}



/* Tooltips */
.tooltip {
    width: 300px;
    background-color: none;
    transition-delay: 0.75s;
}

.tooltip .arrow::before {
    border-color: transparent;
}

.tooltip-inner {
    width: 300px;
    max-width: 400px;
    background-color: var(--ll-accent-6);
    border: 1px solid var(--ll-grey-wash);
    text-align: left;
}

.tooltip-inner > div {
    width: 282px;
}

.tooltip-inner > span {
    width: 282px;
}


/* More overrides */
@media (-webkit-min-device-pixel-ratio : 1.5) and (device-height : 720px) and (device-width : 1280px) { /* This is 1920x1080 at 150% scaling! */
    .modal-xl {
        height: 540px;
    }
}

.blazored-toast {
    border-radius: 0.5rem;
    width: 22rem;
}

.blazored-toast-container{
    z-index: 9999 !important;
}

.position-topright {
    top: 5rem;
}

.blazored-toast-info {
    background-color: var(--ll-accent-6);
}

.tiny-icon .list-item-icon-container, 
.tiny-icon .icon-img, 
.tiny-icon .list-icon-initials-text {
    max-height: 1rem;
    max-width: 1rem;
    font-size: 1rem;
    line-height: 1;
}

/* Blazor Bootstrap overrides */
.modal-content {
    color: unset;
    background-color: var(--ll-black);
    border: 1px solid var(--ll-warm-grey-dark);
}

.selector-container .btn-group {
    background-color: var(--ll-grey-wash);
    color: var(--ll-black);
    border-radius: 0.25rem;
    width: 16rem;
}

    .selector-container .btn-group .dropdown-item {
        border-radius: unset;
        width: 16rem;
    }

    .selector-container .btn-group .dropdown-item:hover {
        background-color: var(--ll-warm-grey-dark);
        color: var(--ll-grey-wash);
    }


.selector-container .btn-group > .btn.dropdown-toggle {
    display: flex;
    align-items: center;
    width: 100%;
}

.selector-container .btn-group > .btn.dropdown-toggle::after {
    margin-left: auto;
}

.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before, .bs-tooltip-top .tooltip-arrow::before {
    border-top-color: var(--ll-grey-wash);
}

.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow::before, .bs-tooltip-right .tooltip-arrow::before {
    border-right-color: var(--ll-grey-wash);
}

.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow::before, .bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: var(--ll-grey-wash);
}

.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow::before, .bs-tooltip-left .tooltip-arrow::before {
    border-left-color: var(--ll-grey-wash);
}