
:root {
    /*    --primary-color: #46b5d4;
    --button-text-color: #000000;
    --accent-color: #030708;
*/ --bs-black-rgb: #121212;
    --background-color: #121212;
    --bg-color-secondary: #181818;
    --bg-color-tertiary: #242424;
    --bg-color-button: #2D4E6B;
    --bg-color-backgroundBlue: #2D4E6B;
    --bg-color-red: darkred;
    --bg-color-green: #1C8032;
    --bg-color-yellow: #E5F04A;
    /*    --background-image: linear-gradient(#04294B, #000000);
*/ --text-color: #FCFCFC;
    --text-color-secondary: #B3B3B3;
    --text-color-blue: #5FA6E3;
    --bs-body-color: #ffffff !important;
    --bs-body-bg: #121212 !important;
    --header-background-color: rgba(255, 255, 255, 0.1);
    --accent-fill-rest: #2D4E6B !important;
    --accent-fill-hover: #2D4E6B !important;
    --accent-fill-active: #2D4E6B !important;
    --accent-fill-focus: #2D4E6B !important;
    --accent-stroke-control-rest: #2D4E6B !important;
    --accent-fill-hover: #2D4E6B !important;
    --foreground-on-accent-rest: #FFFFFF !important;
    /*--neutral-fill-rest: #242424 !important;
    --neutral-fill-input-rest: #242424 !important;*/
    --info: #C3C6C6 !important;
    --neutral-fill-layer-alt-rest: #121212 !important;
    --card-border: #333333;
    --status-good: #2D4E6B;
    --status-warn: #DB982C;
    --status-error: #F95959;
    /*    
    --fill-color: #242424 !important;
    --neutral-foreground-rest: #ffffff !important;
    --neutral-foreground-hover: #46b5d4 !important;
    --neutral-foreground-active: #4fc0fc !important;
    --neutral-foreground-focus: #333333 !important;
    --neutral-foreground-hint: #ffffff !important;
    --button-text-color: #000000;
    --fill-color: rgba(255, 255, 255, 0.1);
    --accent-fill-rest: #0b3f67;
    --accent-fill-hover: #4fc0fc;
    --accent-fill-active: #34b0fb;
    --accent-fill-focus: #60c9fc;
    --neutral-fill-input-hover: #326c8c !important;*/
}

html:root {
    --bs-black-rgb: #121212;
    --background-color: #121212;
    --bg-color-secondary: #181818;
    --bg-color-tertiary: #242424;
    --bg-color-button: #2D4E6B;
    --bg-color-backgroundBlue: #2D4E6B;
    --bg-color-red: darkred;
    --bg-color-green: #1C8032;
    --bg-color-yellow: #E5F04A;
    --text-color: #FCFCFC;
    --text-color-secondary: #B3B3B3;
    --text-color-blue: #5FA6E3;
    --bs-body-color: #ffffff !important;
    --bs-body-bg: #121212 !important;
    --header-background-color: rgba(255, 255, 255, 0.1);
    --accent-fill-rest: #2D4E6B !important;
    --accent-fill-hover: #2D4E6B !important;
    --accent-fill-active: #2D4E6B !important;
    --accent-fill-focus: #2D4E6B !important;
    --accent-stroke-control-rest: #2D4E6B !important;
    --accent-fill-hover: #2D4E6B !important;
    --foreground-on-accent-rest: #FFFFFF !important;
    /*--neutral-fill-rest: #242424;
    --neutral-fill-input-rest: #242424 !important;*/
    --info: #C3C6C6;
    --neutral-fill-layer-alt-rest: #121212;
    --card-border: #333333;
    --status-good: #5FA6E3;
    --status-warn: #DB982C;
    --status-error: #F95959;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--background-color);
    /*    background-image: var(--background-image);
*/ color: var(--text-color);
    /*min-height: 100vh;*/
}

h1:focus {
    outline: none;
}

.status-good {
    --accent-fill-rest: var(--status-good);
}

a, .btn-link {
    color: var(--text-color-blue) !important;
}

fluent-button.accent {
    color: #FFFFFF;
    background-color: #2D4E6B; /*--bg-color-button*/
    --accent-fill-rest: #2D4E6B; /*--bg-color-button*/
    --accent-stroke-control-rest: transparent;
    --accent-stroke-control-hover: transparent;
    --foreground-on-accent-hover: #FFFFFF;
}

    fluent-button.accent path {
        fill: #FFFFFF;
    }

.btn-primary {
    color: #FFFFFF !important;
    border-color: var(--bg-color-button) !important;
    background-color: var(--bg-color-button) !important;
    --accent-stroke-control-rest: transparent;
    --accent-stroke-control-hover: transparent;
    --foreground-on-accent-hover: #FFFFFF;
}

    .btn-primary path {
        fill: white;
    }

