/* Notification Styles */
.notification-wrapper {
    position: relative;
    display: inline-block;
    margin-right: 15px;
}

.notification-bell {
    position: relative;
    cursor: pointer;
    font-size: 20px;
    color: #333;
    padding: 5px;
}

.notification-bell:hover {
    color: #ffba00;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff0000;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
    display: none; /* Hidden by default */
}

.notification-dropdown {
    position: absolute;
    top: 100%;
    right: -100px; /* Adjust alignment */
    width: 320px;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    z-index: 1000;
    display: none;
    overflow: hidden;
    border: 1px solid #eee;
    margin-top: 10px;
}

/* Mobile specific adjustment */
@media (max-width: 768px) {
    .notification-dropdown {
        position: fixed;
        top: 60px; /* Adjust based on header height */
        left: 10px;
        right: 10px;
        width: auto;
    }
}

.notification-header {
    padding: 10px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.mark-all-read {
    font-size: 12px;
    color: #007bff;
    cursor: pointer;
    text-decoration: none;
}

.mark-all-read:hover {
    text-decoration: underline;
}

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

.notification-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f1f1f1;
    display: flex;
    align-items: start;
    transition: background 0.2s;
    text-decoration: none !important;
    color: #333;
}

.notification-item:hover {
    background: #f9f9f9;
}

.notification-item.unread {
    background: #fff8e1; /* Light yellow for unread */
}

.notification-item.unread:hover {
    background: #fff3cd;
}

.notif-icon {
    margin-right: 12px;
    font-size: 18px;
    width: 30px;
    text-align: center;
}

.notif-content {
    flex: 1;
}

.notif-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 3px;
    display: block;
}

.notif-message {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    display: block;
    line-height: 1.4;
}

.notif-time {
    font-size: 10px;
    color: #999;
    display: block;
}

.notification-footer {
    padding: 10px;
    text-align: center;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.notification-footer a {
    font-size: 12px;
    color: #333;
    font-weight: 600;
}

/* Icon Colors */
.type-promo { color: #e91e63; }
.type-order { color: #2196f3; }
.type-chat { color: #4caf50; }
.type-stock { color: #ff9800; }
.type-info { color: #607d8b; }

.empty-notif {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 13px;
}
