/* User Notification Bell Styles */

/* Notification Count Badge */
.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4444;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Mobile Notification Bell */
.mobile-notification-bell .notification-count {
    top: -8px;
    right: -8px;
}

/* Desktop Notification Bell */
.nav-item.notification-bell .notification-count {
    top: 5px;
    right: 10px;
}

/* Notification Dropdown */
.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    width: 350px;
    max-height: 400px;
    z-index: 1000;
    overflow: hidden;
}

/* Mobile notification dropdown positioning */
.mobile-notification-bell .notification-dropdown {
    right: -10px;
    width: 300px;
}

/* Notification Header */
.notification-header {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h6 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.notification-header a {
    color: #007185;
    text-decoration: none;
    font-size: 12px;
}

.notification-header a:hover {
    text-decoration: underline;
}

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

.notification-loading {
    padding: 20px;
    text-align: center;
    color: #666;
}

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

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

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

.notification-item.unread {
    background-color: #f0f8ff;
    border-left: 3px solid #007185;
}

.notification-item .notification-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    font-size: 14px;
}

.notification-item .notification-body {
    color: #666;
    font-size: 13px;
    margin-bottom: 4px;
    line-height: 1.4;
}

.notification-item .notification-time {
    color: #999;
    font-size: 11px;
}

.notification-item .notification-type {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.notification-type.order { background: #e8f5e8; color: #2e7d32; }
.notification-type.payment { background: #fff3e0; color: #f57c00; }
.notification-type.promotional { background: #f3e5f5; color: #7b1fa2; }
.notification-type.announcement { background: #e3f2fd; color: #1976d2; }
.notification-type.system { background: #ffebee; color: #d32f2f; }

/* Notification Footer */
.notification-footer {
    padding: 12px 16px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
    text-align: center;
}

.notification-footer a {
    color: #007185;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.notification-footer a:hover {
    text-decoration: underline;
}

/* Empty State */
.notification-empty {
    padding: 30px 20px;
    text-align: center;
    color: #666;
}

.notification-empty i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .notification-dropdown {
        width: 280px;
        right: -20px;
    }
    
    .mobile-notification-bell .notification-dropdown {
        width: 260px;
        right: -30px;
    }
}

/* Animation */
.notification-dropdown {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.notification-dropdown.show {
    opacity: 1;
    transform: translateY(0);
    display: block !important;
}

/* Bell icon animation */
.notification-bell-trigger i {
    transition: transform 0.2s ease;
}

.notification-bell-trigger:hover i {
    transform: scale(1.1);
}

.notification-bell-trigger.has-notifications i {
    animation: bellRing 2s infinite;
}

@keyframes bellRing {
    0%, 50%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-10deg); }
    20%, 40% { transform: rotate(10deg); }
}