﻿/* Notifications layout */
.notifications-layout {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.notifications-container {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px
}

.notifications-header h1 {
    font-family: var(--fd), sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--t1);
    margin: 0;
}

.notifications-mark-read {
    padding: 6px 14px;
    background: none;
    color: var(--acc);
    border: 1px solid var(--brd);
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.12s;
}

.notifications-mark-read:hover {
    background: var(--bg3);
}

.notifications-status {
    margin-top: 24px;
    padding: 16px;
    background: var(--bg3);
    border: 1px solid var(--brd);
    border-radius: 12px
}

.notifications-status-servers {
    font-family: var(--fd), sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--t1);
    margin-bottom: 10px;
    letter-spacing: .5px
}

.notifications-button-status {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--a2);
    animation: pulse 2s infinite;
    flex-shrink: 0
}

.notif-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--brd);
}

.notif-hdr-title {
    font-family: var(--fd), sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .5px;
    color: var(--t1);
}

.notif-hdr .notifications-mark-read {
    padding: 6px 14px;
    background: transparent;
    border: 1px solid var(--brd);
    border-radius: 8px;
    color: var(--t2);
    font-family: var(--fb), monospace;
    font-size: 11px;
    letter-spacing: .5px;
    cursor: pointer;
    transition: all .15s;
}

.notif-hdr .notifications-mark-read:hover {
    border-color: var(--acc);
}

.notif-hdr .notifications-mark-read:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* nitem (notification item) - design classes */
.nitem {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background .12s;
    border: 1px solid var(--brd);
    border-left: 3px solid transparent;
}

.nitem:hover {
    background: var(--bg3);
}

.nitem.call {
    background: rgba(0, 229, 160, .04);
    border-color: rgba(0, 229, 160, .15);
}

.nitem.call:hover {
    background: rgba(0, 229, 160, .08);
}

.nitem.voice {
    background: rgba(61, 139, 255, .04);
    border-color: rgba(61, 139, 255, .15);
}

.nitem.voice:hover {
    background: rgba(61, 139, 255, .08);
}

.nitem.read {
    opacity: .55;
    border-color: var(--brd);
}

.nitem.read:hover {
    opacity: .8;
}

.nitem-ico {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.nitem-body {
    flex: 1;
    min-width: 0;
}

.nitem-title {
    font-family: var(--fd), sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--t1);
    margin-bottom: 2px;
}

.nitem-sub {
    font-family: var(--fb), sans-serif;
    font-size: 12px;
    color: var(--t2);
    line-height: 1.4;
}

.nitem-time {
    font-family: var(--fb), monospace;
    font-size: 10px;
    color: var(--t3);
    flex-shrink: 0;
    margin-top: 2px;
}

.nitem-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    font-family: var(--fb), sans-serif;
    font-size: 12px;
    color: var(--t2);
}

.status-badge.ok {
    background: rgba(0, 229, 160, .08);
    color: var(--a2);
}


.notif-section-label {
    font-family: var(--fb), monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--t3);
    padding: 8px 0;
}


.nbtn {
    padding: 5px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.12s;
}

.nbtn.dec {
    background: transparent;
    color: var(--t3);
}

.nbtn.dec:hover {
    background: var(--bg3);
    color: var(--t2);
}

.nbtn.call-back {
    background: transparent;
    color: var(--a2);
    border: 1px solid rgba(0, 229, 160, 0.3);
}

.nbtn.call-back:hover {
    background: rgba(0, 229, 160, 0.08);
}

.notif-empty {
    text-align: center;
    padding: 40px 0;
    color: var(--t3);
}

.notif-empty .bi {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
    opacity: 0.4;
}

.notif-loading {
    font-size: 13px;
    color: var(--t2);
    padding: 16px 0;
}