﻿/* DEFAULT */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
}
/* END DEFAULT */

#header {
    position: fixed;
    width: 100%;
    top: 0px;
    left: 0px;
    z-index: 100000;
}

/* LOGIN */
.password-hide-show {
    padding-right: 50px !important;
}

.hide-show-password {
    position: absolute !important;
    right: 30px !important;
    font-size: 16px !important;
}

.card-img-top {
    object-fit: cover !important;
}
/* TABLE */
.table-border-tr {
    border-bottom: 1px solid #2f3235;
}

.table-btn {
    width: 100px;
}

.th-options {
    width: 70px;
}

.avatar.avatar-table {
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
}
/* DISABLED */
.disabled {
    cursor: not-allowed;
}

/* EDIT INFO */
.opacityEdit {
    opacity: 0.5;
}

.zIndexEdit {
    z-index: -1000;
}

/* FORM ERROR */
.form-error-message {
    color: #f45858;
    margin: 5px 0px;
}

/* LIVE TOAST */
.sp-live-toast {
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.sp-live-toast-error {
    background-color: #dc3545 !important;
    color: white !important;
}

.sp-live-toast-ok {
    background-color: #69D164 !important;
    color: white !important;
}

/* SELECT CONTROL */

/*.ts-control.form-select .ts-input {
    color: #35383a !important;
}*/

/*.background-grey {
    color: darkgrey !important;
}*/

/* NAVBAR */
/*.selected {
    background-color: #35383a !important;
    color: rgba(255,255,255,.7) !important;
}*/

.hidden {
    display: none;
}

/* NAVBAR */
.sf-section-menu {
    padding-left: 6rem;
}

/* AVATAR */
.avatar-img {
    border-radius: 0.5rem !important;
}

/* HELPERS */
.sf-pt-10 {
    padding-top: 10px !important;
}

.sf-pt-20 {
    padding-top: 20px !important;
}

.sf-pt-30 {
    padding-top: 30px !important;
}

.sf-mt-20 {
    margin-top: 20px !important;
}

.sf-fs-14 {
    font-size: 14px !important;
}

/* DASHBOARD USER */
.sf-dashboard-parent {
    border: 1px solid red;
}

/* SCADA DASHBOARD */
/* WIDGET UI */
.sf-ui-h100 {
    height: 100%;
    max-height: 100%;
}
/* DISPLAY */
.sf-div-height-span-display {
    height: 8px !important;
}

.sf-widget-display-value {
    background-color: darkslategrey;
    border-radius: 10px;
    margin-left: 5px;
    margin-right: 5px;
    justify-content: center;
    color: tan;
}

.sf-widget-display-text {
    line-height: 120%;
}

/* FONT SIZE GENERIC */
.sf-widget-fs-10 {
    font-size: 10px;
}

.sf-widget-fs-12 {
    font-size: 12px;
}

.sf-widget-fs-14 {
    font-size: 14px;
}

/* CONTAINER */

.widget {
    /*
    background-clip: border-box;
    box-shadow: 3px 3px 3px 3px rgba(140, 152, 164, .075);
    */
    z-index: 3;
}

.sf-image {
    z-index: 1;
}

.sf-widget-container, .sf-widget-container-label {
    border: .0625rem solid rgba(231, 234, 243, .9);
    background-color: white;
    background-clip: border-box;
    box-shadow: 0 .375rem .75rem rgba(140, 152, 164,.075);
}

.sf-widget-container-label {
    color: #111;
    font-weight: bold;
    padding: 0 8px;
}

.sf-widget-radius-bl {
    border-bottom-left-radius: 10px;
}

.sf-widget-radius-br {
    border-bottom-right-radius: 10px;
}

.sf-widget-radius-tl {
    border-top-left-radius: 10px;
}

.sf-widget-radius-tr {
    border-top-right-radius: 10px;
}

.sf-widget-button-h {
    height: 40px;
}

@media screen and (max-width: 767px) {
    .hide-show-password {
        top: 27px !important;
    }
}

@media screen and (min-width: 768px) {
    .hide-show-password {
        top: 32px !important;
    }
}

/* NOT ALLOWD */
button:disabled {
    cursor: not-allowed !important;
    pointer-events: all !important;
}


.max-height-vh-100 {
    max-height: 100vh !important;
    height: calc(100vh - 70px);
}


/*++++++++++++++++++++++++NOTIFICATION+++++++++++++++++++++++++++++*/
/* Modern notification item styles */
.notification-item {
    list-style: none;
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #fff;
    position: relative;
    transition: box-shadow 0.3s, background 0.3s, opacity 0.3s;
}

    .notification-item:hover {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    /* New style for read notifications */
    .notification-item.read {
        background: #f7f7f7;
        opacity: 0.75;
    }

.notification-content {
    display: flex;
}

.notification-wave {
    width: 5px;
}

    .notification-wave.ai {
        background: #2196f3; /* Blue for AI */
    }

    .notification-wave.endpoint {
        background: #4caf50; /* Green for endpoint */
    }
    /* Default wave if needed */
    .notification-wave.default {
        background: #aaa;
    }

.notification-body {
    padding: 0.75rem 1rem;
    flex: 1;
    position: relative;
}

.notification-delete {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    color: #aaa;
    font-size: 1.25rem;
    border: none;
    background: none;
    cursor: pointer;
}

    .notification-delete:hover {
        color: #555;
    }

.notification-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.notification-title {
    font-weight: bold;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.9rem;
}
    /* Category-based title backgrounds */
    .notification-title.mcu__error {
        background: #9c27b0; /* Purple */
    }

    .notification-title.flash_error {
        background: #f44336; /* Red */
    }

    .notification-title.warning {
        background: #ff9800; /* Orange */
    }

    .notification-title.flash_ai_error {
        background: #3f51b5; /* Indigo */
    }

.notification-description {
    margin-top: 0.5rem;
    color: #555;
}

.notification-datetime {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #999;
}



.notification-btn {
    position: relative;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0;
}

    .notification-btn i {
        font-size: 1.5rem;
        color: #555;
    }

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    /*    transform: translate(50%, -50%);
*/
    background: linear-gradient(45deg, #ff4081, #f50057);
    border-radius: 50%;
    padding: 0.25em 0.65em;
    font-size: 0.65rem;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.notification-btn:hover .notification-badge {
    /*    transform: translate(50%, -50%) scale(1.1);
*/ transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}


/***************** Widget lever V.1 ******************/
/* The switch - the box around the slider */
/*.switch-lever {
    font-size: 17px;
    position: relative;
    display: inline-block;
    width: 1.2em;
    height: 3.3em;
    rotate:180deg;*/ /* Rotate the lever of 180°*/
/*}*/

/* Hide default HTML checkbox */
/*.switch-lever .chk-lever {
        opacity: 0;
        width: 0;
        height: 0;
    }*/

/* The slider */
/*.slider-lever {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 5px;
}

    .slider-lever:before {
        position: absolute;
        content: "";
        height: .6em;
        width: 2.4em;
        border-radius: 5px;
        left: -0.7em;
        top: 0.2em;
        background-color: #4b5563;
        box-shadow: 0 6px 7px rgba(0,0,0,0.3);
        transition: .4s;
    }

    .slider-lever:before, .slider-lever:after {
        content: "";
        display: block;
    }

    .slider-lever:after {
        background: linear-gradient(transparent 50%, #4b5563 0) 0 50% / 50% 100%, repeating-linear-gradient(90deg,#4b5563 0,#4b5563,#4b5563 20%,#4b5563 20%,#4b5563 40%) 0 50% / 50% 100%, radial-gradient(circle at 50% 50%,#4b5563 25%, transparent 26%);
        background-repeat: no-repeat;
        border: 0.25em solid transparent;
        border-left: 0.4em solid #4b5563;
        border-right: 0 solid transparent;
        transition: border-left-color 0.1s 0.3s ease-out, transform 0.3s ease-out;
        transform: translateX(-22.5%) rotate(90deg);
        transform-origin: 25% 50%;
        position: relative;
        top: 0.5em;
        left: 0.5em;
        width: 2em;
        height: 1em;
        box-sizing: border-box;
    }

.chk-lever:checked + .slider-lever {
    background-color: limegreen;
}

.chk-lever:focus + .slider-lever {
    box-shadow: 0 0 1px limegreen;
}

.chk-lever:checked + .slider-lever:before {
    transform: translateY(2.3em);
}

.chk-lever:checked + .slider-lever:after {
    transform: rotateZ(90deg) rotateY(180deg) translateY(0.4em) translateX(-1.4em);
}*/


/**** Widgtet Switch V. Cool ****/
.widget-toggle-container {
    margin: auto;
    color: hsl(0, 0%, 30%);
    font-weight: 900;
    font-size: 1.6rem;
    line-height: 1.7rem !important;
    display: flex;
}

.widget-toggle-container .toggle-lever {
    width: 30px;
    height: 60px;
    background-color: hsl(0, 0%, 80%);
    border-radius: 1.7rem;
    padding: .25rem 0;
    cursor: pointer;
    display: flex;
    justify-content: center;
    transition: background-color 300ms 300ms;
}

.widget-toggle-container .toggle__circle-lever {
    width: 18px;
    height: 18px;
    outline-style: solid;
    outline-width: 3.5px;
    background-color: hsl(0, 0%, 95%);
    border-radius: 50%;
    margin-top: calc(58px - (.25rem * 4) - 10px);
    transition: margin 100ms ease-in-out;
}

.widget-toggle-container .toggle-text-lever {
    background: linear-gradient(0deg, #4d4d4d 0%, #4d4d4d88 50%, #56704c2e 56.5%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-top: 4px;
    display: flex;
    flex-direction: column;
}

/********************** CUSTOM BLOCKS ***********************/
/* WIDGET */
.widget-header-stroke {
    fill: #5ca1ff;
    opacity: .6;
}

.widget-header-fill {
    fill: none;
    stroke: #5ca1ff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 4px;
}

.widget-rect {
    fill: white;
    stroke: #5ca1ff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 4px;
}

/* WIDGET LINK */
.widgetlink-header-stroke {
    fill: #5eafae;
    opacity: .6;
}

.widgetlink-header-fill {
    fill: none;
    stroke: #5eafae;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 4px;
}

.widgetlink-rect {
    fill: white;
    stroke: #5eafae;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 4px;
}

/* COMMAND LINK */
.command-header-stroke {
    fill: #39B54A;
    opacity: .6;
}

.command-header-fill {
    fill: none;
    stroke: #39B54A;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 4px;
}

.command-rect {
    fill: white;
    stroke: #39B54A;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 4px;
}

/* SPECIAL */
.special-header-stroke {
    fill: #F7C144;
    opacity: .6;
}

.special-header-fill {
    fill: none;
    stroke: #F7C144;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 4px;
}

.special-rect {
    fill: white;
    stroke: #F7C144;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 4px;
}

/* OPERATION */
.operation-header-stroke {
    fill: #F7931E;
    opacity: .6;
}

.operation-header-fill {
    fill: none;
    stroke: #F7931E;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 4px;
}

.operation-rect {
    fill: white;
    stroke: #F7931E;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 4px;
}

/* INTERNAL */
.internal-header-stroke {
    fill: #C59FD3;
    opacity: .6;
}

.internal-header-fill {
    fill: none;
    stroke: #C59FD3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 4px;
}

.internal-rect {
    fill: white;
    stroke: #C59FD3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 4px;
}

/* LISTENER */
.listener-header-stroke {
    fill: #A67C52;
    opacity: .6;
}

.listener-header-fill {
    fill: none;
    stroke: #A67C52;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 4px;
}

.listener-rect {
    fill: white;
    stroke: #A67C52;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 4px;
}

/* AI */
.ai-header-stroke {
    fill: #DA7584;
    opacity: .6;
}

.ai-header-fill {
    fill: none;
    stroke: #DA7584;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 4px;
}

.ai-rect {
    fill: white;
    stroke: #DA7584;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 4px;
}


/* ICON STROKES*/

.icon-stroke-primary.icon-widget, .icon-stroke-tertiary {
    stroke: var(--sf--color1);
}

.icon-stroke-primary.icon-widget-link {
    stroke: var(--sf--color2);
}

.icon-stroke-primary.icon-command {
    stroke: var(--sf--color3);
}

.icon-stroke-primary.icon-special {
    stroke: var(--sf--color4);
}

.icon-stroke-primary.icon-operation {
    stroke: var(--sf--color5);
}

.icon-stroke-primary.icon-internal {
    stroke: var(--sf--color6);
}

.icon-stroke-primary.icon-listener {
    stroke: var(--sf--color7);
}

.icon-stroke-primary.icon-ai {
    stroke: var(--sf--color9);
}


.icon-stroke-primary, .icon-stroke-secondary, .icon-stroke-tertiary {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3px;
}

.icon-stroke-secondary {
    stroke: #55617f;
}

.icon-stroke-tertiary {
    fill: #5ca1ff;
}