﻿/* Update*/
.primary-color {
    color: #007ea9;
}
.secondary-color {
    color: #98aeca;
}

/*General*/
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/Roboto-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Material';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/MaterialIcons-Regular.ttf') format('truetype');
}

body {
    font-family: Roboto;
    margin-bottom: 60px;
    background-color: #fafafa;
}


/*Navigation*/
nav.sidebar {
    color: #ec0d0d;
    padding: 0px !important;
}

.nav-link-top, .nav-link {
    color: #007ea9;
}

    .nav-link-top:hover {
        color: #ffffff;
    }


    .nav-link:hover {
        color: #ffffff;
    }


.nav-item.active .nav-link {
    color: #ffffff;
    background-color: #98aeca;
    border-radius: 4px;
}

.nav-link:hover {
    color: #000000;
    background-color: #00000013;
}

nav.sidebar svg {
    margin-bottom: 4px;
    margin-right: 10px;
}

.sidebar-sticky {
    height: 100vh;
    border-right: 1px solid #e0e0e0;
}
/*General content*/
.content .col {
    margin: 10px 10px 0px 10px;
    background-color: #ffffff;
}

.content table {
    width: 100%;
}

.content .col, .content h3 {
    border-radius: 4px;
}

.content a.action, .content button.action {
    color: #007ea9;
    padding-right: 10px;
    font-size: 20px;
    text-decoration: none;
}

.content a {
    text-decoration: none;
    color: #000000;
}

/*input:read-only, textarea:read-only {
    background-color: #f8f8f8;
}*/
/*Buttons*/

.btn-primary {
    background-color: #007ea9 !important;
    border: none;
}

    .btn-primary:focus, .btn-primary:hover {
        background-color: #234a83 !important;
    }
/*Sorting */
a.sort:after {
    background-image: url(../img/sort.svg);
    background-size: 12px 12px;
    display: inline-block;
    width: 12px;
    height: 12px;
    content: "";
    margin-left: 5px;
}

/* Headers*/
h3 {
    margin: 0px;
    background-color: #e2e2e2;
    padding: 15px;
    font-size: 20px;
}

.row.header {
    margin: 0px;
    background-color: #e2e2e2;
    font-size: 20px;
    border-radius: 4px;
}

h2 {
    background-color: #212529;
    color: white;
    padding: 15px;
    margin: 0px;
    font-size: 20px;
}

/*Icons*/

.mat-icon {
    font-family: 'Material';
    font-size: 24px;
}

    .mat-icon.fail, .mat-icon.alarm {
        color: #ed2024;
    }

    .mat-icon.warn, .mat-icon.warning {
        color: #edbf0d;
    }

    .mat-icon.undef, .mat-icon.undefined {
        color: #7b7b7b;
    }

    .mat-icon.ok {
        color: #15ad4f;
    }

    .mat-icon.small {
        font-size: 16px;
    }

.mat-icon.large {
    font-size: 40px;
}

.hub::before {
    content: "\e9f4";
}

.repeater::before {
    content: "\e040";
}

.repeater::before {
    content: "\e040";
}

.add::before {
    content: "\e145";
}

.add-location::before {
    content: "\e567";
}

.restart::before {
    content: "\f053";
}

.clear-events::before {
    content: "\e615";
}

.high-priority::before {
    content: "\e645";
}
.remove::before {
    content: "\e15b";
}

.chart-container {
    width:100%;
}
#map {
    height: 400px;
    width: 100%;
}

gmp-map {
    height: 90vh;
}


.device-edit img {
    border-radius: 10px;
    width: 90%;
}

.site-overview table a, .sites-overview table a:not(.action) {
    width: 100%;
    display: inline-block;
}


.details-group {
    border-radius: 8px;
    border: 2px solid #f8f9fa;
}

.device-details .status-text {
    line-height:48px;
}

/*.no-border {
    border-width:0px;
    border-color:transparent;
}*/

.bg-black-qr {
    background-color: #141414!important;
}

.accordion {
    background-color:transparent!important;
}

.icon-devices-hierachy {
    width: 25px;
    display: inline-block
}

.speedometer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.speedometer {
    position: relative;
    width: 200px;
    height: 100px;
}


.gauge-container {
    position: relative;
    width: 50vw; 
    max-width: 200px;
    aspect-ratio: 1 / 1;
    margin:auto;
}


.speedometer svg {
    width: 100%;
    height: 100%;
}

.needle {
    transform-origin: 100px 160px;
}

.value-text {
    font-size: 20px;
    fill: white;
    text-anchor: middle;
}

.value-display {
    display: none;
}

.gauge-label {
    position: absolute;
    bottom: 30px;
    width: 100%;
    text-align: center;
    font-size: 9px;
    color: #ccc;
}
.thermometer {
    width: 60px;
    height: 150px;
    background-color: #cccccc;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
    margin: auto
}

.mercury {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: dodgerblue;
    transition: height 0.5s ease;
    border-radius: 30px 30px 0 0;
}

.temp-display {
    margin-top: 20px;
    font-size: 14px;
}

.extinguisher {
    width: 24px;
    height: 24px;
    animation: moveAndJump 4s ease-in-out forwards;
}

    .extinguisher img {
        width: 100%;
        height: auto;
        display: block;
    }

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes moveAndJump {
    0% {
        transform: translateX(0) translateY(0);
    }

    70% {
        transform: translateX(80vw) translateY(0);
    }

    80% {
        transform: translateX(80vw) translateY(-30px);
    }

    90% {
        transform: translateX(80vw) translateY(0);
    }

    100% {
        transform: translateX(80vw) translateY(0);
    }
}