﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#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: 1000;
}

#blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
}

/*===============================================================
 APP
===============================================================*/

html {
    font: 12px "Open Sans";
    margin: 0px;
    padding: 0px;
}

body {
    margin: 0px;
    padding: 0px;
    text-align: left;
    display: block;
}

.movr5theme {
    --theme-bck-color: #fafafa;
    --theme-color: #404040;
    --theme-accent: #ffd300;
}

.app {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
    display: grid;
    height: 100vh;
    grid-template-rows: [appbar-row]60px [app-content-row]1fr;
}

.app-bar {
    grid-row: appbar-row;
}

.app-content {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    overflow: hidden;
    top: 60px; /* var(--menu-height); */
    grid-row: app-content-row;
    background-color: bisque;
}

/*===============================================================
 MENU
===============================================================*/
.menu {
    --menu-height: 40px;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 999;
}

    .menu ul {
        list-style: none;
        padding: 10px;
        margin: 0;
        z-index: 999;
    }

        .menu ul li, .menu ul li a {
            opacity: .8;
            color: #ffffff;
            cursor: pointer;
            transition: 200ms;
            text-decoration: none;
            white-space: nowrap;
            font-weight: 700;
        }

            .menu ul li:hover, .menu ul li a:hover {
                opacity: 1;
            }

            .menu ul li a, .menu ul li a a {
                display: flex;
                align-items: center;
                height: 100%;
                width: 100%;
            }

        .menu ul li {
            padding-right: 36px;
        }

            .menu ul li::before {
                content: '';
                width: 0;
                height: 0;
                border-left: 5px solid transparent;
                border-right: 5px solid transparent;
                border-top: 5px solid #FFA500;
                position: absolute;
                right: 8px;
                top: 50%;
                transform: translateY(-50%);
            }

        .menu ul .link::before {
            padding-right: 0;
            display: none;
        }

    .menu > ul {
        display: flex;
        height: var(--menu-height);
        z-index: 999;
        align-items: center;
        background-color: #000000;
    }

        .menu > ul li {
            position: relative;
            margin: 0 8px;
        }

            .menu > ul li ul {
                visibility: hidden;
                opacity: 0;
                padding: 0;
                min-width: 160px;
                background-color: #333;
                position: absolute;
                top: calc(var(--menu-height) - 2px);
                left: 50%;
                transform: translateX(-50%);
                transition: 200ms;
                transition-delay: 200ms;
            }

                .menu > ul li ul li {
                    margin: 0;
                    padding: 8px 16px;
                    display: flex;
                    align-items: center;
                    justify-content: flex-start;
                    height: 30px;
                    padding-right: 40px;
                }

                    .menu > ul li ul li::before {
                        width: 0;
                        height: 0;
                        border-top: 5px solid transparent;
                        border-bottom: 5px solid transparent;
                        border-left: 5px solid #FFA500;
                    }

                    .menu > ul li ul li ul {
                        top: -2%;
                        left: 100%;
                        transform: translate(0);
                    }

                    .menu > ul li ul li:hover {
                        background-color: #000000;
                    }

            .menu > ul li:hover > ul {
                opacity: 1;
                visibility: visible;
                transition-delay: 0ms;
            }

/*===============================================================
  SPA PAGE, ITEMS LIST AND DETAILS
===============================================================*/
.spa-page {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    display: grid;
    height: 100%;
    overflow: hidden;
    grid-template-rows: 1fr;
    grid-template-columns: [items]200px [details]1fr;
}
.spa-index-page {
    grid-column: 1 / 3;
    grid-row: 1;
    box-sizing: border-box;
    margin: 0px;
    padding: 5px;
    height: 100%;
    overflow-y: scroll;
    background-color: var(--theme-accent);
}
.spa-page-items {
    grid-column: items;
    box-sizing: border-box;
    margin: 0px;
    padding: 5px;
    grid-row: 1;
    height: 100%;
    background-color: var(--theme-accent);
}

.spa-page-details {
    padding: 5px;
    grid-row: 1;
    grid-column: details;
    overflow-y: hidden;
    background-color: var(--theme-bck-color);
}
.spa-content-page {
    grid-column: 1 / 3;
    grid-row: 1;
    box-sizing: border-box;
    margin: 0px;
    padding: 5px;
    height: 100%;
    background-color: var(--theme-bck-color);
}
.spa-page-list {
    padding: 5px;
    overflow-y: auto;
    height: calc(100vh - 320px);
}

.spa-page-list li {
    list-style-type: none;
}

.spa-page-list-item {
    list-style-type: none;
    margin: 0px;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 2px;
    border-bottom: 1px solid gray;
}

li.spa-page-list-item:hover {
    background-color: darkblue;
    color: white;
}

li.spa-page-list-item.selected {
    background-color: black;
    color: white;
}

li.spa-page-list-item.selected:hover {
    background-color: darkblue;
    color: white;
}


/*===============================================================
 LAYOUTGRID CONTROL
===============================================================*/
.layout-grid {
    display: grid;
}

.grid-item {
    width: 100%;
}

.grid-item .text-input {
        min-width: 100%;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box; 
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
    }

