﻿/* =========================================
   Teams Style Network Alert
   ========================================= */

.network-status-notification {
    position: fixed;
    
    top: 68px;
    left: 12px;
    right: 12px;
    width: auto;
    height: 35px;
    display: flex;
    align-items: center;

    padding: 0 14px;
    color: #fff;
    z-index: 99999;
    border-radius: 8px 8px 8px 8px;
   
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(.22, 1, .36, 1), opacity 0.25s ease;
    box-sizing: border-box;
    overflow: hidden;
}


    /* =========================================
   Show
   ========================================= */

    .network-status-notification.show {
        transform: translateY(0);
        opacity: 1;
    }


    /* =========================================
   Hide
   ========================================= */

    .network-status-notification.hide {
        transform: translateY(-100%);
        opacity: 0;
    }


    /* =========================================
   Warning
   ========================================= */

    .network-status-notification.warning {
        background: rgba(245, 158, 11, 0.40);
        border: 1px solid rgba(255, 255, 255, 0.22);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.20);
    }


    /* =========================================
   Offline
   ========================================= */

    .network-status-notification.offline {
        background: rgba(220, 38, 38, 0.50);
        border: 1px solid rgba(255, 255, 255, 0.22);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.20);
    }

    /* =========================================
   Success
   ========================================= */

    .network-status-notification.success {
        background: rgba(22, 163, 74, 0.45);
        border: 1px solid rgba(255, 255, 255, 0.22);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.20);
    }


/* =========================================
   Icon
   ========================================= */

.network-icon {
    width: 26px;
    height: 26px;
    min-width: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    font-size: 14px;
    box-shadow: inset 0 1px 4px rgba(255, 255, 255, 0.25);
    animation: networkIconPulse 2.5s ease-in-out infinite;
}


@keyframes networkIconPulse {

    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}


/* =========================================
   Content
   ========================================= */

.network-content {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1;
    min-width: 0;
}


/* Title */

.network-title {
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
}


/* Message */

.network-message {
    font-size: 12px;
    opacity: 0.92;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =========================================
   Close Button
   ========================================= */

.network-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: white;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.75;
    transition: background 0.2s ease, opacity 0.2s ease;
}


    .network-close:hover {
        background: rgba(255, 255, 255, 0.12);
        opacity: 1;
    }


/* =========================================
   Mobile
   ========================================= */

@media (max-width: 576px) {

    .network-status-notification {
        height: auto;
        min-height: 44px;
        padding: 7px 12px;
    }

    .network-content {
        display: block;
    }

    .network-title {
        font-size: 12px;
    }

    .network-message {
        font-size: 11px;
        white-space: normal;
    }
}