.btn-check:focus + .btn-primary, btn-primary:focus {
    box-shadow: none !important;
}

.btn-check:checked + .btn-primary {
    border-color: var(--bg-color-button) !important;
}

.btn-secondary {
    color: #FFFFFF !important;
    background-color: transparent !important;
    border-color: var(--neutral-stroke-rest) !important;
}

.btn-destructive {
    color: lightgray !important;
    border: 1px solid darkred !important;
    background-color: darkred;
}

    .btn-destructive path {
        fill: white;
    }

fluent-button.btn-destructive {
    --neutral-stroke-rest: transparent;
    --neutral-stroke-hover: transparent;
    --neutral-stroke-active: transparent;
}

fluent-card,
fluent-button,
fluent-switch,
fluent-horizontal-scroll {
    --accent-fill-rest: #2D4E6B;
    --accent-fill-hover: #2D4E6B;
}

    fluent-button svg {
        --accent-fill-rest: #5FA6E3;
    }

.full-width,
.full-width fluent-card {
    width: 1000px;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    border: 0;
    border-radius: .25rem;
    box-shadow: none;
    background-color: var(--bg-color-tertiary) !important;
    --neutral-fill-rest: var(--bg-color-tertiary) !important;
    --neutral-stroke-control-rest: var(--bg-color-tertiary) !important;
}

.full-width {
    border: 1px solid var(--info) !important;
}

fluent-data-grid-cell.column-header {
    --neutral-fill-stealth-rest: transparent;
}

fluent-data-grid fluent-data-grid-cell {
    display: flex;
    align-items: center;
}

.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;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--text-color-blue);
}

.invalid {
    outline: 1px solid #F95959;
}

.validation-message {
    color: #F95959;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 997;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtb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k1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.nav-item {
    padding-bottom: 0px !important;
}

.photo-top-sticky {
    width: 100%;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 998;
    background-color: var(--background-color);
    opacity: 1 !important;
    isolation: isolate;
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.section-background {
    background-color: var(--header-background-color);
    padding: 10px;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    margin-top: 10px;
}

.page-title {
    font-weight: bold;
    font-size: 20px;
    color: var(--text-color-blue);
}

.section-title {
    font-weight: bold;
    color: var(--text-color-blue);
}

.report-value {
    text-align: right;
}

.report-row {
    margin: 10px 0 10px 0;
    padding: 0 0 10px 0;
    border-bottom: 1px solid #333333
}

.img-thumbnail {
    border: 0px !important;
    background-color: #000 !important;
    border-radius: .5rem !important;
}

.verify-grid {
    display: flex;
    flex-wrap: wrap;
}

.verify-tile {
    flex: 0 0 auto;
    width: auto;
}

    .verify-tile .item-border {
        width: fit-content;
    }

    .verify-tile img {
        display: block;
        max-width: none;
    }

.item-border {
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: .5rem;
    margin: 0 0.5rem 1rem;
}

.photo-group-header {
    color: var(--text-color-blue);
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--text-color-blue);
}

.row-mobile {
    margin-bottom: 10px;
}

.col-mobile {
}

.siteonly {
}

.mobileonly {
    display: none;
}

.mobile-device-img {
}

.center-img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.badge-secondary {
    color: #fff;
    background-color: #8E8C84;
}

.badge-success {
    color: #fff;
    background-color: #93C54B;
}

.badge-dark {
    color: #fff;
    background-color: #3E3F3A;
}

.badge-danger {
    color: #fff;
    background-color: #d9534f;
}

.badge-warning {
    color: #fff;
    background-color: #F47C3C;
}

.icon-button,
.icon-button.control {
    display: flex;
    flex-direction: column;
    color: #FFFFFF;
}

.bordered-card {
    border-radius: 1rem;
    border: 3px solid var(--card-border);
    background-color: var(--bg-color-secondary);
    transition: 0.2s;
}

.text-red {
    color: var(--status-error);
}

.warning {
    color: var(--status-warn);
}

.fluent-dialog-subheader {
    margin-top: -20px;
}

fluent-dialog .fluent-dialog-footer.stack-horizontal {
    flex-direction: row-reverse !important;
}

.account-nav-active {
    border: 2px solid var(--accent-fill-rest);
}

.cursor-pointer {
    cursor: pointer;
}