/*===============================================================
 TAB CONTROL
===============================================================*/
.tab-control {
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: #f1f1f1;
}
.tab-control button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
}
.tab-control button:hover {
    background-color: #ddd;
}
.tab-control button:focus {
    background-color: #ddd;
}
.tab-control button.active {
    background-color: #ccc;
}

.tab-page {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-top: none;
    animation: fadeEffect 1s;
    height: 100%;
}

@keyframes fadeEffect {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/*===============================================================
 SWITCH CONTROL
===============================================================*/
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

    /* Hide default HTML checkbox */
    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 26px;
        width: 26px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
    }

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

    .slider.round:before {
        border-radius: 50%;
    }

/*=======================================================================*/
/* TREE                                                                  */
/*=======================================================================*/
.tcont, .tcont ul, .tcont li {
    position: relative;
    list-style-type: none;
}

    .tcont ul {
        list-style-type: none;
        padding-left: 32px;
    }
    .tcont li .selected {
        background-color: burlywood;
    }
    .tcont li::before, .tcont li::after {
        content: "";
        position: absolute;
        left: -12px;
    }

    .tcont li::before {
        border-top: 1px solid #000;
        top: 9px;
        width: 8px;
        height: 0;
    }

    .tcont li::after {
        border-left: 1px solid #000;
        height: 100%;
        width: 0px;
        top: 2px;
    }

    .tcont ul > li:last-child::after {
        height: 8px;
    }

/*=======================================================================*/
/* SPLIT BUTTON                                                          */
/*=======================================================================*/
.split-btn {
    background-color: #2196F3;
    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
    outline: none;
}

/* The container <div> - needed to position the dropdown content */
.split-dropdown {
    position: absolute;
    display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.split-dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    z-index: 1;
}

    /* Links inside the dropdown */
.split-dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

/* Change color of dropdown links on hover */
.split-dropdown-content a:hover {
        background-color: #ddd
    }

/* Show the dropdown menu on hover */
.split-dropdown:hover .split-dropdown-content {
    display: block;
}

/* Change the background color of the dropdown button when the dropdown content is shown */
.split-btn:hover, .split-dropdown:hover .split-btn {
    background-color: #0b7dda;
}

/*=======================================================================*/
/* LISTVIEW TABLE                                                        */
/*=======================================================================*/
.tablelist {
    border-collapse: collapse;
}
    .tablelist th, .tablelist td {
        border: 1px solid #ddd;
        padding: 5px;
    }

    .tablelist tr:nth-child(even) {
        background-color: #f2f2f2;
    }

    .tablelist tr:hover {
        background-color: #ddd;
    }

    .tablelist th {
        padding-top: 5px;
        padding-bottom: 5px;
        text-align: left;
        background-color: var(--theme-accent);
        border: 1px solid darkgray;
        color: black;
    }

/*=======================================================================*/
/* INDICATOR                                                             */
/*=======================================================================*/
.indicator:hover {
    cursor: pointer;
}
.indicator.on {
    background: #28B62C;
    display: inline-block;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    -webkit-animation: pulse-animation 2s infinite linear;
}

    @-webkit-keyframes pulse-animation {
        0% {
        -webkit-transform: scale(1);
    }

    25% {
        -webkit-transform: scale(1);
    }

    50% {
        -webkit-transform: scale(1.2)
    }

    75% {
        -webkit-transform: scale(1);
    }

    100% {
        -webkit-transform: scale(1);
    }
}

.indicator.off {
    background: #FF4136;
    display: inline-block;
    width: 1em;
    height: 1em;
    border-radius: 50%;
}
.indicator.unknown {
    background: #ddd;
    display: inline-block;
    width: 1em;
    height: 1em;
    border-radius: 50%;
}

/*=======================================================================*/
/* SUMMARY-CARD                                                          */
/*=======================================================================*/
.summary-card {
    background-color: var(--theme-color);
    border: 1px solid #1861ac;
    border-radius: 4px 4px;
    min-height: 150px;
}
.summary-card-header {
    display: block;
    background-color: #0e2e49;
    min-height: 25px;
    padding: 5px;
    white-space: nowrap;
    color: var(--theme-accent);
}
.summary-card-title {
    display: inline-block;
    font-size: 1.5em;
    font-weight: bold;
    padding: 8px;
    color: var(--theme-accent);
}
    .summary-card-title a {
        text-decoration: none;
        color: var(--theme-accent);
    }
        .summary-card-title:hover {
            cursor: pointer;
        }
        .summary-card.table {
            min-height: 120px;
            background-color: var(--theme-bck-color);
        }
/*=======================================================================*/
/* ACTIVITIES                                                            */
/*=======================================================================*/
.activities-page {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    height: 100%;
    overflow: hidden;
    display: grid;
    grid-template-rows: 50px 1fr;
    grid-template-columns: 200px 1fr;
    background-color: var(--theme-accent);
}
    .activities-page.header {
        width: 100%;
        background-color: var(--theme-accent);
        grid-column: 1 / 3;
        grid-row: 1;
    }

    .activities-page.filters {
        width: 100%;
        height: 100%;
        background-color: var(--theme-accent);
        grid-column: 1;
        grid-row: 2;
    }
    .activities-page.content {
        width: 100%;
        height: 100%;
        background-color: var(--theme-bck-color);
        grid-column: 2;
        grid-row: 2;
        display:block;
    }

