/* ==========================================================================
   Web Notifications — bell icon + badge + dropdown panel
   _DevExtremeLayout sağ üst köşesinde "Account" butonu yanında
   ========================================================================== */

.notifBell {
    position: relative;
    margin-right: 4px;
}

.notifBellLink {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    padding: 0 !important;
    border-radius: 50% !important;
    background: #f1f4f9 !important;
    color: #4a5070 !important;
    border: 1px solid transparent !important;
    transition: all 0.18s ease;
    position: relative;
    box-sizing: border-box;
    text-decoration: none !important;
    overflow: visible; /* badge overflow için kritik */
}

.notifBellLink:hover {
    background: #e6ebf5 !important;
    color: #1a2b4a !important;
    border-color: #d4dbe8 !important;
}

/* Bell ikonu — badge tarafından örtülmemesi için z-index ve doğru sizing */
.notifBellLink > i {
    font-size: 18px !important;
    line-height: 1;
    position: relative;
    z-index: 1;
    color: inherit;
    display: inline-block;
}

/* Bell ringing animation when new notification arrives */
.notifBellLink.notifRinging i {
    animation: notifRing 0.7s ease-in-out 2;
    transform-origin: top center;
}

@keyframes notifRing {
    0%, 100% { transform: rotate(0); }
    20%      { transform: rotate(15deg); }
    40%      { transform: rotate(-15deg); }
    60%      { transform: rotate(8deg); }
    80%      { transform: rotate(-8deg); }
}

/* Unread badge — bell ikonunun ÜSTÜNE sağ üst köşeye overlay */
.notifBadge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #e53e3e;
    color: #fff !important;
    font-size: 10px;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
    border: 2px solid #fff;
    box-sizing: content-box;
    box-shadow: 0 1px 3px rgba(229, 62, 62, 0.35);
    z-index: 2;
    pointer-events: none;
    /* Anti-flicker — küçük dxToast / fontawesome late load'da bell altına kaymasın */
    transform: translate(0, 0);
    white-space: nowrap;
}

/* Panel container */
.notifPanel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 360px;
    max-height: 480px;
    background: #fff;
    border: 1px solid #e3e6f0;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(26, 43, 74, 0.18);
    z-index: 9999;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.notifPanel.open {
    display: flex;
    animation: notifPanelIn 0.18s ease-out;
}

@keyframes notifPanelIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.notifPanelHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #e3e6f0;
    background: #f8f9fc;
}

.notifPanelTitle {
    font-size: 14px;
    font-weight: 800;
    color: #1a2b4a;
}

.notifPanelHeaderActions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Sound on/off toggle — küçük yuvarlak buton, ses açık iken mavi, kapalı iken gri */
.notifSoundToggle {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #d4dbe8;
    border-radius: 50%;
    background: #fff;
    color: #4e73df;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    transition: all 0.15s ease;
}
.notifSoundToggle:hover {
    background: #eef2fb;
    border-color: #4e73df;
}
.notifSoundToggle.off {
    color: #94a3b8;
    background: #f1f4f9;
}
.notifSoundToggle.off:hover {
    background: #e3e6f0;
    border-color: #94a3b8;
}

.notifMarkAllRead {
    font-size: 12px;
    font-weight: 600;
    color: #4e73df;
    text-decoration: none;
}
.notifMarkAllRead:hover {
    text-decoration: underline;
    color: #2e4ec4;
}

/* Body / list */
.notifPanelBody {
    flex: 1 1 auto;
    overflow-y: auto;
    max-height: 380px;
}

.notifEmpty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #94a3b8;
    text-align: center;
}
.notifEmpty i {
    font-size: 28px;
    margin-bottom: 10px;
    color: #cbd5e1;
}
.notifEmpty span {
    font-size: 13px;
    font-style: italic;
}

.notifItem {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f2f7;
    cursor: default;
    transition: background-color 0.15s ease;
    position: relative;
}
.notifItem:last-child { border-bottom: 0; }
.notifItem:hover { background: #f8f9fc; }

.notifItem.unread {
    background: #eff5ff;
}
.notifItem.unread::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 16px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4e73df;
}

.notifItemIcon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    background: rgba(229, 62, 62, 0.12);
    color: #e53e3e;
}
.notifItemIcon.notifIconInfo  { background: rgba(78, 115, 223, 0.10); color: #4e73df; }
.notifItemIcon.notifIconWarn  { background: rgba(246, 194, 62, 0.15); color: #b88a18; }

.notifItemContent {
    flex: 1;
    min-width: 0;
}

.notifItemTitle {
    font-size: 13px;
    font-weight: 700;
    color: #1a2b4a;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notifItemBody {
    font-size: 12px;
    color: #5a5d6e;
    line-height: 1.4;
    margin-bottom: 4px;
    word-break: break-word;
}

.notifItemMeta {
    font-size: 11px;
    color: #94a3b8;
}

.notifItemDismiss {
    align-self: flex-start;
    color: #cbd5e1;
    background: transparent;
    border: 0;
    padding: 0 4px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}
.notifItemDismiss:hover { color: #6c757d; }

/* "Daha fazla göster" butonu — liste sonunda */
.notifLoadMore {
    padding: 10px 14px;
    text-align: center;
    border-top: 1px solid #f0f2f7;
    background: #fafbfd;
}
.notifLoadMoreBtn {
    background: transparent;
    border: 1px solid #d4dbe8;
    color: #4e73df;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.notifLoadMoreBtn:hover {
    background: #eef2fb;
    border-color: #4e73df;
}
.notifLoadMoreBtn i {
    font-size: 10px;
    margin-right: 4px;
}

/* Footer */
.notifPanelFooter {
    padding: 10px 16px;
    border-top: 1px solid #e3e6f0;
    background: #f8f9fc;
    text-align: center;
}

.notifEnableNative {
    font-size: 12px;
    font-weight: 600;
    color: #4e73df;
    text-decoration: none;
}
.notifEnableNative:hover { text-decoration: underline; }

/* Mobile responsive */
@media (max-width: 640px) {
    .notifPanel {
        width: calc(100vw - 32px);
        right: 16px;
    }
}