/*------ Settings Section ------*/
.remotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(600px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.remote-card {
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.remotes-grid .remote-card {
    margin-bottom: 0;
}

    .remote-card .card-header {
        font-size: 22px;
        font-weight: bold;
        border-top-left-radius: 0.5rem !important;
        border-top-right-radius: 0.5rem !important;
        background-color: var(--bg-color-backgroundBlue) !important;
        display: flex;
        align-items: center;
        position: relative;
    }

        .remote-card .card-header .header-left {
            position: absolute;
            left: 1rem;
            display: flex;
            align-items: center;
        }

            .remote-card .card-header .header-left div {
                width: 13px !important;
                margin-bottom: 0.5rem;
            }

        .remote-card .card-header .header-center {
            text-align: center;
            flex: 1;
        }


.settings-sub-header {
    font-weight: 500;
    color: var(--text-color-blue);
}

.settings-section {
    padding-top: .5rem;
    padding-bottom: .5rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.settings-border-bottom {
    border-bottom: 1px solid rgba(255, 255, 255, .25) !important;
}

.camera-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 996;
    border-radius: .25rem;
}

/*------ Photos Section ------*/
.photo-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 4px;
    box-sizing: border-box;
}

.toolbar-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 32px 8px 0;
}

.toolbar-controls > * {
    flex: 0 0 auto;
}

.toolbar-filters {
    flex: 1 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;

}
.toolbar-left {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 8px 8px 0;
}

.toolbar-right {
    height: 100%;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

    .toolbar-right > * {
        flex: 0 0 auto;
    }

.photos-icon {
    width: 96px;
    height: auto;
}

    .photos-icon img {
        fill: #F95959;
    }

@media (max-width: 1670px) {
    .photo-toolbar {
        flex-direction: column-reverse;
    }

    .toolbar-controls {
        width: 100%;
        justify-content: center;
        margin: 0;
        padding-right: 4.25rem;
    }

    .toolbar-filters {
        width: 100%;
    }
}

@media (max-width: 1420px) {
    .toolbar-left,
    .toolbar-right {
        width: 100%;
        justify-content: center;
    }

    .toolbar-controls {
        padding-right: 0;
    }
}

/*------ Trends Section ------*/
.fake-accordion {
    margin: 0 !important;
    border-radius: 0.5rem;
    border: 1px solid var(--card-border);
}

.fake-accordion-header {
    padding: 0.5rem 0 0.75rem 0;
    display: flex;
    align-items: center;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    background-color: var(--card-border);
}

.chart-data {
    height: 200px;
}

/*------ Add Device Section ------*/
.tile-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.tile {
    flex: 1 1 auto;
    padding: 15px;
    min-width: 295px;
    border-radius: 1rem;
    border: 3px solid var(--card-border);
    background: var(--bg-color-secondary);
}

.tile-header {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
}

.camera-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.camera-card {
    cursor: pointer;
    text-align: center;
    flex: 1 1 0;
    min-width: 260px;
}

    .camera-card img {
        max-width: 100%;
        max-height: 200px;
        object-fit: contain;
    }

    .camera-card h4 {
        margin-top: 10px;
        font-size: 1rem;
    }

/*------ Devices Section ------*/
.device-card {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100%;
    border-radius: 1rem;
    border: 3px solid var(--card-border);
    background: var(--bg-color-secondary);
    min-width: 395px;
}

    .device-card > .row {
        flex-grow: 1;
    }

.device-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    margin: 0 auto;
    line-height: 2rem;
}

.img-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin: 0 auto;
}

    .img-container img {
        max-height: 360px;
        min-height: 212px;
        width: auto;
    }

.device-buttons {
    display: flex !important;
    gap: 1rem;
    justify-content: center;
    padding-top: 0.75rem;
    align-items: center;
    margin: 0 auto;
}

    .device-buttons div fluent-button {
        width: 155px;
    }

.plan-status {
    padding: 0 1rem;
    border-radius: 1rem;
    border: 3px solid var(--card-border);
    line-height: 1.25rem;
}

.status-blue {
    background-color: var(--status-good);
    color: black;
}

.status-red {
    background-color: #F95959;
    color: black;
}

.status-orange {
    background-color: darkorange;
    color: black;
}

@media (max-width: 800px) {
    .img-container img {
        width: 106px;
    }
}

/*------ Browser Width Section ------*/
@media (max-width: 1485px) {
    .header-bottom {
        width: 80% !important;
    }
}

@media (max-width: 955px) {
    .header-bottom {
        width: 95% !important;
    }
}

@media (max-width: 670px) {
    .col-mobile {
        font-size: 13px;
    }

    .siteonly {
        display: none;
    }

    .mobileonly {
        display: initial;
    }

    .mobile-device-img {
        max-height: 240px !important;
    }

    .header-right {
        width: 55px !important;
        text-align: end;
    }
}

@media (max-width: 600px) {
    .header-container {
        flex-direction: column;
        height: auto;
        max-height: 220px;
        gap: 0;
    }

    .header-bottom {
        flex-wrap: wrap;
    }

    .header-center {
        width: 100%;
        margin: 0.5rem 0;
        height: 88px;
    }
}
