@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;600;700&display=swap');

/* Layout principal da tela de avisos (overlay + listas + painel detalhado) */

/* Garante que o container global cubra toda a tela enquanto a view de avisos está ativa */
body[data-view="notifications"] .container {
    height: 100vh;
}

.notifications-container {
    font-family: 'Inter', sans-serif;
    color: #FFFFFFCC;
    width: 100vw;
    height: 100vh;
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    font-size: 25;
    background: none !important;
    background-image: none !important;
    overflow: visible;
}
 
.notifications-container::before{
    /* Máscara escura sobre o background */
    content: '' !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.65) !important;
    /* 65% de opacidade escura - transparente */
    z-index: 1 !important;
    /* Abaixo do conteúdo, mas sobre a imagem de background */
    pointer-events: none !important;
    /* Não interfere com cliques */
}

/* Garante que o conteúdo fique acima da máscara (seguindo o padrão da home) */
.notifications-container > * {
    position: relative;
    z-index: 2;
}
.notifications-sidebar {
    /* Coluna lateral com lista de avisos */
    background: none;
    color: #fff;
    text-align: left;
    font-size: 16px;
    line-height: 1.4;
}

.notifications-sidebar p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    margin-bottom: 24px;
    color: #fff;
    opacity: 0.85;
}

.notifications-sidebar .aplication-logo-notify {
    width: 72px;
    height: auto; /* fallback para navegadores sem object-fit */
    max-width: 100%;
    max-height: 100%;
    background: #fff;
    border-radius: 12px;
    display: block;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
    margin-bottom: 24px;
}

.notifications-content {
    /* Painel da direita com detalhes do aviso selecionado */
    color: #fff;
    background: none;
    border-radius: 0;
    padding-left: 40px;
}

.notifications-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 28px;
    margin-bottom: 24px;
    color: #fff;
    padding-left: 36px;
}

.notifications-sidebar-bg {
    /* Faixa escura de fundo da sidebar */
    position: fixed;
    left: 0px;
    top: 0px;
    width: 500px;
    height: 100vh;
    background: rgb(15, 15, 15);
    z-index: 9;
}

.notifications-container .header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 11;
}

.notifications-sidebar {
    position: absolute;
    left: 42px;
    top: 140px;
    width: 296px;
    z-index: 11;
    display: block;
}

.notifications-list {
    /* IE9: usar block */
    display: block;
    margin-top: 70px;
}

.notification-item {
    /* Card individual da lista */
    /* Use flex layout for consistent avatar + meta alignment */
    display: block;
    position: relative;
    width: 420px;
    min-height: 84px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 18px;
    cursor: pointer;
    overflow: hidden; /* clearfix */
}

.notification-item:hover {
    /* IE9: usar position relative com top ao invés de transform */
    position: relative;
    top: -2px;
}

.notification-item.active {
    /* Destaque do item ativo/selecionado */
    box-shadow: 0 0 0 3px rgba(193, 28, 54, 0.08), 0 2px 12px rgba(0, 0, 0, 0.6);
    border: 4px solid rgba(193, 28, 54, 0.7);
    background: rgba(255, 255, 255, 0.02);
}

.notification-item > div:first-child {
    display: block;
    overflow: hidden;
    /* Fallback para IE9: usar inline-block com vertical-align */
    zoom: 1;
}

.notification-item > div:first-child > img,
.notification-item > div:first-child > div {
    display: inline-block;
    vertical-align: middle;
}

.notification-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin-right: 16px;
    margin-top: 4px;
    /* Fallback para IE9: flex não funciona, usar inline-block */
    display: inline-block;
    vertical-align: middle;
}

.notification-meta {
    display: inline-block;
    vertical-align: middle;
    overflow: hidden;
    padding-top: 4px;
    margin-left: 10px;
}

.notification-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    display: block;
    margin: 0;
    margin-bottom: 6px;
}

.notification-title {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    display: block;
    margin-top: 0;
}

.notification-time {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    position: absolute;
    top: 14px;
    right: 16px;
    margin: 0;
}

