/* ============================================
   Notification System Styles
   ============================================ */

/* Notification dropdown sizing */
#notifications-dropdown {
    /*width: 380px !important;*/
    width: 500px !important;
    /*min-height: 300px !important;*/
    min-height: auto !important;
    max-height: 450px;
    overflow-y: auto;
    padding: 0;
}

#notifications-dropdown > li {
    min-height: auto;
    padding: 8px 16px;
    line-height: 1.4;
    border-bottom: 1px solid #f0f0f0;
}

#notifications-dropdown > li:last-child {
    border-bottom: none;
}

.navbar #notifications-dropdown li > a
{
    font-size: 0.9rem !important;
    
}
#notifications-dropdown > li > a {
    font-size: 13px;
    line-height: 1.4;
    padding: 0;
    display: block;
    white-space: normal;
    word-wrap: break-word;
}

#notifications-dropdown h6 {
    margin: 0;
    padding: 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Unread notification highlight */
.notif-item.notif-unread {
    background-color: #e3f2fd !important;
    border-left: 3px solid #1565c0;
}

.notif-item {
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.notif-item:hover {
    background-color: #f5f5f5 !important;
}

.notif-item.notif-unread:hover {
    background-color: #bbdefb !important;
}

/* Time ago text */
#notifications-dropdown time.media-meta {
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 4px;
    /*padding-left: 36px;*/
    text-align: right;
}

/* Icon circle in notifications */
#notifications-dropdown .icon-bg-circle {
    width: 28px;
    height: 28px;
    /*line-height: 28px;*/
    font-size: 16px;
    border-radius: 50%;
    /*text-align: center;*/
    color: #fff;
    /*display: inline-block;*/
    /*vertical-align: middle;*/
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: top;
    /*min-width: 28px;*/
    min-width: 25px;
    margin-top: 2px;   
}

.navbar #notifications-dropdown li > a > span
{
    top : 0px !important;
}

#notifications-dropdown .icon-bg-circle.cyan {
    background-color: #00bcd4;
}

#notifications-dropdown .icon-bg-circle.red {
    background-color: #f44336;
}

#notifications-dropdown .icon-bg-circle.teal {
    background-color: #009688;
}

#notifications-dropdown .icon-bg-circle.green {
    background-color: #4caf50;
}

#notifications-dropdown .icon-bg-circle.orange {
    background-color: #ff9800;
}

#notifications-dropdown .icon-bg-circle.deep-orange {
    background-color: #ff5722;
}

#notifications-dropdown .icon-bg-circle.amber {
    background-color: #ffc107;
}

#notifications-dropdown .icon-bg-circle.blue {
    background-color: #2196f3;
}

#notifications-dropdown .icon-bg-circle.purple {
    background-color: #9c27b0;
}

/* Badge styling */
.notification-badge {
    position: absolute;
    top: 8px;
    right: 6px;
    background: #ff1744;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    padding: 0 4px;
    animation: notifPulse 2s ease-in-out infinite;
}

@keyframes notifPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Mark all read button */
#mark-all-read-btn {
    padding: 0 12px;
    height: 28px;
    line-height: 28px;
    border-radius: 14px;
}

#mark-all-read-btn {
    /*display: inline-flex !important;  */ /* flexbox centering */
    align-items: center;               /* vertical center */
    justify-content: center;           /* horizontal center */
    height: 32px !important;           /* override btn-small */
    line-height: 32px !important;      /* override btn-small */
    padding: 0 16px !important;        /* override btn-small */
    border-radius: 16px;
    font-size: 12px !important;
}

#notifications-dropdown .icon-bg-circle.material-icons,
#notifications-dropdown .icon-bg-circle.small {
    font-size: 12px !important;
    width: 24px !important;
    height: 24px !important;
    line-height: 1 !important;
}

/* Responsive adjustments */
@media only screen and (max-width: 600px) {
    #notifications-dropdown {
        width: 300px !important;
        right: -40px;
    }
}
