/**
 * Notification and Message Styles
 */

/* Badge styling */
.navbar-badge {
    position: absolute;
    top: 5px;
    right: 3px;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 50%;
    min-width: 16px;
    height: 16px;
    text-align: center;
    line-height: 12px;
    z-index: 10;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Specific badge styling for notifications and messages */
.notification-badge, .message-badge {
    position: absolute;
    top: 5px;
    right: 3px;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 50%;
    min-width: 16px;
    height: 16px;
    text-align: center;
    line-height: 12px;
    z-index: 10;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Dropdown menu styling */
.notification-dropdown-menu,
.message-dropdown-menu {
    width: 300px;
    padding: 0;
    margin: 0;
    max-height: 400px;
    overflow-y: auto;
}

.dropdown-header {
    background-color: #f8f9fa;
    padding: 10px 15px;
    font-weight: 600;
    border-bottom: 1px solid #dee2e6;
}

.dropdown-footer {
    background-color: #f8f9fa;
    padding: 10px 15px;
    text-align: center;
    font-weight: 600;
    border-top: 1px solid #dee2e6;
    display: block;
    color: #007bff;
}

.dropdown-footer:hover {
    background-color: #e9ecef;
    text-decoration: none;
}

/* Notification item styling */
.dropdown-item {
    padding: 10px 15px;
    border-bottom: 1px solid #f1f1f1;
    display: flex;
    align-items: flex-start;
    white-space: normal;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-item.unread {
    background-color: #f0f7ff;
}

.notification-icon,
.message-icon {
    margin-right: 10px;
    font-size: 1.2rem;
    padding-top: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-icon img,
.message-icon img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
}

.notification-content,
.message-content {
    flex: 1;
}

.notification-title,
.message-title {
    font-weight: 600;
    margin-bottom: 3px;
}

.notification-text,
.message-text {
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 3px;
}

.notification-time,
.message-time {
    color: #adb5bd;
    font-size: 0.75rem;
}

/* Empty state styling */
.empty-state {
    padding: 20px;
    text-align: center;
    color: #6c757d;
}

.empty-state i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #adb5bd;
}

.empty-state p {
    margin: 0;
}

/* Loading state */
.dropdown-menu-content .fa-spinner {
    color: #007bff;
}

/* Error state */
.dropdown-menu-content .fa-exclamation-circle {
    color: #dc3545;
}