/*. Right content area */
.notifications-content {
    /* Área rolável dos detalhes */
    position: absolute;
    top: 0px;
    left: 450px;
    width: 75.5%;
    height: 720px;
    overflow-y: scroll;
    overflow-x: hidden;
    padding: 150px 40px 35px 60px;
    display: block;
    z-index: 11;
    /* Ocultar scrollbars - ES5 Compatible */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE e Edge */
}

.notifications-detail::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.notifications-detail-header {
    /* IE9: usar block com clearfix */
    display: block;
    width: 90%;
    max-width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 25px;
    margin-bottom: 35px;
    padding-left: 40px;
    overflow: hidden; /* clearfix */
    position: relative;
}

.detail-left {
    /* IE9: usar block */
    display: block;
    float: left;
    max-width: 100%;
}

.detail-left img.notification-avatar {
    float: left;
    margin-right: 12px;
}

.detail-title {
    font-size: 32px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.2;
    white-space: nowrap;
}

.detail-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

    .notifications-detail-header .notification-time {
    position: absolute;
    right: 0;
    top: 50%;
    margin-top: -8px;
    /* Fallback para IE9: usar margin-top ao invés de transform */
    margin: 0;
    text-align: right;
}

.notifications-body {
    margin-top: 25px;
    font-size: 35px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    width: 720px;
    padding-left: 40px;
}

/* Media Queries - Resoluções de TV */

/* Full HD - 1920x1080 */
@media screen and (min-width: 1920px) and (max-width: 2559px) {
    .notifications-sidebar-bg {
        width: 1000px;
    }

    .notifications-sidebar {
        left: 67px;
        top: 140px;
        width: 850px;
    }

    .notification-item {
        width: 850px;
        min-height: 180px;
        padding: 35px 22px;
        margin-bottom: 25px;
    }

    .notification-avatar {
        width: 80px;
        height: 80px;
    }

    .notification-title {
        font-size: 32px;
    }

    .notification-subtitle {
        font-size: 26px;
    }

    .notification-time {
        font-size: 26px;
    }

    .notifications-content {
        left: 1000px;
        width: 920px;
        height: 720px;
        padding: 210px 40px 35px 60px;
        box-sizing: border-box;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
    }

    .notifications-detail-header {
        width: 90%;
        max-width: 100%;
        padding-left: 40px;
        box-sizing: border-box;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
    }

    .detail-title {
        font-size: 42px;
        line-height: 1.2;
        white-space: nowrap;
    }

    .detail-subtitle {
        font-size: 24px;
    }

    .notifications-body {
        font-size: 36px;
        line-height: 1.7;
        width: 90%;
        max-width: 100%;
        padding-left: 40px;
        box-sizing: border-box;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
    }
}

/* QHD/4K - 2560px+ */
@media screen and (min-width: 2560px) {
    .notifications-sidebar-bg {
        width: 1200px;
    }

    .notifications-sidebar {
        left: 60px;
        top: 170px;
        width: 1050px;
    }

    .notification-item {
        width: 1050px;
        min-height: 220px;
        padding: 40px 26px;
        margin-bottom: 30px;
    }

    .notification-avatar {
        width: 100px;
        height: 100px;
    }

    .notification-title {
        font-size: 38px;
    }

    .notification-subtitle,
    .notification-time {
        font-size: 32px;
    }

    .notifications-content {
        left: 1200px;
        width: 1360px;
        height: 720px;
        padding: 170px 50px 40px 70px;
        font-size: 32px;
    }

    .notifications-detail-header {
        width: 90%;
        max-width: 100%;
        padding-left: 50px;
    }

    .detail-title {
        font-size: 64px;
        line-height: 1.2;
        white-space: nowrap;
    }

    .detail-subtitle {
        font-size: 38px;
    }

    .notifications-body {
        font-size: 68px;
        line-height: 1.7;
        width: 90%;
        max-width: 100%;
        padding-left: 80px;
        box-sizing: border-box;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
    }
}