/**
 * Notification Bell Styles
 */

/* Bell Icon Container */
#notification-bell-container .nav-link {
    position: relative;
    padding: 0.5rem 1rem;
}

#notification-bell-container .mdi-bell-outline {
    font-size: 1.5rem;
    color: #6c757d;
    transition: color 0.3s ease;
}

#notification-bell-container .nav-link:hover .mdi-bell-outline {
    color: #007bff;
}

/* Notification Badge */
#notification-badge {
    position: absolute;
    top: 5px;
    right: 8px;
    min-width: 18px;
    height: 18px;
    padding: 2px 5px;
    font-size: 10px;
    font-weight: 600;
    line-height: 14px;
    text-align: center;
    color: #fff;
    border-radius: 10px;
    animation: pulse 2s infinite;
}

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

/* Dropdown Menu */
#notification-bell-container .dropdown-menu {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
}

#notification-bell-container .dropdown-menu h6 {
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Notification List */
#notification-list {
    max-height: 400px;
    overflow-y: auto;
}

#notification-list::-webkit-scrollbar {
    width: 6px;
}

#notification-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#notification-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

#notification-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Notification Item */
#notification-list .dropdown-item {
    padding: 0.75rem 1rem;
    transition: background-color 0.2s ease;
}

#notification-list .dropdown-item:hover {
    background-color: #f8f9fa;
}

#notification-list .dropdown-item.unread {
    background-color: #e7f3ff;
}

#notification-list .dropdown-item.unread:hover {
    background-color: #d0e8ff;
}

/* Preview Thumbnail */
#notification-list .preview-thumbnail {
    margin-right: 1rem;
}

#notification-list .preview-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

#notification-list .preview-icon i {
    font-size: 1.25rem;
}

#notification-list .preview-icon.bg-info {
    background-color: #17a2b8;
}

#notification-list .preview-icon.bg-success {
    background-color: #28a745;
}

#notification-list .preview-icon.bg-warning {
    background-color: #ffc107;
}

#notification-list .preview-icon.bg-primary {
    background-color: #007bff;
}

/* Preview Content */
#notification-list .preview-item-content {
    flex: 1;
    min-width: 0;
}

#notification-list .preview-subject {
    font-size: 0.875rem;
    color: #333;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#notification-list .text-gray {
    font-size: 0.75rem;
    color: #6c757d;
}

#notification-list .ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Badge */
#notification-list .badge-pill {
    font-size: 0.625rem;
    padding: 0.25rem 0.5rem;
}

/* Empty State */
#notification-list .text-center {
    color: #6c757d;
}

#notification-list .mdi-48px {
    font-size: 3rem;
    opacity: 0.5;
}

/* Loading State */
#notification-list .mdi-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Settings Link */
#notification-bell-container .dropdown-item.text-center {
    font-weight: 500;
    color: #007bff;
    padding: 0.75rem 1rem;
}

#notification-bell-container .dropdown-item.text-center:hover {
    background-color: #f8f9fa;
    color: #0056b3;
}

/* Responsive */
@media (max-width: 768px) {
    #notification-bell-container .dropdown-menu {
        min-width: 300px !important;
        max-width: 90vw;
    }

    #notification-list {
        max-height: 300px;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    #notification-bell-container .dropdown-menu {
        background-color: #2d3748;
        border-color: #4a5568;
    }

    #notification-bell-container .dropdown-menu h6 {
        color: #e2e8f0;
    }

    #notification-list .dropdown-item {
        color: #e2e8f0;
    }

    #notification-list .dropdown-item:hover {
        background-color: #4a5568;
    }

    #notification-list .dropdown-item.unread {
        background-color: #2c5282;
    }

    #notification-list .preview-subject {
        color: #e2e8f0;
    }

    #notification-list .text-gray {
        color: #a0aec0;
    }
}
