/* Container general */
.nav-notification-bell {
    position: relative;
    display: inline-block;
    font-family: sans-serif;
}

/* Zona pe care dăm click */
.bell-trigger {
    position: relative;
    cursor: pointer;
    padding: 5px 10px;
    display: inline-block;
}

.bell-trigger i {
    font-size: 22px;
    color: #333;
}

/* Bulina roșie */
#update-badge {
    position: absolute;
    top: 0px;
    right: 2px;
    background-color: #ff3b30;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    z-index: 10;
}

/* Meniul suspendat */
.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 10px;
    background-color: #ffffff;
    min-width: 320px;
    box-shadow: 0px 8px 24px rgba(0,0,0,0.15);
    border-radius: 8px;
    z-index: 999999 !important; /* Trebuie să fie peste orice element */
    border: 1px solid #ddd;
}

.dropdown-content.show {
    display: block;
}

.dropdown-header {
    padding: 12px 15px;
    font-weight: bold;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

/* Cardurile cu notificări */
.notification-item {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
}

.notification-item:hover {
    background-color: #f1f1f1;
}

/* STILUL PENTRU NOTIFICĂRI NECITITE (NOI) */
.notification-item.unread {
    background-color: #eaf4fc;
    border-left: 4px solid #007bff;
}

.notification-item.unread .notif-title {
    font-weight: bold;
    color: #000;
}

.notif-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.notif-date {
    font-size: 11px;
    color: #777;
}

.dropdown-footer {
    display: block;
    text-align: center;
    padding: 12px;
    font-size: 13px;
    color: #007bff;
    text-decoration: none;
    background: #f8f9fa;
    font-weight: bold;
}

.dropdown-footer:hover {
    background-color: #e9ecef;
}

/* --- ADAPTĂRI PENTRU TELEFOANE MOBILE --- */
@media screen and (max-width: 768px) {
    .dropdown-content {
        position: fixed; /* Scoatem meniul din raportarea la clopoțel */
        top: 65px; /* Distanța față de sus. O poți mări/micșora dacă acoperă meniul de sus */
        left: 10px; /* O mică margine în stânga ecranului */
        right: 10px; /* O mică margine în dreapta ecranului */
        min-width: 0; /* Anulăm lățimea minimă de pe desktop */
        width: auto; /* Îl lăsăm să ocupe fluid spațiul dintre left și right */
        max-height: 70vh; /* Meniul va ocupa maxim 70% din înălțimea ecranului */
        overflow-y: auto; /* Dacă sunt multe notificări, se va face scroll în interiorul lui */
    }
}

/* Opțional, adaugă un scroll și pe varianta de desktop dacă ai multe notificări */
@media screen and (min-width: 769px) {
    .dropdown-content {
        max-height: 400px;
        overflow-y: auto;
    }
}