﻿.header-menu i {
    margin-right: 1vw;
}

.container {
    max-width: 100%;
    width: auto;
}

.status-online {
    color: green;
    font-weight: bold;
}

.status-idle {
    color: orange;
    font-weight: bold;
}

.status-offline {
    color: red;
    font-weight: bold;
}

h5 {
    color: black;
}

.img-popup-grid img {
    width: 80px;
    height: 80px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

option {
    color: grey;
}

.download:hover {
    cursor: pointer;
}

/* Status balletje */
.status-dot {
    display: inline-block;
    width: 13px;
    height: 13px;
    border-radius: 50%; /* Maakt een perfect cirkeltje */
    margin-right: 6px;
    vertical-align: middle;
}

/* Kleurtjes voor het status balletje */
.status-online {
    background-color: #28a745;
}

.status-offline {
    background-color: #dc3545;
}

.status-idle {
    background-color: #ffc107;
}


@media (max-width: 576px) {
    .editor {
        display: flex;
        justify-content: space-around;
    }

    .editor-blocks {
        display: flex;
        justify-content: space-evenly;
    }

        .editor-blocks div {
            margin: 15px;
        }

    .show-block {
        display: flex;
        justify-content: space-around;
        gap: 15px;
    }
}

.app #content.app-content {
    margin-left: 0px !important;
}

@media screen and (min-width: 400px) {
    .app #content.app-content {
        margin-left: 0px !important;
    }
}

@media screen and (min-width: 800px) {
    .app #content.app-content {
        margin-left: 200px !important;
    }

    .app.app-sidebar-collapsed #content.app-content {
        margin-left: 0px !important;
    }
}

/* MAP MARKER STYLING */

.base-marker {
    background: red;
}

:root {
    --active: green;
    --online: orange;
    --offline: red;
}

.marker {
    align-items: center;
    background-color: #FFFFFF;
    border-radius: 0.6rem;
    color: #263238;
    display: flex;
    font-size: 14px;
    gap: 15px;
    height: fit-content;
    justify-content: center;
    padding: 4px;
    position: relative;
    position: relative;
    transition: all 0.3s ease-out;
    width: 10rem;
}

marker:focus-visible {
    outline: none !important;
}

.marker span {
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 0 0 10px;
}

.marker.highlight span {
    display: none;
}

.marker::after {
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 9px solid #FFFFFF;
    content: "";
    height: 0;
    left: 50%;
    position: absolute;
    top: 98%;
    transform: translate(-50%, 0);
    transition: all 0.3s ease-out;
    width: 0;
}

.marker.highlight .icon {
    display: none;
}

.marker .icon {
    align-items: center;
    display: flex;
    justify-content: center;
    color: #FFFFFF;
    max-width: 200px;
    overflow: hidden;
    word-wrap: break-word;
}

    .marker .icon svg {
        height: 20px;
        width: auto;
    }

.marker .details {
    display: none;
    flex-direction: column;
    flex: 1;
}

.marker.highlight .details .marker_img {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0 0.5rem 0;
}

    .marker.highlight .details .marker_img img {
        max-width: 200px;
        max-height: 100px;
        min-width: 75px;
        min-height: 75px;
    }

.marker.highlight .details .marker-title {
    text-align: center;
    margin: 0 0 0.5rem 0;
    color: #ffffff;
    padding: 10px;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
}

/* active */
.green.highlight .details .marker-title {
    background-color: var(--active);
}

/* online */
.orange.highlight .details .marker-title {
    background-color: var(--online);
}

/* offline */
.red.highlight .details .marker-title {
    background-color: var(--offline);
}


.marker .content .marker_buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 0.5rem;
    row-gap: 0.5rem;
}

    .marker .content .marker_buttons > div {
        align-items: center;
        background: #F5F5F5;
        border-radius: 5px;
        border: 1px solid #ccc;
        display: flex;
        font-size: 13px;
        gap: 5px;
        padding: 5px;
    }

/*
         * marker styles in highlighted state.
         */
.marker.highlight {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 10px 10px 5px rgba(0, 0, 0, 0.2);
    padding: 8px;
    width: auto;
}

    .marker.highlight::after {
        border-top: 9px solid #FFFFFF;
    }

    .marker.highlight .details {
        display: flex;
    }

    .marker.highlight .icon svg {
        width: 50px;
        height: 50px;
    }

/* active */
.green:not(.highlight) {
    background-color: var(--active);
}

    .green:not(.highlight)::after {
        border-top: 9px solid var(--active);
    }

/* online */
.orange:not(.highlight) {
    background-color: var(--online);
}

    .orange:not(.highlight)::after {
        border-top: 9px solid var(--online);
    }

/* offline */
.red:not(.highlight) {
    background-color: var(--offline);
}

    .red:not(.highlight)::after {
        border-top: 9px solid var(--offline);
    }

.marker_button {
    width: 100%;
    z-index: 99999999;
    cursor: pointer !important;
}