﻿body {
    min-height: 100vh;
    width: 100vw;
    background-color: var(--ps-surface) !important;
}

main {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    overflow: hidden;
}

#app {
    height: 100%;
}

.ps-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem;
}

.ps-page-content {
    flex: 1;
    overflow-y: hidden;
    overflow-x: hidden;
}

#ps-overlay {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5); /* Black background with opacity */
    z-index: 2;
}

#ps-overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 50px;
    color: white;
    transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
}

/*Common*/
.simplebar-scrollbar::before {
    background-color: #8C8C8C;
}

.ps-simplebar {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

.ps-progress,
.ps-progress .progress-bar {
    border-radius: var(--ps-md);
}

.blazor-wasm-loading {
    height: 500px;
    max-width: 90vw;
    width: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

@media screen and (max-width: 768px) {
    .blazor-wasm-loading {
        height: 350px;
        max-width: 80vw;
    }
}

@media screen and (max-width: 480px) {
    .blazor-wasm-loading {
        height: 250px;
        max-width: 90vw;
    }
}

@media screen and (max-width: 320px) {
    .blazor-wasm-loading {
        height: 200px;
        max-width: 95vw;
    }
}
/*End of common*/

/*Animation*/
.ps-skeleton {
    border-radius: 5px;
    background: var(--ps-bg-skeleton);
    background: -webkit-gradient(linear, left top, right top, color-stop(8%, var(--ps-bg-skeleton)), color-stop(18%, var(--ps-bg-skeleton2)), color-stop(33%, var(--ps-bg-skeleton)));
    background: linear-gradient(to right, var(--ps-bg-skeleton) 8%, var(--ps-bg-skeleton2) 18%, var(--ps-bg-skeleton) 33%);
    background-size: 800px 100px;
    animation: move-skeleton 2s infinite ease-out;
}

@keyframes move-skeleton {
    0% {
        background-position: -468px 0;
    }

    100% {
        background-position: 468px 0;
    }
}

/**
* BOTH of the marquee items are going to be translating left at the same time.
* And, once each of them has translated to -100%, they will both snap back into
* place, making it seem as if they are continuously scrolling.
*/
@keyframes marquee {
    from {
        transform: translateX( 0% );
    }

    to {
        transform: translateX( -100% );
    }
}

.ps-chart-skeleton svg g rect {
    fill: var(--ps-surface);
}

/* End of animation */

/* header */
.ps-dropdown-trigger {
    display: flex;
    align-items: center;
    height: var(--ps-btn-icon-height);
    padding: var(--ps-xs) var(--ps-sm);
    cursor: pointer;
    border-radius: var(--ps-xs);
    background-color: var(--ps-surface-container);
}

    .ps-dropdown-trigger:hover {
        background-color: var(--ps-surface-container-hover);
    }

.ps-ipt-search {
    position: relative;
}

    .ps-ipt-search img {
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .ps-ipt-search input {
        padding: 0.1rem 0.8rem 0rem 2.5rem;
        background-color: var(--ps-surface-container);
        outline: none;
        border: none;
        width: 100%;
        min-height: var(--ps-btn-icon-height);
        max-height: 100%;
    }

        .ps-ipt-search input::placeholder {
            color: var(--ps-on-surface);
        }

.ps-dropdown-menu {
    color: var(--ps-on-surface);
    padding: 0;
    border-radius: var(--ps-md);
    width: auto;
    min-width: 0;
    background-color: var(--ps-surface-container);
    border: 2px solid var(--ps-outline-variant);
}

    .ps-dropdown-menu.dropdown-blur {
        backdrop-filter: blur(var(--ps-blur));
        -webkit-backdrop-filter: blur(var(--ps-blur));
        background-color: var(--ps-bg-dropdown-menu);
    }

.ps-dropdown-menu-item {
    cursor: pointer;
    padding: 0.3rem;
    border-radius: var(--ps-2xs);
    user-select: none;
}

    .ps-dropdown-menu-item:hover {
        background-color: var(--ps-surface-container-hover);
    }

.ps-installation-dropdown-item {
    height: 80px;
}

    .ps-installation-dropdown-item .installation-title {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.ps-alert-item-container {
    max-height: 40vh;
    overflow-y: auto;
}

.ps-nav-menu {
    color: var(--ps-on-surface);
    text-decoration: none;
    border-radius: var(--ps-xs);
}

    .ps-nav-menu:hover {
        color: var(--ps-on-surface-variant);
    }

        .ps-nav-menu:hover svg path {
            stroke: var(--ps-on-surface-variant);
        }

    .ps-nav-menu:not(.logo):not(:has(.ps-btn-nav)) {
        padding: var(--ps-2xs) var(--ps-sm);
    }

    .ps-nav-menu.active,
    .ps-nav-menu.active:hover {
        color: var(--ps-on-surface-variant);
    }

        .ps-nav-menu.active svg path,
        .ps-nav-menu.active:hover svg path {
            stroke: var(--ps-on-surface-variant);
        }

    .ps-nav-menu.logo.active,
    .ps-nav-menu.logo.active:hover {
        color: var(--ps-on-surface);
    }

    .ps-nav-menu.logo:hover {
        color: var(--ps-on-surface);
    }

    .ps-nav-menu.active:not(.logo):not(:has(.ps-btn-nav)) {
        background-color: var(--ps-surface-container-low);
    }

    .ps-nav-menu.nav-btn-icon.active .ps-btn-nav {
        background-color: var(--ps-surface-container-low);
    }

        .ps-nav-menu.nav-btn-icon.active .ps-btn-nav svg path {
            stroke: var(--ps-on-surface-variant);
        }

.ps-btn-group {
    display: flex;
    gap: 0.5rem;
    background-color: var(--ps-surface-container);
    border-radius: var(--ps-xs);
    height: var(--ps-btn-icon-height);
    padding: 0.11rem;
}

    .ps-btn-group .ps-btn-group-item {
        display: flex;
        justify-content: center;
        align-items: center;
        outline: none;
        border-radius: var(--ps-xs);
        padding: var(--ps-2xs) var(--ps-sm);
        text-decoration: none;
        color: var(--ps-on-surface-variant-2);
        position: relative;
    }

        .ps-btn-group .ps-btn-group-item:hover {
            background-color: var(--ps-surface-container-hover);
            color: var(--ps-on-surface);
        }

        .ps-btn-group .ps-btn-group-item.active {
            background-color: var(--ps-primary);
            color: var(--ps-on-surface);
            font-weight: bold;
        }

        .ps-btn-group .ps-btn-group-item:not(:last-child)::after {
            content: "|";
            position: absolute;
            right: -0.5rem;
            color: var(--ps-on-surface-variant-2);
            pointer-events: none;
            font-size: 1.2rem;
            font-weight: lighter;
        }

        .ps-btn-group .ps-btn-group-item.active::after {
            display: none;
        }

        .ps-btn-group .ps-btn-group-item:has(+ .ps-btn-group-item.active)::after {
            display: none;
        }

.ps-sub-menu-sidebar {
    outline: none;
    border-radius: var(--ps-sm);
    padding: var(--ps-xs) var(--ps-md);
    height: var(--ps-btn-icon-height);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--ps-on-surface);
}

    .ps-sub-menu-sidebar:hover {
        background-color: var(--ps-surface-container-hover);
    }

    .ps-sub-menu-sidebar.active {
        color: var(--ps-on-surface-variant);
        background-color: var(--ps-surface);
    }

        .ps-sub-menu-sidebar.active svg path {
            stroke: var(--ps-on-surface-variant);
        }

.ipt-search-installation-container {
    padding: 0.3rem 0.3rem 0 0.3rem;
}

.ps-installation-dropdown {
    flex-shrink: 0;
    max-width: 400px;
    min-width: 400px;
}

.ps-installation-description {
    max-width: 295px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

.ps-ipt-search-installation {
    border: none;
    border-radius: var(--ps-2xs);
    background-color: var(--ps-surface-container);
    outline: none;
    color: var(--ps-on-surface);
    padding: var(--ps-xs) var(--ps-sm);
    font-size: var(--ps-body-sm);
    width: 100%;
    height: 30px;
}

    .ps-ipt-search-installation::placeholder {
        color: var(--ps-on-surface);
        font-size: var(--ps-body-sm);
    }
/* end of header */

/* Installations */
.ps-installation-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: var(--ps-sm);
    background-color: var(--ps-surface-container);
    border: 2px solid var(--ps-surface-container);
    border-radius: var(--ps-sm);
    cursor: pointer;
    color: var(--ps-on-surface);
}

    .ps-installation-card.selected {
        border: 2px solid var(--ps-outline);
        background-color: var(--ps-card-selected);
    }

    .ps-installation-card .card-title {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .ps-installation-card .card-address {
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        color: var(--ps-on-surface-variant-2);
    }

    .ps-installation-card:hover .card-title:not(.disable-navigation) {
        text-decoration: underline;
    }

    .ps-installation-card .card-weather-info {
    }

    .ps-installation-card ul {
        list-style-type: none;
        padding-left: 0px;
        margin-top: 0.5rem;
        margin-bottom: 0;
    }

.thumb-container {
    position: relative;
}

    .thumb-container .additional-info {
        position: absolute;
        left: 0.1rem;
        bottom: 0.1rem;
    }

    .thumb-container .livestream {
        position: absolute;
        left: 0.5rem;
        bottom: 0.5rem;
    }
/* End of installations */
/* Gallery */
.grid-photo-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(194px, 1fr));
    gap: 0.8rem;
    margin-bottom: 2rem;
    position: relative;
}

.load-more-spinner {
    display: block;
    position: absolute;
    bottom: -3rem;
    left: 50%;
}

.photo.selected {
    border: 2px solid var(--ps-primary);
}

.timeline-photo {
    min-width: 140px;
}

.timeline-photo-scrollable {
    flex: 1;
    overflow: hidden;
    min-width: 140px;
}

.preview-panzoom {
    height: 100%;
    width: 100%;
    background-color: #000;
    position: relative;
    border-radius: var(--ps-2xs);
    will-change: transform; /*Important: force Safari to create new GPU layer*/
}

.btn-move {
    position: absolute;
    top: 50%;
    z-index: 1;
}

    .btn-move.previous {
        transform: translate(0%, -50%);
        left: 1rem;
    }

    .btn-move.next {
        transform: translate(0%, -50%);
        right: 1rem;
    }

.pan-zoom-photo {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.zoom-control-area {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 4;
}

    .zoom-control-area.livelapse {
        bottom: 3.5rem;
    }

.ps-date-range-picker {
    background-size: 16px;
    background-repeat: no-repeat;
    background-position: 8px center;
    height: var(--ps-btn-icon-height);
    padding: 0.5rem 0.5rem 0.5rem 2.3rem;
    cursor: pointer;
    border-radius: var(--ps-xs);
    background-color: var(--ps-surface-container);
    outline: none;
    border: none;
    color: var(--ps-on-surface);
    width: 210px;
}

    .ps-date-range-picker:hover {
        background-color: var(--ps-surface-container-hover);
    }

    .ps-date-range-picker::placeholder {
        color: var(--ps-on-surface);
    }

.photo-container {
    position: relative;
}

    .photo-container .ps-tag-icon {
        position: absolute;
        top: 0.5rem;
        left: 0.5rem;
    }

.blinking-dot {
    width: 16px;
    height: 16px;
    background-color: red;
    border-radius: 50%;
    position: relative;
    animation: blink 0.4s infinite alternate;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.ps-btn-calendar {
    background-color: var(--ps-surface);
    border-radius: var(--ps-xs);
    color: var(--ps-on-surface);
}

    .ps-btn-calendar.v2 {
        background-color: var(--ps-surface-container);
    }

    .ps-btn-calendar:hover {
        background-color: var(--ps-surface-container-hover);
    }

input[type="range"].panZoomSlider {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    height: 4px;
    background: var(--ps-on-surface);
    border-radius: 1rem;
    outline: none;
}

    /* Styling the thumb (slider button) for Webkit browsers */
    input[type="range"].panZoomSlider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 12px;
        height: 12px;
        background: var(--ps-on-surface);
        border-radius: 50%;
        cursor: pointer;
        box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
    }

    /* Styling the thumb for Mozilla Firefox */
    input[type="range"].panZoomSlider::-moz-range-thumb {
        width: 12px;
        height: 12px;
        background: var(--ps-on-surface);
        border-radius: 50%;
        cursor: pointer;
        box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
    }

/* Weather calendar */
.ps-dropdown-left {
    transform: rotate(90deg);
}

.ps-dropdown-right {
    transform: rotate(-90deg);
}

@media screen and (max-height: 768px) {
    .weather-calendar-table-wrap {
        height: calc(100vh - 460px);
    }
}

.ps-weather-calendar-table {
    width: 100%;
}

    .ps-weather-calendar-table th {
        padding-bottom: 0.2rem;
    }

    .ps-weather-calendar-table td {
        padding-bottom: 0.2rem;
    }

.ps-weather-cell {
    width: 40px;
    height: 40px;
    background-color: var(--ps-surface-container);
    border-radius: var(--ps-2xs);
    font-size: 10px;
    overflow: hidden;
    cursor: pointer;
}

    .ps-weather-cell.selected {
        border: 2px solid var(--ps-primary);
    }

    .ps-weather-cell .no-weather-data {
        cursor: not-allowed;
        background-color: var(--ps-disabled);
    }

/* Filter calendar */
.filter-calendar-table-wrap {
    /* height: 260px;*/
}

@media screen and (max-height: 768px) {
    .filter-calendar-table-wrap {
        height: calc(100vh - 470px);
    }
}

.ps-filter-calendar-table {
    width: 100%;
}

    .ps-filter-calendar-table th {
        padding-bottom: 0.5rem;
    }

    .ps-filter-calendar-table td {
        padding-bottom: 0.3rem;
    }

.ps-filter-calendar-cell {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: var(--ps-body-sm);
    overflow: hidden;
    cursor: pointer;
}

    .ps-filter-calendar-cell:hover {
        background-color: var(--ps-surface-container-hover);
    }

    .ps-filter-calendar-cell.selected {
        color: var(--ps-on-primary);
        background-color: var(--ps-primary);
    }

.calendar-cell-dot {
    position: absolute;
    bottom: -5px;
}

input[type="range"].livelapse-slider {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    cursor: pointer;
    border: none;
    outline: none;
}

    /* Styling the thumb (slider button) for Webkit browsers */
    input[type="range"].livelapse-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 12px;
        height: 12px;
        background: white;
        border-radius: 50%;
        cursor: pointer;
    }

    input[type="range"].livelapse-slider.insights::-webkit-slider-thumb {
        background: var(--ps-on-surface-variant-2);
    }

    /* Styling the thumb for Mozilla Firefox */
    input[type="range"].livelapse-slider::-moz-range-thumb {
        width: 12px;
        height: 12px;
        background: white;
        border-radius: 50%;
        cursor: pointer;
    }

    input[type="range"].livelapse-slider.insights::-moz-range-thumb {
        background: var(--ps-on-surface-variant-2);
    }

.livelapse-photo-datetime {
    font-size: var(--ps-title-sm);
    font-weight: 600;
    background-color: var(--ps-surface);
    border-radius: var(--ps-xs);
    text-align: center;
    min-width: 260px;
    height: var(--ps-btn-icon-height);
}

/* End of gallery */
/* Compare tool */
.rectangle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.rectangle {
    position: absolute;
    border: 2px solid inherit;
    cursor: grab;
    z-index: 5;
    width: 100px;
    height: 100px;
}

.handle {
    width: 10px;
    height: 10px;
    background-color: inherit;
    position: absolute;
}

.top-left {
    top: -5px;
    left: -5px;
    cursor: nwse-resize;
}

.top-right {
    top: -5px;
    right: -5px;
    cursor: nesw-resize;
}

.bottom-left {
    bottom: -5px;
    left: -5px;
    cursor: nesw-resize;
}

.bottom-right {
    bottom: -5px;
    right: -5px;
    cursor: nwse-resize;
}

.base-photo-container {
    z-index: 2;
}

.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slider-compare {
    position: absolute;
    z-index: 5;
    top: 0;
    left: 50%;
    width: 5px;
    height: 100%;
    background-color: red;
    cursor: ew-resize;
    transform: translateX(-50%);
}
/* End of compare tool */
/*Report*/
.video-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.ps-video-card {
    padding: 0.8rem;
    background-color: var(--ps-surface-container);
    border-radius: var(--ps-xs);
}

    .ps-video-card .video-name {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
/*End of report */

/* Kiosk */
.kiosk-grid-layout {
    display: grid;
    gap: 1rem;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
}

.kiosk-card {
}

    .kiosk-card .installation-name {
        display: flex;
        overflow: hidden;
        white-space: nowrap;
        width: 25%;
    }

    .kiosk-card .text {
        padding: 0px 2rem 0px 0px;
        white-space: nowrap;
    }

        .kiosk-card .text.marquee {
            animation-duration: 20s;
            animation-iteration-count: infinite;
            animation-name: marquee;
            animation-timing-function: linear;
        }

    .kiosk-card .installation-name:hover .text.marquee {
        animation-play-state: paused;
    }

    .kiosk-card li {
        list-style-type: none;
    }

    .kiosk-card.kiosk-grid-1 li {
        font-size: var(--ps-headline);
    }

    .kiosk-card.kiosk-grid-1 ul img {
        width: 60px;
        height: 60px;
    }

    .kiosk-card.kiosk-grid-4 li {
        font-size: var(--ps-title-sm);
    }

    .kiosk-card.kiosk-grid-4 ul img {
        width: 32px;
        height: 32px;
    }

    .kiosk-card.kiosk-grid-6 li {
        font-size: var(--ps-title-sm);
    }

    .kiosk-card.kiosk-grid-6 ul img {
        width: 32px;
        height: 32px;
    }

    .kiosk-card.kiosk-card-sm .kiosk-info {
        height: 40px;
    }


.kiosk-info {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(var(--ps-blur));
    -webkit-backdrop-filter: blur(var(--ps-blur));
    height: 60px;
}

.btn-full-screen {
    position: absolute;
    left: 1rem;
    top: 1rem;
    border-radius: var(--ps-xs);
    padding: 1.5rem;
    z-index: 1;
}

.kiosk-countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    right: 1rem;
    top: 1rem;
    border-radius: 50%;
    border: 2px solid var(--ps-on-surface);
    padding: 1rem;
    width: 60px;
    height: 60px;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(var(--ps-blur));
    -webkit-backdrop-filter: blur(var(--ps-blur));
    font-size: var(--ps-headline);
}
/* End of kiosk */

/* Gallery v2 */
.photo-weather-info {
    position: absolute;
    left: 0;
    top: 0;
    height: 56px;
    width: 100%;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0 var(--ps-sm);
    border-top-left-radius: var(--ps-xs);
    border-top-right-radius: var(--ps-xs);
}

.livelapse-playbar {
    position: absolute;
    bottom: 0;
    height: 40px;
    width: 100%;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0 var(--ps-sm);
}
/* End of gallery v2 */
