﻿/* 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;
}

/* CONTAINER */

/*.widget {
    background-clip: border-box;
    box-shadow: 3px 3px 3px 3px rgba(140, 152, 164, .075);
}
*/
.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);
}
