/**
 * Notification System Styles
 *
 * @version 1.0
 * @date 2025-11-11
 */

/* Notification bell animation */
@keyframes ring {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70% { transform: rotate(-15deg); }
    20%, 40%, 60%, 80% { transform: rotate(15deg); }
}

.notification-ring {
    animation: ring 0.5s ease-in-out;
}

/* Notification badge */
#notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #dc3545;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Notification bell container */
#notification-bell {
    position: relative;
    display: inline-block;
    font-size: 1.25rem;
    color: #6c757d;
    transition: color 0.2s;
}

#notification-bell:hover {
    color: #0d6efd;
}

/* Notification dropdown */
#notification-dropdown {
    min-width: 350px;
    max-width: 400px;
    max-height: 500px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.notification-item:last-child {
    border-bottom: none;
}

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

.notification-item.unread {
    background-color: #e7f3ff;
    border-left: 3px solid #0d6efd;
}

.notification-item strong {
    font-size: 0.9rem;
    color: #212529;
}

.notification-item small {
    font-size: 0.8rem;
    color: #6c757d;
    display: block;
    margin-top: 4px;
}

/* Empty state */
.notification-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.notification-empty i {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 16px;
}

/* Notification types with colors */
.notification-type-message {
    border-left-color: #17a2b8;
}

.notification-type-enquiry {
    border-left-color: #28a745;
}

.notification-type-listing {
    border-left-color: #ffc107;
}

.notification-type-payment {
    border-left-color: #28a745;
}

.notification-type-warning {
    border-left-color: #dc3545;
}

.notification-type-system {
    border-left-color: #0d6efd;
}

/* Mobile responsive */
@media (max-width: 576px) {
    #notification-dropdown {
        min-width: 280px;
        max-width: 90vw;
    }

    .notification-item {
        padding: 10px 12px;
    }
}

/* Loading state */
.notification-loading {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

.notification-loading i {
    animation: spin 1s linear infinite;
}

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

/* Priority indicators */
.notification-priority-urgent {
    background-color: #fff3cd;
    border-left: 3px solid #dc3545 !important;
}

.notification-priority-high {
    background-color: #f8f9fa;
    border-left: 3px solid #ffc107 !important;
}
