﻿/* === Genel ayarlar === */
.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1070;
}

/* === Panel === */
.notification-panel {
    position: absolute;
    right: 0;
    top: 120%;
    width: 420px;
    background-color: var(--dx-background-color, var(--bs-body-bg, #fff)) !important;
    color: var(--dx-text-color, var(--bs-body-color, #000)) !important;
    border-radius: 12px;
    overflow: hidden;
    z-index: 1080;
    animation: fadeSlideIn 0.25s ease-out;
    display: flex;
    flex-direction: column;
}

@keyframes fadeSlideIn {
    from
{
    opacity: 0;
    transform: translateY(-8px);
}

to {
    opacity: 1;
    transform: translateY(0);
}

}

/* === Başlık === */
.notification-header {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e1e4e8;
}

/* === İçerik === */
.notification-body {
    max-height: 380px;
    overflow-y: auto;
}

    .notification-body::-webkit-scrollbar {
        display: none; /* Chrome */
    }

/* === Bildirim kartı === */
.notification-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f1f1;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

    .notification-card.unread {
        font-weight: 500;
    }

  

/* === Bildirim içeriği === */
.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
    color: #fff;
}

    .notification-icon i {
        font-size: 1.2rem;
        color: inherit;
    }


.notification-content {
    flex: 1;
    white-space: normal;
    word-break: break-word;
}

.notification-message {
    line-height: 1.3;
}

.notification-time {
    font-size: 0.8rem;
    margin-top: 2px;
}

/* === Footer === */
.notification-footer {
    padding: 10px 0;
    border-top: 1px solid #e1e4e8;
}

/* === Zil ve badge === */
.notification-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    margin-right: 20px;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    border-radius: 50%;
    font-size: 0.7rem;
    padding: 2px 5px;
}

/* === Zil animasyonu === */
@keyframes bellShake {
    0%, 100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-10deg);
    }

    50% {
        transform: rotate(10deg);
    }

    75% {
        transform: rotate(-6deg);
    }
}

.animate-bell {
    animation: bellShake 0.7s ease-in-out;
    transform-origin: top center;
}
